Backed out changeset 7272b7396c78 (bug 1932758) for causing fenix debug failures...
[gecko.git] / dom / canvas / test / webgl-conf / checkout / conformance / offscreencanvas / context-creation.html
blob73c911b5d1c226b1d6f4c7fd59c01c230defb0cc
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 <!DOCTYPE html>
7 <html>
8 <head>
9 <meta charset="utf-8">
10 <title>WebGL Context Creation Test for OffscreenCanvas</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>
15 </head>
16 <body>
17 <div id="description"></div>
18 <div id="console"></div>
19 <script>
20 "use strict";
21 description("This test ensures that the WebGL context can be created on an OffscreenCanvas.");
23 if (!window.OffscreenCanvas) {
24 testPassed("No OffscreenCanvas support");
25 } else {
26 if (contextCreation('webgl')) {
27 testPassed("WebGL context created correctly.");
28 } else {
29 testFailed("WebGL context creation failed");
33 var successfullyParsed = true;
34 </script>
35 <script src="../../js/js-test-post.js"></script>
36 </body>
37 </html>