/external/chromium_org/mojo/bindings/js/ |
drain_data.cc | 31 v8::Handle<v8::Promise::Resolver> resolver( 32 v8::Promise::Resolver::New(isolate_)); 110 // The "settled" value of the promise always includes all of the data 114 v8::Handle<v8::Promise::Resolver> resolver( 115 v8::Local<v8::Promise::Resolver>::New(isolate_, resolver_));
|
drain_data.h | 21 // and rejecting or resolving the Promise. 29 // Returns a Promise that will be settled when no more data can be read. 48 // all of the buffered data to the JS Promise and then delete this. 57 v8::UniquePersistent<v8::Promise::Resolver> resolver_;
|
/external/chromium_org/v8/test/mjsunit/es6/debug-promises/ |
async-task-event.js | 40 assertEquals("Promise.resolve", event_data.name()); 51 var p = new Promise(function(resolve, reject) {
|
reject-after-resolve.js | 8 // the Promise is rejected in a chained closure after it has been resolved. 15 var p = new Promise(function(resolve, reject) {
|
reject-with-throw-in-reject.js | 7 // Test debug events when a Promise is rejected, which is caught by a 8 // custom promise, which throws a new exception in its reject handler. 10 // 1) when promise q is rejected. 18 var p = new Promise(function(resolve, reject) { 33 MyPromise.prototype = new Promise(function() {}); 39 return Promise.reject(new Error("caught"));
|
reject-caught-all.js | 8 // there is a catch handler for the to-be-rejected Promise. 16 var p = new Promise(function(resolve, reject) { 24 return Promise.reject(new Error("reject")); 39 assertSame(q, event_data.promise());
|
throw-uncaught-all.js | 8 // there is no catch handler for the exception thrown in a Promise. 9 // We expect an Exception debug event with a promise to be triggered. 16 var p = new Promise(function(resolve, reject) { 34 assertTrue(event_data.promise() instanceof Promise); 35 assertSame(q, event_data.promise());
|
throw-uncaught-uncaught.js | 8 // there is a catch handler for the exception thrown in a Promise. 9 // We expect an Exception debug event with a promise to be triggered. 16 var p = new Promise(function(resolve, reject) { 34 assertTrue(event_data.promise() instanceof Promise); 35 assertSame(q, event_data.promise());
|
throw-with-throw-in-reject.js | 7 // Test debug events when an exception is thrown inside a Promise, which is 8 // caught by a custom promise, which throws a new exception in its reject 10 // 1) when the exception is thrown in the promise q. 18 var p = new Promise(function(resolve, reject) { 33 MyPromise.prototype = new Promise(function() {}); 56 assertSame(q, event_data.promise());
|
throw-with-undefined-reject.js | 7 // Test debug events when an exception is thrown inside a Promise, which is 8 // caught by a custom promise, which has no reject handler. 10 // 1) when the exception is thrown in the promise q. 18 var p = new Promise(function(resolve, reject) { 30 MyPromise.prototype = new Promise(function() {}); 56 assertSame(q, event_data.promise());
|
/external/chromium_org/content/test/data/service_worker/ |
fetch_event.js | 16 event.respondWith(new Promise(function(r) {
|
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/ |
ScriptPromise.h | 49 // ScriptPromise is the class for representing Promise values in C++ world. 50 // ScriptPromise holds a Promise. 56 // Constructs an empty promise. 59 // Constructs a ScriptPromise from |promise|. 60 // If |promise| is not a Promise object, throws a v8 TypeError. 61 ScriptPromise(ScriptState*, v8::Handle<v8::Value> promise); 111 // if |value| is not a Promise object, returns a Promise object 113 // Returns |value| itself if it is a Promise [all...] |
/external/chromium_org/ui/file_manager/file_manager/foreground/js/ui/ |
multi_profile_share_dialog.js | 46 this.currentProfileId_ = new Promise(function(callback) { 73 * @return {Promise} Promise fulfilled with the result of dialog. If the dialog 78 return new Promise(function(fulfill, reject) {
|
/external/chromium_org/v8/test/webkit/fast/js/ |
Promise-catch.js | 26 description('Test Promise.prototype.catch.'); 33 var firstPromise = new Promise(function(_, newReject) { 57 shouldBeTrue('firstPromise instanceof Promise'); 58 shouldBeTrue('secondPromise instanceof Promise');
|
Promise-then.js | 26 description('Test Promise.prototype.then'); 33 var firstPromise = new Promise(function(newResolve) { 47 shouldBeTrue('firstPromise instanceof Promise'); 48 shouldBeTrue('secondPromise instanceof Promise');
|
Promise-already-resolved.js | 26 description('Resolve or reject do not take effect on a resolved Promise.'); 30 new Promise(function(resolve, reject) { 32 resolve(new Promise(function(r) { anotherResolve = r; }));
|
Promise-resolve-with-itself.js | 26 description('Test whether Promise will be rejected if it is resolved with itself.'); 31 var promise = new Promise(function(r) { resolve = r; }); 32 promise.then(function () { 37 shouldBeEqualToString('result', 'TypeError: Chaining cycle detected for promise #<Promise>'); 40 resolve(promise);
|
Promise-static-resolve.js | 26 description('Test Promise.resolve'); 31 var promise = Promise.resolve(new Promise(function (r) { resolve = r;} )); variable 33 promise.then(function(localResult) {
|
Promise-then-callback-receiver.js | 31 Promise.resolve().then(function () { 32 return Promise.resolve(42).then(function () { 40 return Promise.reject(42).then(function () {
|
/external/chromium_org/chrome/browser/resources/cryptotoken/ |
textfetcher.js | 22 * @return {!Promise.<string>} A promise for the fetched text. In case of an 23 * error, this promise is rejected with an HTTP status code. 38 * @return {!Promise.<string>} A promise for the fetched text. In case of an 39 * error, this promise is rejected with an HTTP status code. 42 return new Promise(function(resolve, reject) {
|
/external/chromium_org/remoting/webapp/browser_test/ |
browser_test.js | 123 // promise. For some reason, if we fulfill the promise in the same 127 return base.Promise.sleep(0); 130 return new Promise (function(fulfill, reject) { 168 return Promise.resolve(); 191 return base.Promise.sleep(CONNECT_PIN_WAIT).then(function() { 210 return Promise.reject( 222 return Promise.reject('Unexpected failure. actual:' + actual + 227 return Promise.race([onConnected, onFailure]); 241 return Promise.reject('Unexpected error - ' + errorMsg) [all...] |
/external/chromium_org/remoting/webapp/unittests/ |
base_unittest.js | 84 QUnit.asyncTest('Promise.sleep(delay) should fulfill the promise after |delay|', 89 base.Promise.sleep(100).then(function(){ 91 ok(true, 'Promise.sleep() is fulfilled after delay.'); 95 // Tick the clock for 2 seconds and check if the promise is fulfilled. 98 // Promise fulfillment always occur on a new stack. Therefore, we will run 101 ok(!isCalled, 'Promise.sleep() should not be fulfilled prematurely.'); 106 QUnit.asyncTest('Promise.negate should fulfill iff the promise does not.', 109 base.Promise.negate(Promise.reject()).then [all...] |
/external/chromium_org/chrome/browser/resources/google_now/ |
common_test_util.js | 84 var Promise = function() { 124 return Promise.resolve(handlerResult); 126 return Promise.reject(handlerResult); 161 var promise = new PromisePrototypeObject(function(resolve) { 164 return promise; 168 var promise = new PromisePrototypeObject(function(resolve) { 171 return promise; 175 var promise = new PromisePrototypeObject(function(resolve, reject) { 178 return promise; 192 * @param {boolean=} opt_AllowRejection Allow Promise Rejectio [all...] |
/external/chromium_org/v8/test/promises-aplus/lib/ |
adapter.js | 31 resolved: function(value) { return Promise.resolve(value); }, 32 rejected: function(reason) { return Promise.reject(reason); }, 35 var promise = new Promise(function(res, rej) { 39 return {promise: promise, resolve: resolve, reject: reject};
|
/external/chromium_org/extensions/test/data/ |
unit_test_environment_specific_bindings.js | 32 // Use a promise here to allow previous test contexts to be eligible for 34 Promise.resolve().then(function() { 76 Promise.resolve().then(this.autoRun_.bind(this)); 114 Promise.resolve().then(this.autoRun_.bind(this)); 130 Promise.resolve().then(this.autoRun_.bind(this));
|