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