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

Unified Diff: headless/test/data/late_nonexistent_mojo_binding.html

Issue 2049363003: Adds support for headless chrome embedder mojo services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 4 years, 6 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: headless/test/data/late_nonexistent_mojo_binding.html
diff --git a/headless/test/data/late_nonexistent_mojo_binding.html b/headless/test/data/late_nonexistent_mojo_binding.html
new file mode 100644
index 0000000000000000000000000000000000000000..aa1ef45b59d4e3814c8237c2c02db0a174923085
--- /dev/null
+++ b/headless/test/data/late_nonexistent_mojo_binding.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<head>
+<script>
+
+window.onload = function() {
+ mojo.services.embedder_test.TestEmbedderService.then(
+ function(service) {
+ mojo.services.nonExistent.MojoService.then(function() {
+ service.returnTestResult("Fail - promise not rejected");
+ }).catch(function() {
+ service.returnTestResult("Pass - promise rejected");
+ });
+ });
+};
+
+</script>
+</head>
+<body><h1>Mojo Test</h1></body>

Powered by Google App Engine
This is Rietveld 408576698