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

Side by Side Diff: test/inspector/runtime/get-properties.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 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 InspectorTest.log('Checks Runtime.getProperties method'); 5 let {session, contextGroup, Protocol} = InspectorTest.start('Checks Runtime.getP roperties method');
6 6
7 InspectorTest.runAsyncTestSuite([ 7 InspectorTest.runAsyncTestSuite([
8 async function testObject5() { 8 async function testObject5() {
9 let objectId = (await Protocol.Runtime.evaluate({ 9 let objectId = (await Protocol.Runtime.evaluate({
10 expression: '(function(){var r = Object(5); r.foo = \'cat\';return r;})()' 10 expression: '(function(){var r = Object(5); r.foo = \'cat\';return r;})()'
11 })).result.result.objectId; 11 })).result.result.objectId;
12 let props = await Protocol.Runtime.getProperties({ objectId, ownProperties: true }); 12 let props = await Protocol.Runtime.getProperties({ objectId, ownProperties: true });
13 logGetPropertiesResult(props.result); 13 logGetPropertiesResult(props.result);
14 }, 14 },
15 15
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 var p = internalPropertyArray[i]; 89 var p = internalPropertyArray[i];
90 var v = p.value; 90 var v = p.value;
91 InspectorTest.log(" " + p.name + " " + v.type + " " + v.value); 91 InspectorTest.log(" " + p.name + " " + v.type + " " + v.value);
92 } 92 }
93 } 93 }
94 94
95 function NamedThingComparator(o1, o2) { 95 function NamedThingComparator(o1, o2) {
96 return o1.name === o2.name ? 0 : (o1.name < o2.name ? -1 : 1); 96 return o1.name === o2.name ? 0 : (o1.name < o2.name ? -1 : 1);
97 } 97 }
98 } 98 }
OLDNEW
« no previous file with comments | « test/inspector/runtime/exception-thrown.js ('k') | test/inspector/runtime/get-properties-on-proxy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698