Bug 1452650 [wpt PR 10380] - Remove generate_tests from NodeIterator.html, a=testonly
authorAnne van Kesteren <annevk@annevk.nl>
Mon, 09 Apr 2018 22:37:47 +0000
changeset 467342 5060d08182b449120573eacde9465f85dc27412e
parent 467341 ba6e8305848dd192c2e1ac35da6e51449ddee774
child 467343 18e58d60afb9a94ac30ae2c120ae3e032527591f
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1452650, 10380
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1452650 [wpt PR 10380] - Remove generate_tests from NodeIterator.html, a=testonly Automatic update from web-platform-testsRemove generate_tests from NodeIterator.html (#10380) wpt-commits: 509d7ab80243012857d1b19eda0e6f3b25f33e8e wpt-pr: 10380 wpt-commits: 509d7ab80243012857d1b19eda0e6f3b25f33e8e wpt-pr: 10380
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/dom/traversal/NodeIterator.html
testing/web-platform/tests/lint.whitelist
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -393627,17 +393627,17 @@
    "f8af4287f3b0f6925a2a6c5c75b3788e24de1680",
    "support"
   ],
   "./config.default.json": [
    "54422ca469a8d54fa4b8252803bb0e2c91459858",
    "support"
   ],
   "./lint.whitelist": [
-   "58434d31fc8973e9f587328ae6aec0c79313a8a6",
+   "93f2328f5f3d43122505f201ddcb53c8d3d231bf",
    "support"
   ],
   "./serve.py": [
    "0efa39b1f26f86d73f2fce4f9e46003d62057b41",
    "support"
   ],
   "./server-side.md": [
    "c51b17fbac2a2e3121dc74f7badbd2873ce92f61",
@@ -550159,17 +550159,17 @@
    "cd87e7ecb902e44ec5e62a29f95331e614f1e221",
    "testharness"
   ],
   "dom/traversal/NodeIterator-removal.html": [
    "94eba47487961f5d3e5eecf3c44d3d7b993d95d4",
    "testharness"
   ],
   "dom/traversal/NodeIterator.html": [
-   "eb86c6666fc081eb37edaca8f53adb72993faf8e",
+   "2eb75363c75bb8d6a15fafe61fd9ec402abcc276",
    "testharness"
   ],
   "dom/traversal/TreeWalker-acceptNode-filter.html": [
    "6c53fc62d9b4f3fe7b3e4c29b68ab568043fa6e8",
    "testharness"
   ],
   "dom/traversal/TreeWalker-basic.html": [
    "e66c403551d8b94133239a3131238fafe5fda296",
--- a/testing/web-platform/tests/dom/traversal/NodeIterator.html
+++ b/testing/web-platform/tests/dom/traversal/NodeIterator.html
@@ -195,25 +195,20 @@ var whatToShows = [
 
 var callbacks = [
   "null",
   "(function(node) { return true })",
   "(function(node) { return false })",
   "(function(node) { return node.nodeName[0] == '#' })",
 ];
 
-var tests = [];
 for (var i = 0; i < testNodes.length; i++) {
   for (var j = 0; j < whatToShows.length; j++) {
     for (var k = 0; k < callbacks.length; k++) {
-      tests.push([
-        "document.createNodeIterator(" + testNodes[i]
-          + ", " + whatToShows[j] + ", " + callbacks[k] + ")",
-        eval(testNodes[i]), eval(whatToShows[j]), eval(callbacks[k])
-      ]);
+      test(() => {
+        testIterator(eval(testNodes[i]), eval(whatToShows[j]), eval(callbacks[k]));
+      }, "document.createNodeIterator(" + testNodes[i] + ", " + whatToShows[j] + ", " + callbacks[k] + ")");
     }
   }
 }
 
-generate_tests(testIterator, tests);
-
 testDiv.style.display = "none";
 </script>
--- a/testing/web-platform/tests/lint.whitelist
+++ b/testing/web-platform/tests/lint.whitelist
@@ -275,17 +275,16 @@ GENERATE_TESTS: css/css-tables/width-dis
 GENERATE_TESTS: css/css-tables/width-distribution/distribution-algo-min-content-specified-guess.1.html
 GENERATE_TESTS: css/css-tables/width-distribution/distribution-algo-min-content-specified-guess.html
 GENERATE_TESTS: dom/nodes/case.js
 GENERATE_TESTS: dom/ranges/Range-cloneRange.html
 GENERATE_TESTS: dom/ranges/Range-collapse.html
 GENERATE_TESTS: dom/ranges/Range-mutations.js
 GENERATE_TESTS: dom/ranges/Range-selectNode.html
 GENERATE_TESTS: dom/ranges/Range-set.html
-GENERATE_TESTS: dom/traversal/NodeIterator.html
 GENERATE_TESTS: dom/traversal/TreeWalker.html
 GENERATE_TESTS: domparsing/createContextualFragment.html
 GENERATE_TESTS: domxpath/001.html
 GENERATE_TESTS: domxpath/002.html
 GENERATE_TESTS: html/semantics/scripting-1/the-template-element/template-element/template-as-a-descendant.html
 GENERATE_TESTS: html/syntax/parsing/Document.getElementsByTagName-foreign-01.html
 GENERATE_TESTS: html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-body-context.html
 GENERATE_TESTS: html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-context.html