Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/local-object-properties-section.html

Issue 2714833002: DevTools: use interface for ObjectUI and make it a non-autostart module (Closed)
Patch Set: cl fb Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 initialize_TestObject() {
7 InspectorTest.preloadModule("object_ui");
8 }
9
6 function test() 10 function test()
7 { 11 {
8 var d = []; 12 var d = [];
9 for (var i = 1000; i < 1256; ++i) 13 for (var i = 1000; i < 1256; ++i)
10 d.push(i); 14 d.push(i);
11 var object = {a: "b", c: d}; 15 var object = {a: "b", c: d};
12 var localObject = SDK.RemoteObject.fromLocalObject(object); 16 var localObject = SDK.RemoteObject.fromLocalObject(object);
13 17
14 var propertiesSection = new ObjectUI.ObjectPropertiesSection(localObject, "l ocal object"); 18 var propertiesSection = new ObjectUI.ObjectPropertiesSection(localObject, "l ocal object");
15 propertiesSection.expand(); 19 propertiesSection.expand();
16 propertiesSection.objectTreeElement().childAt(1).expand(); 20 propertiesSection.objectTreeElement().childAt(1).expand();
17 21
18 InspectorTest.addResult(InspectorTest.textContentWithLineBreaks(propertiesSe ction.element)); 22 InspectorTest.addResult(InspectorTest.textContentWithLineBreaks(propertiesSe ction.element));
19 InspectorTest.completeTest(); 23 InspectorTest.completeTest();
20 } 24 }
21 25
22 </script> 26 </script>
23 </head> 27 </head>
24 28
25 <body onload="runTest()"> 29 <body onload="runTest()">
26 <p>Test that ObjectPropertiesSection works with local remote objects.</p> 30 <p>Test that ObjectPropertiesSection works with local remote objects.</p>
27 </body> 31 </body>
28 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698