OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 function test() | 6 function test() |
7 { | 7 { |
8 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "({p1: {a:1},
p2: {b:'foo', bb:'bar'}})" }, callbackEvaluate); | 8 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "({p1: {a:1},
p2: {b:'foo', bb:'bar'}})" }, callbackEvaluate); |
9 | 9 |
10 function callbackEvaluate(result) | 10 function callbackEvaluate(result) |
11 { | 11 { |
12 InspectorTest.sendCommand("Runtime.getProperties", { "objectId": result.
result.result.objectId, "ownProperties": true }, callbackGetProperties.bind(null
, false)); | 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 }, callba
ckGetProperties.bind(null, true)); | 13 InspectorTest.sendCommand("Runtime.getProperties", { "objectId": result.
result.result.objectId, "ownProperties": true, "generatePreview": true }, callba
ckGetProperties.bind(null, true)); |
(...skipping 11 matching lines...) Expand all Loading... |
25 } | 25 } |
26 if (completeTest) | 26 if (completeTest) |
27 InspectorTest.completeTest(); | 27 InspectorTest.completeTest(); |
28 } | 28 } |
29 } | 29 } |
30 </script> | 30 </script> |
31 </head> | 31 </head> |
32 <body onLoad="runTest();"> | 32 <body onLoad="runTest();"> |
33 </body> | 33 </body> |
34 </html> | 34 </html> |
OLD | NEW |