-
-
Save anonymous/af016b04f98b418a7aba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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