Commit a689e10b authored by Alexey Kozyatinskiy's avatar Alexey Kozyatinskiy Committed by Commit Bot

DevTools: deflake live-edit-no-reveal.js

TBR=dgozman@chromium.org

Bug: chromium:789139
Change-Id: I0510481873b518b9465e7f7a54c859c666d666c0
Reviewed-on: https://chromium-review.googlesource.com/c/1258249Reviewed-by: default avatarAleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596029}
parent a95ea3aa
......@@ -3990,10 +3990,6 @@ crbug.com/709227 external/wpt/user-timing/invoke_with_timing_attributes.worker.h
# Crashes
crbug.com/709227 external/wpt/offscreen-canvas/fill-and-stroke-styles/2d.pattern.basic.nocontext.worker.html [ Crash Pass ]
# ====== Tests from enabling .any.js/.worker.js tests end here ========
crbug.com/789139 http/tests/devtools/sources/debugger/live-edit-no-reveal.js [ Failure Pass Timeout Crash ]
# ====== Begin of display: contents tests ======
crbug.com/795217 external/wpt/css/css-display/display-contents-details.html [ Failure ]
......
Tests live edit feature.
Running: testLiveEditWithoutStepInWhenPausedDoesNotCauseCursorMove
Running: testLiveEditWithoutStepInWhenPausedThenStepIntoCausesCursorMove
Script execution paused.
Moving cursor to (0, 0).
Committing live edit.
Script execution paused.
Stepping into...
Did step into
Script execution resumed.
Script execution paused.
Script execution resumed.
Cursor position is: (0, 0).
Cursor position is: (2, 4).
Running: testLiveEditWithStepInWhenPausedDoesNotCauseCursorMove
Running: testLiveEditWithStepInWhenPausedThenStepIntoCausesCursorMove
Script execution paused.
Moving cursor to (0, 0).
Committing live edit.
Did step into
Stepping into...
Did step into
Script execution resumed.
Script execution paused.
Script execution resumed.
Cursor position is: (0, 0).
Script execution paused.
Script execution resumed.
Cursor position is: (8, 4).
Running: testLiveEditWithoutStepInWhenPausedThenStepIntoCausesCursorMove
Running: testLiveEditWithoutStepInWhenPausedDoesNotCauseCursorMove
Script execution paused.
Moving cursor to (0, 0).
Committing live edit.
Script execution paused.
Stepping into...
Did step into
Script execution resumed.
Script execution paused.
Script execution resumed.
Cursor position is: (2, 4).
Cursor position is: (0, 0).
Running: testLiveEditWithStepInWhenPausedThenStepIntoCausesCursorMove
Running: testLiveEditWithStepInWhenPausedDoesNotCauseCursorMove
Script execution paused.
Moving cursor to (0, 0).
Committing live edit.
Did step into
Stepping into...
Did step into
Script execution resumed.
Script execution paused.
Script execution resumed.
Script execution paused.
Script execution resumed.
Cursor position is: (8, 4).
Cursor position is: (0, 0).
......@@ -64,7 +64,7 @@
sourceFrame = panel.visibleView;
SourcesTestRunner.removeBreakpoint(sourceFrame, 8);
TestRunner.addSniffer(TestRunner.debuggerModel, '_didEditScriptSource', didEditScriptSource);
panel._updateLastModificationTimeForTest();
panel._lastModificationTimeoutPassedForTest();
SourcesTestRunner.replaceInSource(sourceFrame, oldText, newText);
TestRunner.addResult('Moving cursor to (0, 0).');
sourceFrame.setSelection(TextUtils.TextRange.createFromLocation(0, 0));
......@@ -92,20 +92,20 @@
}
SourcesTestRunner.runDebuggerTestSuite([
function testLiveEditWithoutStepInWhenPausedDoesNotCauseCursorMove(next) {
testLiveEditWhenPausedDoesNotCauseCursorMove('function f2()', ' function f2()', next);
},
function testLiveEditWithStepInWhenPausedDoesNotCauseCursorMove(next) {
testLiveEditWhenPausedDoesNotCauseCursorMove('return x + f2();', 'return x + f2(); ', next);
},
function testLiveEditWithoutStepInWhenPausedThenStepIntoCausesCursorMove(next) {
testLiveEditWhenPausedThenStepIntoCausesCursorMove('function f2()', ' function f2()', next);
},
function testLiveEditWithStepInWhenPausedThenStepIntoCausesCursorMove(next) {
testLiveEditWhenPausedThenStepIntoCausesCursorMove('return x + f2();', 'return x + f2(); ', next);
},
function testLiveEditWithoutStepInWhenPausedDoesNotCauseCursorMove(next) {
testLiveEditWhenPausedDoesNotCauseCursorMove('function f2()', ' function f2()', next);
},
function testLiveEditWithStepInWhenPausedDoesNotCauseCursorMove(next) {
testLiveEditWhenPausedDoesNotCauseCursorMove('return x + f2();', 'return x + f2(); ', next);
}
]);
})();
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment