Title: [271380] trunk/Tools
Revision
271380
Author
[email protected]
Date
2021-01-11 14:16:00 -0800 (Mon, 11 Jan 2021)

Log Message

ASSERTION FAILED: !event || event.type == NSEventTypeLeftMouseDown || event.type == NSEventTypeRightMouseDown || event.type == NSEventTypeOtherMouseDown
https://bugs.webkit.org/show_bug.cgi?id=220520
<rdar://problem/73007898>

Reviewed by Tim Horton.

Fix the assertion by synthesizing a "mouse down" event instead of "mouse entered".

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

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (271379 => 271380)


--- trunk/Tools/ChangeLog	2021-01-11 22:00:11 UTC (rev 271379)
+++ trunk/Tools/ChangeLog	2021-01-11 22:16:00 UTC (rev 271380)
@@ -1,3 +1,16 @@
+2021-01-11  Wenson Hsieh  <[email protected]>
+
+        ASSERTION FAILED: !event || event.type == NSEventTypeLeftMouseDown || event.type == NSEventTypeRightMouseDown || event.type == NSEventTypeOtherMouseDown
+        https://bugs.webkit.org/show_bug.cgi?id=220520
+        <rdar://problem/73007898>
+
+        Reviewed by Tim Horton.
+
+        Fix the assertion by synthesizing a "mouse down" event instead of "mouse entered".
+
+        * TestWebKitAPI/Tests/mac/AcceptsFirstMouse.mm:
+        (TestWebKitAPI::TEST):
+
 2021-01-11  BJ Burg  <[email protected]>
 
         Unreviewed, update my contributor information.

Modified: trunk/Tools/TestWebKitAPI/Tests/mac/AcceptsFirstMouse.mm (271379 => 271380)


--- trunk/Tools/TestWebKitAPI/Tests/mac/AcceptsFirstMouse.mm	2021-01-11 22:00:11 UTC (rev 271379)
+++ trunk/Tools/TestWebKitAPI/Tests/mac/AcceptsFirstMouse.mm	2021-01-11 22:16:00 UTC (rev 271380)
@@ -82,7 +82,7 @@
     auto webView = adoptNS([[TestWKWebView alloc] initWithFrame:NSMakeRect(0, 0, 400, 400)]);
     [webView loadHTMLString:@"<body>" baseURL:nil];
 
-    auto mouseEvent = [NSEvent enterExitEventWithType:NSEventTypeMouseEntered location:NSMakePoint(1, 1) modifierFlags:0 timestamp:GetCurrentEventTime() windowNumber:[webView window].windowNumber context:NSGraphicsContext.currentContext eventNumber:1 trackingNumber:1 userData:nil];
+    auto mouseEvent = [NSEvent mouseEventWithType:NSEventTypeLeftMouseDown location:NSMakePoint(1, 1) modifierFlags:0 timestamp:GetCurrentEventTime() windowNumber:[webView window].windowNumber context:NSGraphicsContext.currentContext eventNumber:1 clickCount:1 pressure:0];
     [webView acceptsFirstMouse:mouseEvent];
 
     [webView _test_waitForDidFinishNavigation];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to