Followup to [Cocoa] Remove all uses of NSAutoreleasePool as part of preparation for ARC
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 11 Jun 2018 19:55:42 +0000 (19:55 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 11 Jun 2018 19:55:42 +0000 (19:55 +0000)
https://bugs.webkit.org/show_bug.cgi?id=186436

Patch by Darin Adler
Reviewed by Brady Eidson.

* TestWebKitAPI/Tests/mac/StopLoadingFromDidFinishLoading.mm:
(TestWebKitAPI::TEST):

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

Tools/ChangeLog
Tools/TestWebKitAPI/Tests/mac/StopLoadingFromDidFinishLoading.mm

index 7155c13..b75bdad 100644 (file)
@@ -1,3 +1,14 @@
+2018-06-11  Brady Eidson  <beidson@apple.com>
+
+        Followup to [Cocoa] Remove all uses of NSAutoreleasePool as part of preparation for ARC
+        https://bugs.webkit.org/show_bug.cgi?id=186436
+
+        Patch by Darin Adler
+        Reviewed by Brady Eidson.
+
+        * TestWebKitAPI/Tests/mac/StopLoadingFromDidFinishLoading.mm:
+        (TestWebKitAPI::TEST):
+
 2018-06-11  Mark Lam  <mark.lam@apple.com>
 
         Gardening: skip BigInt tests on iOS until the feature is stable.
index c0e23ca..9a817ca 100644 (file)
@@ -49,7 +49,8 @@ TEST(WebKitLegacy, StopLoadingFromDidFinishLoading)
 {
     @autoreleasepool {
         auto webView = adoptNS([[WebView alloc] init]);
-        webView.get().resourceLoadDelegate = adoptNS([[StopLoadingFromDidFinishLoadingDelegate alloc] init]).get();
+        auto resourceLoadDelegate = adoptNS([[StopLoadingFromDidFinishLoadingDelegate alloc] init]);
+        webView.get().resourceLoadDelegate = resourceLoadDelegate.get();
         [webView.get().mainFrame loadHTMLString:@"Hello, World!" baseURL:[NSURL URLWithString:@""]];
         Util::run(&finished);
     }