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

Unified Diff: LayoutTests/fast/js/script-tests/string-capitalization.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/js/script-tests/string-capitalization.js
diff --git a/LayoutTests/fast/js/script-tests/string-capitalization.js b/LayoutTests/fast/js/script-tests/string-capitalization.js
deleted file mode 100644
index ace59deebac5cbe8bdf8a1f044a623c915b6ba45..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/js/script-tests/string-capitalization.js
+++ /dev/null
@@ -1,72 +0,0 @@
-description(
-
-"This test checks that toLowerCase and toUpperCase handle certain non-trivial cases correctly."
-
-);
-
-shouldBe('String("A𐐀").toLowerCase()', '"a𐐨"');
-shouldBe('String("a𐐨").toUpperCase()', '"A𐐀"');
-shouldBe('String("ΚΟΣΜΟΣ ΚΟΣΜΟΣ").toLowerCase()', '"κοσμος κοσμος"');
-shouldBe('String("ß").toUpperCase()', '"SS"');
-shouldBe('String("ʼn").toUpperCase()', '"ʼN"');
-shouldBe('String("ǰ").toUpperCase()', '"J̌"');
-shouldBe('String("ffi").toUpperCase()', '"FFI"');
-shouldBe('String("FFI").toLowerCase()', '"ffi"');
-shouldBe('String("IJ").toLowerCase()', '"ij"');
-
-// Test the toUpper and toLower changes made in Unicode versions 5.2 and 6.1
-// Construct the tests so that it passes if the toLowerCase()/toUpperCase()
-// either return the updated results for compliant platforms or the
-// passed in arguments if not. This should be changed when all platforms
-// support Unicode 5.2 and Unicode 6.1.
-function createExpected(/* ... */)
-{
- expected = {};
-
- for (var i = 0; i < arguments.length; i++) {
- var s = String.fromCharCode(arguments[i]);
- expected[s] = true;
- }
-
- return expected;
-}
-
-// Check Unicode additions in version 5.2. From UnicodeData.txt:
-// 0265;LATIN SMALL LETTER TURNED H;Ll;0;L;;;;;N;;;A78D;;A78D
-// A78D;LATIN CAPITAL LETTER TURNED H;Lu;0;L;;;;;N;;;;0265;
-
-var expected = createExpected(0xA78D, 0x0265);
-shouldBeTrue('expected[String.fromCharCode(0xA78D).toLowerCase()]');
-shouldBeTrue('expected[String.fromCharCode(0x0265).toUpperCase()]');
-
-// Check Unicode additions in version 6.1 From UnicodeData.txt:
-// 0266;LATIN SMALL LETTER H WITH HOOK;Ll;0;L;;;;;N;LATIN SMALL LETTER H HOOK;;A7AA;;A7AA
-// 10C7;GEORGIAN CAPITAL LETTER YN;Lu;0;L;;;;;N;;;;2D27;
-// 10CD;GEORGIAN CAPITAL LETTER AEN;Lu;0;L;;;;;N;;;;2D2D;
-// 2CF2;COPTIC CAPITAL LETTER BOHAIRIC KHEI;Lu;0;L;;;;;N;;;;2CF3;
-// 2CF3;COPTIC SMALL LETTER BOHAIRIC KHEI;Ll;0;L;;;;;N;;;2CF2;;2CF2
-// 2D27;GEORGIAN SMALL LETTER YN;Ll;0;L;;;;;N;;;10C7;;10C7
-// 2D2D;GEORGIAN SMALL LETTER AEN;Ll;0;L;;;;;N;;;10CD;;10CD
-// A792;LATIN CAPITAL LETTER C WITH BAR;Lu;0;L;;;;;N;;;;A793;
-// A793;LATIN SMALL LETTER C WITH BAR;Ll;0;L;;;;;N;;;A792;;A792
-// A7AA;LATIN CAPITAL LETTER H WITH HOOK;Lu;0;L;;;;;N;;;;0266;
-
-var expected = createExpected(0x10C7, 0x2D27);
-shouldBeTrue('expected[String.fromCharCode(0x10C7).toLowerCase()]');
-shouldBeTrue('expected[String.fromCharCode(0x2D27).toUpperCase()]');
-
-var expected = createExpected(0x10CD, 0x2D2D);
-shouldBeTrue('expected[String.fromCharCode(0x2D2D).toLowerCase()]');
-shouldBeTrue('expected[String.fromCharCode(0x10CD).toUpperCase()]');
-
-var expected = createExpected(0x2CF2, 0x2CF3);
-shouldBeTrue('expected[String.fromCharCode(0x2CF2).toLowerCase()]');
-shouldBeTrue('expected[String.fromCharCode(0x2CF3).toUpperCase()]');
-
-var expected = createExpected(0xA792, 0xA793);
-shouldBeTrue('expected[String.fromCharCode(0xA792).toLowerCase()]');
-shouldBeTrue('expected[String.fromCharCode(0xA793).toUpperCase()]');
-
-var expected = createExpected(0xA7AA, 0x0266);
-shouldBeTrue('expected[String.fromCharCode(0xA7AA).toLowerCase()]');
-shouldBeTrue('expected[String.fromCharCode(0x0266).toUpperCase()]');

Powered by Google App Engine
This is Rietveld 408576698