OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../http/tests/inspector/inspector-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 function test() | 6 function test() |
7 { | 7 { |
8 var d = []; | 8 var d = []; |
9 for (var i = 1000; i < 1256; ++i) | 9 for (var i = 1000; i < 1256; ++i) |
10 d.push(i); | 10 d.push(i); |
11 var object = {a: "b", c: d}; | 11 var object = {a: "b", c: d}; |
12 var localObject = SDK.RemoteObject.fromLocalObject(object); | 12 var localObject = SDK.RemoteObject.fromLocalObject(object); |
13 | 13 |
14 var propertiesSection = new Components.ObjectPropertiesSection(localObject,
"local object"); | 14 var propertiesSection = new ObjectUI.ObjectPropertiesSection(localObject, "l
ocal object"); |
15 propertiesSection.expand(); | 15 propertiesSection.expand(); |
16 propertiesSection.objectTreeElement().childAt(1).expand(); | 16 propertiesSection.objectTreeElement().childAt(1).expand(); |
17 | 17 |
18 InspectorTest.addResult(InspectorTest.textContentWithLineBreaks(propertiesSe
ction.element)); | 18 InspectorTest.addResult(InspectorTest.textContentWithLineBreaks(propertiesSe
ction.element)); |
19 InspectorTest.completeTest(); | 19 InspectorTest.completeTest(); |
20 } | 20 } |
21 | 21 |
22 </script> | 22 </script> |
23 </head> | 23 </head> |
24 | 24 |
25 <body onload="runTest()"> | 25 <body onload="runTest()"> |
26 <p>Test that ObjectPropertiesSection works with local remote objects.</p> | 26 <p>Test that ObjectPropertiesSection works with local remote objects.</p> |
27 </body> | 27 </body> |
28 </html> | 28 </html> |
OLD | NEW |