Index: content/test/data/browsing_data/worker_setup.html |
diff --git a/content/test/data/browsing_data/worker_setup.html b/content/test/data/browsing_data/worker_setup.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..40059230ece85e7254f036b43de7874c5c56f47f |
--- /dev/null |
+++ b/content/test/data/browsing_data/worker_setup.html |
@@ -0,0 +1,21 @@ |
+<!-- Testing page used in ClearSiteDataThrottleTest. --> |
+ |
+<html> |
+ <head> |
+ </head> |
+ <body> |
+ <img id="some_resource" /> |
+ |
+ <script> |
+ // Set up a service worker to handle future requests. |
+ navigator.serviceWorker.register('/?file=worker.js') |
+ .then(() => navigator.serviceWorker.ready) |
+ .then(() => { |
+ // Inform the C++ side of this test that the worker |
+ // is now registered. |
+ document.title = 'service worker is ready'; |
+ console.log('Service worker is ready.'); |
+ }); |
+ </script> |
+ </body> |
+</html> |