Changeset 263835 in webkit
- Timestamp:
- Jul 2, 2020 1:14:16 AM (4 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r263834 r263835 1 2020-07-02 Enrique Ocaña González <eocanha@igalia.com> 2 3 [GTK] Layout test media/context-menu-actions.html is failing 4 https://bugs.webkit.org/show_bug.cgi?id=183611 5 6 Reviewed by Xabier Rodriguez-Calvar. 7 8 Changing to fullscreen is an async operation, so we now use testExpectedEventually() to wait for 9 the final value. 10 Simply setting an event handler on video.onwebkitfullscreenchange wouldn't have been enough, since the 11 event is triggered before the fullscreen operation has been completed and checking for 12 video.webkitDisplayingFullscreen == true would still fail by then. 13 Using the 'webkitbeginfullscreen' event isn't possible either, because it's never triggered when 14 FULLSCREEN_API is enabled. 15 16 * media/context-menu-actions.html: Use asynchronous testing. 17 * media/video-test.js: 18 (testExpectedEventually): Add an optional "timeout" parameter to avoid a test timeout (all the output 19 would be lost) in case we wait forever for the comparison to evaluate to the expected value. 20 (reportExpected): Add an optional "explanation" parameter for extra reporting. 21 * platform/gtk-wayland/TestExpectations: Unskipped the test. 22 * platform/gtk/TestExpectations: Ditto. 23 1 24 2020-07-02 Diego Pino Garcia <dpino@igalia.com> 2 25 -
trunk/LayoutTests/media/context-menu-actions.html
r120416 r263835 2 2 <head> 3 3 <script src="media-file.js"></script> 4 <script src= video-test.js></script>4 <script src="video-test.js"></script> 5 5 <script> 6 6 7 function playing()7 async function playing() 8 8 { 9 9 if (window.testRunner) { … … 65 65 consoleWrite("Toggling fullscreen state"); 66 66 items[i].click(); 67 testExpected("video.webkitDisplayingFullscreen", true, '==');67 await testExpectedEventually("video.webkitDisplayingFullscreen", true, "==", 1000); 68 68 consoleWrite(""); 69 69 } … … 75 75 } 76 76 77 function start()77 async function start() 78 78 { 79 79 findMediaElement(); -
trunk/LayoutTests/media/video-test.js
r252793 r263835 102 102 } 103 103 104 function testExpectedEventually(testFuncString, expected, comparison )104 function testExpectedEventually(testFuncString, expected, comparison, timeout) 105 105 { 106 106 return new Promise(async resolve => { 107 107 var success; 108 108 var observed; 109 var timeSlept = 0; 109 110 if (comparison === undefined) 110 111 comparison = '=='; 111 while (t rue) {112 while (timeout === undefined || timeSlept < timeout) { 112 113 try { 113 114 let {success, observed} = compare(testFuncString, expected, comparison); … … 118 119 } 119 120 await sleepFor(1); 121 timeSlept++; 120 122 } catch (ex) { 121 123 consoleWrite(ex); … … 124 126 } 125 127 } 128 reportExpected(success, testFuncString, comparison, expected, observed, "AFTER TIMEOUT"); 129 resolve(); 126 130 }); 127 131 } … … 146 150 var testNumber = 0; 147 151 148 function reportExpected(success, testFuncString, comparison, expected, observed )152 function reportExpected(success, testFuncString, comparison, expected, observed, explanation) 149 153 { 150 154 testNumber++; … … 155 159 msg = "EXPECTED (<em>" + testFuncString + " </em>" + comparison + " '<em>" + expected + "</em>')"; 156 160 157 if (!success) 161 if (!success) { 158 162 msg += ", OBSERVED '<em>" + observed + "</em>'"; 163 if (explanation !== undefined) 164 msg += ", " + explanation; 165 } 159 166 160 167 logResult(success, msg); -
trunk/LayoutTests/platform/gtk-wayland/TestExpectations
r263262 r263835 88 88 webkit.org/b/183365 fast/selectors/text-field-selection-window-inactive-text-shadow.html [ ImageOnlyFailure ] 89 89 90 webkit.org/b/183611 media/context-menu-actions.html [ Failure ]91 90 webkit.org/b/102776 media/track/track-cue-rendering-horizontal.html [ Failure Timeout ] 92 91 webkit.org/b/206584 media/video-set-presentation-mode-to-inline.html [ Failure ] -
trunk/LayoutTests/platform/gtk/TestExpectations
r263791 r263835 3308 3308 webkit.org/b/183033 http/tests/plugins/supported-plugin-origin-specific-visibility.html [ Failure ] 3309 3309 3310 webkit.org/b/1 83611 webkit.org/b/198830 media/context-menu-actions.html [ FailureCrash ]3310 webkit.org/b/198830 media/context-menu-actions.html [ Crash ] 3311 3311 3312 3312 webkit.org/b/183902 fast/dom/frame-loading-via-document-write.html [ Failure ]
Note: See TracChangeset
for help on using the changeset viewer.