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

Side by Side Diff: LayoutTests/http/tests/inspector/resource-tree/resource-tree-mimetype.html

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script src="resource-tree-test.js"></script> 4 <script src="resource-tree-test.js"></script>
5 <link rel="stylesheet" href="resources/styles-initial.css"> 5 <link rel="stylesheet" href="resources/styles-initial.css">
6 <script> 6 <script>
7 function test() 7 function test()
8 { 8 {
9 WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod el.EventTypes.CachedResourcesLoaded, step2); 9 InspectorTest.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMo del.EventTypes.CachedResourcesLoaded, step2);
10 WebInspector.resourceTreeModel._fetchResourceTree(); 10 InspectorTest.resourceTreeModel._fetchResourceTree();
11 11
12 function step2() 12 function step2()
13 { 13 {
14 function format(resource) 14 function format(resource)
15 { 15 {
16 return resource.resourceType().name() + " " + resource.mimeType + " " + resource.url; 16 return resource.resourceType().name() + " " + resource.mimeType + " " + resource.url;
17 } 17 }
18 18
19 InspectorTest.dumpResources(format); 19 InspectorTest.dumpResources(format);
20 InspectorTest.completeTest(); 20 InspectorTest.completeTest();
21 } 21 }
22 } 22 }
23 </script> 23 </script>
24 </head> 24 </head>
25 <body onload="runTest()"> 25 <body onload="runTest()">
26 <p>Tests that resources panel correctly shows mime type when it loads data from memory cache.</p> 26 <p>Tests that resources panel correctly shows mime type when it loads data from memory cache.</p>
27 <a href="https://bugs.webkit.org/show_bug.cgi?id=63701">Bug 63701</a> 27 <a href="https://bugs.webkit.org/show_bug.cgi?id=63701">Bug 63701</a>
28 <img src="resources/empty.png"> 28 <img src="resources/empty.png">
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698