3 <script type=
"text/javascript" src=
"../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
8 InspectorTest
.sendCommand("Runtime.evaluate", { "expression": "({p1: {a:1}, p2: {b:'foo', bb:'bar'}})" }, callbackEvaluate
);
10 function callbackEvaluate(result
)
12 InspectorTest
.sendCommand("Runtime.getProperties", { "objectId": result
.result
.result
.objectId
, "ownProperties": true }, callbackGetProperties
.bind(null, false));
13 InspectorTest
.sendCommand("Runtime.getProperties", { "objectId": result
.result
.result
.objectId
, "ownProperties": true, "generatePreview": true }, callbackGetProperties
.bind(null, true));
16 function callbackGetProperties(completeTest
, result
)
18 for (var property
of result
.result
.result
) {
19 if (!property
.value
|| property
.name
=== "__proto__")
21 if (property
.value
.preview
)
22 InspectorTest
.log(property
.name
+ " : " + JSON
.stringify(property
.value
.preview
, null, 4));
24 InspectorTest
.log(property
.name
+ " : " + property
.value
.description
);
27 InspectorTest
.completeTest();
32 <body onLoad=
"runTest();">