Changeset 184015 in webkit
- Timestamp:
- May 8, 2015, 2:21:32 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 14 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/gtk/TestExpectations (modified) (7 diffs)
-
LayoutTests/platform/gtk/editing/selection/5354455-2-expected.txt (modified) (1 diff)
-
LayoutTests/platform/gtk/editing/selection/doubleclick-crash-expected.png (modified) ( previous)
-
LayoutTests/platform/gtk/editing/selection/doubleclick-crash-expected.txt (added)
-
LayoutTests/platform/gtk/editing/selection/user-select-all-image-with-single-click-expected.txt (modified) (1 diff)
-
LayoutTests/platform/gtk/editing/selection/user-select-all-with-single-click-expected.txt (modified) (1 diff)
-
LayoutTests/platform/gtk/fast/events/mouseup-from-button2-expected.txt (added)
-
LayoutTests/platform/gtk/fast/events/shadow-event-path-2-expected.txt (added)
-
LayoutTests/platform/gtk/fast/events/shadow-event-path-expected.txt (added)
-
LayoutTests/platform/gtk/fast/events/updateLayoutForHitTest-expected.txt (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/WebKitTestRunner/EventSenderProxy.h (modified) (1 diff)
-
Tools/WebKitTestRunner/PlatformWebView.h (modified) (1 diff)
-
Tools/WebKitTestRunner/TestController.cpp (modified) (1 diff)
-
Tools/WebKitTestRunner/gtk/EventSenderProxyGtk.cpp (modified) (1 diff)
-
Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp (modified) (2 diffs)
-
Tools/WebKitTestRunner/gtk/TestControllerGtk.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r184013 r184015 1 2015-05-08 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Some tests fail because they do not assume the popup menu captures click events 4 https://bugs.webkit.org/show_bug.cgi?id=40601 5 6 Reviewed by Carlos Garcia Campos. 7 8 * platform/gtk/TestExpectations: Unskip tests that are passing now 9 and classify remaining failures. 10 * platform/gtk/editing/selection/5354455-2-expected.txt: Rebaselined. 11 * platform/gtk/editing/selection/doubleclick-crash-expected.png: Rebaseline. 12 * platform/gtk/editing/selection/doubleclick-crash-expected.txt: Rebaseline. 13 * platform/gtk/editing/selection/user-select-all-image-with-single-click-expected.txt: Rebaselined. 14 * platform/gtk/editing/selection/user-select-all-with-single-click-expected.txt: Rebaselined. 15 * platform/gtk/fast/events/mouseup-from-button2-expected.txt: Rebaseline. 16 * platform/gtk/fast/events/shadow-event-path-2-expected.txt: Rebaseline. 17 * platform/gtk/fast/events/shadow-event-path-expected.txt: Rebaseline. 18 * platform/gtk/fast/events/updateLayoutForHitTest-expected.txt: Rebaselined. 19 20 1 21 2015-05-08 Brent Fulgham <bfulgham@apple.com> 2 22 -
trunk/LayoutTests/platform/gtk/TestExpectations
r183995 r184015 712 712 webkit.org/b/129050 fast/sub-pixel/compositing-layers-on-subpixel-position.html [ ImageOnlyFailure Crash Pass ] 713 713 714 webkit.org/b/144771 editing/selection/selection-invalid-offset.html [ Crash ] 714 715 715 716 #//////////////////////////////////////////////////////////////////////////////////////// … … 1238 1239 1239 1240 webkit.org/b/108925 http/tests/media/video-play-stall.html [ Failure Timeout ] 1240 1241 webkit.org/b/114789 fast/events/page-visibility-transition-test.html [ Timeout ]1242 1241 1243 1242 webkit.org/b/116956 fast/events/event-view-toString.html [ Timeout ] … … 1442 1441 webkit.org/b/63706 editing/pasteboard/cleanup-on-move.html [ Failure ] 1443 1442 webkit.org/b/63706 editing/pasteboard/drag-list-item.html [ Failure ] 1444 1445 # WebKit2 needs testRunner.setEditingBehaviour and other issues. 1443 webkit.org/b/63706 fast/events/ondragenter.html [ Failure ] 1444 webkit.org/b/63706 fast/events/drag-and-drop-autoscroll-inner-frame.html [ Timeout ] 1445 webkit.org/b/63706 fast/events/drag-customData.html [ Timeout ] 1446 1447 # Need support for internals.settings.setDeviceSupportsMouse 1448 fast/events/touch/scroll-without-mouse-lacks-mousemove-events.html 1449 1450 # WebKit2 testRunner.setEditingBehaviour appears broken sometimes. 1451 webkit.org/b/144764 editing/selection/move-by-word-visually-mac.html [ Failure ] 1446 1452 Bug(GTK) editing/selection/extend-after-mouse-selection.html [ Failure ] 1447 1453 … … 1464 1470 webkit.org/b/42194 fast/events/5056619.html [ Failure ] 1465 1471 webkit.org/b/42194 http/tests/security/drag-drop-same-unique-origin.html [ Failure ] 1466 1467 # Context menu problems.1468 webkit.org/b/120401 fast/events [ Skip ]1469 webkit.org/b/120401 editing/selection [ Skip ]1470 1472 1471 1473 webkit.org/b/106340 accessibility/img-fallsback-to-title.html [ Failure ] … … 1686 1688 Bug(GTK) fast/forms/range/slider-zoomed.html [ Failure ] 1687 1689 1688 # Tests failing because the context menu is grabbing mouse events.1689 webkit.org/b/40601 fast/events/mouse-click-events.html [ Failure ]1690 webkit.org/b/40601 fast/events/mouseup-from-button2.html [ Failure ]1691 webkit.org/b/40601 fast/events/right-click-focus.html [ Failure ]1692 1693 1690 # Tests that fail across all platforms. 1694 1691 # Even though some platforms don't skip these tests, there are platform-specific … … 1835 1832 1836 1833 webkit.org/b/98950 transitions/blendmode-transitions.html [ Failure ] 1837 1838 webkit.org/b/100424 editing/selection/user-select-all-selection.html [ Failure ]1839 webkit.org/b/100424 editing/selection/user-select-all-with-shift.html [ Failure ]1840 1834 1841 1835 webkit.org/b/100846 inspector-protocol/debugger/pause-dedicated-worker.html [ Skip ] … … 2329 2323 webkit.org/b/144690 editing/spelling/delete-into-misspelled-word.html [ Timeout Pass ] 2330 2324 2325 # Touch events not working 2326 webkit.org/b/144765 fast/events/event-attribute.html [ Failure ] 2327 webkit.org/b/144765 fast/events/touch/touch-slider.html [ Failure ] 2328 webkit.org/b/144765 fast/events/touch/touch-inside-iframe-scrolled.html [ Failure ] 2329 webkit.org/b/144765 fast/events/touch/touch-slider-no-js-touch-listener.html [ Failure ] 2330 webkit.org/b/144765 fast/events/touch/touch-inside-iframe.html [ Timeout ] 2331 2332 # Need support for adjusting page visibility in the test harness. 2333 webkit.org/b/114789 fast/events/page-visibility-iframe-delete-test.html [ Timeout ] 2334 webkit.org/b/114789 fast/events/page-visibility-iframe-move-test.html [ Timeout ] 2335 webkit.org/b/114789 fast/events/page-visibility-iframe-propagation-test.html [ Timeout ] 2336 webkit.org/b/114789 fast/events/page-visibility-transition-test.html [ Timeout ] 2337 2338 webkit.org/b/144763 fast/events/scroll-in-scaled-page-with-overflow-hidden.html 2339 2331 2340 #//////////////////////////////////////////////////////////////////////////////////////// 2332 2341 # End of Tests failing -
trunk/LayoutTests/platform/gtk/editing/selection/5354455-2-expected.txt
r148801 r184015 21 21 text run at (0,51) width 59: "removed." 22 22 RenderText {#text} at (0,0) size 0x0 23 caret: position 118 of child 2 {#text} of body23 caret: position 0 of child 0 {#text} of child 1 {H1} of body -
trunk/LayoutTests/platform/gtk/editing/selection/user-select-all-image-with-single-click-expected.txt
r152215 r184015 4 4 | <div> 5 5 | class="select-all" 6 | <#selection-anchor> 6 7 | <img> 7 8 | src="../resources/abe.png" 9 | <#selection-focus> -
trunk/LayoutTests/platform/gtk/editing/selection/user-select-all-with-single-click-expected.txt
r152215 r184015 3 3 | <div> 4 4 | class="select-all" 5 | " C<#selection-caret>lick here"5 | "<#selection-anchor>Click here<#selection-focus>" -
trunk/LayoutTests/platform/gtk/fast/events/updateLayoutForHitTest-expected.txt
r152871 r184015 15 15 text run at (13,5) width 61: " Project" 16 16 RenderText {#text} at (0,0) size 0x0 17 caret: position 0 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of body 17 selection start: position 0 of child 0 {#text} of child 1 {SPAN} of child 3 {DIV} of body 18 selection end: position 0 of child 1 {#text} of child 3 {DIV} of child 3 {DIV} of body -
trunk/Tools/ChangeLog
r184010 r184015 1 2015-05-08 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Some tests fail because they do not assume the popup menu captures click events 4 https://bugs.webkit.org/show_bug.cgi?id=40601 5 6 Reviewed by Carlos Garcia Campos. 7 8 Popdown all attached menus when moving between tests and between each new 9 event sent to the WebView. This prevents context and popup menus from eating 10 events. 11 12 * WebKitTestRunner/PlatformWebView.h: Added a helper method to do menu popdown. 13 * WebKitTestRunner/TestController.cpp: Add a specialization of these methods for GTK+. 14 * WebKitTestRunner/gtk/EventSenderProxyGtk.cpp: 15 (WTR::dispatchEvent): Popdown all menus between dispatching events. 16 (WTR::EventSenderProxy::replaySavedEvents): Pass the view when dispatching events. 17 (WTR::EventSenderProxy::sendOrQueueEvent): Pass the view when dispatching events. 18 * WebKitTestRunner/gtk/PlatformWebViewGtk.cpp: 19 (WTR::PlatformWebView::hideAllPopupMenus): Added this helper. 20 * WebKitTestRunner/gtk/TestControllerGtk.cpp: 21 (WTR::TestController::platformConfigureViewForTest): Added this stub, which is no 22 longer in the platform-independent file. 23 (WTR::TestController::platformResetPreferencesToConsistentValues): Popdown menus. 24 1 25 015-05-08 Michael Catanzaro <mcatanzaro@igalia.com>, Martin Robinson <mrobinson@igalia.com> 2 26 -
trunk/Tools/WebKitTestRunner/EventSenderProxy.h
r182963 r184015 98 98 #if PLATFORM(GTK) 99 99 void sendOrQueueEvent(GdkEvent*); 100 void dispatchEvent(GdkEvent*); 100 101 GdkEvent* createMouseButtonEvent(GdkEventType, unsigned button, WKEventModifiers); 101 102 GUniquePtr<GdkEvent> createTouchEvent(GdkEventType, int id); -
trunk/Tools/WebKitTestRunner/PlatformWebView.h
r168961 r184015 86 86 void changeWindowScaleIfNeeded(float newScale); 87 87 88 #if PLATFORM(GTK) 89 void dismissAllPopupMenus(); 90 #endif 91 88 92 private: 89 93 void forceWindowFramesChanged(); -
trunk/Tools/WebKitTestRunner/TestController.cpp
r183675 r184015 798 798 } 799 799 800 #if !PLATFORM(COCOA) 800 #if !PLATFORM(COCOA) && !PLATFORM(GTK) 801 801 void TestController::platformConfigureViewForTest(const TestInvocation&) 802 802 { -
trunk/Tools/WebKitTestRunner/gtk/EventSenderProxyGtk.cpp
r183995 r184015 163 163 } 164 164 165 static void dispatchEvent(GdkEvent* event) 166 { 165 void EventSenderProxy::dispatchEvent(GdkEvent* event) 166 { 167 ASSERT(m_testController->mainWebView()); 168 169 // If we are sending an escape key to the WebView, this has the side-effect of dismissing 170 // any current popups anyway. Chances are that the test is doing this to dismiss the popup 171 // anyway. Not all tests properly dismiss popup menus, so we still need to do it manually 172 // if this isn't an escape key press. 173 if (event->type != GDK_KEY_PRESS || event->key.keyval != GDK_KEY_Escape) 174 m_testController->mainWebView()->dismissAllPopupMenus(); 175 167 176 gtk_main_do_event(event); 168 177 gdk_event_free(event); -
trunk/Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp
r175775 r184015 32 32 #include <WebKit/WKViewPrivate.h> 33 33 #include <gtk/gtk.h> 34 #include <wtf/Assertions.h> 34 35 35 36 namespace WTR { … … 141 142 } 142 143 144 void PlatformWebView::dismissAllPopupMenus() 145 { 146 // gtk_menu_popdown doesn't modify the GList of attached menus, so it should 147 // be safe to walk this list while calling it. 148 GList* attachedMenusList = gtk_menu_get_for_attach_widget(GTK_WIDGET(m_view)); 149 g_list_foreach(attachedMenusList, [] (void* data, void*) { 150 ASSERT(data); 151 gtk_menu_popdown(GTK_MENU(data)); 152 }, nullptr); 153 } 154 143 155 } // namespace WTR 144 156 -
trunk/Tools/WebKitTestRunner/gtk/TestControllerGtk.cpp
r177870 r184015 28 28 #include "TestController.h" 29 29 30 #include "PlatformWebView.h" 30 31 #include <gtk/gtk.h> 31 32 #include <wtf/Platform.h> … … 110 111 } 111 112 113 void TestController::platformConfigureViewForTest(const TestInvocation&) 114 { 115 } 116 117 void TestController::platformResetPreferencesToConsistentValues() 118 { 119 if (!m_mainWebView) 120 return; 121 m_mainWebView->dismissAllPopupMenus(); 122 } 123 112 124 } // namespace WTR
Note:
See TracChangeset
for help on using the changeset viewer.