Title: [287340] trunk/Tools
Revision
287340
Author
wenson_hs...@apple.com
Date
2021-12-21 19:25:57 -0800 (Tue, 21 Dec 2021)

Log Message

REGRESSION (12/21/2021): [iOS] TestWebKitAPI.WebKit.AddAndRemoveDataDetectors is consistently failing
https://bugs.webkit.org/show_bug.cgi?id=234574
rdar://86782559

Reviewed by Tim Horton.

This test began failing today due to DataDetectors no longer recognizing "December 21, 2021" as a valid date in
the future. Avoid this problem (at least, until the next century) by adjusting this date to be much later.

* TestWebKitAPI/Tests/WebKitCocoa/DataDetection.mm:
(TEST):
* TestWebKitAPI/Tests/WebKitCocoa/data-detectors.html:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (287339 => 287340)


--- trunk/Tools/ChangeLog	2021-12-22 02:31:40 UTC (rev 287339)
+++ trunk/Tools/ChangeLog	2021-12-22 03:25:57 UTC (rev 287340)
@@ -1,3 +1,18 @@
+2021-12-21  Wenson Hsieh  <wenson_hs...@apple.com>
+
+        REGRESSION (12/21/2021): [iOS] TestWebKitAPI.WebKit.AddAndRemoveDataDetectors is consistently failing
+        https://bugs.webkit.org/show_bug.cgi?id=234574
+        rdar://86782559
+
+        Reviewed by Tim Horton.
+
+        This test began failing today due to DataDetectors no longer recognizing "December 21, 2021" as a valid date in
+        the future. Avoid this problem (at least, until the next century) by adjusting this date to be much later.
+
+        * TestWebKitAPI/Tests/WebKitCocoa/DataDetection.mm:
+        (TEST):
+        * TestWebKitAPI/Tests/WebKitCocoa/data-detectors.html:
+
 2021-12-21  Brady Eidson  <beid...@apple.com>
 
         Make Notification identifiers be a UUID string instead of a uint64_t

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/DataDetection.mm (287339 => 287340)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/DataDetection.mm	2021-12-22 02:31:40 UTC (rev 287339)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/DataDetection.mm	2021-12-22 03:25:57 UTC (rev 287340)
@@ -142,7 +142,7 @@
         EXPECT_TRUE([results[0].value containsString:@"2 Apple Park Way, Cupertino 95014"]);
         EXPECT_WK_STREQ("SignatureBlock", results[0].type);
         EXPECT_WK_STREQ("Date", results[1].type);
-        EXPECT_WK_STREQ("December 21, 2021", results[1].value);
+        EXPECT_WK_STREQ("December 21, 2099", results[1].value);
         EXPECT_WK_STREQ("FlightInformation", results[2].type);
         EXPECT_WK_STREQ("AC780", results[2].value);
 

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/data-detectors.html (287339 => 287340)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/data-detectors.html	2021-12-22 02:31:40 UTC (rev 287339)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/data-detectors.html	2021-12-22 03:25:57 UTC (rev 287340)
@@ -18,7 +18,7 @@
 </tr>
 <tr>
     <td>Calendar event</td>
-    <td>December 21, 2021</td>
+    <td>December 21, 2099</td>
 </tr>
 <tr>
     <td>Flight number</td>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to