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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/reload-memory-cache.html

Issue 2460573002: Disable memory caching of XHRs (Closed)
Patch Set: reload-from-cache test uses <script> Created 4 years, 1 month 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/Source/core/inspector/InspectorNetworkAgent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="inspector-protocol-test.js"></script> 4 <script src="inspector-protocol-test.js"></script>
5 <script src="resources/blank.js"></script>
6
5 <script> 7 <script>
6 (function ()
7 {
8 var xhr = new XMLHttpRequest();
9 xhr.open("GET", "resources/blank.js", true);
10 xhr.send(null);
11 })();
12 8
13 function test() 9 function test()
14 { 10 {
15 InspectorTest.eventHandler["Network.requestWillBeSent"] = onRequestWillBeSen t; 11 InspectorTest.eventHandler["Network.requestWillBeSent"] = onRequestWillBeSen t;
16 InspectorTest.eventHandler["Network.responseReceived"] = onResponseReceived; 12 InspectorTest.eventHandler["Network.responseReceived"] = onResponseReceived;
17 InspectorTest.eventHandler["Network.requestServedFromCache"] = onServedFromC ache; 13 InspectorTest.eventHandler["Network.requestServedFromCache"] = onServedFromC ache;
18 14
19 enableNetwork(); 15 enableNetwork();
20 16
21 function enableNetwork() 17 function enableNetwork()
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 InspectorTest.completeTest(); 58 InspectorTest.completeTest();
63 } 59 }
64 } 60 }
65 } 61 }
66 </script> 62 </script>
67 </head> 63 </head>
68 <body onload="runTest();"> 64 <body onload="runTest();">
69 <p>Tests that reloads when coming from protocol still use memory cache.</p> 65 <p>Tests that reloads when coming from protocol still use memory cache.</p>
70 </body> 66 </body>
71 </html> 67 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698