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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/interfaces-window.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-window.https.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/interfaces-window.https.html b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/interfaces-window.https.html
new file mode 100644
index 0000000000000000000000000000000000000000..7097df0616061e4872cf23ab04ccf97bf8f9f079
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/interfaces-window.https.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<title>Service Worker: Interfaces</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/WebIDLParser.js"></script>
+<script src="/resources/idlharness.js"></script>
+<script src="resources/interfaces-idls.js"></script>
+<script src="resources/test-helpers.sub.js"></script>
+<script>
+'use strict';
+
+var idlArray = new IdlArray();
+idlArray.add_untested_idls(idls.untested);
+idlArray.add_idls(idls.tested);
+idlArray.add_objects({
+ ServiceWorkerContainer: ['navigator.serviceWorker']
+ });
+
+promise_test(function(t) {
+ var scope = 'resources/scope/interfaces-and-attributes';
+
+ return service_worker_unregister_and_register(
+ t, 'resources/empty-worker.js', scope)
+ .then(function(registration) {
+ t.add_cleanup(function() {
+ registration.unregister();
+ });
+
+ window.registrationInstance = registration;
+ idlArray.add_objects({
+ ServiceWorkerRegistration: ['window.registrationInstance'],
+ ServiceWorker: ['window.registrationInstance.installing']
+ });
+ idlArray.test();
+ });
+ }, 'test setup (worker registration)');
+</script>

Powered by Google App Engine
This is Rietveld 408576698