Skip to content

Instantly share code, notes, and snippets.

Created July 6, 2012 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/af016b04f98b418a7aba to your computer and use it in GitHub Desktop.
Save anonymous/af016b04f98b418a7aba to your computer and use it in GitHub Desktop.
var test = require('testling');
test('Tests', function (t) {
t.createWindow('http://fastcompany.com', { t: t }, function (win) {
var linktag=win.document.getElementsByTagName("link");
var dummy = "";
t.log("Tests for link rel = canonical");
for (var i=0;i<linktag.length;i++){
if (linktag[i].getAttribute("rel") == "canonical")
dummy = "found";
}
t.equal(dummy,'found');
t.end();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment