Update web-platform-tests to revision 12d3e15e5ecae695e1216c358d613705fbff6b68

This commit is contained in:
Ms2ger 2015-07-27 13:50:32 +02:00
parent 78455ec033
commit 5b2ca4d132
424 changed files with 4377 additions and 8656 deletions

View file

@ -10,17 +10,14 @@
<div id="log">This test requires JavaScript.</div>
<script>
var testType = TEST_QSA;
var docType = "html"; // Only run tests suitable for HTML
async_test(function() {
var frame = document.createElement("iframe");
frame.onload = this.step_func_done(init);
frame.src = "ParentNode-querySelector-All-content.html#target";
document.body.appendChild(frame);
});
var frame = document.createElement("iframe"),
doc;
frame.onload = init;
frame.src = "ParentNode-querySelector-All-content.html#target";
document.body.appendChild(frame);
function init() {
function init(e) {
/*
* This test suite tests Selectors API methods in 4 different contexts:
* 1. Document node
@ -55,13 +52,16 @@ function init() {
* The ParentNode-querySelector-All.js file contains all the common test functions for running each of the aforementioned tests
*/
var testType = TEST_QSA;
var docType = "html"; // Only run tests suitable for HTML
// Prepare the nodes for testing
doc = frame.contentDocument; // Document Node tests
var doc = e.target.contentDocument; // Document Node tests
var element = doc.getElementById("root"); // In-document Element Node tests
//Setup the namespace tests
setupSpecialElements(element);
setupSpecialElements(doc, element);
var outOfScope = element.cloneNode(true); // Append this to the body before running the in-document
// Element tests, but after running the Document tests. This
@ -89,10 +89,10 @@ function init() {
runSpecialSelectorTests("Fragment", fragment);
runSpecialSelectorTests("In-document Element", element);
verifyStaticList("Document", doc);
verifyStaticList("Detached Element", detached);
verifyStaticList("Fragment", fragment);
verifyStaticList("In-document Element", element);
verifyStaticList("Document", doc, doc);
verifyStaticList("Detached Element", doc, detached);
verifyStaticList("Fragment", doc, fragment);
verifyStaticList("In-document Element", doc, element);
runInvalidSelectorTest("Document", doc, invalidSelectors);
runInvalidSelectorTest("Detached Element", detached, invalidSelectors);