OLD | NEW |
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 Loading... |
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(); |
OLD | NEW |