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

Side by Side Diff: test/mjsunit/third_party/regexp-pcre.js

Issue 5703001: Revert 5911 (RegExp fail on invalid range syntax).
Patch Set: Created 10 years 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 unified diff | Download patch
« no previous file with comments | « test/mjsunit/regexp.js ('k') | test/mozilla/mozilla.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
None
OLDNEW
1 // Autogenerated from the PCRE test suite Mon Feb 2 15:14:04 CET 2009 1 // Autogenerated from the PCRE test suite Mon Feb 2 15:14:04 CET 2009
2 2
3 // Note that some regexps in the PCRE test suite use features not present 3 // Note that some regexps in the PCRE test suite use features not present
4 // in JavaScript. These don't work in JS, but they fail to work in a 4 // in JavaScript. These don't work in JS, but they fail to work in a
5 // predictable way, and the expected results reflect this. 5 // predictable way, and the expected results reflect this.
6 6
7 // PCRE comes with the following license 7 // PCRE comes with the following license
8 8
9 // PCRE LICENCE 9 // PCRE LICENCE
10 // ------------ 10 // ------------
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 res[876] = /^abc$/; 955 res[876] = /^abc$/;
956 res[877] = /\Aabc\Z/m; 956 res[877] = /\Aabc\Z/m;
957 res[878] = /\A(.)*\Z/; 957 res[878] = /\A(.)*\Z/;
958 res[879] = /\A(.)*\Z/m; 958 res[879] = /\A(.)*\Z/m;
959 res[880] = /(?:b)|(?::+)/; 959 res[880] = /(?:b)|(?::+)/;
960 res[881] = /[-az]+/; 960 res[881] = /[-az]+/;
961 res[882] = /[az-]+/; 961 res[882] = /[az-]+/;
962 res[883] = /[a\-z]+/; 962 res[883] = /[a\-z]+/;
963 res[884] = /[a-z]+/; 963 res[884] = /[a-z]+/;
964 res[885] = /[\d-]+/; 964 res[885] = /[\d-]+/;
965 // res[886] - Disabled after making [\d-z] invalid to be compatible with JSC. 965 res[886] = /[\d-z]+/;
966 res[887] = /\x5c/; 966 res[887] = /\x5c/;
967 res[888] = /\x20Z/; 967 res[888] = /\x20Z/;
968 res[889] = /ab{3cd/; 968 res[889] = /ab{3cd/;
969 res[890] = /ab{3,cd/; 969 res[890] = /ab{3,cd/;
970 res[891] = /ab{3,4a}cd/; 970 res[891] = /ab{3,4a}cd/;
971 res[892] = /{4,5a}bc/; 971 res[892] = /{4,5a}bc/;
972 res[893] = /^a.b/; 972 res[893] = /^a.b/;
973 res[894] = /abc$/; 973 res[894] = /abc$/;
974 res[895] = /(abc)\123/; 974 res[895] = /(abc)\123/;
975 res[896] = /(abc)\223/; 975 res[896] = /(abc)\223/;
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 res[1260] = /([[.]+)/; 1339 res[1260] = /([[.]+)/;
1340 res[1261] = /a\Z/; 1340 res[1261] = /a\Z/;
1341 res[1262] = /b\Z/; 1341 res[1262] = /b\Z/;
1342 res[1263] = /b\z/; 1342 res[1263] = /b\z/;
1343 res[1264] = /b\Z/; 1343 res[1264] = /b\Z/;
1344 res[1265] = /b\z/; 1344 res[1265] = /b\z/;
1345 res[1266] = /((Z)+|A)*/; 1345 res[1266] = /((Z)+|A)*/;
1346 res[1267] = /(Z()|A)*/; 1346 res[1267] = /(Z()|A)*/;
1347 res[1268] = /(Z(())|A)*/; 1347 res[1268] = /(Z(())|A)*/;
1348 res[1269] = /a*/g; 1348 res[1269] = /a*/g;
1349 // res[1270] disabled after making /^[\d-a]/ invalid to be compatible with JSC. 1349 res[1270] = /^[\d-a]/;
1350 res[1271] = /[[:space:]]+/; 1350 res[1271] = /[[:space:]]+/;
1351 res[1272] = /[[:blank:]]+/; 1351 res[1272] = /[[:blank:]]+/;
1352 res[1273] = /[\s]+/; 1352 res[1273] = /[\s]+/;
1353 res[1274] = /\s+/; 1353 res[1274] = /\s+/;
1354 res[1275] = /a 1354 res[1275] = /a
1355 b/; 1355 b/;
1356 res[1276] = /(?!\A)x/m; 1356 res[1276] = /(?!\A)x/m;
1357 res[1277] = /(?!^)x/m; 1357 res[1277] = /(?!^)x/m;
1358 res[1278] = /abc\Qabc\Eabc/; 1358 res[1278] = /abc\Qabc\Eabc/;
1359 res[1279] = /abc\Qabc\Eabc/; 1359 res[1279] = /abc\Qabc\Eabc/;
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
2520 assertEquals(null, res[431].exec("a\x8585b", 872)); 2520 assertEquals(null, res[431].exec("a\x8585b", 872));
2521 assertEquals(null, res[431].exec("a\x0b\x00bb ", 873)); 2521 assertEquals(null, res[431].exec("a\x0b\x00bb ", 873));
2522 assertEquals(null, res[431].exec("** Failers ", 874)); 2522 assertEquals(null, res[431].exec("** Failers ", 874));
2523 assertEquals(null, res[431].exec("a\x0d\x0d\x0d\x0d\x0db ", 875)); 2523 assertEquals(null, res[431].exec("a\x0d\x0d\x0d\x0d\x0db ", 875));
2524 assertEquals(null, res[431].exec("a\x8585b<bsr_anycrlf>", 876)); 2524 assertEquals(null, res[431].exec("a\x8585b<bsr_anycrlf>", 876));
2525 assertEquals(null, res[431].exec("a\x0b\x00bb<bsr_anycrlf>", 877)); 2525 assertEquals(null, res[431].exec("a\x0b\x00bb<bsr_anycrlf>", 877));
2526 assertEquals(null, res[431].exec("a\nb", 878)); 2526 assertEquals(null, res[431].exec("a\nb", 878));
2527 assertEquals(null, res[431].exec("a\x0db ", 879)); 2527 assertEquals(null, res[431].exec("a\x0db ", 879));
2528 assertEquals(null, res[431].exec("a\x85b", 880)); 2528 assertEquals(null, res[431].exec("a\x85b", 880));
2529 assertEquals(null, res[431].exec("a\nb", 881)); 2529 assertEquals(null, res[431].exec("a\nb", 881));

error: old chunk mismatch

OLDNEW
« no previous file with comments | « test/mjsunit/regexp.js ('k') | test/mozilla/mozilla.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698