-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wptserve] Put
// META:
scripts after testharness.js (#11344)
Some tests, e.g., [1], expect testharness.js to exist in the script. Part of #11269. [1] html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/serialization-via-idb.any.html
- Loading branch information
Showing
6 changed files
with
66 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test(() => { | ||
assert_true('GLOBAL' in self); | ||
}, 'GLOBAL exists'); | ||
|
||
scripts.push('expect-global.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test(() => { | ||
assert_true('add_completion_callback' in self); | ||
}, 'add_completion_callback exists'); | ||
|
||
var scripts = ['expect-seen-testharness.js']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters