/external/chromium_org/remoting/webapp/browser_test/ |
bump_scroll_browser_test.js | 118 return new Promise(function(fulfill, reject) { 121 // resized, so defer fulfilling the promise so that innerWidth 123 base.Promise.sleep(1000).then(fulfill); 125 base.Promise.sleep(5000).then(function(){ 179 var result = base.Promise.negate( 190 var result = base.Promise.negate( 241 return Promise.reject( 246 return Promise.resolve(); 260 return Promise.resolve(); 262 return Promise.reject [all...] |
scrollbar_browser_test.js | 145 * Returns a promise that resolves if the scroll-bar state is as expected, or 154 return Promise.reject(new Error( 157 return Promise.reject(new Error( 160 return Promise.reject(new Error( 163 return Promise.reject(new Error( 166 return Promise.resolve(); 172 * @return {Promise} A promise that will be fulfilled when the window has 181 return base.Promise.sleep(500); 187 * @return {Promise} A promise that will be fulfilled when the window ha [all...] |
invalid_pin_browser_test.js | 28 base.Promise.sleep.bind(window, 2000)
|
/external/chromium_org/ui/file_manager/video_player/js/ |
background.js | 71 * @return {Promise} Promise to be fulfilled on success, or rejected on error. 74 return new Promise(function(fulfill, reject) { 96 return Promise.reject(error);
|
/external/chromium_org/remoting/webapp/background/ |
it2me_helpee_channel.js | 278 * @return {Promise} A promise that resolves to a boolean value, indicating 291 * @return {Promise} A promise that resolves to a boolean value, indicating 307 return Promise.resolve(); 309 return Promise.reject(new Error(remoting.Error.CANCELLED)); 314 * @return {Promise} A promise that resolves to a boolean value, indicating 334 return new Promise(function(resolve, reject) { 356 * @return {Promise} A promise that resolves when the host is initialized [all...] |
/external/chromium_org/ui/file_manager/gallery/js/ |
gallery_item.js | 98 * @return {Promise} Promise to be fulfilled with fetched metadata. 101 return new Promise(function(fulfill, reject) { 327 * @return {Promise} Promise fulfilled with when renaming completes, or rejected 335 return Promise.reject('NOT_CHANGED'); 338 return Promise.reject(str('ERROR_WHITESPACE_NAME')); 340 var parentDirectoryPromise = new Promise( 346 var existingFilePromise = new Promise(parentDirectory.getFile.bind( 349 return Promise.reject(str('GALLERY_FILE_EXISTS')) [all...] |
/external/chromium_org/chrome/browser/resources/cryptotoken/ |
gstaticorigincheck.js | 26 * @return {Promise.<boolean>} A promise for the result of the check. 29 return Promise.resolve(appIds.every(this.checkAppId_.bind(this, origin)));
|
origincheck.js | 24 * @return {Promise.<boolean>} A promise for the result of the check.
|
/external/chromium_org/extensions/test/data/ |
api_test_base_unittest.js | 26 Promise.resolve().then(test.callbackPass()); 38 Promise.all([
|
data_receiver_unittest.js | 13 // Returns a promise to a newly created DataReceiver. 15 return Promise.all([ 30 // Returns a promise that will resolve to |receiver| when it has received an 33 return new Promise(function(resolve, reject) { 43 // |receiver|, checks that it matches the expected data and returns a promise 59 // |receiver|, checks that the correct error is reported and returns a promise 73 // a promise that will resolve to the newly deserialized DataReceiver. 75 return Promise.all([ 156 Promise.all([
|
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/ |
ScriptPromisePropertyBase.h | 40 ScriptPromise promise(DOMWrapperWorld&); 64 void resolveOrRejectInternal(v8::Handle<v8::Promise::Resolver>);
|
/external/chromium_org/v8/test/mjsunit/es6/debug-promises/ |
throw-caught-all.js | 8 // there is a catch handler for the exception thrown in a Promise. 16 var p = new Promise(function(resolve, reject) { 38 assertSame(q, event_data.promise());
|
/external/chromium_org/v8/test/webkit/fast/js/ |
Promise-already-rejected.js | 26 description('Resolve or reject do not take effect on a rejected Promise.'); 30 new Promise(function(resolve, reject) {
|
Promise-exception.js | 26 description('An exception thrown from an onFulfilled callback should reject the Promise.'); 31 new Promise(function(resolve) {
|
Promise-init-callback-receiver.js | 26 description('|this| in Promise constructor should be undefined.'); 29 new Promise(function () {
|
Promise-reject.js | 26 description('Test Promise rejection.'); 29 var promise = new Promise(function(_, r) { reject = r; }); 32 promise.then(function(result) { 46 promise.then(function() {
|
Promise-resolve-with-then-exception.js | 26 description('Test whether Promise treats thenable correctly.'); 31 new Promise(function(resolve) { 43 debug('The promise is already rejected now.');
|
Promise-resolve.js | 26 description('Test Promise resolution.'); 31 new Promise(function(resolve) {
|
Promise-simple.js | 26 description('Test Promise.'); 33 new Promise(function(newResolve) {
|
Promise-static-reject.js | 26 description('Test Promise.reject'); 30 Promise.reject('hello').then(function(result) {
|
Promise-then-without-callbacks.js | 26 description('Promise.prototype.then should work without callbacks.'); 29 new Promise(function(resolve) { resolve('hello'); }).then(
|
/external/chromium_org/chrome/browser/resources/google_now/ |
background.js | 321 * @return {Promise} A promise to issue a request to the server. 322 * The promise rejects if the response is not within the HTTP 200 range. 328 var requestPromise = new Promise(function(resolve, reject) { 349 * @return {Promise} A promise to show the notification groups as cards. 356 return new Promise(function(resolve) { 502 * @return {Promise} A promise to process the server response and provide 511 return Promise.reject() [all...] |
utility.js | 447 * Promise adapter for all JS promises to the task manager. 450 var originalThen = Promise.prototype.then; 451 var originalCatch = Promise.prototype.catch; 454 * Takes a promise and adds the callback tracker to it. 455 * @param {object} promise Promise that receives the callback tracker. 457 function instrumentPromise(promise) { 458 if (promise.__tracker === undefined) { 459 promise.__tracker = createPromiseCallbackTracker(promise); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/testing/ |
Internals.idl | 256 [CallWith=ScriptState] Promise createResolvedPromise(any value); 257 [CallWith=ScriptState] Promise createRejectedPromise(any reason); 258 [CallWith=ScriptState] Promise addOneToPromise(Promise promise); 259 [CallWith=ScriptState, RaisesException] Promise promiseCheck(long arg1, boolean arg2, Dictionary arg3, DOMString arg4, DOMString[] arg5); 260 [CallWith=ScriptState] Promise promiseCheckWithoutExceptionState(Dictionary arg1, DOMString arg2, DOMString... variadic); 261 [CallWith=ScriptState] Promise promiseCheckRange([EnforceRange] octet arg1);
|
/external/chromium_org/remoting/webapp/unittests/ |
it2me_helpee_channel_unittest.js | 67 sinon.stub(hostInstaller, 'isInstalled').returns(Promise.resolve(false)); 85 sinon.stub(hostInstaller, 'isInstalled').returns(Promise.resolve(true)); 103 sinon.stub(hostInstaller, 'download').returns(Promise.resolve(true));
|