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

Unified Diff: third_party/WebKit/LayoutTests/mojo/interface_ptr.html

Issue 2744963002: Introduce InterfaceEndpointClient(IEC), InterfaceEndpointHandle and (Closed)
Patch Set: Throw the error with the string being the stack trace needed to debug layouts which don't output an… Created 3 years, 9 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: 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(),
« no previous file with comments | « third_party/WebKit/LayoutTests/mojo/connection.html ('k') | third_party/WebKit/LayoutTests/vibration/vibration-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698