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

Unified Diff: LayoutTests/inspector-protocol/page/javascriptDialogEvents.html

Issue 18729002: Enable message delivering in inspector-protocol tests when on pause (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: follow codereview Created 7 years, 5 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
Index: LayoutTests/inspector-protocol/page/javascriptDialogEvents.html
diff --git a/LayoutTests/inspector-protocol/page/javascriptDialogEvents.html b/LayoutTests/inspector-protocol/page/javascriptDialogEvents.html
index a9494a7f495dcb5bd88ba8764057e26470dc5b5f..6af69b3ba5d32bdf59815e34e8e91df4ef6f56aa 100644
--- a/LayoutTests/inspector-protocol/page/javascriptDialogEvents.html
+++ b/LayoutTests/inspector-protocol/page/javascriptDialogEvents.html
@@ -27,9 +27,17 @@ function test()
}
InspectorTest.sendCommand("Page.navigate", { "url": "nosuchurl" });
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "alert('alert')" });
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "confirm('confirm')" });
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "prompt('prompt')" }, onDone);
+ InspectorTest.sendCommand("Runtime.evaluate", { "expression": "alert('alert')" }, onDoneAlert);
+
+ function onDoneAlert()
+ {
+ InspectorTest.sendCommand("Runtime.evaluate", { "expression": "confirm('confirm')" }, onDoneConfirm);
+ }
+
+ function onDoneConfirm()
+ {
+ InspectorTest.sendCommand("Runtime.evaluate", { "expression": "prompt('prompt')" }, onDone);
+ }
function onDone()
{

Powered by Google App Engine
This is Rietveld 408576698