From 6e1f652abcb9aa67e6bce6dc76ef47cf60b10b3f Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Fri, 14 Sep 2012 22:17:15 -0700 Subject: [PATCH] Update test cases and remove references to AU region AU region does not exist, It was merged with PA Change-Id: Icb0e8ec92b85db3b771d32c8728c02fd09c29a41 --- tests/qunit/ext.uls.tests.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/qunit/ext.uls.tests.js b/tests/qunit/ext.uls.tests.js index 36d77ac8..73475fa6 100644 --- a/tests/qunit/ext.uls.tests.js +++ b/tests/qunit/ext.uls.tests.js @@ -88,7 +88,11 @@ test( "-- $.uls.data testing", function() { var allLanguagesByRegionAndScript = $.uls.data.allLanguagesByRegionAndScript(); deepEqual( allLanguagesByRegionAndScript['4']['AS']['SouthEastAsian']['Bugi'], ['bug'], 'All languages in the Buginese script in Asia were selected' ); - deepEqual( $.uls.data.languagesInRegion( "AU" ), ["en-gb", "en", "hif-latn", "hif", "mi", "na"], "languages of region AU are selected correctly" ); + deepEqual( $.uls.data.languagesInRegion( "PA" ), + ["ace", "bi", "ch", "en-gb", "en", "fj", "haw", "hif-latn", "hif", "ho", "jv", + "mh", "mi", "na", "niu", "pih", "pis", "pt", "rtm", "sm", "tet", + "to", "tpi", "ty", "wls"], + "languages of region PA are selected correctly" ); deepEqual( $.uls.data.languagesInRegions( ["AM", "WW"] ), [ "akz", "arn", "aro", "ase", "avk", "ay", "cho", "chr", "chy", "cr-cans", "cr-latn", "cr", @@ -122,7 +126,7 @@ test( "-- $.uls.data testing", function() { var allLanguagesByScriptGroup = $.uls.data.allLanguagesByScriptGroup(); deepEqual( allLanguagesByScriptGroup['Greek'], ['el', 'grc', 'pnt', 'ruq-grek', 'tsd'], 'All languages in the Greek script found' ); - deepEqual( $.uls.data.allRegions(), ["WW", "AM", "EU", "ME", "AF", "AS", "PA", "AU"], "All regions found" ); + deepEqual( $.uls.data.allRegions(), ["WW", "AM", "EU", "ME", "AF", "AS", "PA"], "All regions found" ); // autonyms: gn: avañe'ẽ, de: deutsch, hu: magyar, fi: suomi deepEqual( ['de', 'fi', 'gn', 'hu'].sort( $.uls.data.sortByAutonym ), ['gn', 'de', 'hu', 'fi'], 'Languages are correctly sorted by autonym' );