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

Unified Diff: test/inspector/debugger/schedule-step-into-async-expected.txt

Issue 2723273002: [inspector] introduced Debugger.scheduleStepIntoAsync (Closed)
Patch Set: override current scheduled step into async if presented Created 3 years, 10 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: test/inspector/debugger/schedule-step-into-async-expected.txt
diff --git a/test/inspector/debugger/schedule-step-into-async-expected.txt b/test/inspector/debugger/schedule-step-into-async-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..8ac6ec1d268035d94715e240cb04a353e8c57465
--- /dev/null
+++ b/test/inspector/debugger/schedule-step-into-async-expected.txt
@@ -0,0 +1,147 @@
+Checks Debugger.scheduleStepIntoAsync.
+
+Running test: testScheduleErrors
+paused at:
+function testNoScheduledTask() {
+ #debugger;
+ return 42;
+
+{
+ error : {
+ code : -32000
+ message : Current scheduled step into async was overriden with new one.
+ }
+ id : <messageId>
+}
+{
+ error : {
+ code : -32000
+ message : No async task was scheduled.
+ }
+ id : <messageId>
+}
+paused at:
+ debugger;
+ #return 42;
+}
+
+
+Running test: testSimple
+paused at:
+function testSimple() {
+ #debugger;
+ Promise.resolve().then(v => v * 2);
+
+paused at:
+ debugger;
+ #Promise.resolve().then(v => v * 2);
+}
+
+{
+ id : <messageId>
+ result : {
+ }
+}
+paused at:
+ debugger;
+ Promise.resolve().then(#v => v * 2);
+}
+
+
+Running test: testNotResolvedPromise
+paused at:
+ var p = new Promise(resolve => resolveCallback = resolve);
+ #debugger;
+ p.then(v => v * 2);
+
+paused at:
+ debugger;
+ #p.then(v => v * 2);
+ resolveCallback();
+
+{
+ id : <messageId>
+ result : {
+ }
+}
+paused at:
+ debugger;
+ p.then(#v => v * 2);
+ resolveCallback();
+
+
+Running test: testTwoAsyncTasks
+paused at:
+function testTwoAsyncTasks() {
+ #debugger;
+ Promise.resolve().then(v => v * 2);
+
+{
+ id : <messageId>
+ result : {
+ }
+}
+paused at:
+ debugger;
+ Promise.resolve().then(#v => v * 2);
+ Promise.resolve().then(v => v * 4);
+
+
+Running test: testTwoTasksAndGoToSecond
+paused at:
+function testTwoAsyncTasks() {
+ #debugger;
+ Promise.resolve().then(v => v * 2);
+
+paused at:
+ debugger;
+ #Promise.resolve().then(v => v * 2);
+ Promise.resolve().then(v => v * 4);
+
+paused at:
+ Promise.resolve().then(v => v * 2);
+ #Promise.resolve().then(v => v * 4);
+}
+
+{
+ id : <messageId>
+ result : {
+ }
+}
+paused at:
+ Promise.resolve().then(v => v * 2);
+ Promise.resolve().then(#v => v * 4);
+}
+
+
+Running test: testTwoAsyncTasksWithBreak
+paused at:
+function testTwoAsyncTasksWithBreak() {
+ #debugger;
+ Promise.resolve().then(v => v * 2);
+
+paused at:
+ debugger;
+ #Promise.resolve().then(v => v * 2);
+ debugger;
+
+{
+ id : <messageId>
+ result : {
+ }
+}
+paused at:
+ Promise.resolve().then(v => v * 2);
+ #debugger;
+ Promise.resolve().then(v => v * 4);
+
+{
+ id : <messageId>
+ result : {
+ }
+}
+paused at:
+ debugger;
+ Promise.resolve().then(#v => v * 4);
+}
+

Powered by Google App Engine
This is Rietveld 408576698