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

Side by Side Diff: LayoutTests/http/tests/inspector/fragment.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 type="text/javascript"> 5 <script type="text/javascript">
6 function loadIFrame() 6 function loadIFrame()
7 { 7 {
8 var iframe = document.createElement("iframe"); 8 var iframe = document.createElement("iframe");
9 iframe.src = "resources/fragment-frame.html#34"; 9 iframe.src = "resources/fragment-frame.html#34";
10 iframe.onload = frameLoaded; 10 iframe.onload = frameLoaded;
(...skipping 12 matching lines...) Expand all
23 InspectorTest.evaluateInPage("loadIFrame()", function() { }); 23 InspectorTest.evaluateInPage("loadIFrame()", function() { });
24 24
25 25
26 function step2() 26 function step2()
27 { 27 {
28 InspectorTest.runAfterPendingDispatches(step3); 28 InspectorTest.runAfterPendingDispatches(step3);
29 } 29 }
30 30
31 function step3() 31 function step3()
32 { 32 {
33 var childFrame = WebInspector.resourceTreeModel.mainFrame.childFrames[0] ; 33 var childFrame = InspectorTest.resourceTreeModel.mainFrame.childFrames[0 ];
34 InspectorTest.addResult("Child frame url: " + childFrame.url); 34 InspectorTest.addResult("Child frame url: " + childFrame.url);
35 var childFrameResource = childFrame.resources()[0]; 35 var childFrameResource = childFrame.resources()[0];
36 InspectorTest.addResult("Child frame resource url: " + childFrameResourc e.url); 36 InspectorTest.addResult("Child frame resource url: " + childFrameResourc e.url);
37 37
38 function filterFrame(request) 38 function filterFrame(request)
39 { 39 {
40 return request.url.indexOf("fragment-frame.html") !== -1 40 return request.url.indexOf("fragment-frame.html") !== -1
41 } 41 }
42 42
43 var request = InspectorTest.networkRequests().filter(filterFrame)[0]; 43 var request = InspectorTest.networkRequests().filter(filterFrame)[0];
44 InspectorTest.addResult("Child frame request url: " + request.url); 44 InspectorTest.addResult("Child frame request url: " + request.url);
45 InspectorTest.completeTest(step2); 45 InspectorTest.completeTest(step2);
46 } 46 }
47 } 47 }
48 </script> 48 </script>
49 </head> 49 </head>
50 <body onload="runTest()"> 50 <body onload="runTest()">
51 <p>Tests fragment is stripped from url by resource and page agents.</p> 51 <p>Tests fragment is stripped from url by resource and page agents.</p>
52 </body> 52 </body>
53 </html> 53 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698