Index: headless/test/data/page_two.html |
diff --git a/headless/test/data/page_two.html b/headless/test/data/page_two.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b8e9108c657488ad448b77a46413ef0bb8b63bd2 |
--- /dev/null |
+++ b/headless/test/data/page_two.html |
@@ -0,0 +1,25 @@ |
+<!doctype html> |
+<head> |
+<script> |
+// Note define() defines a module in the mojo module dependency |
+// system. While we don't expose our module, the callback below only |
+// fires after the requested modules have been loaded. |
+define([ |
+ 'headless/lib/embedder_test.mojom', |
+ 'mojo/public/js/core', |
+ 'mojo/public/js/router', |
+ 'content/public/renderer/frame_service_registry', |
+ ], function(embedderMojom, mojoCore, routerModule, |
+ serviceProvider) { |
+ var testEmbedderService = |
+ new embedderMojom.TestEmbedderService.proxyClass( |
+ new routerModule.Router( |
+ serviceProvider.connectToService( |
+ embedderMojom.TestEmbedderService.name))); |
+ |
+ // Send a message to the embedder! |
+ testEmbedderService.returnTestResult('page two'); |
+}); |
+</script> |
+</head> |
+<body><h1>Page two</h1></body> |