context-creation-worker.js (363B)
1 /* 2 Copyright (c) 2019 The Khronos Group Inc. 3 Use of this source code is governed by an MIT-style license that can be 4 found in the LICENSE.txt file. 5 */ 6 7 importScripts("../../js/tests/canvas-tests-utils.js"); 8 self.onmessage = function(e) { 9 if (contextCreation('webgl2')) 10 self.postMessage("Test passed"); 11 else 12 self.postMessage("Test failed"); 13 };