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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium.update-served-from-cache.html

Issue 2904063003: Upstream service worker "update" tests to WPT (Closed)
Patch Set: Move Chromium-specific test Created 3 years, 6 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- This test is prefixed with `chromium.` because it asserts the behavior of
3 the HTTP cache. This behavior does not violate any standard but neither is it
4 required. -->
2 <title>Service Worker: Registration update() served from cache</title> 5 <title>Service Worker: Registration update() served from cache</title>
3 <script src="../resources/testharness.js"></script> 6 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 7 <script src="../resources/testharnessreport.js"></script>
5 <script src="resources/test-helpers.js"></script> 8 <script src="resources/test-helpers.js"></script>
6 <script> 9 <script>
7 promise_test(function(t) { 10 promise_test(function(t) {
8 var scope = 'resources/scope/update-served-from-cache'; 11 var scope = 'resources/scope/update-served-from-cache';
9 var worker_url = 'resources/update-served-from-cache-worker.php'; 12 var worker_url = 'resources/update-served-from-cache-worker.php';
10 var registration; 13 var registration;
11 14
(...skipping 12 matching lines...) Expand all
24 .then(function() { 27 .then(function() {
25 // installing should be null as update() does not trigger install. 28 // installing should be null as update() does not trigger install.
26 assert_equals( 29 assert_equals(
27 registration.installing, 30 registration.installing,
28 null, 31 null,
29 'installing should be null as the script was served from cache.'); 32 'installing should be null as the script was served from cache.');
30 return service_worker_unregister_and_done(t, scope); 33 return service_worker_unregister_and_done(t, scope);
31 }); 34 });
32 }, 'Update a registration served from cache.'); 35 }, 'Update a registration served from cache.');
33 </script> 36 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698