| 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 // Mock out the support module to avoid depending on the message loop. | 5 // Mock out the support module to avoid depending on the message loop. |
| 6 define("mojo/public/js/support", ["timer"], function(timer) { | 6 define("mojo/public/js/support", ["timer"], function(timer) { |
| 7 var waitingCallbacks = []; | 7 var waitingCallbacks = []; |
| 8 | 8 |
| 9 function WaitCookie(id) { | 9 function WaitCookie(id) { |
| 10 this.id = id; | 10 this.id = id; |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 }).then(function() { | 231 }).then(function() { |
| 232 throw Error("Expected echoString to fail."); | 232 throw Error("Expected echoString to fail."); |
| 233 }, function(error) { | 233 }, function(error) { |
| 234 expect(error.message).toBe("Connection error: " + core.RESULT_UNKNOWN); | 234 expect(error.message).toBe("Connection error: " + core.RESULT_UNKNOWN); |
| 235 | 235 |
| 236 // Clean up. | 236 // Clean up. |
| 237 core.readMessage = origReadMessage; | 237 core.readMessage = origReadMessage; |
| 238 }); | 238 }); |
| 239 } | 239 } |
| 240 }); | 240 }); |
| OLD | NEW |