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

Side by Side Diff: test/inspector/runtime/runtime-restore.js

Issue 2891213002: [inspector] Refactor protocol-test.js (Closed)
Patch Set: comments addressed Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 the V8 project authors. All rights reserved. 1 // Copyright 2017 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.v8 3 // found in the LICENSE file.v8
4 4
5 InspectorTest.log('Checks that Runtime agent correctly restore its state.'); 5 let {session, contextGroup, Protocol} = InspectorTest.start('Checks that Runtime agent correctly restore its state.');
6 6
7 InspectorTest.addScript(` 7 contextGroup.addScript(`
8 var formatter = { 8 var formatter = {
9 header: function(x) 9 header: function(x)
10 { 10 {
11 return ["span", {}, "Header formatted ", x.name]; 11 return ["span", {}, "Header formatted ", x.name];
12 }, 12 },
13 13
14 hasBody: function(x) 14 hasBody: function(x)
15 { 15 {
16 return true; 16 return true;
17 }, 17 },
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 .then(Protocol.Runtime.disable) 66 .then(Protocol.Runtime.disable)
67 .then(() => { 67 .then(() => {
68 Protocol.Runtime.onConsoleAPICalled(null); 68 Protocol.Runtime.onConsoleAPICalled(null);
69 next(); 69 next();
70 }); 70 });
71 }, 71 },
72 ]); 72 ]);
73 73
74 function reconnect() { 74 function reconnect() {
75 InspectorTest.logMessage('will reconnect..'); 75 InspectorTest.logMessage('will reconnect..');
76 InspectorTest.session.reconnect(); 76 session.reconnect();
77 } 77 }
OLDNEW
« no previous file with comments | « test/inspector/runtime/runtime-evaluate-with-dirty-context.js ('k') | test/inspector/runtime/set-or-map-entries.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698