| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 QUnit.test('should return UNEXPECTED error when failed to parse stream', | 170 QUnit.test('should return UNEXPECTED error when failed to parse stream', |
| 171 function() { | 171 function() { |
| 172 handshakeBase(); | 172 handshakeBase(); |
| 173 loginHandler.onDataReceived( | 173 loginHandler.onDataReceived( |
| 174 base.encodeUtf8('BAD DATA')); | 174 base.encodeUtf8('BAD DATA')); |
| 175 sinon.assert.calledWith(onError, remoting.Error.unexpected()); | 175 sinon.assert.calledWith(onError, remoting.Error.unexpected()); |
| 176 }); | 176 }); |
| 177 | 177 |
| 178 })(); | 178 })(); |
| OLD | NEW |