Changeset 251856 in webkit
- Timestamp:
- Oct 31, 2019 10:35:06 AM (4 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r251842 r251856 1 2019-10-31 Yury Semikhatsky <yurys@chromium.org> 2 3 [GTK] Web Inspector: inspector/timeline/timeline-event-*.html are failing 4 https://bugs.webkit.org/show_bug.cgi?id=203625 5 6 Reviewed by Devin Rousso. 7 8 Unflake inspector/timeline/timeline-event-*.html tests on GTK. 9 10 * inspector/timeline/resources/timeline-event-utilities.js: There is a race between CapturingState.Inactive 11 and SavePageData events, so the test has to wait for both. 12 Drive-by: wrap promis.reject in a lambda, otherwise reject would be called on an undefined 'this' object. 13 arrive before resolving the promise. 14 (TestPage.registerInitializer): 15 * platform/gtk/TestExpectations: 16 1 17 2019-10-31 Miguel Gomez <magomez@igalia.com> 2 18 -
trunk/LayoutTests/inspector/timeline/resources/timeline-event-utilities.js
r244195 r251856 7 7 8 8 InspectorTest.TimelineEvent.captureTimelineWithScript = function({expression, eventType}) { 9 let pageRecordingData = null; 9 let savePageDataPromise = InspectorTest.awaitEvent("SavePageData").then((event) => { 10 return event.data; 11 }); 10 12 11 13 let promise = new WI.WrappedPromise; … … 29 31 InspectorTest.log("Evaluating..."); 30 32 InspectorTest.evaluateInPage(expression) 31 .catch(promise.reject); 33 .catch((error) => { 34 promise.reject(error); 35 }); 32 36 return; 33 37 } … … 35 39 if (WI.timelineManager.capturingState === WI.TimelineManager.CapturingState.Inactive) { 36 40 WI.timelineManager.removeEventListener(WI.TimelineManager.Event.CapturingStateChanged, listener); 37 InspectorTest.assert(pageRecordingData, "savePageData should have been called in the page before capturing was stopped."); 38 promise.resolve(pageRecordingData); 41 InspectorTest.assert(savePageDataPromise, "savePageData should have been called in the page before capturing was stopped."); 42 savePageDataPromise.then((data) => { 43 promise.resolve(data); 44 }); 39 45 return; 40 46 } 41 });42 43 InspectorTest.awaitEvent("SavePageData").then((event) => {44 pageRecordingData = event.data;45 47 }); 46 48 -
trunk/LayoutTests/platform/gtk/TestExpectations
r251842 r251856 2376 2376 webkit.org/b/137698 media/video-controls-drag.html [ Timeout ] 2377 2377 2378 webkit.org/b/203625 inspector/timeline/timeline-event-CancelAnimationFrame.html [ Pass Failure ]2379 webkit.org/b/203625 inspector/timeline/timeline-event-EventDispatch.html [ Pass Failure ]2380 webkit.org/b/203625 inspector/timeline/timeline-event-FireAnimationFrame.html [ Pass Failure ]2381 webkit.org/b/203625 inspector/timeline/timeline-event-RequestAnimationFrame.html [ Pass Failure ]2382 webkit.org/b/203625 inspector/timeline/timeline-event-TimerFire.html [ Pass Failure ]2383 webkit.org/b/203625 inspector/timeline/timeline-event-TimerInstall.html [ Pass Failure ]2384 webkit.org/b/203625 inspector/timeline/timeline-event-TimerRemove.html [ Pass Failure ]2385 2386 2378 webkit.org/b/139362 inspector/css/pseudo-element-matches.html [ Failure ] 2387 2379 webkit.org/b/139362 inspector/css/selector-specificity.html [ Timeout Pass ]
Note: See TracChangeset
for help on using the changeset viewer.