| Index: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/selectors/pseudo-classes/utils.js
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/selectors/pseudo-classes/utils.js b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/selectors/pseudo-classes/utils.js
|
| index 8f5497ec57e5cdaeea37954756b8d4cbd48cdd3c..a8b1cd62a81842b8721774a3ff80ea1de95de349 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/selectors/pseudo-classes/utils.js
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/selectors/pseudo-classes/utils.js
|
| @@ -6,9 +6,15 @@ function getElementsByIds(ids) {
|
| return result;
|
| }
|
|
|
| -function testSelector(selector, expected, testName) {
|
| +function testSelectorIdsMatch(selector, ids, testName) {
|
| test(function(){
|
| var elements = document.querySelectorAll(selector);
|
| - assert_array_equals(elements, getElementsByIds(expected));
|
| + assert_array_equals(elements, getElementsByIds(ids));
|
| + }, testName);
|
| +}
|
| +
|
| +function testSelectorElementsMatch(selector, elements, testName) {
|
| + test(function(){
|
| + assert_array_equals(document.querySelectorAll(selector), elements);
|
| }, testName);
|
| }
|
|
|