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

Side by Side Diff: remoting/webapp/base/js/spy_promise_unittest.js

Issue 1003433002: Updated remoting.xhr API to use promises. Removed access to the native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spy-promise
Patch Set: Created 5 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 originalGlobalPromise = Promise; 9 var originalGlobalPromise = Promise;
10 10
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 var done = assert.async(); 241 var done = assert.async();
242 var startTime = Date.now(); 242 var startTime = Date.now();
243 var neverResolved = new base.SpyPromise(function() {}); 243 var neverResolved = new base.SpyPromise(function() {});
244 return base.SpyPromise.settleAll(1000).catch(function(error) { 244 return base.SpyPromise.settleAll(1000).catch(function(error) {
245 QUnit.ok(startTime + 1500 < Date.now()); 245 QUnit.ok(startTime + 1500 < Date.now());
246 done(); 246 done();
247 }); 247 });
248 }); 248 });
249 249
250 })(); 250 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698