Fix test code for icu applied Common Locale Data Repository (CLDR) 48/308948/1
authorJinWang An <jinwang.an@samsung.com>
Wed, 3 Apr 2024 05:47:23 +0000 (14:47 +0900)
committerJinWang An <jinwang.an@samsung.com>
Wed, 3 Apr 2024 05:47:38 +0000 (14:47 +0900)
Change-Id: I2885653cf90cc28d47a1bcd0b4ec024da8c02812
Signed-off-by: JinWang An <jinwang.an@samsung.com>
common/tct-time-tizen-tests/time/TZDate_toLocaleString_for_specific_date.html
common/tct-time-tizen-tests/time/TZDate_toString_for_specific_date.html
common/tct-time-tizen-tests/time/TZDate_toTimeString_for_specific_date.html
ivi/tct-time-tizen-tests/time/TZDate_toLocaleString_for_specific_date.html
ivi/tct-time-tizen-tests/time/TZDate_toString_for_specific_date.html
ivi/tct-time-tizen-tests/time/TZDate_toTimeString_for_specific_date.html
ivi/tct-time-tizen-tests/time/TimeUtil_getTimeFormat.html

index cf78d2f6b8ccbe9dac5b978c3a95a28a1a72127b..aa030d61f4c78ff443ab84b01e81c3fc98b160d9 100755 (executable)
@@ -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);
 
 </script>
index e8f3a6b870c28516393b83a214a1b19d373511a1..01b150a2660bba3ce8fb8492ccb77e7874aa9386 100755 (executable)
@@ -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);
 
 </script>
 </body>
-</html>
\ No newline at end of file
+</html>
index b984764841e1f9768362b558116b9471ba921115..afd05f5d6b7c783bef4a7de98406077f385ffc43 100755 (executable)
@@ -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);
 
 </script>
index aa352220e0a3b95379ca9bde0b14745b2324aa68..1dd6e5d17c8c5fb089099ad5968dd71fc829167e 100755 (executable)
@@ -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);
 
 </script>
index 21b1f833c0771bb7647c41d8d4151d886c7cf6ac..0a7b4e9bfe2810d8e103842749aba8683f5578a6 100755 (executable)
@@ -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);
 
 </script>
index bc178a95eac5b9c1c752c94cc77ed70407548ad2..20620d5335dd73363066dee05a132ab706710185 100755 (executable)
@@ -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);
 
 </script>
index 3c91eefced3e941e1e3b665a72bf6dfefc507275..82835cb76c2f8939bef802e19df829c4c6a85a84 100755 (executable)
@@ -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:sap";
     returnedValue = tizen.time.getTimeFormat();
     assert_type(returnedValue, "string", "Time format type");
     assert_equals(returnedValue, def, "Time format");