| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2016 The LUCI Authors. All rights reserved. | 2 Copyright 2016 The LUCI Authors. All rights reserved. |
| 3 Use of this source code is governed under the Apache License, Version 2.0 | 3 Use of this source code is governed under the Apache License, Version 2.0 |
| 4 that can be found in the LICENSE file. | 4 that can be found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <!doctype html> | 7 <!doctype html> |
| 8 <title>rpc-client</title> | 8 <title>rpc-client</title> |
| 9 | 9 |
| 10 <link rel="import" href="../rpc-client.html"> | 10 <link rel="import" href="../rpc-client.html"> |
| 11 <script src="../../bower_components/web-component-tester/browser.js"></script> | 11 <script src="../../bower_components/web-component-tester/browser.js"></script> |
| 12 | 12 |
| 13 <test-fixture id="client"> | 13 <test-fixture id="client"> |
| 14 <template> | 14 <template> |
| 15 <rpc-client service="service" method="ok"></rpc-client> | 15 <rpc-client service="service" method="ok"></rpc-client> |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 expect(call.service).to.equal('service'); | 255 expect(call.service).to.equal('service'); |
| 256 expect(call.method).to.equal('notFound'); | 256 expect(call.method).to.equal('notFound'); |
| 257 expect(call.request).to.equal(client.request); | 257 expect(call.request).to.equal(client.request); |
| 258 | 258 |
| 259 expect(call.response).to.be.null; | 259 expect(call.response).to.be.null; |
| 260 expect(call.error).to.be.an.instanceof(luci.rpc.GrpcError); | 260 expect(call.error).to.be.an.instanceof(luci.rpc.GrpcError); |
| 261 }); | 261 }); |
| 262 }); | 262 }); |
| 263 }); | 263 }); |
| 264 </script> | 264 </script> |
| OLD | NEW |