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.
10 <title>WebGL2 Methods Test for OffscreenCanvas in a worker
</title>
11 <link rel=
"stylesheet" href=
"../../resources/js-test-style.css"/>
12 <script src=
"../../js/js-test-pre.js"></script>
13 <script src=
"../../js/webgl-test-utils.js"></script>
14 <script src=
"../../js/tests/canvas-tests-utils.js"></script>
17 <div id=
"description"></div>
18 <div id=
"console"></div>
20 description("This test ensures that the WebGL context has all the methods in the specification.");
22 if (!window
.OffscreenCanvas
) {
23 testPassed("No OffscreenCanvas support");
25 if (testAPIs('webgl2')) {
26 testPassed("All WebGL2 methods found");
28 testFailed("Some WebGL2 methods not found");
32 var successfullyParsed
= true;
34 <script src=
"../../js/js-test-post.js"></script>