diff options
Diffstat (limited to 'dom/canvas/test/webgl-conf/checkout/conformance/offscreencanvas/methods-worker.js')
-rw-r--r-- | dom/canvas/test/webgl-conf/checkout/conformance/offscreencanvas/methods-worker.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dom/canvas/test/webgl-conf/checkout/conformance/offscreencanvas/methods-worker.js b/dom/canvas/test/webgl-conf/checkout/conformance/offscreencanvas/methods-worker.js new file mode 100644 index 0000000000..154cac7fc6 --- /dev/null +++ b/dom/canvas/test/webgl-conf/checkout/conformance/offscreencanvas/methods-worker.js @@ -0,0 +1,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 (testAPIs('webgl')) + self.postMessage("Test passed"); + else + self.postMessage("Test failed"); +} |