Chromium Code Reviews

Side by Side Diff: test/inspector/runtime/compile-script.js

Issue 2891213002: [inspector] Refactor protocol-test.js (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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. 3 // found in the LICENSE file.
4 4
5 let {session, contextGroup, Protocol} = InspectorTest.start('Tests Runtime.compi leScript');
6
5 var executionContextId; 7 var executionContextId;
6 8
7 Protocol.Debugger.enable().then(onDebuggerEnabled); 9 Protocol.Debugger.enable().then(onDebuggerEnabled);
8 10
9 function onDebuggerEnabled() 11 function onDebuggerEnabled()
10 { 12 {
11 Protocol.Runtime.enable(); 13 Protocol.Runtime.enable();
12 Protocol.Debugger.onScriptParsed(onScriptParsed); 14 Protocol.Debugger.onScriptParsed(onScriptParsed);
13 Protocol.Runtime.onExecutionContextCreated(onExecutionContextCreated); 15 Protocol.Runtime.onExecutionContextCreated(onExecutionContextCreated);
14 } 16 }
(...skipping 26 matching lines...)
41 executionContextId: executionContextId 43 executionContextId: executionContextId
42 }).then(onCompiled); 44 }).then(onCompiled);
43 45
44 function onCompiled(messageObject) 46 function onCompiled(messageObject)
45 { 47 {
46 InspectorTest.log("compilation result: "); 48 InspectorTest.log("compilation result: ");
47 InspectorTest.logMessage(messageObject); 49 InspectorTest.logMessage(messageObject);
48 InspectorTest.log("-----"); 50 InspectorTest.log("-----");
49 } 51 }
50 } 52 }
OLDNEW

Powered by Google App Engine