| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 (function() { | 5 (function() { |
| 6 | 6 |
| 7 'use strict'; | 7 'use strict'; |
| 8 | 8 |
| 9 var testUsername = 'testUsername@gmail.com'; | 9 var testUsername = 'testUsername@gmail.com'; |
| 10 var testToken = 'testToken'; | 10 var testToken = 'testToken'; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 $testStub(socket.startReceiving).getCall(0).args[0](data); | 116 $testStub(socket.startReceiving).getCall(0).args[0](data); |
| 117 appendDataCalled.verify(); | 117 appendDataCalled.verify(); |
| 118 }); | 118 }); |
| 119 | 119 |
| 120 connection.connect( | 120 connection.connect( |
| 121 'xmpp.example.com:123', 'testUsername@gmail.com', 'testToken'); | 121 'xmpp.example.com:123', 'testUsername@gmail.com', 'testToken'); |
| 122 return promise; | 122 return promise; |
| 123 }); | 123 }); |
| 124 | 124 |
| 125 })(); | 125 })(); |
| OLD | NEW |