Update web-platform-tests to revision 4333a1d2f109795547fc5e22ebfc8481fa649de7

This commit is contained in:
WPT Sync Bot 2018-06-22 21:05:34 -04:00
parent 728ebcc932
commit 8c46b67f8e
456 changed files with 10561 additions and 5108 deletions

View file

@ -0,0 +1,10 @@
// META: global=window,dedicatedworker,sharedworker
// META: script=resources/expect-seen-testharness.js
// META: timeout=long
// META: title=foo
// META: script=resources/expect-global.js
// META: script=resources/expect-title-meta.js
test(() => {
assert_array_equals(scripts, ['expect-seen-testharness.js', 'expect-global.js', 'expect-title-meta.js']);
}, "order of scripts");

View file

@ -0,0 +1,8 @@
// META: script=resources/expect-seen-testharness.js
// META: timeout=long
// META: title=foo
// META: script=resources/expect-title-meta.js
test(() => {
assert_array_equals(scripts, ['expect-seen-testharness.js', 'expect-title-meta.js']);
}, "order of scripts");

View file

@ -0,0 +1,5 @@
test(() => {
assert_true('GLOBAL' in self);
}, 'GLOBAL exists');
scripts.push('expect-global.js');

View file

@ -0,0 +1,5 @@
test(() => {
assert_true('add_completion_callback' in self);
}, 'add_completion_callback exists');
var scripts = ['expect-seen-testharness.js'];

View file

@ -0,0 +1,11 @@
if (!self.GLOBAL || self.GLOBAL.isWindow()) {
test(() => {
assert_equals(document.title, "foo");
}, '<title> exists');
test(() => {
assert_equals(document.querySelectorAll("meta[name=timeout][content=long]").length, 1);
}, '<meta name=timeout> exists');
}
scripts.push('expect-title-meta.js');

View file

@ -0,0 +1,13 @@
// META: global=window,dedicatedworker,sharedworker
// META: title=foobar
test(t => {
if (GLOBAL.isWindow()) {
assert_equals(document.title, 'foobar');
assert_false('META_TITLE' in self);
} else {
assert_equals(META_TITLE, 'foobar');
}
assert_equals(t.name, 'foobar');
});
done();