Fix API test on Sierra after r235139
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Aug 2018 20:46:41 +0000 (20:46 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Aug 2018 20:46:41 +0000 (20:46 +0000)
https://bugs.webkit.org/show_bug.cgi?id=188810

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

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

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

index 007ed9f..2366d2b 100644 (file)
@@ -1,3 +1,11 @@
+2018-08-22  Alex Christensen  <achristensen@webkit.org>
+
+        Fix API test on Sierra after r235139
+        https://bugs.webkit.org/show_bug.cgi?id=188810
+
+        * TestWebKitAPI/Tests/mac/LimitTitleSize.mm:
+        (TEST):
+
 2018-08-22  David Kilzer  <ddkilzer@apple.com>
 
         Move files in WebCore project to match Xcode folder structure
index eabafd9..c57e3af 100644 (file)
@@ -94,6 +94,7 @@ TEST(WebKit, LimitTitleSize)
     [webView addObserver:observer.get() forKeyPath:@"title" options:NSKeyValueObservingOptionNew context:nil];
     
     TestWebKitAPI::Util::run(&waitUntilLongTitleReceived);
+    [webView removeObserver:observer.get() forKeyPath:@"title"];
 }
 
 #endif // WK_API_ENABLED