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

Side by Side Diff: LayoutTests/http/tests/inspector/network/network-initiator.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 6
7 /*function addClassToDiv() 7 /*function addClassToDiv()
8 { 8 {
9 // We need to setTimeout, to make sure that style recalculation scheduling 9 // We need to setTimeout, to make sure that style recalculation scheduling
10 // is really triggered by adding a class to the div. 10 // is really triggered by adding a class to the div.
(...skipping 20 matching lines...) Expand all
31 { 31 {
32 var requests = InspectorTest.networkRequests(); 32 var requests = InspectorTest.networkRequests();
33 for (var i = 0; i < requests.length; ++i) { 33 for (var i = 0; i < requests.length; ++i) {
34 if (url.test(requests[i].url)) 34 if (url.test(requests[i].url))
35 return requests[i]; 35 return requests[i];
36 } 36 }
37 } 37 }
38 38
39 /*function step1() 39 /*function step1()
40 { 40 {
41 WebInspector.networkManager.addEventListener(WebInspector.NetworkManager .EventTypes.RequestFinished, onRequest); 41 InspectorTest.networkManager.addEventListener(WebInspector.NetworkManage r.EventTypes.RequestFinished, onRequest);
42 InspectorTest.evaluateInPage("addClassToDiv()", step2); 42 InspectorTest.evaluateInPage("addClassToDiv()", step2);
43 } 43 }
44 44
45 function onRequest(event) 45 function onRequest(event)
46 { 46 {
47 var request = event.data; 47 var request = event.data;
48 if (/size=300/.test(request.url)) 48 if (/size=300/.test(request.url))
49 step2(); 49 step2();
50 }*/ 50 }*/
51 51
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 } 95 }
96 96
97 </script> 97 </script>
98 </head> 98 </head>
99 <body onload="runTest()"> 99 <body onload="runTest()">
100 <p>Tests resources initiator for images initiated by IMG tag, static CSS, CSS cl ass added from JavaScript and XHR.</p> 100 <p>Tests resources initiator for images initiated by IMG tag, static CSS, CSS cl ass added from JavaScript and XHR.</p>
101 <a href="https://bugs.webkit.org/show_bug.cgi?id=65105">Bug 65105</a> 101 <a href="https://bugs.webkit.org/show_bug.cgi?id=65105">Bug 65105</a>
102 </body> 102 </body>
103 </html> 103 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698