mirror of
https://github.com/servo/servo.git
synced 2025-07-12 18:03:49 +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,21 +1,5 @@
|
|||
// META: script=resources/fetch-tests.js
|
||||
|
||||
function garbageCollect() {
|
||||
if (self.TestUtils?.gc) return TestUtils.gc();
|
||||
if (self.gc) return self.gc();
|
||||
// Present in some WebKit development environments
|
||||
if (self.GCController) return GCController.collect();
|
||||
|
||||
for (var i = 0; i < 1000; i++) gcRec(10);
|
||||
|
||||
function gcRec(n) {
|
||||
if (n < 1) return {};
|
||||
let temp = { i: "ab" + i + i / 100000 };
|
||||
temp += "foo";
|
||||
gcRec(n - 1);
|
||||
}
|
||||
}
|
||||
|
||||
// META: script=/common/gc.js
|
||||
|
||||
function fetch_should_succeed(test, request) {
|
||||
return fetch(request).then(response => response.text());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue