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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/cache/sync-xhr-304.html

Issue 1558703002: Synchronous requests that get a 304 clobber the cached response body. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment Created 4 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
OLDNEW
(Empty)
1 Send 2 sync xhrs to the same url such that the 2nd should return a 304. Ensure t hat the responseText for the 2nd XHR is non-empty.<br>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5
6 var xhr = new XMLHttpRequest();
7 xhr.open("GET", "resources/etag.php", false);
8 xhr.send(null);
9
10 var xhr2 = new XMLHttpRequest();
11 xhr2.open("GET", "resources/etag.php", false);
12 xhr2.send(null);
13
14 document.body.appendChild(document.createTextNode("xhr2.responseText: " + xhr2.r esponseText));
15
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698