OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.js"></script> |
4 <script src="resources/webgl-test.js"></script> | 4 <script src="resources/webgl-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 if (window.initNonKhronosFramework) { | 8 if (window.initNonKhronosFramework) { |
9 window.initNonKhronosFramework(false); | 9 window.initNonKhronosFramework(false); |
10 } | 10 } |
(...skipping 15 matching lines...) Expand all Loading... |
26 // The first code path does not perform a utf8 conversion of the | 26 // The first code path does not perform a utf8 conversion of the |
27 // incoming string unless Console::shouldPrintExceptions() returns | 27 // incoming string unless Console::shouldPrintExceptions() returns |
28 // true. The second seems to sanitize the form's input before | 28 // true. The second seems to sanitize the form's input before |
29 // converting it to a UTF8 string. | 29 // converting it to a UTF8 string. |
30 | 30 |
31 var gl = create3DContext(null); | 31 var gl = create3DContext(null); |
32 var program = gl.createProgram(); | 32 var program = gl.createProgram(); |
33 gl.bindAttribLocation(program, 0, string); | 33 gl.bindAttribLocation(program, 0, string); |
34 testPassed("bindAttribLocation with invalid UTF-16 did not crash"); | 34 testPassed("bindAttribLocation with invalid UTF-16 did not crash"); |
35 </script> | 35 </script> |
36 <script src="../../js/resources/js-test-post.js"></script> | |
37 </body> | 36 </body> |
38 </html> | 37 </html> |
OLD | NEW |