comparison: content/canvas/test/webgl-mochitest/test_webgl2_not_exposed.html
content/canvas/test/webgl-mochitest/test_webgl2_not_exposed.html
- changeset 0
- 6474c204b198
equal
deleted
inserted
replaced
|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <head> |
|
4 <title>WebGL test: WebGL2RenderingContext not exposed</title> |
|
5 <script src="/tests/SimpleTest/SimpleTest.js"></script> |
|
6 <link rel="stylesheet" href="/tests/SimpleTest/test.css"> |
|
7 </head> |
|
8 <body> |
|
9 <script> |
|
10 |
|
11 var exposed = false; |
|
12 try { |
|
13 null instanceof WebGL2RenderingContext; |
|
14 exposed = true; |
|
15 } catch (e) {} |
|
16 |
|
17 ok(!exposed, 'WebGL2RenderingContext should not be exposed.'); |
|
18 |
|
19 </script> |
|
20 </body> |
|
21 </html> |