Update web-platform-tests to revision 5e3ea8f49fee68c327388bfd1dd1375a8ce12a0e.

This commit is contained in:
Ms2ger 2015-07-09 14:05:01 +02:00
parent 12195a5c4a
commit bfb96b9448
1166 changed files with 35123 additions and 900 deletions

View file

@ -0,0 +1,30 @@
// note, this template substitution is XSS, but no way to avoid it in this framework
var expected_logs = {{GET[logs]}};
if (expected_logs.length == 0) {
function log_assert(msg) {
test(function () { assert_unreached(msg) });
}
} else {
var t_log = async_test('Expecting logs: {{GET[logs]}}');
function log(msg) {
t_log.step(function () {
if (msg.match(/^FAIL/i)) {
assert_unreached(msg);
t_log.done();
}
for (var i = 0; i < expected_logs.length; i++) {
if (expected_logs[i] == msg) {
assert_true(expected_logs[i] == msg);
expected_logs.splice(i, 1);
if (expected_logs.length == 0) {
t_log.done();
}
return;
}
}
assert_unreached('unexpected log: ' + msg);
t_log.done();
});
}
}