OLD | NEW |
1 <head> | 1 <head> |
2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
3 <script src="resources/webgl-test.js"></script> | 3 <script src="resources/webgl-test.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <div id="description"></div> | 6 <div id="description"></div> |
7 <div id="console"></div> | 7 <div id="console"></div> |
8 | 8 |
9 <script> | 9 <script> |
10 description("Verifies the contents of the RENDERER and VENDOR strings to avoid r
egressions.") | 10 description("Verifies the contents of the RENDERER and VENDOR strings to avoid r
egressions.") |
11 | 11 |
12 if (window.initNonKhronosFramework) | 12 if (window.initNonKhronosFramework) |
13 window.initNonKhronosFramework(false); | 13 window.initNonKhronosFramework(false); |
14 | 14 |
15 var gl = create3DContext(); | 15 var gl = create3DContext(); |
16 | 16 |
17 // Consensus in the WebGL working group has been to mask the | 17 // Consensus in the WebGL working group has been to mask the |
18 // underlying hardware's RENDERER and VENDOR strings, which leak a | 18 // underlying hardware's RENDERER and VENDOR strings, which leak a |
19 // certain amount of personally identifiable information. This test is | 19 // certain amount of personally identifiable information. This test is |
20 // intended only to catch accidental regressions, not to enforce the | 20 // intended only to catch accidental regressions, not to enforce the |
21 // specific strings. | 21 // specific strings. |
22 | 22 |
23 shouldBe("gl.getParameter(gl.RENDERER)", '"WebKit WebGL"'); | 23 shouldBe("gl.getParameter(gl.RENDERER)", '"WebKit WebGL"'); |
24 shouldBe("gl.getParameter(gl.VENDOR)", '"WebKit"'); | 24 shouldBe("gl.getParameter(gl.VENDOR)", '"WebKit"'); |
25 </script> | 25 </script> |
26 | 26 |
27 </body> | 27 </body> |
OLD | NEW |