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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/resources-panel.html

Issue 2412023002: DevTools: migrate InspectorView to tabbed view location. (Closed)
Patch Set: made layers panel closeable. Created 4 years, 2 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="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script src="indexeddb-test.js"></script> 4 <script src="indexeddb-test.js"></script>
5 <script src="../resources-test.js"></script> 5 <script src="../resources-test.js"></script>
6 <script src="../console-test.js"></script> 6 <script src="../console-test.js"></script>
7 <script> 7 <script>
8 function test() 8 function test()
9 { 9 {
10 var mainFrameId = InspectorTest.resourceTreeModel.mainFrame.id; 10 var mainFrameId = InspectorTest.resourceTreeModel.mainFrame.id;
(...skipping 28 matching lines...) Expand all
39 InspectorTest.deleteObjectStore(mainFrameId, databaseName, objectSto reName, step3); 39 InspectorTest.deleteObjectStore(mainFrameId, databaseName, objectSto reName, step3);
40 } 40 }
41 41
42 function step3() 42 function step3()
43 { 43 {
44 InspectorTest.deleteDatabase(mainFrameId, databaseName, callback); 44 InspectorTest.deleteDatabase(mainFrameId, databaseName, callback);
45 } 45 }
46 } 46 }
47 47
48 // Start with non-resources panel. 48 // Start with non-resources panel.
49 WebInspector.ConsolePanel.show(); 49 WebInspector.viewManager.showView("console");
50 50
51 InspectorTest.addSniffer(WebInspector.IndexedDBTreeElement.prototype, "_inde xedDBAdded", indexedDBAdded, true); 51 InspectorTest.addSniffer(WebInspector.IndexedDBTreeElement.prototype, "_inde xedDBAdded", indexedDBAdded, true);
52 function indexedDBAdded() 52 function indexedDBAdded()
53 { 53 {
54 InspectorTest.addResult("Database added."); 54 InspectorTest.addResult("Database added.");
55 } 55 }
56 56
57 InspectorTest.addSniffer(WebInspector.IndexedDBTreeElement.prototype, "_inde xedDBRemoved", indexedDBRemoved, true); 57 InspectorTest.addSniffer(WebInspector.IndexedDBTreeElement.prototype, "_inde xedDBRemoved", indexedDBRemoved, true);
58 function indexedDBRemoved() 58 function indexedDBRemoved()
59 { 59 {
60 InspectorTest.addResult("Database removed."); 60 InspectorTest.addResult("Database removed.");
61 } 61 }
62 62
63 InspectorTest.addSniffer(WebInspector.IndexedDBTreeElement.prototype, "_inde xedDBLoaded", indexedDBLoaded, true); 63 InspectorTest.addSniffer(WebInspector.IndexedDBTreeElement.prototype, "_inde xedDBLoaded", indexedDBLoaded, true);
64 function indexedDBLoaded() 64 function indexedDBLoaded()
65 { 65 {
66 InspectorTest.addResult("Database loaded."); 66 InspectorTest.addResult("Database loaded.");
67 } 67 }
68 68
69 // Switch to resources panel. 69 // Switch to resources panel.
70 WebInspector.ResourcesPanel.show(); 70 WebInspector.viewManager.showView("resources");
71 71
72 InspectorTest.addResult("Expanded IndexedDB tree element."); 72 InspectorTest.addResult("Expanded IndexedDB tree element.");
73 WebInspector.panels.resources.indexedDBListTreeElement.expand(); 73 WebInspector.panels.resources.indexedDBListTreeElement.expand();
74 InspectorTest.dumpIndexedDBTree(); 74 InspectorTest.dumpIndexedDBTree();
75 InspectorTest.addResult("Created database."); 75 InspectorTest.addResult("Created database.");
76 createDatabase(databaseCreated); 76 createDatabase(databaseCreated);
77 77
78 function databaseCreated() 78 function databaseCreated()
79 { 79 {
80 indexedDBModel = InspectorTest.indexedDBModel(); 80 indexedDBModel = InspectorTest.indexedDBModel();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 InspectorTest.completeTest(); 117 InspectorTest.completeTest();
118 } 118 }
119 } 119 }
120 120
121 </script> 121 </script>
122 </head> 122 </head>
123 <body onload="runTest()"> 123 <body onload="runTest()">
124 <p>Tests IndexedDB tree element on resources panel.</p> 124 <p>Tests IndexedDB tree element on resources panel.</p>
125 </body> 125 </body>
126 </html> 126 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698