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

Side by Side Diff: LayoutTests/inspector/profiler/heap-snapshot-loader.html

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 test() 7 function test()
8 { 8 {
9 WebInspector.inspectorView.showPanel("profiles"); 9 WebInspector.inspectorView.showPanel("profiles");
10 var source = InspectorTest.createHeapSnapshotMockRaw(); 10 var source = InspectorTest.createHeapSnapshotMockRaw();
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 function tempFileReady() 32 function tempFileReady()
33 { 33 {
34 callback(this); 34 callback(this);
35 } 35 }
36 InspectorTest.addSniffer(WebInspector.HeapProfileHeader.prototype, "_did WriteToTempFile", tempFileReady); 36 InspectorTest.addSniffer(WebInspector.HeapProfileHeader.prototype, "_did WriteToTempFile", tempFileReady);
37 profileType._takeHeapSnapshot(function() {}); 37 profileType._takeHeapSnapshot(function() {});
38 } 38 }
39 39
40 WebInspector.consoleModel.log = function(message) { 40 WebInspector.console.log = function(message) {
41 InspectorTest.addResult("WebInspector.consoleModel.log: " + message); 41 InspectorTest.addResult("WebInspector.consoleModel.log: " + message);
42 } 42 }
43 43
44 InspectorTest.runTestSuite([ 44 InspectorTest.runTestSuite([
45 function heapSnapshotSaveToFileTest(next) 45 function heapSnapshotSaveToFileTest(next)
46 { 46 {
47 function snapshotLoaded(profileHeader) 47 function snapshotLoaded(profileHeader)
48 { 48 {
49 var savedSnapshotData; 49 var savedSnapshotData;
50 function saveMock(url, data) 50 function saveMock(url, data)
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 </script> 135 </script>
136 </head> 136 </head>
137 137
138 <body onload="runTest()"> 138 <body onload="runTest()">
139 <p> 139 <p>
140 This test checks HeapSnapshots loader. 140 This test checks HeapSnapshots loader.
141 </p> 141 </p>
142 142
143 </body> 143 </body>
144 </html> 144 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698