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

Side by Side Diff: test/inspector/heap-profiler/take-heap-snapshot-on-pause.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
« no previous file with comments | « test/inspector/debugger/wasm-stepping-expected.txt ('k') | test/inspector/json-parse.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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. 3 // found in the LICENSE file.
4 4
5 InspectorTest.log('Checks that takeHeapSnapshot uses empty accessing_context for access \ 5 let {session, contextGroup, Protocol} = InspectorTest.start('Checks that takeHea pSnapshot uses empty accessing_context for access \
6 checks.'); 6 checks.');
7 7
8 InspectorTest.addScript(` 8 contextGroup.addScript(`
9 function testFunction() { 9 function testFunction() {
10 var array = [ inspector.createObjectWithStrictCheck() ]; 10 var array = [ inspector.createObjectWithStrictCheck() ];
11 debugger; 11 debugger;
12 } 12 }
13 //# sourceURL=test.js`); 13 //# sourceURL=test.js`);
14 14
15 Protocol.Debugger.onScriptParsed(message => { 15 Protocol.Debugger.onScriptParsed(message => {
16 Protocol.HeapProfiler.takeHeapSnapshot({ reportProgress: false }) 16 Protocol.HeapProfiler.takeHeapSnapshot({ reportProgress: false })
17 .then(() => Protocol.Debugger.resume()); 17 .then(() => Protocol.Debugger.resume());
18 }); 18 });
19 19
20 Protocol.Debugger.enable(); 20 Protocol.Debugger.enable();
21 Protocol.HeapProfiler.enable(); 21 Protocol.HeapProfiler.enable();
22 Protocol.Runtime.evaluate({ expression: 'testFunction()' }) 22 Protocol.Runtime.evaluate({ expression: 'testFunction()' })
23 .then(() => InspectorTest.log('Successfully finished')) 23 .then(() => InspectorTest.log('Successfully finished'))
24 .then(InspectorTest.completeTest); 24 .then(InspectorTest.completeTest);
OLDNEW
« no previous file with comments | « test/inspector/debugger/wasm-stepping-expected.txt ('k') | test/inspector/json-parse.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698