mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Update web-platform-tests to revision 5e3ea8f49fee68c327388bfd1dd1375a8ce12a0e.
This commit is contained in:
parent
12195a5c4a
commit
bfb96b9448
1166 changed files with 35123 additions and 900 deletions
|
@ -160,7 +160,7 @@ function runValidSelectorTest(type, root, selectors, testType, docType) {
|
|||
nodeType = "fragment";
|
||||
break;
|
||||
default:
|
||||
console.log("Reached unreachable code path.");
|
||||
assert_unreached();
|
||||
nodeType = "unknown"; // This should never happen.
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,6 @@ function runValidSelectorTest(type, root, selectors, testType, docType) {
|
|||
|
||||
if ((!s["exclude"] || (s["exclude"].indexOf(nodeType) === -1 && s["exclude"].indexOf(docType) === -1))
|
||||
&& (s["testType"] & testType) ) {
|
||||
//console.log("Running tests " + nodeType + ": " + s["testType"] + "&" + testType + "=" + (s["testType"] & testType) + ": " + JSON.stringify(s))
|
||||
var foundall, found;
|
||||
|
||||
test(function() {
|
||||
|
@ -199,8 +198,6 @@ function runValidSelectorTest(type, root, selectors, testType, docType) {
|
|||
assert_equals(found, null, "The method should not match anything.");
|
||||
}
|
||||
}, type + ".querySelector: " + n + ": " + q);
|
||||
} else {
|
||||
//console.log("Excluding for " + nodeType + ": " + s["testType"] + "&" + testType + "=" + (s["testType"] & testType) + ": " + JSON.stringify(s))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -249,7 +246,7 @@ function getNodeType(node) {
|
|||
case Node.DOCUMENT_FRAGMENT_NODE:
|
||||
return "fragment";
|
||||
default:
|
||||
console.log("Reached unreachable code path.");
|
||||
assert_unreached();
|
||||
return "unknown"; // This should never happen.
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue