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 <div id="description"></div> | 7 <div id="description"></div> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 | 9 |
10 <script> | 10 <script> |
11 | 11 |
12 description('Verify that reassigning typed array constructor does not crash.'); | 12 description('Verify that reassigning typed array constructor does not crash.'); |
13 | 13 |
14 <!-- The following used to cause a crash in Chrome --> | 14 <!-- The following used to cause a crash in Chrome --> |
15 Uint8Array = 0; | 15 Uint8Array = 0; |
16 Uint16Array = "string"; | 16 Uint16Array = "string"; |
17 Uint32Array = function() {}; | 17 Uint32Array = function() {}; |
18 Int16Array = function() {}; | 18 Int16Array = function() {}; |
19 Int16Array.prototype.set = 0; | 19 Int16Array.prototype.set = 0; |
20 new Float64Array(function () {}); | 20 new Float64Array(function () {}); |
21 new Float32Array([1, 2, 3], 1); | 21 new Float32Array([1, 2, 3], 1); |
22 new Int16Array(function() {}); | 22 new Int16Array(function() {}); |
23 testPassed("reassigning typed array constructor did not crash"); | 23 testPassed("reassigning typed array constructor did not crash"); |
24 | 24 |
25 </script> | 25 </script> |
26 <script src="../../js/resources/js-test-post.js"></script> | |
27 | 26 |
28 <script> | 27 <script> |
29 </script> | 28 </script> |
30 | 29 |
31 </body> | 30 </body> |
32 </html> | 31 </html> |
OLD | NEW |