OLD | NEW |
| (Empty) |
1 <!-- | |
2 Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
3 Use of this source code is governed by a BSD-style license that can be | |
4 found in the LICENSE file. | |
5 --> | |
6 <html> | |
7 <head> | |
8 <link rel="stylesheet" href="../resources/js-test-style.css"/> | |
9 <script src="../resources/js-test-pre.js"></script> | |
10 <script src="resources/webgl-test.js"></script> | |
11 </head> | |
12 <body> | |
13 <div id="description"></div> | |
14 <div id="console"></div> | |
15 | |
16 <script> | |
17 | |
18 description('Test ArrayBuffer.byteLength'); | |
19 | |
20 // The following used to cause a crash in Chrome. | |
21 | |
22 // Note that because the argument to ArrayBuffer's constructor is not | |
23 // optional, an implementation might throw an exception on the expression | |
24 // below rather than implicitly passing undefined. Either way is acceptable | |
25 // from the point of view of this test, but implementations must not crash. | |
26 try { | |
27 new ArrayBuffer().byteLength; | |
28 } catch (e) { | |
29 } | |
30 | |
31 testPassed("new ArrayBuffer().byteLength did not crash"); | |
32 successfullyParsed = true; | |
33 | |
34 </script> | |
35 <script src="../resources/js-test-post.js"></script> | |
36 | |
37 <script> | |
38 </script> | |
39 | |
40 </body> | |
41 </html> | |
OLD | NEW |