mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Update web-platform-tests to revision b'99458bfd6e43f5842a4a510cc5adfd8185e5c64c'
This commit is contained in:
parent
eac515e4ab
commit
ec97b29ff1
334 changed files with 5735 additions and 3175 deletions
|
@ -1,3 +1,4 @@
|
|||
// META: script=/common/gc.js
|
||||
// META: script=resources/maybe-garbage-collect.js
|
||||
// ├──> maybeGarbageCollectAndCleanupAsync
|
||||
// └──> resolveGarbageCollection
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// META: script=/common/gc.js
|
||||
// META: script=resources/maybe-garbage-collect.js
|
||||
// ├──> maybeGarbageCollectAndCleanupAsync
|
||||
// └──> resolveGarbageCollection
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// META: script=/common/gc.js
|
||||
// META: script=resources/maybe-garbage-collect.js
|
||||
// ├──> maybeGarbageCollectAsync
|
||||
// └──> resolveGarbageCollection
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// META: script=/common/gc.js
|
||||
// META: script=resources/maybe-garbage-collect.js
|
||||
// ├──> maybeGarbageCollectAsync
|
||||
// └──> resolveGarbageCollection
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// META: script=/common/gc.js
|
||||
// META: script=resources/maybe-garbage-collect.js
|
||||
// ├──> maybeGarbageCollectAndCleanupAsync
|
||||
// ├──> maybeGarbageCollectAsync
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// META: script=/common/gc.js
|
||||
// META: script=resources/maybe-garbage-collect.js
|
||||
// ├──> maybeGarbageCollectAndCleanupAsync
|
||||
// ├──> maybeGarbageCollectAsync
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// META: script=/common/gc.js
|
||||
// META: script=resources/maybe-garbage-collect.js
|
||||
// ├──> maybeGarbageCollectAndCleanupAsync
|
||||
// ├──> maybeGarbageCollectAsync
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// META: script=/common/gc.js
|
||||
// META: script=resources/maybe-garbage-collect.js
|
||||
// ├──> maybeGarbageCollectAndCleanupAsync
|
||||
// └──> resolveGarbageCollection
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// META: script=/common/gc.js
|
||||
// META: script=resources/maybe-garbage-collect.js
|
||||
// ├──> maybeGarbageCollectAndCleanupAsync
|
||||
// └──> resolveGarbageCollection
|
||||
|
|
|
@ -2,33 +2,8 @@
|
|||
* maybeGarbageCollectAsync
|
||||
*
|
||||
* It might garbage collect, it might not. If it doesn't, that's ok.
|
||||
*
|
||||
* Based on "(default export)" in
|
||||
* https://github.com/web-platform-tests/wpt/pull/22835/files#diff-fba53ea423a12f40917f41ba4ffadf1e, and "$262.gc()"
|
||||
* defined in https://github.com/tc39/test262/blob/main/INTERPRETING.md
|
||||
*
|
||||
*
|
||||
* @return {undefined}
|
||||
*/
|
||||
async function maybeGarbageCollectAsync() {
|
||||
if (typeof TestUtils !== 'undefined' && TestUtils.gc) {
|
||||
await TestUtils.gc();
|
||||
} else if (self.gc) {
|
||||
// Use --expose_gc for V8 (and Node.js)
|
||||
// to pass this flag at chrome launch use: --js-flags="--expose-gc"
|
||||
// Exposed in SpiderMonkey shell as well
|
||||
await self.gc();
|
||||
} else if (self.GCController) {
|
||||
// Present in some WebKit development environments
|
||||
await GCController.collect();
|
||||
} else {
|
||||
/* eslint-disable no-console */
|
||||
console.warn('Tests are running without the ability to do manual ' +
|
||||
'garbage collection. They will still work, but ' +
|
||||
'coverage will be suboptimal.');
|
||||
/* eslint-enable no-console */
|
||||
}
|
||||
}
|
||||
self.maybeGarbageCollectAsync = garbageCollect;
|
||||
|
||||
/**
|
||||
* maybeGarbageCollectKeptObjectsAsync
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// META: script=/common/gc.js
|
||||
// META: script=resources/maybe-garbage-collect.js
|
||||
// ├──> maybeGarbageCollectAndCleanupAsync
|
||||
// └──> resolveGarbageCollection
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// META: script=/common/gc.js
|
||||
// META: script=resources/maybe-garbage-collect.js
|
||||
// ├──> maybeGarbageCollectAndCleanupAsync
|
||||
// └──> resolveGarbageCollection
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue