summaryrefslogtreecommitdiffstats
path: root/dom/canvas/test/webgl-conf/checkout/conformance/offscreencanvas/context-creation-worker.js
blob: b0d867a1d227f0a0a1457c0cc0f6cbf70ab71c12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
Copyright (c) 2019 The Khronos Group Inc.
Use of this source code is governed by an MIT-style license that can be
found in the LICENSE.txt file.
*/

importScripts("../../js/tests/canvas-tests-utils.js");
self.onmessage = function(e) {
  if (contextCreation('webgl'))
    self.postMessage("Test passed");
  else
    self.postMessage("Test failed");
};