Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: mojo/edk/js/tests/connection_tests.js

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more cleanup Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698