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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/interfaces.https.html

Issue 2933913002: Upstream service worker prototype test to WPT
Patch Set: Migrate test for immutable prototype 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/interfaces.https.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/interfaces.https.html b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/interfaces.https.html
deleted file mode 100644
index 889142fe3af962ecbf9376a6d78c5ff5cc01cf6f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/interfaces.https.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<!DOCTYPE html>
-<title>Service Worker: Interfaces</title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script src="resources/interfaces.js"></script>
-<script src="resources/test-helpers.sub.js"></script>
-<script>
-
-test(function() {
- var EVENT_HANDLER = 'object';
- verify_interface(
- 'ServiceWorkerContainer', navigator.serviceWorker,
- {
- register: 'function',
- getRegistration: 'function',
- oncontrollerchange: EVENT_HANDLER,
- onmessage: EVENT_HANDLER,
- onmessageerror: EVENT_HANDLER
- });
- }, 'Interfaces and attributes of ServiceWorkerContainer');
-
-async_test(function(t) {
- var EVENT_HANDLER = 'object';
- var scope = 'resources/scope/interfaces-and-attributes';
-
- service_worker_unregister_and_register(
- t, 'resources/empty-worker.js', scope)
- .then(function(registration) {
- verify_interface(
- 'ServiceWorkerRegistration', registration,
- {
- installing: 'object',
- waiting: 'object',
- active: 'object',
- scope: 'string',
- unregister: 'function',
- onupdatefound: EVENT_HANDLER
- });
- verify_interface(
- 'ServiceWorker', registration.installing,
- {
- scriptURL: 'string',
- state: 'string',
- onstatechange: EVENT_HANDLER
- });
- return registration.unregister();
- })
- .then(function() {
- t.done();
- })
- .catch(unreached_rejection(t));
- }, 'Interfaces and attributes of ServiceWorker');
-
-service_worker_test(
- 'resources/interfaces-worker.sub.js',
- 'Interfaces and attributes in ServiceWorkerGlobalScope');
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698