Changeset 278334 in webkit
- Timestamp:
- Jun 1, 2021, 5:27:45 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
TestWebKitAPI/Tests/WebKit/AccessibilityReduceMotion.mm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r278332 r278334 1 2021-06-01 Chris Fleizach <cfleizach@apple.com> 2 3 REGRESSION: (r277971) TestWebKitAPI.WebKit.AccessibilityReduceMotion is timing out 4 https://bugs.webkit.org/show_bug.cgi?id=226505 5 <rdar://problem/78721462> 6 7 Reviewed by Darin Adler. 8 9 The distributed notification for RM is no longer re-posted within WebKit, so we don't need to listen for it. 10 11 * TestWebKitAPI/Tests/WebKit/AccessibilityReduceMotion.mm: 12 (TEST): 13 (notificationCallback): Deleted. 14 1 15 2021-06-01 Jonathan Bedard <jbedard@apple.com> 2 16 -
trunk/Tools/TestWebKitAPI/Tests/WebKit/AccessibilityReduceMotion.mm
r277209 r278334 58 58 #endif 59 59 60 static bool reduceMotionNotificationReceived = false;61 60 static bool receivedPreferenceNotification = false; 62 61 … … 73 72 @end 74 73 75 static void notificationCallback(CFNotificationCenterRef center, void *observer, CFNotificationName name, const void *object, CFDictionaryRef userInfo)76 {77 reduceMotionNotificationReceived = true;78 }79 80 74 TEST(WebKit, AccessibilityReduceMotion) 81 75 { 82 CFNotificationCenterAddObserver(NOTIFICATION_CENTER, nullptr, ¬ificationCallback, REDUCED_MOTION_CHANGED_NOTIFICATION, nullptr, CFNotificationSuspensionBehaviorDeliverImmediately);83 84 76 WKWebViewConfiguration *configuration = [WKWebViewConfiguration _test_configurationWithTestPlugInClassName:@"WebProcessPlugInWithInternals" configureJSCForTesting:YES]; 85 77 auto webView = adoptNS([[TestWKWebView alloc] initWithFrame:NSMakeRect(0, 0, 300, 300) configuration:configuration addToWindow:YES]); … … 97 89 ASSERT_FALSE(reduceMotion()); 98 90 99 reduceMotionNotificationReceived = false;100 101 91 CFPreferencesSetAppValue(REDUCED_MOTION_PREFERENCE, kCFBooleanTrue, ACCESSIBILITY_DOMAIN); 102 92 103 93 TestWebKitAPI::Util::run(&receivedPreferenceNotification); 104 TestWebKitAPI::Util::run(&reduceMotionNotificationReceived);105 94 106 95 [webView synchronouslyLoadTestPageNamed:@"simple"]; … … 109 98 110 99 CFPreferencesSetAppValue(REDUCED_MOTION_PREFERENCE, nullptr, ACCESSIBILITY_DOMAIN); 111 112 CFNotificationCenterRemoveObserver(NOTIFICATION_CENTER, nullptr, REDUCED_MOTION_CHANGED_NOTIFICATION, nullptr);113 100 } 114 101
Note:
See TracChangeset
for help on using the changeset viewer.