| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 define([ | 5 define([ |
| 6 "gin/test/expect", | 6 "gin/test/expect", |
| 7 "mojo/public/js/bindings", | 7 "mojo/public/js/bindings", |
| 8 "mojo/public/js/core", | 8 "mojo/public/js/core", |
| 9 "mojo/public/interfaces/bindings/tests/sample_interfaces.mojom", | 9 "mojo/public/interfaces/bindings/tests/sample_interfaces.mojom", |
| 10 "mojo/public/interfaces/bindings/tests/sample_service.mojom", | 10 "mojo/public/interfaces/bindings/tests/sample_service.mojom", |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 throw Error("Expected echoString to fail."); | 126 throw Error("Expected echoString to fail."); |
| 127 }, function(error) { | 127 }, function(error) { |
| 128 expect(error.message).toBe("Connection error: " + core.RESULT_UNKNOWN); | 128 expect(error.message).toBe("Connection error: " + core.RESULT_UNKNOWN); |
| 129 | 129 |
| 130 return Promise.resolve(); | 130 return Promise.resolve(); |
| 131 }); | 131 }); |
| 132 | 132 |
| 133 return promise; | 133 return promise; |
| 134 } | 134 } |
| 135 }); | 135 }); |
| OLD | NEW |