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

Unified Diff: sky/tests/services/resources/iframe-vmc.js

Issue 1215953006: Use sky_shell instead of mojo_shell for testing. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Foo Created 5 years, 5 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: 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;
-});

Powered by Google App Engine
This is Rietveld 408576698