| OLD | NEW |
| 1 importScripts('worker-test-harness.js'); | 1 importScripts('worker-testharness.js'); |
| 2 importScripts('../../resources/testharness-helpers.js'); |
| 2 importScripts('test-helpers.js'); | 3 importScripts('test-helpers.js'); |
| 3 | 4 |
| 4 promise_test(function() { | 5 promise_test(function() { |
| 5 var lastModified = ''; | 6 var lastModified = ''; |
| 6 var eTag = ''; | 7 var eTag = ''; |
| 7 var url = 'other.html'; | 8 var url = 'other.html'; |
| 8 var expectedText = '<!DOCTYPE html>\n<title>Other</title>\n' + | 9 var expectedText = '<!DOCTYPE html>\n<title>Other</title>\n' + |
| 9 'Here\'s an other html file.\n'; | 10 'Here\'s an other html file.\n'; |
| 10 return fetch(url) | 11 return fetch(url) |
| 11 .then(function(res) { | 12 .then(function(res) { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 189 |
| 189 return fetch('fetch-status.php?status=304'); | 190 return fetch('fetch-status.php?status=304'); |
| 190 }) | 191 }) |
| 191 .then(function(res) { | 192 .then(function(res) { |
| 192 assert_equals( | 193 assert_equals( |
| 193 res.status, 304 , | 194 res.status, 304 , |
| 194 'When the server returns 304 and there\'s a cache miss, the ' + | 195 'When the server returns 304 and there\'s a cache miss, the ' + |
| 195 'response status must be 304.'); | 196 'response status must be 304.'); |
| 196 }) | 197 }) |
| 197 }, '304 handling for fetch().'); | 198 }, '304 handling for fetch().'); |
| OLD | NEW |