Fix ProcessSwap.PageOverlayLayerPersistence on macOS
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Feb 2019 22:55:05 +0000 (22:55 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Feb 2019 22:55:05 +0000 (22:55 +0000)
* TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
I am a backwards.

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

Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm

index b98534a..191f57d 100644 (file)
@@ -3,6 +3,13 @@
         Fix ProcessSwap.PageOverlayLayerPersistence on macOS
 
         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
+        I am a backwards.
+
+2019-02-21  Tim Horton  <timothy_horton@apple.com>
+
+        Fix ProcessSwap.PageOverlayLayerPersistence on macOS
+
+        * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
         We can't find the UI-side layer on macOS because we don't use UI-side compositing.
         We could force on UI-side compositing, but I feel like the test might be more
         valuable exercising the normal path on each platform (though the original
index d772552..d41c339 100644 (file)
@@ -5183,7 +5183,7 @@ TEST(ProcessSwap, PageOverlayLayerPersistence)
 
     // We can only look for the overlay layer in the UI-side layer tree on platforms
     // that use UI-side compositing.
-#if PLATFORM(MAC)
+#if !PLATFORM(MAC)
     EXPECT_TRUE(hasOverlay([webView layer]));
 #endif
 
@@ -5199,7 +5199,7 @@ TEST(ProcessSwap, PageOverlayLayerPersistence)
 
     [webView waitForNextPresentationUpdate];
 
-#if PLATFORM(MAC)
+#if !PLATFORM(MAC)
     EXPECT_TRUE(hasOverlay([webView layer]));
 #endif
 }