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

Side by Side Diff: LayoutTests/fast/regex/script-tests/unicodeCaseInsensitive.js

Issue 20867002: Remove old tests that have been migrated to the v8 repo. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove unused script-tests as well 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/regex/script-tests/toString.js ('k') | LayoutTests/fast/regex/toString.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 description("https://bugs.webkit.org/show_bug.cgi?id=82063");
2
3 shouldBeTrue('/ΣΤΙΓΜΑΣ/i.test("στιγμας")');
4 shouldBeTrue('/ΔΣΔ/i.test("δςδ")');
5 shouldBeTrue('/ς/i.test("σ")');
6 shouldBeTrue('/σ/i.test("ς")');
7
8 // Simple case, has no canonical equivalents
9 shouldBeTrue('/\u1f16/i.test("\u1f16")')
10
11 // Test the sets of USC2 code points that have more than one canonically equival ent value.
12 function ucs2CodePoint(x)
13 {
14 var s = x.toString(16);
15 while (s.length < 4)
16 s = 0 + s;
17 return eval('"\\u' + s + '"');
18 }
19 function testSet(set)
20 {
21 for (i in set) {
22 for (j in set) {
23 shouldBeTrue('/' + ucs2CodePoint(set[i]) + '/i.test("' + ucs2CodePoi nt(set[j]) + '")')
24 shouldBeTrue('/[' + ucs2CodePoint(set[i] - 1) + '-' + ucs2CodePoint( set[i] + 1) + ']/i.test("' + ucs2CodePoint(set[j]) + '")')
25 }
26 }
27 }
28 testSet([ 0x01c4, 0x01c5, 0x01c6 ]);
29 testSet([ 0x01c7, 0x01c8, 0x01c9 ]);
30 testSet([ 0x01ca, 0x01cb, 0x01cc ]);
31 testSet([ 0x01f1, 0x01f2, 0x01f3 ]);
32 testSet([ 0x0392, 0x03b2, 0x03d0 ]);
33 testSet([ 0x0395, 0x03b5, 0x03f5 ]);
34 testSet([ 0x0398, 0x03b8, 0x03d1 ]);
35 testSet([ 0x0345, 0x0399, 0x03b9, 0x1fbe ]);
36 testSet([ 0x039a, 0x03ba, 0x03f0 ]);
37 testSet([ 0x00b5, 0x039c, 0x03bc ]);
38 testSet([ 0x03a0, 0x03c0, 0x03d6 ]);
39 testSet([ 0x03a1, 0x03c1, 0x03f1 ]);
40 testSet([ 0x03a3, 0x03c2, 0x03c3 ]);
41 testSet([ 0x03a6, 0x03c6, 0x03d5 ]);
42 testSet([ 0x1e60, 0x1e61, 0x1e9b ]);
43
44 // Test a couple of lo/hi pairs
45 shouldBeTrue('/\u03cf/i.test("\u03cf")')
46 shouldBeTrue('/\u03d7/i.test("\u03cf")')
47 shouldBeTrue('/\u03cf/i.test("\u03d7")')
48 shouldBeTrue('/\u03d7/i.test("\u03d7")')
49 shouldBeTrue('/\u1f11/i.test("\u1f11")')
50 shouldBeTrue('/\u1f19/i.test("\u1f11")')
51 shouldBeTrue('/\u1f11/i.test("\u1f19")')
52 shouldBeTrue('/\u1f19/i.test("\u1f19")')
53
54 // Test an aligned alternating capitalization pair.
55 shouldBeFalse('/\u0489/i.test("\u048a")')
56 shouldBeTrue('/\u048a/i.test("\u048a")')
57 shouldBeTrue('/\u048b/i.test("\u048a")')
58 shouldBeFalse('/\u048c/i.test("\u048a")')
59 shouldBeFalse('/\u0489/i.test("\u048b")')
60 shouldBeTrue('/\u048a/i.test("\u048b")')
61 shouldBeTrue('/\u048b/i.test("\u048b")')
62 shouldBeFalse('/\u048c/i.test("\u048b")')
63 shouldBeTrue('/[\u0489-\u048a]/i.test("\u048b")')
64 shouldBeTrue('/[\u048b-\u048c]/i.test("\u048a")')
65
66 // Test an unaligned alternating capitalization pair.
67 shouldBeFalse('/\u04c4/i.test("\u04c5")')
68 shouldBeTrue('/\u04c5/i.test("\u04c5")')
69 shouldBeTrue('/\u04c6/i.test("\u04c5")')
70 shouldBeFalse('/\u04c7/i.test("\u04c5")')
71 shouldBeFalse('/\u04c4/i.test("\u04c6")')
72 shouldBeTrue('/\u04c5/i.test("\u04c6")')
73 shouldBeTrue('/\u04c6/i.test("\u04c6")')
74 shouldBeFalse('/\u04c7/i.test("\u04c6")')
75 shouldBeTrue('/[\u04c4-\u04c5]/i.test("\u04c6")')
76 shouldBeTrue('/[\u04c6-\u04c7]/i.test("\u04c5")')
77
78 var successfullyParsed = true;
OLDNEW
« no previous file with comments | « LayoutTests/fast/regex/script-tests/toString.js ('k') | LayoutTests/fast/regex/toString.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698