Skip to content

Commit

Permalink
Make tree construction test use new jsdom API
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel committed Jul 14, 2014
1 parent c802885 commit d223a36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/tree-construction-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var convertExpected = require('./lib/support').convertExpected;

var serialize = require('./lib/serializeTestOutput').serializeTestOutput;

var core = jsdom.browserAugmentation(jsdom.dom.level3.core);
var core = jsdom.browserAugmentation(jsdom.level(3));
var domImplementation = new core.DOMImplementation();

testParser();
Expand All @@ -27,8 +27,8 @@ function testParser() {
var tests = new TestData(fileContent);
for (var test; test = tests.next();) {
var innerHTML = test['document-fragment'];
var input = test['data'];
var expected = test['document'];
var input = test.data;
var expected = test.document;
runTest(innerHTML, input, expected);
}
}
Expand All @@ -55,4 +55,4 @@ function runTest(innerHTML, input, expected) {
}
t.end();
});
}
}

0 comments on commit d223a36

Please sign in to comment.