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

Side by Side Diff: LayoutTests/inspector/profiler/heap-snapshot-inspect-dom-wrapper.html

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 src="heap-snapshot-test.js"></script> 4 <script src="heap-snapshot-test.js"></script>
5 <script> 5 <script>
6 6
7 function handleLoad() 7 function handleLoad()
8 { 8 {
9 // Make sure there is a body wrapper. 9 // Make sure there is a body wrapper.
10 document.body.fieldOnDomWrapper = 2012; 10 document.body.fieldOnDomWrapper = 2012;
(...skipping 13 matching lines...) Expand all
24 InspectorTest.addResult("PASS: snapshot was taken"); 24 InspectorTest.addResult("PASS: snapshot was taken");
25 var profiles = heapProfileType.getProfiles(); 25 var profiles = heapProfileType.getProfiles();
26 26
27 if (!profiles.length) 27 if (!profiles.length)
28 return clear("FAILED: no profiles found"); 28 return clear("FAILED: no profiles found");
29 29
30 if (profiles.length > 1) 30 if (profiles.length > 1)
31 return clear("FAILED: wrong number of recorded profiles was found. p rofiles.length = " + profiles.length); 31 return clear("FAILED: wrong number of recorded profiles was found. p rofiles.length = " + profiles.length);
32 32
33 var profile = profiles[profiles.length - 1]; 33 var profile = profiles[profiles.length - 1];
34 WebInspector.panels.profiles.showProfile(profile); 34 WebInspector.inspectorView.panel("profiles").showProfile(profile);
35 } 35 }
36 36
37 function snapshotReceived(profile) 37 function snapshotReceived(profile)
38 { 38 {
39 InspectorTest.addResult("PASS: snapshot was received"); 39 InspectorTest.addResult("PASS: snapshot was received");
40 var snapshotProxy = profile._snapshotProxy; 40 var snapshotProxy = profile._snapshotProxy;
41 snapshotProxy.callMethod(didGetBodyWrapperIds, "idsOfObjectsWithName", " HTMLBodyElement"); 41 snapshotProxy.callMethod(didGetBodyWrapperIds, "idsOfObjectsWithName", " HTMLBodyElement");
42 } 42 }
43 43
44 function didGetBodyWrapperIds(bodyWrapperIds) 44 function didGetBodyWrapperIds(bodyWrapperIds)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 clear(); 82 clear();
83 } 83 }
84 84
85 } 85 }
86 86
87 function clear(errorMessage) 87 function clear(errorMessage)
88 { 88 {
89 if (errorMessage) 89 if (errorMessage)
90 InspectorTest.addResult(errorMessage); 90 InspectorTest.addResult(errorMessage);
91 setTimeout(done, 0); 91 setTimeout(done, 0);
92 WebInspector.panels.profiles._reset(); 92 WebInspector.inspectorView.panel("profiles")._reset();
93 return !errorMessage; 93 return !errorMessage;
94 } 94 }
95 95
96 function done() 96 function done()
97 { 97 {
98 InspectorTest.addResult("PASS: profile was deleted"); 98 InspectorTest.addResult("PASS: profile was deleted");
99 InspectorTest.completeTest(); 99 InspectorTest.completeTest();
100 } 100 }
101 } 101 }
102 102
103 </script> 103 </script>
104 </head> 104 </head>
105 105
106 <body onload="handleLoad()"> 106 <body onload="handleLoad()">
107 <p> 107 <p>
108 Test that resolving heap snaphot object to a JS object will not crash on DOM wra pper boilerplate. Test passes if it doesn't crash. 108 Test that resolving heap snaphot object to a JS object will not crash on DOM wra pper boilerplate. Test passes if it doesn't crash.
109 </p> 109 </p>
110 110
111 </body> 111 </body>
112 </html> 112 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698