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

Side by Side Diff: third_party/WebKit/LayoutTests/mojo/connection.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, 8 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <script src="../resources/mojo-helpers.js"></script> 4 <script src="../resources/mojo-helpers.js"></script>
5 <script> 5 <script>
6 'use strict'; 6 'use strict';
7 7
8 setup({ explicit_done: true }); 8 setup({ explicit_done: true });
9 9
10 define([ 10 define([
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 }; 81 };
82 82
83 var provider = new sample_interfaces.ProviderPtr(); 83 var provider = new sample_interfaces.ProviderPtr();
84 var providerBinding = new bindings.Binding(sample_interfaces.Provider, 84 var providerBinding = new bindings.Binding(sample_interfaces.Provider,
85 new ProviderImpl(), 85 new ProviderImpl(),
86 bindings.makeRequest(provider)); 86 bindings.makeRequest(provider));
87 assert_equals((await provider.echoString("hello")).a, "hello"); 87 assert_equals((await provider.echoString("hello")).a, "hello");
88 var response = await provider.echoStrings("hello", "world"); 88 var response = await provider.echoStrings("hello", "world");
89 assert_equals(response.a, "hello"); 89 assert_equals(response.a, "hello");
90 assert_equals(response.b, "world"); 90 assert_equals(response.b, "world");
91
92 try {
93 core.readMessage = function() {
94 return { result: core.RESULT_UNKNOWN };
95 };
96 await provider.echoString("goodbye");
97 assert_unreachable();
98 } catch (e) {
99 assert_not_equals(e, null);
100 }
101
102 }, 'request response'); 91 }, 'request response');
103 92
104 done(); 93 done();
105 }); 94 });
106 </script> 95 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/mojo/binding.html ('k') | third_party/WebKit/LayoutTests/mojo/interface_ptr.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698