daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Jul 6th, 2012 12 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var test = require('testling');
  2.  
  3. test('Tests', function (t) {
  4.    
  5.     t.createWindow('http://fastcompany.com', function (win) {
  6.        
  7.         var linktag=win.getElementsByTagName("link");
  8.                 var dummy = "";
  9.                 t.log("Tests for link rel = canonical");
  10.                 for (var i=0;i<linktag.length;i++){
  11.                         if (linktag[i].getAttribute("rel") == "canonical")
  12.                                 dummy = "found";               
  13.         }
  14.         t.equal(dummy,'found');
  15.         t.end();
  16.     });
  17. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top