Changeset 216931 in webkit
- Timestamp:
- May 16, 2017 8:08:44 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r216926 r216931 1 2017-05-16 Claudio Saavedra <csaavedra@igalia.com> 2 3 [GTK] Tests that always pass when run alone, but fail in the bots 4 https://bugs.webkit.org/show_bug.cgi?id=168572 5 6 Reviewed by Michael Catanzaro. 7 8 PlatformWebView::viewSupportsOptions() is basically a comparison 9 that checks that the passed options are the ones supported by the 10 web view. There is no reason for them to be implemented for each 11 platform differently. In fact doing so causes issues each time a 12 new option is added, if the corresponding platform implementation 13 is not updated accordingly. 14 15 A consequence of not updating the viewSupportOptions() 16 implementations when new options are added is that tests that need 17 these options might fail if they are executed after a test that 18 didn't need the option, as the webview will be reused even if the 19 option is not supported. This cannot be spotted when running the 20 tests individually. See bug #165133 for other example of the same 21 problem. 22 23 Remove the platform implementations and make the comparison a 24 method of the TestOptions structure, so that the check is in one 25 place. For the time being include in the comparison the options 26 checked in the mac and ios platforms, which seem to be the only 27 ones relevant this far (unless newer ones have also been 28 forgotten). 29 30 * platform/gtk/TestExpectations: Unskip an affected test. 31 1 32 2017-05-16 Romain Bellessort <romain.bellessort@crf.canon.fr> 2 33 -
trunk/LayoutTests/platform/gtk/TestExpectations
r216919 r216931 3450 3450 webkit.org/b/168557 imported/blink/compositing/draws-content/webgl-simple-background.html [ ImageOnlyFailure ] 3451 3451 3452 webkit.org/b/168572 intersection-observer/intersection-observer-entry-interface.html [ Failure ]3453 webkit.org/b/168572 js/dom/regress-157246.html [ Failure ]3454 3455 3452 webkit.org/b/168719 fast/css/paint-order-shadow.html [ ImageOnlyFailure ] 3456 3453 -
trunk/Tools/ChangeLog
r216914 r216931 1 2017-05-16 Claudio Saavedra <csaavedra@igalia.com> 2 3 [GTK] Tests that always pass when run alone, but fail in the bots 4 https://bugs.webkit.org/show_bug.cgi?id=168572 5 6 Reviewed by Michael Catanzaro. 7 8 PlatformWebView::viewSupportsOptions() is basically a comparison 9 that checks that the passed options are the ones supported by the 10 web view. There is no reason for them to be implemented for each 11 platform differently. In fact doing so causes issues each time a 12 new option is added, if the corresponding platform implementation 13 is not updated accordingly. 14 15 A consequence of not updating the viewSupportOptions() 16 implementations when new options are added is that tests that need 17 these options might fail if they are executed after a test that 18 didn't need the option, as the webview will be reused even if the 19 option is not supported. This cannot be spotted when running the 20 tests individually. See bug #165133 for other example of the same 21 problem. 22 23 Remove the platform implementations and make the comparison a 24 method of the TestOptions structure, so that the check is in one 25 place. For the time being, only include in the comparison the 26 options that were checked in the mac platform, which seem to be 27 the only ones relevant this far (unless newer ones have also been 28 forgotten). 29 30 * WebKitTestRunner/PlatformWebView.h: 31 (WTR::PlatformWebView::viewSupportsOptions): Use the method 32 defined below. 33 * WebKitTestRunner/TestOptions.h: 34 (WTR::TestOptions::hasSameInitializationOptions): Added. 35 * WebKitTestRunner/gtk/PlatformWebViewGtk.cpp: 36 (WTR::PlatformWebView::viewSupportsOptions): Deleted. 37 * WebKitTestRunner/ios/PlatformWebViewIOS.mm: 38 (WTR::PlatformWebView::viewSupportsOptions): Deleted. 39 * WebKitTestRunner/mac/PlatformWebViewMac.mm: 40 (WTR::PlatformWebView::viewSupportsOptions): Deleted. 41 * WebKitTestRunner/wpe/PlatformWebViewWPE.cpp: 42 (WTR::PlatformWebView::viewSupportsOptions): Deleted. 43 1 44 2017-05-15 Yusuke Suzuki <utatane.tea@gmail.com> 2 45 -
trunk/Tools/WebKitTestRunner/PlatformWebView.h
r216497 r216931 96 96 void addToWindow(); 97 97 98 bool viewSupportsOptions(const TestOptions& ) const;98 bool viewSupportsOptions(const TestOptions& options) const { return m_options.hasSameInitializationOptions(options); } 99 99 100 100 PlatformImage windowSnapshotImage(); -
trunk/Tools/WebKitTestRunner/TestOptions.h
r213676 r216931 53 53 54 54 TestOptions(const std::string& pathOrURL); 55 56 // Add here options that can only be set upon PlatformWebView 57 // initialization and make sure it's up to date when adding new 58 // options to this struct. Otherwise, tests using those options 59 // might fail if WTR is reusing an existing PlatformWebView. 60 bool hasSameInitializationOptions(const TestOptions& options) const 61 { 62 if (useThreadedScrolling != options.useThreadedScrolling 63 || overrideLanguages != options.overrideLanguages 64 || useMockScrollbars != options.useMockScrollbars 65 || needsSiteSpecificQuirks != options.needsSiteSpecificQuirks 66 || useCharacterSelectionGranularity != options.useCharacterSelectionGranularity 67 || enableIntersectionObserver != options.enableIntersectionObserver 68 || enableModernMediaControls != options.enableModernMediaControls 69 || enablePointerLock != options.enablePointerLock 70 || enableCredentialManagement != options.enableCredentialManagement) 71 return false; 72 73 return true; 74 } 55 75 }; 56 76 -
trunk/Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp
r215176 r216931 154 154 } 155 155 156 bool PlatformWebView::viewSupportsOptions(const TestOptions&) const157 {158 return true;159 }160 161 156 void PlatformWebView::dismissAllPopupMenus() 162 157 { -
trunk/Tools/WebKitTestRunner/ios/PlatformWebViewIOS.mm
r216462 r216931 355 355 } 356 356 357 bool PlatformWebView::viewSupportsOptions(const TestOptions& options) const358 {359 if (m_options.overrideLanguages != options.overrideLanguages360 || m_options.needsSiteSpecificQuirks != options.needsSiteSpecificQuirks361 || m_options.useCharacterSelectionGranularity != options.useCharacterSelectionGranularity362 || m_options.enableIntersectionObserver != options.enableIntersectionObserver363 || m_options.enableModernMediaControls != options.enableModernMediaControls364 || m_options.enablePointerLock != options.enablePointerLock365 || m_options.enableCredentialManagement != options.enableCredentialManagement)366 return false;367 368 return true;369 }370 371 357 void PlatformWebView::setNavigationGesturesEnabled(bool enabled) 372 358 { -
trunk/Tools/WebKitTestRunner/mac/PlatformWebViewMac.mm
r215176 r216931 283 283 } 284 284 285 bool PlatformWebView::viewSupportsOptions(const TestOptions& options) const286 {287 if (m_options.useThreadedScrolling != options.useThreadedScrolling288 || m_options.overrideLanguages != options.overrideLanguages289 || m_options.useMockScrollbars != options.useMockScrollbars290 || m_options.needsSiteSpecificQuirks != options.needsSiteSpecificQuirks291 || m_options.enableIntersectionObserver != options.enableIntersectionObserver292 || m_options.enableModernMediaControls != options.enableModernMediaControls293 || m_options.enablePointerLock != options.enablePointerLock294 || m_options.enableCredentialManagement != options.enableCredentialManagement)295 return false;296 297 return true;298 }299 300 285 void PlatformWebView::changeWindowScaleIfNeeded(float newScale) 301 286 { -
trunk/Tools/WebKitTestRunner/wpe/PlatformWebViewWPE.cpp
r216497 r216931 129 129 } 130 130 131 bool PlatformWebView::viewSupportsOptions(const TestOptions&) const132 {133 return true;134 }135 136 131 void PlatformWebView::forceWindowFramesChanged() 137 132 {
Note: See TracChangeset
for help on using the changeset viewer.