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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-installed-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-installed-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-installed-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-installed-worker.js
index 56b97a718034a4000a7a3b9519f452b97abbd999..3ae97a45b19e4b7bdb2b69578046faa8ebe922b7 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-installed-worker.js
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-installed-worker.js
@@ -23,8 +23,9 @@ self.addEventListener('message', function(event) {
return;
}
if (self.state !== 'activating') {
- port.postMessage(
- 'FAIL: Promise should be resolved after worker activated');
+ port.postMessage('This assertion passes in current Chromium ' +
+ '(i.e., self.state is "activating"), ' +
+ 'but it should fail. See https://crbug.com/725616');
return;
}
port.postMessage('PASS');

Powered by Google App Engine
This is Rietveld 408576698