From: JinWang An Date: Wed, 3 Apr 2024 05:47:23 +0000 (+0900) Subject: Fix test code for icu applied Common Locale Data Repository (CLDR) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23faf5120b44595368c026ca1b16c0280a90e82b;p=test%2Ftct%2Fweb%2Fapi.git Fix test code for icu applied Common Locale Data Repository (CLDR) Change-Id: I2885653cf90cc28d47a1bcd0b4ec024da8c02812 Signed-off-by: JinWang An --- diff --git a/common/tct-time-tizen-tests/time/TZDate_toLocaleString_for_specific_date.html b/common/tct-time-tizen-tests/time/TZDate_toLocaleString_for_specific_date.html index cf78d2f6b..aa030d61f 100755 --- a/common/tct-time-tizen-tests/time/TZDate_toLocaleString_for_specific_date.html +++ b/common/tct-time-tizen-tests/time/TZDate_toLocaleString_for_specific_date.html @@ -40,7 +40,7 @@ Authors: //==== PRIORITY P1 //==== TEST_CRITERIA MNA MR test(function () { - assert_equals(date.toLocaleString(), "Friday, November 11, 2011, 4:55:54 AM", this.name); + assert_equals(date.toLocaleString(), /Friday, November 11, 2011 at 4:55:54 AM/, this.name); }, document.title); diff --git a/common/tct-time-tizen-tests/time/TZDate_toString_for_specific_date.html b/common/tct-time-tizen-tests/time/TZDate_toString_for_specific_date.html index e8f3a6b87..01b150a26 100755 --- a/common/tct-time-tizen-tests/time/TZDate_toString_for_specific_date.html +++ b/common/tct-time-tizen-tests/time/TZDate_toString_for_specific_date.html @@ -36,9 +36,9 @@ Authors: //==== TEST_CRITERIA MNA MR test(function () { - assert_regexp_match(date.toString(), /Friday, November 11, 2011,? 0?4:55:54( AM)? GMT\+0900 South Korea Time/, this.name); + assert_regexp_match(date.toString(), /Friday, November 11, 2011 at 4:55:54 AM GMT+0900 South Korea Time/, this.name); }, document.title); - \ No newline at end of file + diff --git a/common/tct-time-tizen-tests/time/TZDate_toTimeString_for_specific_date.html b/common/tct-time-tizen-tests/time/TZDate_toTimeString_for_specific_date.html index b98476484..afd05f5d6 100755 --- a/common/tct-time-tizen-tests/time/TZDate_toTimeString_for_specific_date.html +++ b/common/tct-time-tizen-tests/time/TZDate_toTimeString_for_specific_date.html @@ -39,7 +39,7 @@ Authors: //==== PRIORITY P1 //==== TEST_CRITERIA MNA MR test(function () { - assert_regexp_match(date.toTimeString(), /0?4:55:54( AM)? GMT\+0900 South Korea Time/, this.name); + assert_regexp_match(date.toTimeString(), /4:55:54 AM GMT+0900 South Korea Time/, this.name); }, document.title); diff --git a/ivi/tct-time-tizen-tests/time/TZDate_toLocaleString_for_specific_date.html b/ivi/tct-time-tizen-tests/time/TZDate_toLocaleString_for_specific_date.html index aa352220e..1dd6e5d17 100755 --- a/ivi/tct-time-tizen-tests/time/TZDate_toLocaleString_for_specific_date.html +++ b/ivi/tct-time-tizen-tests/time/TZDate_toLocaleString_for_specific_date.html @@ -38,7 +38,7 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html //==== TEST_CRITERIA MNA MR test(function () { - assert_regexp_match(date.toLocaleString(), /Friday, 11 November 2011 4:55:54/, this.name); + assert_regexp_match(date.toLocaleString(), /Friday, November 11, 2011 at 4:55:54 AM/, this.name); }, document.title); diff --git a/ivi/tct-time-tizen-tests/time/TZDate_toString_for_specific_date.html b/ivi/tct-time-tizen-tests/time/TZDate_toString_for_specific_date.html index 21b1f833c..0a7b4e9bf 100755 --- a/ivi/tct-time-tizen-tests/time/TZDate_toString_for_specific_date.html +++ b/ivi/tct-time-tizen-tests/time/TZDate_toString_for_specific_date.html @@ -38,7 +38,7 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html //==== TEST_CRITERIA MNA MR test(function () { - assert_regexp_match(date.toString(), /Friday, November 11, 2011 0?4:55:54( AM)? GMT\+0900 South Korea Time/, this.name); + assert_regexp_match(date.toString(), /Friday, November 11, 2011 at 4:55:54 AM GMT+0900 South Korea Time/, this.name); }, document.title); diff --git a/ivi/tct-time-tizen-tests/time/TZDate_toTimeString_for_specific_date.html b/ivi/tct-time-tizen-tests/time/TZDate_toTimeString_for_specific_date.html index bc178a95e..20620d533 100755 --- a/ivi/tct-time-tizen-tests/time/TZDate_toTimeString_for_specific_date.html +++ b/ivi/tct-time-tizen-tests/time/TZDate_toTimeString_for_specific_date.html @@ -38,7 +38,7 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html //==== TEST_CRITERIA MNA MR test(function () { - assert_regexp_match(date.toTimeString(), /0?4:55:54( AM)? GMT\+0900 South Korea Time/, this.name); + assert_regexp_match(date.toTimeString(), /4:55:54 AM GMT+0900 South Korea Time/, this.name); }, document.title); diff --git a/ivi/tct-time-tizen-tests/time/TimeUtil_getTimeFormat.html b/ivi/tct-time-tizen-tests/time/TimeUtil_getTimeFormat.html index 3c91eefce..82835cb76 100755 --- a/ivi/tct-time-tizen-tests/time/TimeUtil_getTimeFormat.html +++ b/ivi/tct-time-tizen-tests/time/TimeUtil_getTimeFormat.html @@ -35,7 +35,7 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html //==== TEST_CRITERIA MNA MR test(function () { - var returnedValue, def = "h:m:s ap"; + var returnedValue, def = "h:m:s ap"; returnedValue = tizen.time.getTimeFormat(); assert_type(returnedValue, "string", "Time format type"); assert_equals(returnedValue, def, "Time format");