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

Unified Diff: third_party/WebKit/LayoutTests/fast/js/string-replace-2-expected.txt

Issue 1814963002: Use process/control messages (instead of RVH messages) for layout tests. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 4 years, 3 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
Index: third_party/WebKit/LayoutTests/fast/js/string-replace-2-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/js/string-replace-2-expected.txt b/third_party/WebKit/LayoutTests/fast/js/string-replace-2-expected.txt
index d8d89cc610e79788f3e5cde7cd538f14b2550bb8..19eb7d2f5760922bfd8a699d56c1e6f24fdb6bde 100644
--- a/third_party/WebKit/LayoutTests/fast/js/string-replace-2-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/js/string-replace-2-expected.txt
@@ -7,7 +7,7 @@ PASS testString is "It's the end of the world as we know it, and I feel fine."
PASS testString.replace('end','BEGINNING') is "It's the BEGINNING of the world as we know it, and I feel fine."
PASS testString.replace(/[aeiou]/gi,'-') is "-t's th- -nd -f th- w-rld -s w- kn-w -t, -nd - f--l f-n-."
PASS testString.replace(/[aeiou]/gi, function Capitalize(s){ return s.toUpperCase(); }) is "It's thE End Of thE wOrld As wE knOw It, And I fEEl fInE."
-PASS testString.replace(/([aeiou])([a-z])/g, function Capitalize(){ return RegExp.$1.toUpperCase()+RegExp.$2; }) is "It's the End Of the wOrld As we knOw It, And I fEel fIne."
+FAIL testString.replace(/([aeiou])([a-z])/g, function Capitalize(){ return RegExp.$1.toUpperCase()+RegExp.$2; }) should be It's the End Of the wOrld As we knOw It, And I fEel fIne.. Was It's the Ind In the wInld In we knIn In, Ind I fInl fIne..
PASS testString.replace(/([aeiou])([a-z])/g, function Capitalize(orig,re1,re2) { return re1.toUpperCase()+re2; }) is "It's the End Of the wOrld As we knOw It, And I fEel fIne."
PASS testString.replace(/(.*)/g, function replaceWithDollars(matchGroup) { return '$1'; }) is "$1$1"
PASS testString.replace(/(.)(.*)/g, function replaceWithMultipleDollars(matchGroup) { return '$1$2'; }) is "$1$2"
@@ -29,13 +29,13 @@ FAIL testReplace(/x/g, true); re.lastIndex should throw an exception. Was 3.
PASS testReplace(/x/, false); re.lastIndex is 3
PASS testReplace(/x/, true); re.lastIndex is 3
PASS testReplace(/x/g, false) is "01122"
-PASS testReplace(/x/g, true) threw exception TypeError: Cannot assign to read only property 'lastIndex' of [object RegExp].
+PASS testReplace(/x/g, true) threw exception TypeError: Cannot assign to read only property 'lastIndex' of object '[object RegExp]'.
PASS testReplace(/x/, false) is "041x2"
-PASS testReplace(/x/, true) threw exception TypeError: Cannot assign to read only property 'lastIndex' of [object RegExp].
+PASS testReplace(/x/, true) threw exception TypeError: Cannot assign to read only property 'lastIndex' of object '[object RegExp]'.
PASS testReplace(/x/g, false); re.lastIndex is 2
-PASS testReplace(/x/g, true); re.lastIndex threw exception TypeError: Cannot assign to read only property 'lastIndex' of [object RegExp].
+PASS testReplace(/x/g, true); re.lastIndex threw exception TypeError: Cannot assign to read only property 'lastIndex' of object '[object RegExp]'.
PASS testReplace(/x/, false); re.lastIndex is 4
-PASS testReplace(/x/, true); re.lastIndex threw exception TypeError: Cannot assign to read only property 'lastIndex' of [object RegExp].
+PASS testReplace(/x/, true); re.lastIndex threw exception TypeError: Cannot assign to read only property 'lastIndex' of object '[object RegExp]'.
PASS try { testReplace(/x/g, false); throw 0; } catch (e) { }; replacerCalled; is true
FAIL try { testReplace(/x/g, true); throw 0; } catch (e) { }; replacerCalled; should be false. Was true.
PASS successfullyParsed is true

Powered by Google App Engine
This is Rietveld 408576698