Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(942)

Unified Diff: test/webkit/fast/js/regexp-bol-expected.txt

Issue 20280003: Migrate more tests from blink repository. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/webkit/fast/js/regexp-bol.js ('k') | test/webkit/fast/js/regexp-bol-with-multiline.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/fast/js/regexp-bol-expected.txt
diff --git a/test/webkit/function-prototype-descriptor-expected.txt b/test/webkit/fast/js/regexp-bol-expected.txt
similarity index 60%
copy from test/webkit/function-prototype-descriptor-expected.txt
copy to test/webkit/fast/js/regexp-bol-expected.txt
index c9a1090fd651d8d859f5ce501b734b036a5eaf96..8d045ea30e642b32ba58844322ca92f3690f803c 100644
--- a/test/webkit/function-prototype-descriptor-expected.txt
+++ b/test/webkit/fast/js/regexp-bol-expected.txt
@@ -21,21 +21,32 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-Test for function.prototype's property descriptor.
+Test for beginning of line (BOL or ^) matching
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS descriptor['writable'] is true
-PASS descriptor['enumerable'] is false
-PASS descriptor['configurable'] is false
-PASS descriptor['writable'] is true
-PASS descriptor['enumerable'] is false
-PASS descriptor['configurable'] is false
-PASS Object.defineProperty(c, 'prototype', { get: function(){} }) threw exception TypeError: Cannot redefine property: prototype.
-PASS descriptor['writable'] is true
-PASS descriptor['enumerable'] is false
-PASS descriptor['configurable'] is false
+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 /(?:(Y)X)|(X)/.exec("abc") is null
+PASS /(?:(?:^|Y)X)|(X)/.exec("abc") is null
+PASS /(?:(?:^|Y)X)|(X)/.exec("abcd") is null
+PASS /(?:(?:^|Y)X)|(X)/.exec("Xabcd") is ["X",undefined]
+PASS /(?:(?:^|Y)X)|(X)/.exec("aXbcd") is ["X","X"]
+PASS /(?:(?:^|Y)X)|(X)/.exec("abXcd") is ["X","X"]
+PASS /(?:(?:^|Y)X)|(X)/.exec("abcXd") is ["X","X"]
+PASS /(?:(?:^|Y)X)|(X)/.exec("abcdX") is ["X","X"]
+PASS /(?:(?:^|Y)X)|(X)/.exec("YXabcd") is ["YX",undefined]
+PASS /(?:(?:^|Y)X)|(X)/.exec("aYXbcd") is ["YX",undefined]
+PASS /(?:(?:^|Y)X)|(X)/.exec("abYXcd") is ["YX",undefined]
+PASS /(?:(?:^|Y)X)|(X)/.exec("abcYXd") is ["YX",undefined]
+PASS /(?:(?:^|Y)X)|(X)/.exec("abcdYX") is ["YX",undefined]
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « test/webkit/fast/js/regexp-bol.js ('k') | test/webkit/fast/js/regexp-bol-with-multiline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698