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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/worklet/webexposed/resources/global-interface-listing-worklet.js

Issue 1841633002: Make constructors in Worklets be properly exposed on the global. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/worklet/webexposed/resources/global-interface-listing-worklet.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/resources/global-interface-listing-worker.js b/third_party/WebKit/LayoutTests/http/tests/worklet/webexposed/resources/global-interface-listing-worklet.js
similarity index 96%
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/resources/global-interface-listing-worker.js
copy to third_party/WebKit/LayoutTests/http/tests/worklet/webexposed/resources/global-interface-listing-worklet.js
index 3911fd0419acae2c5073c56a3d6101297e97ee74..bbcea8d0a3195e72dfffe6fcc0078ecc6c85ad13 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/resources/global-interface-listing-worker.js
+++ b/third_party/WebKit/LayoutTests/http/tests/worklet/webexposed/resources/global-interface-listing-worklet.js
@@ -133,8 +133,10 @@ member_names.forEach(function(property_name) {
});
globals.push.apply(globals, property_strings.sort());
-self.addEventListener('message', function(event) {
- event.ports[0].postMessage({ result: globals });
+// Worklets don't have a mechanism to communicate back to the main page, dump
+// results into the console.
+globals.forEach(function(global) {
+ console.log(global);
});
})(this); // Run all the code in a local scope.

Powered by Google App Engine
This is Rietveld 408576698