[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

msaboff at apple.com msaboff at apple.com
Wed Dec 22 13:38:24 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit b5a1b1a280ed2d6d240e702b90be6539a1badcc1
Author: msaboff at apple.com <msaboff at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Sep 22 07:40:40 2010 +0000

    2010-09-22  Michael Saboff  <msaboff at apple.com>
    
            Reviewed by Darin Adler.
    
            New test for ^ (BOL) anchored regular expressions.  Some of the
            tests inspired by https://bugs.webkit.org/show_bug.cgi?id=46049.
    
            * fast/js/regexp-bol-expected.txt: Added.
            * fast/js/regexp-bol.html: Added.
            * fast/js/script-tests/regexp-bol.js: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68021 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index d82fce6..a1d0234 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,14 @@
+2010-09-22  Michael Saboff  <msaboff at apple.com>
+
+        Reviewed by Darin Adler.
+
+        New test for ^ (BOL) anchored regular expressions.  Some of the 
+        tests inspired by https://bugs.webkit.org/show_bug.cgi?id=46049.
+
+        * fast/js/regexp-bol-expected.txt: Added.
+        * fast/js/regexp-bol.html: Added.
+        * fast/js/script-tests/regexp-bol.js: Added.
+
 2010-09-21  Kent Tamura  <tkent at chromium.org>
 
         Unreviewed, text expectation update.
diff --git a/LayoutTests/fast/js/regexp-bol-expected.txt b/LayoutTests/fast/js/regexp-bol-expected.txt
new file mode 100644
index 0000000..33fa68e
--- /dev/null
+++ b/LayoutTests/fast/js/regexp-bol-expected.txt
@@ -0,0 +1,17 @@
+Test for beginning of line (BOL or ^) matching
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS s.match(/^notHere/) is null
+PASS s.match(/^abc/) is ["abc"]
+PASS s.match(/(^|X)abc/) is ["abc",""]
+PASS s.match(/^longer|123/) is ["123"]
+PASS s.match(/(^abc|c)123/) is ["abc123","abc"]
+PASS s.match(/(c|^abc)123/) is ["abc123","abc"]
+PASS s.match(/(^ab|abc)123/) is ["abc123","abc"]
+PASS s.match(/(bc|^abc)([0-9]*)a/) is ["bc789a","bc","789"]
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/fast/js/regexp-bol.html b/LayoutTests/fast/js/regexp-bol.html
new file mode 100644
index 0000000..87d87c5
--- /dev/null
+++ b/LayoutTests/fast/js/regexp-bol.html
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="resources/js-test-style.css">
+<script src="resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script src="script-tests/regexp-bol.js"></script>
+<script src="resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/fast/js/script-tests/regexp-bol.js b/LayoutTests/fast/js/script-tests/regexp-bol.js
new file mode 100644
index 0000000..29762b7
--- /dev/null
+++ b/LayoutTests/fast/js/script-tests/regexp-bol.js
@@ -0,0 +1,15 @@
+description(
+'Test for beginning of line (BOL or ^) matching</a>'
+);
+
+var s = "abc123def456xyzabc789abc999";
+shouldBeNull('s.match(/^notHere/)');
+shouldBe('s.match(/^abc/)', '["abc"]');
+shouldBe('s.match(/(^|X)abc/)', '["abc",""]');
+shouldBe('s.match(/^longer|123/)', '["123"]');
+shouldBe('s.match(/(^abc|c)123/)', '["abc123","abc"]');
+shouldBe('s.match(/(c|^abc)123/)', '["abc123","abc"]');
+shouldBe('s.match(/(^ab|abc)123/)', '["abc123","abc"]');
+shouldBe('s.match(/(bc|^abc)([0-9]*)a/)', '["bc789a","bc","789"]');
+
+var successfullyParsed = true;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list