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