Changeset 251856 in webkit


Ignore:
Timestamp:
Oct 31, 2019 10:35:06 AM (4 years ago)
Author:
yurys@chromium.org
Message:

[GTK] Web Inspector: inspector/timeline/timeline-event-*.html are failing
https://bugs.webkit.org/show_bug.cgi?id=203625

Reviewed by Devin Rousso.

Unflake inspector/timeline/timeline-event-*.html tests on GTK.

  • inspector/timeline/resources/timeline-event-utilities.js: There is a race between CapturingState.Inactive

and SavePageData events, so the test has to wait for both.
Drive-by: wrap promis.reject in a lambda, otherwise reject would be called on an undefined 'this' object.
arrive before resolving the promise.
(TestPage.registerInitializer):

  • platform/gtk/TestExpectations:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r251842 r251856  
     12019-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
    1172019-10-31  Miguel Gomez  <magomez@igalia.com>
    218
  • trunk/LayoutTests/inspector/timeline/resources/timeline-event-utilities.js

    r244195 r251856  
    77
    88    InspectorTest.TimelineEvent.captureTimelineWithScript = function({expression, eventType}) {
    9         let pageRecordingData = null;
     9        let savePageDataPromise = InspectorTest.awaitEvent("SavePageData").then((event) => {
     10            return event.data;
     11        });
    1012
    1113        let promise = new WI.WrappedPromise;
     
    2931                InspectorTest.log("Evaluating...");
    3032                InspectorTest.evaluateInPage(expression)
    31                 .catch(promise.reject);
     33                .catch((error) => {
     34                    promise.reject(error);
     35                });
    3236                return;
    3337            }
     
    3539            if (WI.timelineManager.capturingState === WI.TimelineManager.CapturingState.Inactive) {
    3640                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                });
    3945                return;
    4046            }
    41         });
    42 
    43         InspectorTest.awaitEvent("SavePageData").then((event) => {
    44             pageRecordingData = event.data;
    4547        });
    4648
  • trunk/LayoutTests/platform/gtk/TestExpectations

    r251842 r251856  
    23762376webkit.org/b/137698 media/video-controls-drag.html [ Timeout ]
    23772377
    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 
    23862378webkit.org/b/139362 inspector/css/pseudo-element-matches.html [ Failure ]
    23872379webkit.org/b/139362 inspector/css/selector-specificity.html [ Timeout Pass ]
Note: See TracChangeset for help on using the changeset viewer.