Update web-platform-tests to revision 10168e9a5d44efbc6e7d416d1d454eb9c9f1396c

This commit is contained in:
Josh Matthews 2018-01-31 09:13:41 -05:00
parent c88dc51d03
commit 0e1caebaf4
791 changed files with 23381 additions and 5501 deletions

View file

@ -0,0 +1,27 @@
<!doctype html>
<title>Acid3 numbered tests</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
var tests = undefined;
function gotMessage(e) {
var m = e.data;
if (tests === undefined && "num_tests" in m) {
tests = [];
for (var i = 0; i < m.num_tests; i++) {
tests.push(async_test("Test " + i));
}
} else if ("result" in m) {
var test = m.test;
var passed = m.result === "pass";
var message = m.message;
tests[test].step(function() {
assert_true(passed, message);
});
tests[test].done();
}
}
window.addEventListener("message", gotMessage, false);
</script>
<iframe src="test.html"></iframe>

View file

@ -3419,6 +3419,7 @@
}
];
window.parent.postMessage({num_tests: tests.length}, "*");
var log = '';
var delay = 10;
var score = 0, index = 0, retry = 0, errors = 0;
@ -3456,6 +3457,7 @@
} else {
fail("no error message");
}
window.parent.postMessage({test: index, result: "pass"}, "*");
} catch (e) {
var s;
if (e.message)
@ -3464,6 +3466,7 @@
s = e;
errors += 1;
log += "Test " + zeroPaddedIndex + " failed: " + s + "\n";
window.parent.postMessage({test: index, result: "fail", message: s}, "*");
};
retry = 0;
index += 1;