Changeset 251833 in webkit


Ignore:
Timestamp:
Oct 30, 2019 9:54:46 PM (4 years ago)
Author:
yurys@chromium.org
Message:

inspector-protocol/debugger/setBreakpoint-dfg.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=128736

Reviewed by Devin Rousso.

Reenabling the test on all platforms. Depending on the platform implementation of EventLoop
there is a difference in what is dispatched first when execution is resumed: previously
paused inspected script or commands from the inspector front-end. It would not be a problem
if InspectorFrontendAPI.dispatchMessageAsync actually delivered messages asynchronously.
With the current implementation though response to Debugger.resume
is dispatched in the front-end synchronously and the front-end would call InspectoTest.log
when inspected script execution is not yet resumed.

  • TestExpectations:
  • inspector/debugger/setBreakpoint-dfg-expected.txt:
  • inspector/debugger/setBreakpoint-dfg.html: Print final 'PASS' output after exiting nested loop

so that it always appears last.

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

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r251828 r251833  
     12019-10-30  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        inspector-protocol/debugger/setBreakpoint-dfg.html is flaky
     4        https://bugs.webkit.org/show_bug.cgi?id=128736
     5
     6        Reviewed by Devin Rousso.
     7
     8        Reenabling the test on all platforms. Depending on the platform implementation of EventLoop
     9        there is a difference in what is dispatched first when execution is resumed: previously
     10        paused inspected script or commands from the inspector front-end. It would not be a problem
     11        if InspectorFrontendAPI.dispatchMessageAsync actually delivered messages asynchronously.
     12        With the current implementation though response to Debugger.resume
     13        is dispatched in the front-end synchronously and the front-end would call InspectoTest.log
     14        when inspected script execution is not yet resumed.
     15
     16        * TestExpectations:
     17        * inspector/debugger/setBreakpoint-dfg-expected.txt:
     18        * inspector/debugger/setBreakpoint-dfg.html: Print final 'PASS' output after exiting nested loop
     19        so that it always appears last.
     20        * platform/gtk/TestExpectations:
     21
    1222019-10-30  Simon Fraser  <simon.fraser@apple.com>
    223
  • trunk/LayoutTests/TestExpectations

    r251799 r251833  
    925925webkit.org/b/129639 inspector/dom/dom-search-crash.html [ Skip ]
    926926
    927 webkit.org/b/128736 inspector/debugger/setBreakpoint-dfg.html [ Failure Pass ]
    928927webkit.org/b/134982 inspector/debugger/setBreakpoint-dfg-and-modify-local.html [ Failure Pass ]
    929928
  • trunk/LayoutTests/inspector/debugger/setBreakpoint-dfg-expected.txt

    r188142 r251833  
    1414Hit Breakpoint 2!
    1515Removed Breakpoint 2!
     16dfgWithInline result: 504500
    1617PASS
    17 dfgWithInline result: 504500
    1818
  • trunk/LayoutTests/inspector/debugger/setBreakpoint-dfg.html

    r199592 r251833  
    7070        InspectorProtocol.sendCommand("Debugger.removeBreakpoint", {"breakpointId": breakpointId}, function(responseObject) {
    7171            ProtocolTest.log("Removed Breakpoint " + breakpointsHit + "!");
    72             InspectorProtocol.sendCommand("Debugger.resume", {}, function(responseObject) {
    73                 if (breakpointsHit == 2) {
    74                     ProtocolTest.log("PASS");
    75                     ProtocolTest.completeTest();
    76                 }
    77             });
     72            InspectorProtocol.sendCommand("Debugger.resume");
    7873        });
     74    }
     75    InspectorProtocol.eventHandler["Debugger.resumed"] = function(messageObject)
     76    {
     77        if (breakpointsHit < 2)
     78           return;
     79        ProtocolTest.assert(breakpointsHit == 2);
     80        ProtocolTest.log("PASS");
     81        ProtocolTest.completeTest();
    7982    }
    8083}
  • trunk/LayoutTests/platform/gtk/TestExpectations

    r251818 r251833  
    16401640webkit.org/b/131545 media/media-event-listeners.html [ Failure Pass ]
    16411641
    1642 webkit.org/b/139364 inspector/debugger/setBreakpoint-dfg.html [ Failure Pass Timeout ]
    16431642webkit.org/b/143876 css3/viewport-percentage-lengths/vh-resize.html [ ImageOnlyFailure Pass ]
    16441643
Note: See TracChangeset for help on using the changeset viewer.