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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/skip-waiting-worker.js

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 years, 2 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/imported/wpt/service-workers/service-worker/resources/skip-waiting-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-worker.js b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/skip-waiting-worker.js
similarity index 95%
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-worker.js
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/skip-waiting-worker.js
index 4b09af52e3f7176ed48d461a4a36e4c0e9701937..3fc1d1e237aacfb86aa1e3e36287db9f45ebf756 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-worker.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/skip-waiting-worker.js
@@ -1,7 +1,7 @@
importScripts('worker-testharness.js');
promise_test(function() {
- return self.skipWaiting()
+ return skipWaiting()
.then(function(result) {
assert_equals(result, undefined,
'Promise should be resolved with undefined');

Powered by Google App Engine
This is Rietveld 408576698