mirror of
https://github.com/servo/servo.git
synced 2025-09-11 07:28:19 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
|
@ -0,0 +1,13 @@
|
|||
// Copyright 2017 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// The WebAssembly spec doesn't specify a limit on how many Memory objects can
|
||||
// be allocated. This test makes sure we can have at least two at once.
|
||||
|
||||
importScripts("/resources/testharness.js");
|
||||
test(function () {
|
||||
const mem1 = new WebAssembly.Memory({initial: 1});
|
||||
const mem2 = new WebAssembly.Memory({initial: 1});
|
||||
}, "WebAssembly#CreateMultipleMemories.");
|
||||
done();
|
19
tests/wpt/web-platform-tests/wasm/many-memories.window.js
Normal file
19
tests/wpt/web-platform-tests/wasm/many-memories.window.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
// Copyright 2017 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// This test makes sure browsers behave reasonably when asked to allocate a
|
||||
// large number of WebAssembly.Memory objects at once.
|
||||
test(function() {
|
||||
let memories = [];
|
||||
try {
|
||||
for (let i = 0; i < 600; i++) {
|
||||
memories.push(new WebAssembly.Memory({initial: 1}));
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof RangeError) {
|
||||
return;
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}, "WebAssembly#CreateManyMemories");
|
|
@ -2,7 +2,8 @@
|
|||
<title>Service Worker: postMessage with wasm</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/serviceworker/resources/test-helpers.js"></script>
|
||||
<script src="/common/get-host-info.sub.js"></script>
|
||||
<script src="/service-workers/service-worker/resources/test-helpers.sub.js"></script>
|
||||
<script>
|
||||
promise_test(async test => {
|
||||
var registration = await service_worker_unregister_and_register(
|
Loading…
Add table
Add a link
Reference in a new issue