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. |