Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: LayoutTests/inspector/sources/debugger/event-listener-breakpoints-xhr.html

Issue 344583003: Fix flaky inspector/sources/debugger/event-listener-breakpoints.html test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/sources/debugger/event-listener-breakpoints-xhr.html
diff --git a/LayoutTests/inspector/sources/debugger/event-listener-breakpoints-xhr.html b/LayoutTests/inspector/sources/debugger/event-listener-breakpoints-xhr.html
index d46bb3f7bf06dba34ffea56c73297d55f35f1458..534697cbdea59e057545b01cbba880bb64b729b8 100644
--- a/LayoutTests/inspector/sources/debugger/event-listener-breakpoints-xhr.html
+++ b/LayoutTests/inspector/sources/debugger/event-listener-breakpoints-xhr.html
@@ -81,9 +81,19 @@ function test()
InspectorTest.addResult("Captured call stacks in no particular order:");
callStacksOutput.sort();
InspectorTest.addResults(callStacksOutput);
- InspectorTest.completeDebuggerTest();
+ completeTest();
}
}
+
+ function completeTest()
+ {
+ pane._removeBreakpoint("listener:load");
+ pane._removeBreakpoint("listener:error");
+ pane._removeBreakpoint("listener:loadend", xhrTargetNames);
+ pane._removeBreakpoint("listener:progress", xhrTargetNames);
+ pane._removeBreakpoint("listener:readystatechange", xhrTargetNames);
+ InspectorTest.runAfterPendingDispatches(InspectorTest.completeDebuggerTest.bind(InspectorTest));
+ }
}
</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698