Last change
on this file since 10059 was
10059,
checked in by ggaren, 19 years ago
|
* empty log message *
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
992 bytes
|
Line | |
---|
1 | <html> |
---|
2 | <head> |
---|
3 | <script> |
---|
4 | function print(message) { |
---|
5 | var paragraph = document.createElement("p"); |
---|
6 | paragraph.appendChild(document.createTextNode(message)); |
---|
7 | document.getElementById("console").appendChild(paragraph); |
---|
8 | } |
---|
9 | |
---|
10 | function test() { |
---|
11 | if (window.layoutTestController) { |
---|
12 | layoutTestController.dumpAsText(); |
---|
13 | } |
---|
14 | |
---|
15 | var pattern; |
---|
16 | |
---|
17 | // test ranges reported in bug |
---|
18 | pattern = new RegExp("[\u00c0-\u1f4d]"); |
---|
19 | pattern = new RegExp("[\u3041-\u3094]"); |
---|
20 | pattern = new RegExp("[\u4d00-\u4db5]"); |
---|
21 | pattern = new RegExp("[\u4e00-\u9fa5]"); |
---|
22 | |
---|
23 | // test first char < 255, last char > 255 |
---|
24 | pattern = new RegExp("[\u0001-\u1f4d]"); |
---|
25 | |
---|
26 | print("PASSED"); |
---|
27 | } |
---|
28 | </script> |
---|
29 | </head> |
---|
30 | <body onload="test();"> |
---|
31 | <p>This test checks for a regression against <i>rdar://problem/4161606 JavaScript regular expressions with certain ranges of Unicode characters cause a crash</i>.</p> |
---|
32 | <p>If the test passes, you will see the word "PASSED" below. Otherwise, it will crash.</p> |
---|
33 | <hr> |
---|
34 | <div id='console'/> |
---|
35 | </body> |
---|
36 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.