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

Side by Side Diff: test/inspector/runtime/internal-properties.js

Issue 2713023004: [inspector] added reconnect method for tests (Closed)
Patch Set: rebased Created 3 years, 9 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. 3 // found in the LICENSE file.
4 4
5 print('Checks internal properties in Runtime.getProperties output'); 5 InspectorTest.log('Checks internal properties in Runtime.getProperties output');
6 6
7 InspectorTest.addScript(` 7 InspectorTest.addScript(`
8 function* foo() { 8 function* foo() {
9 yield 1; 9 yield 1;
10 } 10 }
11 var gen1 = foo(); 11 var gen1 = foo();
12 var gen2 = foo(); 12 var gen2 = foo();
13 //# sourceURL=test.js`, 7, 26); 13 //# sourceURL=test.js`, 7, 26);
14 14
15 Protocol.Runtime.enable(); 15 Protocol.Runtime.enable();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 ]); 61 ]);
62 62
63 function checkExpression(expression) 63 function checkExpression(expression)
64 { 64 {
65 InspectorTest.log(`expression: ${expression}`); 65 InspectorTest.log(`expression: ${expression}`);
66 return Protocol.Runtime.evaluate({ expression: expression }) 66 return Protocol.Runtime.evaluate({ expression: expression })
67 .then(message => Protocol.Runtime.getProperties({ objectId: message.result.r esult.objectId })) 67 .then(message => Protocol.Runtime.getProperties({ objectId: message.result.r esult.objectId }))
68 .then(message => { delete message.result.result; return message; }) 68 .then(message => { delete message.result.result; return message; })
69 .then(InspectorTest.logMessage); 69 .then(InspectorTest.logMessage);
70 } 70 }
OLDNEW
« no previous file with comments | « test/inspector/runtime/get-properties-on-proxy.js ('k') | test/inspector/runtime/internal-properties-entries.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698