Commit 099c13ee authored by Simon Zünd's avatar Simon Zünd Committed by Commit Bot

Use {removeBreakpoint} instead of {toggleBreakpoint} in a web test

This should prevent flakiness even further once asynchronous source
mapping lands.

R=petermarshall@chromium.org

Bug: chromium:1032016
Change-Id: I65797584b8ab539d61421e06928cb4b6780823ab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2037991
Commit-Queue: Simon Zünd <szuend@chromium.org>
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Auto-Submit: Simon Zünd <szuend@chromium.org>
Reviewed-by: default avatarPeter Marshall <petermarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738500}
parent 9bc82015
......@@ -58,11 +58,10 @@
function removeBreakpoint() {
TestRunner.addResult('Toggle breakpoint');
SourcesTestRunner.removeBreakpoint(javaScriptSourceFrame, 2);
SourcesTestRunner
.runActionAndWaitForExactBreakpointDecorations(
javaScriptSourceFrame, [],
() => SourcesTestRunner.toggleBreakpoint(
javaScriptSourceFrame, 2))
javaScriptSourceFrame, [], () => {}, true)
.then(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