OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |