Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-click-event.https.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-click-event.https.html b/third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-click-event.https.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..40b5dc2f703dd719f8bdce5dc32d15b2df3bb8be |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-click-event.https.html |
| @@ -0,0 +1,19 @@ |
| +<!doctype html> |
| +<meta charset="utf-8"> |
| +<title>Background Fetch API: BackgroundFetchClickEvent tests</title> |
| +<script src="/resources/testharness.js"></script> |
| +<script src="/resources/testharnessreport.js"></script> |
| +<script src="/serviceworker/resources/test-helpers.js"></script> |
| + |
| +<!-- TODO(peter): Upstream this test to WPT when the directory has been imported. --> |
| + |
| +<h1>BackgroundFetchClickEvent</h1> |
| +<p>This test validates that the BackgroundFetchClickEvent is exposed and can |
| +be constructed with a tag and a valid state.</p> |
| + |
| +<script> |
| +'use strict'; |
| + |
| +// This test needs to be ran in a Service Worker. |
|
harkness
2017/03/09 19:41:15
micro-nit: run
Peter Beverloo
2017/03/10 14:03:49
Done.
|
| +service_worker_test('resources/background-fetch-click-event-worker.js'); |
| +</script> |