[GTK] ASSERTION FAILED: url == m_string in UserAgentQuirks test
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Jun 2018 10:56:49 +0000 (10:56 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Jun 2018 10:56:49 +0000 (10:56 +0000)
https://bugs.webkit.org/show_bug.cgi?id=186838

This URL constructor expects canonicalized input, so fix the passed URL.

Patch by Rob Buis <rbuis@igalia.com> on 2018-06-20
Reviewed by Frédéric Wang.

* TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
(TestWebKitAPI::TEST):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233008 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp

index f3f81ab..1dabf1f 100644 (file)
@@ -1,3 +1,15 @@
+2018-06-20  Rob Buis  <rbuis@igalia.com>
+
+        [GTK] ASSERTION FAILED: url == m_string in UserAgentQuirks test
+        https://bugs.webkit.org/show_bug.cgi?id=186838
+
+        This URL constructor expects canonicalized input, so fix the passed URL.
+
+        Reviewed by Frédéric Wang.
+
+        * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
+        (TestWebKitAPI::TEST):
+
 2018-06-20  Robin Morisset  <rmorisset@apple.com>
 
         [WSL] Make the typing rules explicitely translate type syntax into actual types
index 057905b..55732cf 100644 (file)
@@ -80,7 +80,7 @@ TEST(UserAgentTest, Quirks)
 
     assertUserAgentForURLHasChromeBrowserQuirk("http://typekit.com/");
     assertUserAgentForURLHasChromeBrowserQuirk("http://typekit.net/");
-    assertUserAgentForURLHasChromeBrowserQuirk("http://www.washingtonpost.com");
+    assertUserAgentForURLHasChromeBrowserQuirk("http://www.washingtonpost.com/");
 
     assertUserAgentForURLHasLinuxPlatformQuirk("http://www.google.com/");
     assertUserAgentForURLHasLinuxPlatformQuirk("http://www.google.es/");