mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
Update web-platform-tests to revision 4333a1d2f109795547fc5e22ebfc8481fa649de7
This commit is contained in:
parent
728ebcc932
commit
8c46b67f8e
456 changed files with 10561 additions and 5108 deletions
|
@ -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");
|
|
@ -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");
|
|
@ -0,0 +1,5 @@
|
|||
test(() => {
|
||||
assert_true('GLOBAL' in self);
|
||||
}, 'GLOBAL exists');
|
||||
|
||||
scripts.push('expect-global.js');
|
|
@ -0,0 +1,5 @@
|
|||
test(() => {
|
||||
assert_true('add_completion_callback' in self);
|
||||
}, 'add_completion_callback exists');
|
||||
|
||||
var scripts = ['expect-seen-testharness.js'];
|
|
@ -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');
|
|
@ -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();
|
Loading…
Add table
Add a link
Reference in a new issue