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

Side by Side Diff: LayoutTests/http/tests/fetch/script-tests/cache-override.js

Issue 1267263003: Rename fetch layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 if (self.importScripts) { 1 if (self.importScripts) {
2 importScripts('../resources/fetch-test-helpers.js'); 2 importScripts('../resources/fetch-test-helpers.js');
3 } 3 }
4 4
5 promise_test(function() { 5 promise_test(function() {
6 var lastModified = ''; 6 var lastModified = '';
7 var eTag = ''; 7 var eTag = '';
8 var url = '../resources/doctype.html'; 8 var url = '../resources/doctype.html';
9 var expectedText = '<!DOCTYPE html>\n'; 9 var expectedText = '<!DOCTYPE html>\n';
10 return fetch(url) 10 return fetch(url)
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 }) 178 })
179 .then(function(res) { 179 .then(function(res) {
180 assert_equals( 180 assert_equals(
181 res.status, 304 , 181 res.status, 304 ,
182 'When the server returns 304 and there\'s a cache miss, the ' + 182 'When the server returns 304 and there\'s a cache miss, the ' +
183 'response status must be 304.'); 183 'response status must be 304.');
184 }); 184 });
185 }, '304 handling for fetch().'); 185 }, '304 handling for fetch().');
186 186
187 done(); 187 done();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698