Index: sky/tests/services/resources/iframe-vmc.js |
diff --git a/sky/tests/services/resources/iframe-vmc.js b/sky/tests/services/resources/iframe-vmc.js |
deleted file mode 100644 |
index 6dbc7d3e8f2356c4d02974802f08da1e23631bb3..0000000000000000000000000000000000000000 |
--- a/sky/tests/services/resources/iframe-vmc.js |
+++ /dev/null |
@@ -1,36 +0,0 @@ |
-#!mojo mojo:js_content_handler |
- |
-define("main", [ |
- "console", |
- "mojo/public/js/bindings", |
- "mojo/services/public/js/application", |
- "mojo/services/view_manager/public/interfaces/view_manager.mojom", |
- "services/js/test/echo_service.mojom", |
-], function(console, bindings, application, viewManagerMojom, echoServiceMojom) { |
- |
- const Application = application.Application; |
- const ViewManagerClient = viewManagerMojom.ViewManagerClient; |
- const EchoService = echoServiceMojom.EchoService; |
- |
- var serviceImpl; |
- var success = new Promise(function(resolve) { |
- serviceImpl = { |
- onEmbed: function() { |
- resolve({value: "success"}); |
- }, |
- echoString: function(s) { |
- return success; |
- }, |
- } |
- }); |
- |
- class IFrameVMCApp extends Application { |
- acceptConnection(initiatorURL, initiatorServiceExchange) { |
- var factory = function() { return serviceImpl; } |
- initiatorServiceExchange.provideService(ViewManagerClient, factory); |
- initiatorServiceExchange.provideService(EchoService, factory); |
- } |
- } |
- |
- return IFrameVMCApp; |
-}); |