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
This commit is contained in:
Anne van Kesteren 2018-04-09 22:37:47 +00:00 коммит произвёл James Graham
Родитель e5f975f611
Коммит 0c9d9939c4
3 изменённых файлов: 5 добавлений и 11 удалений

Просмотреть файл

@ -393632,7 +393632,7 @@
"support"
],
"./lint.whitelist": [
"58434d31fc8973e9f587328ae6aec0c79313a8a6",
"93f2328f5f3d43122505f201ddcb53c8d3d231bf",
"support"
],
"./serve.py": [
@ -550164,7 +550164,7 @@
"testharness"
],
"dom/traversal/NodeIterator.html": [
"eb86c6666fc081eb37edaca8f53adb72993faf8e",
"2eb75363c75bb8d6a15fafe61fd9ec402abcc276",
"testharness"
],
"dom/traversal/TreeWalker-acceptNode-filter.html": [

Просмотреть файл

@ -200,20 +200,15 @@ var callbacks = [
"(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>

Просмотреть файл

@ -280,7 +280,6 @@ 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