| Index: LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/utils.js
|
| diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/utils.js b/LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/utils.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8f5497ec57e5cdaeea37954756b8d4cbd48cdd3c
|
| --- /dev/null
|
| +++ b/LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/utils.js
|
| @@ -0,0 +1,14 @@
|
| +function getElementsByIds(ids) {
|
| + var result = [];
|
| + ids.forEach(function(id) {
|
| + result.push(document.getElementById(id));
|
| + });
|
| + return result;
|
| +}
|
| +
|
| +function testSelector(selector, expected, testName) {
|
| + test(function(){
|
| + var elements = document.querySelectorAll(selector);
|
| + assert_array_equals(elements, getElementsByIds(expected));
|
| + }, testName);
|
| +}
|
|
|