Deleted: trunk/LayoutTests/fast/js/i18n-bindings-locale-expected.txt (148976 => 148977)
--- trunk/LayoutTests/fast/js/i18n-bindings-locale-expected.txt 2013-04-23 18:57:34 UTC (rev 148976)
+++ trunk/LayoutTests/fast/js/i18n-bindings-locale-expected.txt 2013-04-23 19:09:38 UTC (rev 148977)
@@ -1,71 +0,0 @@
-This test checks properties and methods of Locale object.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS en-US is en-US
-PASS en is en
-PASS undefined is undefined
-PASS US is US
-PASS sr is sr
-PASS sr is sr
-PASS undefined is undefined
-PASS undefined is undefined
-PASS zh-Hans is zh-Hans
-PASS zh is zh
-PASS Hans is Hans
-PASS undefined is undefined
-PASS zh-Hans-CN is zh-Hans-CN
-PASS zh is zh
-PASS Hans is Hans
-PASS CN is CN
-PASS de-DE@collation=phone is de-DE@collation=phone
-PASS de is de
-PASS undefined is undefined
-PASS DE is DE
-PASS de-DE-u-co-phonebook is de-DE-u-co-phonebook
-PASS de is de
-PASS undefined is undefined
-PASS DE is DE
-PASS true is true
-PASS true is true
-PASS sr-Cyrl-RS is sr-Cyrl-RS
-PASS sr is sr
-PASS Cyrl is Cyrl
-PASS RS is RS
-PASS de-Latn-DE@collation=phone is de-Latn-DE@collation=phone
-PASS de is de
-PASS Latn is Latn
-PASS DE is DE
-PASS sr is sr
-PASS sr is sr
-PASS undefined is undefined
-PASS undefined is undefined
-PASS de-@collation=phone is de-@collation=phone
-PASS de is de
-PASS undefined is undefined
-PASS undefined is undefined
-PASS English is English
-PASS undefined is undefined
-PASS undefined is undefined
-PASS English is English
-PASS English is English
-PASS Latin is Latin
-PASS United States is United States
-PASS English (Latin, United States) is English (Latin, United States)
-PASS Serbian is Serbian
-PASS Cyrillic is Cyrillic
-PASS Serbia is Serbia
-PASS Serbian (Cyrillic, Serbia) is Serbian (Cyrillic, Serbia)
-PASS Српски is Српски
-PASS Ћирилица is Ћирилица
-PASS Србија is Србија
-PASS Српски (Ћирилица, Србија) is Српски (Ћирилица, Србија)
-PASS עברית is עברית
-PASS עברי is עברי
-PASS ישראל is ישראל
-PASS עברית (עברי, ישראל) is עברית (עברי, ישראל)
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
Deleted: trunk/LayoutTests/fast/js/script-tests/i18n-bindings-locale.js (148976 => 148977)
--- trunk/LayoutTests/fast/js/script-tests/i18n-bindings-locale.js 2013-04-23 18:57:34 UTC (rev 148976)
+++ trunk/LayoutTests/fast/js/script-tests/i18n-bindings-locale.js 2013-04-23 19:09:38 UTC (rev 148977)
@@ -1,149 +0,0 @@
-description(
-
-"This test checks properties and methods of Locale object."
-
-);
-
-function reportResult(_actual, _expected) {
- if (isResultCorrect(_actual, _expected))
- testPassed(_actual + ' is ' + _expected);
- else
- testFailed(_actual + ' should be ' + _expected);
-}
-
-localeTests = function() {
- this.defaultLocale = function() {
- var locale = new v8Locale();
- reportResult(locale.locale, 'en-US');
- reportResult(locale.language, 'en');
- reportResult(locale.script, undefined);
- reportResult(locale.region, 'US');
- };
-
- this.baseLocale = function() {
- var locale = new v8Locale('sr');
- reportResult(locale.locale, 'sr');
- reportResult(locale.language, 'sr');
- reportResult(locale.script, undefined);
- reportResult(locale.region, undefined);
- };
-
- this.languageScriptLocale = function() {
- var locale = new v8Locale('zh-Hans');
- reportResult(locale.locale, 'zh-Hans');
- reportResult(locale.language, 'zh');
- reportResult(locale.script, 'Hans');
- reportResult(locale.region, undefined);
- };
-
- this.languageScriptRegionLocale = function() {
- var locale = new v8Locale('zh-Hans-CN');
- reportResult(locale.locale, 'zh-Hans-CN');
- reportResult(locale.language, 'zh');
- reportResult(locale.script, 'Hans');
- reportResult(locale.region, 'CN');
- };
-
- this.languageScriptRegionExtensionLocale = function() {
- var locale = new v8Locale('de-DE@collation=phone');
- reportResult(locale.locale, 'de-DE@collation=phone');
- reportResult(locale.language, 'de');
- reportResult(locale.script, undefined);
- reportResult(locale.region, 'DE');
- };
-
- this.languageScriptRegionDashUExtensionLocale = function() {
- var locale = new v8Locale('de-DE-u-co-phonebook');
- reportResult(locale.locale, 'de-DE-u-co-phonebook');
- reportResult(locale.language, 'de');
- reportResult(locale.script, undefined);
- reportResult(locale.region, 'DE');
- };
-
- this.availableLocales = function() {
- var locales = v8Locale.availableLocales();
- reportResult(locales.length > 100, true);
- reportResult(locales.join().indexOf('sr') >= 0, true);
- };
-
- this.maximizedLocale = function() {
- var locale = new v8Locale('sr').maximizedLocale();
- reportResult(locale.locale, 'sr-Cyrl-RS');
- reportResult(locale.language, 'sr');
- reportResult(locale.script, 'Cyrl');
- reportResult(locale.region, 'RS');
- };
-
- this.maximizedLocaleWithExtension = function() {
- var locale = new v8Locale('de@collation=phone').maximizedLocale();
- reportResult(locale.locale, 'de-Latn-DE@collation=phone');
- reportResult(locale.language, 'de');
- reportResult(locale.script, 'Latn');
- reportResult(locale.region, 'DE');
- };
-
- this.minimizedLocale = function() {
- var locale = new v8Locale('sr-Cyrl-RS').minimizedLocale();
- reportResult(locale.locale, 'sr');
- reportResult(locale.language, 'sr');
- reportResult(locale.script, undefined);
- reportResult(locale.region, undefined);
- };
-
- this.minimizedLocaleWithExtension = function() {
- var locale = new v8Locale('de-Latn-DE@collation=phone').minimizedLocale();
- // FIXME: Fix ICU to return de@collation=phone.
- reportResult(locale.locale, 'de-@collation=phone');
- reportResult(locale.language, 'de');
- reportResult(locale.script, undefined);
- reportResult(locale.region, undefined);
- };
-
- this.displayForBaseLocale = function() {
- var locale = new v8Locale('en');
- reportResult(locale.displayLanguage(), 'English');
- reportResult(locale.displayScript(), undefined);
- reportResult(locale.displayRegion(), undefined);
- reportResult(locale.displayName(), 'English');
- };
-
- this.displayInSameLocale = function() {
- var locale = new v8Locale('en').maximizedLocale();
- reportResult(locale.displayLanguage(), 'English');
- reportResult(locale.displayScript(), 'Latin');
- reportResult(locale.displayRegion(), 'United States');
- reportResult(locale.displayName(), 'English (Latin, United States)');
- };
-
- this.displayInDifferentLocale = function() {
- var locale = new v8Locale('sr').maximizedLocale();
- var displayLocale = new v8Locale('en');
- reportResult(locale.displayLanguage(displayLocale), 'Serbian');
- reportResult(locale.displayScript(displayLocale), 'Cyrillic');
- reportResult(locale.displayRegion(displayLocale), 'Serbia');
- reportResult(locale.displayName(displayLocale), 'Serbian (Cyrillic, Serbia)');
- };
-
- this.displayInCyrillicScript = function() {
- var locale = new v8Locale('sr').maximizedLocale();
- reportResult(locale.displayLanguage(), 'Српски');
- reportResult(locale.displayScript(), 'Ћирилица');
- reportResult(locale.displayRegion(), 'Србија');
- reportResult(locale.displayName(), 'Српски (Ћирилица, Србија)');
- };
-
- this.displayInHebrewScript = function() {
- var locale = new v8Locale('he').maximizedLocale();
- reportResult(locale.displayLanguage(), 'עברית');
- reportResult(locale.displayScript(), 'עברי');
- reportResult(locale.displayRegion(), 'ישראל');
- reportResult(locale.displayName(), 'עברית (עברי, ישראל)');
- };
-};
-
-(function() {
- var allTests = new localeTests();
- for (var test in allTests) {
- allTests[test]();
- }
-})();