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

Side by Side Diff: LayoutTests/http/tests/inspector/resource-tree/resource-tree-no-xhrs.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="../network-test.js"></script> 4 <script src="../network-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 InspectorTest.makeSimpleXHR("GET", "resources/resource.php", false, step2); 8 InspectorTest.makeSimpleXHR("GET", "resources/resource.php", false, step2);
9 9
10 function step2() 10 function step2()
11 { 11 {
12 var resource = WebInspector.resourceTreeModel.resourceForURL("http://127 .0.0.1:8000/inspector/resource-tree/resources/resource.php"); 12 var resource = InspectorTest.resourceTreeModel.resourceForURL("http://12 7.0.0.1:8000/inspector/resource-tree/resources/resource.php");
13 InspectorTest.assertTrue(!resource, "XHR resource should not be added to resourceTreeModel."); 13 InspectorTest.assertTrue(!resource, "XHR resource should not be added to resourceTreeModel.");
14 InspectorTest.completeTest(); 14 InspectorTest.completeTest();
15 } 15 }
16 } 16 }
17 </script> 17 </script>
18 </head> 18 </head>
19 <body onload="runTest()"> 19 <body onload="runTest()">
20 <p>Tests that XHRs are not added to resourceTreeModel.</p> 20 <p>Tests that XHRs are not added to resourceTreeModel.</p>
21 <a href="https://bugs.webkit.org/show_bug.cgi?id=60321">Bug 60321</a> 21 <a href="https://bugs.webkit.org/show_bug.cgi?id=60321">Bug 60321</a>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698