Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326

This commit is contained in:
Josh Matthews 2017-10-12 09:25:50 -04:00
parent 462c272380
commit 1f531f66ea
5377 changed files with 174916 additions and 84369 deletions

View file

@ -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();

View 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");

View file

@ -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(