-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a71ccf
commit bf3a767
Showing
248 changed files
with
8,671 additions
and
1,339 deletions.
There are no files selected for viewing
397 changes: 313 additions & 84 deletions
397
test/fixtures/wpt/FileAPI/BlobURL/cross-partition.tentative.https.html
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
suggested_reviewers: | ||
- zqzhang | ||
- deniak |
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
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 @@ | ||
{} |
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
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,29 @@ | ||
// This function is a version of test_driver.bless which works while there are | ||
// elements in the top layer: | ||
// https://github.com/web-platform-tests/wpt/issues/41218. | ||
// Pass it the element at the top of the top layer stack. | ||
window.blessTopLayer = async (topLayerElement) => { | ||
const button = document.createElement('button'); | ||
topLayerElement.append(button); | ||
let wait_click = new Promise(resolve => button.addEventListener("click", resolve, {once: true})); | ||
await test_driver.click(button); | ||
await wait_click; | ||
button.remove(); | ||
}; | ||
|
||
window.isTopLayer = (el) => { | ||
// A bit of a hack. Just test a few properties of the ::backdrop pseudo | ||
// element that change when in the top layer. | ||
const properties = ['right','background']; | ||
const testEl = document.createElement('div'); | ||
document.body.appendChild(testEl); | ||
const computedStyle = getComputedStyle(testEl, '::backdrop'); | ||
const nonTopLayerValues = properties.map(p => computedStyle[p]); | ||
testEl.remove(); | ||
for(let i=0;i<properties.length;++i) { | ||
if (getComputedStyle(el,'::backdrop')[properties[i]] !== nonTopLayerValues[i]) { | ||
return true; | ||
} | ||
} | ||
return false; | ||
}; |
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
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
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: global=window,dedicatedworker,shadowrealm | ||
"use strict"; | ||
// https://console.spec.whatwg.org/ | ||
|
||
test(() => { | ||
console.log(new Array(10000000).fill("x")); | ||
console.log(new Uint8Array(10000000)); | ||
}, "Logging large arrays works"); |
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,shadowrealm | ||
"use strict"; | ||
// https://console.spec.whatwg.org/ | ||
|
||
test(() => { | ||
console.log(Symbol()); | ||
console.log(Symbol("abc")); | ||
console.log(Symbol.for("def")); | ||
console.log(Symbol.isConcatSpreadable); | ||
}, "Logging a symbol doesn't throw"); |
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,6 @@ | ||
features: | ||
- name: aborting | ||
files: "**" | ||
- name: abortsignal-any | ||
files: | ||
- abort-signal-any.any.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,23 @@ | ||
<!DOCTYPE html> | ||
<html class=test-wait> | ||
<head> | ||
<title>AbortSignal::Any when source signal was garbage collected</title> | ||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1908466"> | ||
<link rel="author" title="Vincent Hilla" href="mailto:[email protected]"> | ||
<script src="/common/gc.js"></script> | ||
</head> | ||
<body> | ||
<p>Test passes if the browser does not crash.</p> | ||
<script> | ||
async function test() { | ||
let controller = new AbortController(); | ||
let signal = AbortSignal.any([controller.signal]); | ||
controller = undefined; | ||
await garbageCollect(); | ||
AbortSignal.any([signal]); | ||
document.documentElement.classList.remove('test-wait'); | ||
} | ||
test(); | ||
</script> | ||
</body> | ||
</html> |
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
Oops, something went wrong.