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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/fragment.html

Issue 2626553002: [Devtools][Code health] Changed NetworkRequest.url to proper getter/setter (Closed)
Patch Set: changes Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network-preflight-options.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 19 matching lines...) Expand all
30 30
31 function step3() 31 function step3()
32 { 32 {
33 var childFrame = InspectorTest.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network-preflight-options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698