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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/utils.js

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 function getElementsByIds(ids) {
2 var result = [];
3 ids.forEach(function(id) {
4 result.push(document.getElementById(id));
5 });
6 return result;
7 }
8
9 function testSelector(selector, expected, testName) {
10 test(function(){
11 var elements = document.querySelectorAll(selector);
12 assert_array_equals(elements, getElementsByIds(expected));
13 }, testName);
14 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698