Index: third_party/WebKit/LayoutTests/mojo/interface_ptr.html |
diff --git a/third_party/WebKit/LayoutTests/mojo/interface_ptr.html b/third_party/WebKit/LayoutTests/mojo/interface_ptr.html |
index 26751f4d046d894a68fd2c44bf75816c697bafa2..295461ac0c7cf486c4236572d14d35d5abac0bea 100644 |
--- a/third_party/WebKit/LayoutTests/mojo/interface_ptr.html |
+++ b/third_party/WebKit/LayoutTests/mojo/interface_ptr.html |
@@ -97,6 +97,22 @@ define([ |
promise_test(async () => { |
var calc = new math.CalculatorPtr(); |
+ var calcBinding = new bindings.Binding(math.Calculator, |
+ new CalculatorImpl(), |
+ bindings.makeRequest(calc)); |
+ |
+ await new Promise((resolve, reject) => { |
+ calc.ptr.setConnectionErrorHandler(({custom_reason, description}) => { |
+ assert_equals(custom_reason, 42); |
+ assert_equals(description, 'hey'); |
+ resolve(); |
+ }); |
+ calcBinding.closeWithReason({custom_reason: 42, description: 'hey'}); |
+ }); |
+ }, 'connection error with reason'); |
+ |
+ promise_test(async () => { |
+ var calc = new math.CalculatorPtr(); |
var newCalc = null; |
var calcBinding = new bindings.Binding(math.Calculator, |
new CalculatorImpl(), |