[webkit-changes] cvs commit: LayoutTests/fast/js
regexp-extended-characters-crash-expected.txt
regexp-extended-characters-crash.html
regexp-extended-characters-match-expected.txt
regexp-extended-characters-match.html
regexp-big-unicode-ranges-expected.txt
regexp-big-unicode-ranges.html
Geoffrey
ggaren at opensource.apple.com
Sun Nov 6 12:44:36 PST 2005
ggaren 05/11/06 12:44:36
Modified: . ChangeLog
Added: fast/js regexp-extended-characters-crash-expected.txt
regexp-extended-characters-crash.html
regexp-extended-characters-match-expected.txt
regexp-extended-characters-match.html
Removed: fast/js regexp-big-unicode-ranges-expected.txt
regexp-big-unicode-ranges.html
Log:
Layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=5571
REGRESSION (412.5-TOT): duplicated words/sentences at
shakespeer.sourceforge.net
Also renamed previous test for consistency.
* fast/js/regexp-big-unicode-ranges-expected.txt: Removed.
* fast/js/regexp-big-unicode-ranges.html: Removed.
* fast/js/regexp-extended-characters-crash-expected.txt: Added.
* fast/js/regexp-extended-characters-crash.html: Added.
* fast/js/regexp-extended-characters-match-expected.txt: Added.
* fast/js/regexp-extended-characters-match.html: Added.
Revision Changes Path
1.75 +15 -0 LayoutTests/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/LayoutTests/ChangeLog,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- ChangeLog 6 Nov 2005 06:22:55 -0000 1.74
+++ ChangeLog 6 Nov 2005 20:44:35 -0000 1.75
@@ -1,3 +1,18 @@
+2005-11-06 Geoffrey Garen <ggaren at apple.com>
+
+ Layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=5571
+ REGRESSION (412.5-TOT): duplicated words/sentences at
+ shakespeer.sourceforge.net
+
+ Also renamed previous test for consistency.
+
+ * fast/js/regexp-big-unicode-ranges-expected.txt: Removed.
+ * fast/js/regexp-big-unicode-ranges.html: Removed.
+ * fast/js/regexp-extended-characters-crash-expected.txt: Added.
+ * fast/js/regexp-extended-characters-crash.html: Added.
+ * fast/js/regexp-extended-characters-match-expected.txt: Added.
+ * fast/js/regexp-extended-characters-match.html: Added.
+
2005-11-05 Geoffrey Garen <ggaren at apple.com>
Layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=5357
1.1 LayoutTests/fast/js/regexp-extended-characters-crash-expected.txt
Index: regexp-extended-characters-crash-expected.txt
===================================================================
This test checks for a regression against rdar://problem/4161606 JavaScript regular expressions with certain ranges of Unicode characters cause a crash.
If the test passes, you will see the word "PASSED" below. Otherwise, it will crash.
PASSED
1.1 LayoutTests/fast/js/regexp-extended-characters-crash.html
Index: regexp-extended-characters-crash.html
===================================================================
<html>
<head>
<script>
function print(message) {
var paragraph = document.createElement("p");
paragraph.appendChild(document.createTextNode(message));
document.getElementById("console").appendChild(paragraph);
}
function test() {
if (window.layoutTestController) {
layoutTestController.dumpAsText();
}
var pattern;
// test ranges reported in bug
pattern = new RegExp("[\u00c0-\u1f4d]");
pattern = new RegExp("[\u3041-\u3094]");
pattern = new RegExp("[\u4d00-\u4db5]");
pattern = new RegExp("[\u4e00-\u9fa5]");
// test first char < 255, last char > 255
pattern = new RegExp("[\u0001-\u1f4d]");
print("PASSED");
}
</script>
</head>
<body onload="test();">
<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>
<p>If the test passes, you will see the word "PASSED" below. Otherwise, it will crash.</p>
<hr>
<div id='console'/>
</body>
</html>
1.1 LayoutTests/fast/js/regexp-extended-characters-match-expected.txt
Index: regexp-extended-characters-match-expected.txt
===================================================================
This test checks regular expressions using extended (> 255) characters and character classes.
These regular expressions should return null:
var r = new RegExp("[Ä-Ä]"); r.exec("a"): null
var r = new RegExp("[Ä]"); r.exec("a"): null
var r = new RegExp("Ä"); r.exec("a"): null
These regular expressions should return "a"
var r = new RegExp("[a]"); r.exec("a"): a
var r = new RegExp("[Ä-Äa]"); r.exec("a"): a
var r = new RegExp("[Äa]"); r.exec("a"): a
var r = new RegExp("a"); r.exec("a"): a
var r = new RegExp("[a-Ä]"); r.exec("a"): a
These regular expressions should return "Ä":
var r = new RegExp("[Ä]"); r.exec("Ä"): Ä
var r = new RegExp("[Ä-Ä]"); r.exec("Ä"): Ä
var r = new RegExp("Ä"); r.exec("Ä"): Ä
1.1 LayoutTests/fast/js/regexp-extended-characters-match.html
Index: regexp-extended-characters-match.html
===================================================================
<html>
<body>
<h3>This test checks regular expressions using extended (> 255) characters and character classes.</h3>
<hr>
<script>
function test(s)
{
var result = eval(s);
document.write("<p>" + s + ": " + result + "</p>");
}
if (window.layoutTestController)
layoutTestController.dumpAsText();
document.write("<h3>These regular expressions should return null:</h3>");
//test('var r = new RegExp("[\u0101-\u0100]"); r.exec("a")');
test('var r = new RegExp("[\u0100-\u0101]"); r.exec("a")');
test('var r = new RegExp("[\u0100]"); r.exec("a")');
test('var r = new RegExp("\u0100"); r.exec("a")');
document.write("<h3>These regular expressions should return \"a\"</h3>");
test('var r = new RegExp("[\u0061]"); r.exec("a")');
test('var r = new RegExp("[\u0100-\u0101a]"); r.exec("a")');
test('var r = new RegExp("[\u0100a]"); r.exec("a")');
test('var r = new RegExp("\u0061"); r.exec("a")');
test('var r = new RegExp("[a-\u0100]"); r.exec("a")');
document.write("<h3>These regular expressions should return \"\u0100\":</h3>");
test('var r = new RegExp("[\u0100]"); r.exec("\u0100")');
test('var r = new RegExp("[\u0100-\u0101]"); r.exec("\u0100")');
test('var r = new RegExp("\u0100"); r.exec("\u0100")');
</script>
</body>
</html>
More information about the webkit-changes
mailing list