https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 76830ce46b3c14e3a9e5d1a7d2b391b335953cd6 authored by Rune Lillesveen on 22 March 2018, 01:57:52 UTC
[css-typed-om] Add support for column-span.
Tip revision: 76830ce
wasm_serialization_tests.js
// Copyright 2016 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.

function TestInstantiateInWorker() {
  return createWasmModule()
    .then((mod) => {
      var worker = new Worker("wasm_serialization_worker.js");
      return new Promise((resolve, reject) => {
        worker.postMessage(mod);
        worker.onmessage = function(event) {
          resolve(event.data);
        }
      });
    })
    .then(data => assert_equals(data, 43))
    .catch(error => assert_unreached(error));
}
back to top