3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
14 B
.prototype = new A();
19 function fail(message
)
21 InspectorTest
.addResult(message
);
22 InspectorTest
.completeTest();
25 InspectorTest
.RuntimeAgent
.evaluate("window.b", step1
);
27 function step1(error
, result
)
29 InspectorTest
.RuntimeAgent
.getProperties(result
.objectId
, /* isOwnProperty */ false, step2
);
32 function step2(error
, properties
)
35 return fail("Error took place during InspectorTest.RuntimeAgent.getProperties call");
38 return fail("Properties do not exist");
40 for (var i
= 0; i
< properties
.length
; i
++) {
41 var property
= properties
[i
];
42 if (property
.name
.match(/^test/))
43 InspectorTest
.addResult("property.name==\"" + property
.name
+ "\" isOwn==\"" + property
.isOwn
+ "\"");
45 InspectorTest
.completeTest();
52 <body onload=
"runTest()">
54 Tests RemoteObject.getProperties.