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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/traversal/traversal-support.js

Issue 1988983002: Move the dom directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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
1 // |expected| should be an object indicating the expected type of node. 1 // |expected| should be an object indicating the expected type of node.
2 function assert_node(actual, expected) 2 function assert_node(actual, expected)
3 { 3 {
4 assert_true(actual instanceof expected.type, 4 assert_true(actual instanceof expected.type,
5 'Node type mismatch: actual = ' + actual.nodeType + ', expected = ' + expected.nodeType); 5 'Node type mismatch: actual = ' + actual.nodeType + ', expected = ' + expected.nodeType);
6 if (typeof(expected.id) !== 'undefined') 6 if (typeof(expected.id) !== 'undefined')
7 assert_equals(actual.id, expected.id); 7 assert_equals(actual.id, expected.id);
8 if (typeof(expected.nodeValue) !== 'undefined') 8 if (typeof(expected.nodeValue) !== 'undefined')
9 assert_equals(actual.nodeValue, expected.nodeValue); 9 assert_equals(actual.nodeValue, expected.nodeValue);
10 } 10 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698