Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/traversal/traversal-support.js

Issue 1529523002: Import dom/ from web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak W3CImportExpectations Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // |expected| should be an object indicating the expected type of node.
2 function assert_node(actual, expected)
3 {
4 assert_true(actual instanceof expected.type,
5 'Node type mismatch: actual = ' + actual.nodeType + ', expected = ' + expected.nodeType);
6 if (typeof(expected.id) !== 'undefined')
7 assert_equals(actual.id, expected.id);
8 if (typeof(expected.nodeValue) !== 'undefined')
9 assert_equals(actual.nodeValue, expected.nodeValue);
10 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698