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