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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test.js

Issue 1643823003: bug? Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test.js
new file mode 100644
index 0000000000000000000000000000000000000000..c8d22b94f0761f1b9a3bc5e15a588611c357f583
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test.js
@@ -0,0 +1,17 @@
+function receive_message()
+{
+ return new Promise(function(resolve) {
+ self.onmessage = function(e) {
+ console.log(e);
+ resolve();
+ };
+ });
+}
+/*
+self.oninstall = function(e) {
+ e.waitUntil(receive_message());
+};
+*/
+self.onactivate = function(e) {
+ e.waitUntil(receive_message());
nhiroki 2016/02/08 04:54:02 A promise returned by receive_message() is never s
+};

Powered by Google App Engine
This is Rietveld 408576698