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

Unified Diff: mojo/public/js/tests/connection_unittest.js

Issue 2744963002: Introduce InterfaceEndpointClient(IEC), InterfaceEndpointHandle and (Closed)
Patch Set: Resolve Merge with new changes from master. 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: mojo/public/js/tests/connection_unittest.js
diff --git a/mojo/public/js/tests/connection_unittest.js b/mojo/public/js/tests/connection_unittest.js
index feba87d789e65874b15fa79d2a0206a774da4901..857f0f4fe9b438dfe17c528f430e3195dfff56ba 100644
--- a/mojo/public/js/tests/connection_unittest.js
+++ b/mojo/public/js/tests/connection_unittest.js
@@ -115,20 +115,6 @@ define([
var promise = provider.echoString("hello").then(function(response) {
expect(response.a).toBe("hello");
return provider.echoStrings("hello", "world");
- }).then(function(response) {
- expect(response.a).toBe("hello");
- expect(response.b).toBe("world");
- // Mock a read failure, expect it to fail.
- core.readMessage = function() {
- return { result: core.RESULT_UNKNOWN };
- };
- return provider.echoString("goodbye");
- }).then(function() {
- throw Error("Expected echoString to fail.");
- }, function(error) {
- expect(error.message).toBe("Connection error: " + core.RESULT_UNKNOWN);
-
- return Promise.resolve();
});
return promise;

Powered by Google App Engine
This is Rietveld 408576698