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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-worker.js

Issue 2900183002: Upstream service wrkr "skipWaiting" tests to WPT (Closed)
Patch Set: Improve assertion message Created 3 years, 7 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/http/tests/serviceworker/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/http/tests/serviceworker/resources/skip-waiting-worker.js
deleted file mode 100644
index 4b09af52e3f7176ed48d461a4a36e4c0e9701937..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-worker.js
+++ /dev/null
@@ -1,21 +0,0 @@
-importScripts('worker-testharness.js');
-
-promise_test(function() {
- return self.skipWaiting()
- .then(function(result) {
- assert_equals(result, undefined,
- 'Promise should be resolved with undefined');
- })
- .then(function() {
- var promises = [];
- for (var i = 0; i < 8; ++i)
- promises.push(self.skipWaiting());
- return Promise.all(promises);
- })
- .then(function(results) {
- results.forEach(function(r) {
- assert_equals(r, undefined,
- 'Promises should be resolved with undefined');
- });
- });
- }, 'skipWaiting');

Powered by Google App Engine
This is Rietveld 408576698