3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
8 InspectorTest
.RuntimeAgent
.evaluate("document.all", "console", false, didGetHTMLAllCollection
.bind(this));
9 function didGetHTMLAllCollection(error
, result
, wasThrown
)
11 if (error
|| wasThrown
) {
12 InspectorTest
.addResult("FAILED: " + error
);
13 InspectorTest
.completeTest();
16 var htmlAllCollection
= InspectorTest
.runtimeModel
.createRemoteObject(result
);
17 htmlAllCollection
.callFunctionJSON("function(collection) { return this.length + collection.length; }", [{objectId
: htmlAllCollection
.objectId
}], didGetLength
.bind(this));
20 function didGetLength(len
)
22 if (!len
|| typeof len
!== "number")
23 InspectorTest
.addResult("FAILED: unexpected document.all.length: " + len
);
25 InspectorTest
.addResult("PASSED: retrieved length of document.all");
26 InspectorTest
.completeTest();
33 <body onload=
"runTest()">
35 Tests that HTMLAllCollection properties can be inspected.