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_idb_worker.js
// 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.

importScripts('/resources/testharness.js');
importScripts('resources/load_wasm.js');
importScripts('wasm_indexeddb_test.js');

onmessage = function(e) {
  if (e.data.command === "load") {
    loadFromIndexedDB(e.data.db_name)
      .then(res => {
        if (res === 2) postMessage("ok");
        else postMessage("error");
      },
            error => postMessage(error));
  } else if (e.data.command === "save") {
    createAndSaveToIndexedDB(e.data.db_name)
      .then((m) => {
        postMessage("ok");
      },
            () => postMessage("error"));
  } else {
    postMessage("unknown message: " + e.data);
  }
}
back to top