-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests
More file actions
20 lines (12 loc) · 642 Bytes
/
tests
File metadata and controls
20 lines (12 loc) · 642 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
jsdom.env(env.url, [ 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' ],
function(errors, window) {
var position = window.$("img#adooza-picky").position();
var height = window.innerWidth;
console.log(window.$("div#adooza-picky").offsetHeight);
console.log(window.$("img#adooza-picky").src);
});
j.env("http://localhost/hummingbird-test.html", [ 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' ],
function(errors, window) {
wi = window.$('img#adooza-picky');
});
var jsdom = require("jsdom").jsdom, doc = jsdom(html, level, options), window = doc.createWindow();