Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / inspector / resource-tree / resource-tree-mimetype.html
1 <html>
2 <head>
3 <script src="../inspector-test.js"></script>
4 <script src="resource-tree-test.js"></script>
5 <link rel="stylesheet" href="resources/styles-initial.css">
6 <script>
7 function test()
8 {
9     WebInspector.inspectorView.panel("network")._networkLogView._reset();
10     WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.CachedResourcesLoaded, step2);
11     WebInspector.resourceTreeModel._fetchResourceTree();
12
13     function step2()
14     {
15         function format(resource)
16         {
17             return resource.type.name() + " " + resource.mimeType + " " + resource.url;
18         }
19
20         InspectorTest.dumpResources(format);
21         InspectorTest.completeTest();
22     }
23 }
24 </script>
25 </head>
26 <body onload="runTest()">
27 <p>Tests that resources panel correctly shows mime type when it loads data from memory cache.</p>
28 <a href="https://bugs.webkit.org/show_bug.cgi?id=63701">Bug 63701</a>
29 <img src="resources/empty.png">
30 </body>
31 </html>