HomeSort by relevance Sort by last modified time
    Searched refs:promise (Results 76 - 100 of 155) sorted by null

1 2 34 5 6 7

  /external/libcxx/test/std/thread/futures/futures.unique_future/
move_assign.pass.cpp 26 std::promise<T> p;
43 std::promise<T> p;
60 std::promise<T> p;
move_ctor.pass.cpp 26 std::promise<T> p;
41 std::promise<T> p;
56 std::promise<T> p;
share.pass.cpp 25 std::promise<T> p;
40 std::promise<T> p;
55 std::promise<T> p;
  /external/v8/test/webkit/fast/js/
Promise-init.js 26 description('Test Promise construction.');
31 var promise = new Promise(function(newResolve, newReject) {
37 shouldBeTrue('promise instanceof Promise');
38 shouldBe('promise.constructor', 'Promise');
43 shouldThrow('new Promise()', '"TypeError: Promise resolver undefined is not a function"');
44 shouldThrow('new Promise(37)', '"TypeError: Promise resolver 37 is not a function"')
    [all...]
Promise-onFulfilled-deep.js 30 var promise = new Promise(function (r) { resolve = r; });
33 promise = promise.then(function (value) { return value + 1; }, function () { testFailed('rejected'); });
36 promise.then(function (value) {
Promise-onRejected-deep.js 30 var promise = new Promise(function (_, r) { reject = r; });
33 promise = promise.then(function (value) { testFailed('fulfilled'); throw value + 1; }, function (value) { throw value + 1; });
36 promise.catch(function (value) {
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-resolve-state.js 26 description('Test whether Promise processes microtasks in the correct order.');
29 var promise = new Promise(function(r) { resolve = r; });
32 promise.then(function(result) {
46 promise.then(function() {
51 testFailed('promise is rejected.');
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.shared_future/
ctor_future.pass.cpp 23 std::promise<T> p;
38 std::promise<T> p;
53 std::promise<T> p;
move_assign.pass.cpp 24 std::promise<T> p;
41 std::promise<T> p;
58 std::promise<T> p;
move_ctor.pass.cpp 23 std::promise<T> p;
38 std::promise<T> p;
53 std::promise<T> p;
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.unique_future/
move_assign.pass.cpp 24 std::promise<T> p;
41 std::promise<T> p;
58 std::promise<T> p;
move_ctor.pass.cpp 24 std::promise<T> p;
39 std::promise<T> p;
54 std::promise<T> p;
share.pass.cpp 23 std::promise<T> p;
38 std::promise<T> p;
53 std::promise<T> p;
  /external/libcxx/src/
future.cpp 48 return string("The associated promise has been destructed prior "
52 "the promise or packaged_task.");
54 return string("The state of the promise has already been set.");
220 promise<void>::promise() function in class:promise
225 promise<void>::~promise()
238 promise<void>::get_future()
248 promise<void>::set_value()
258 promise<void>::set_exception(exception_ptr __p
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/src/
future.cpp 46 return string("The associated promise has been destructed prior "
50 "the promise or packaged_task.");
52 return string("The state of the promise has already been set.");
218 promise<void>::promise() function in class:promise
223 promise<void>::~promise()
236 promise<void>::get_future()
246 promise<void>::set_value()
256 promise<void>::set_exception(exception_ptr __p
    [all...]
  /external/v8/test/mjsunit/es6/
promises.js 56 var whitelist = {Promise: true, TypeError: true}
97 assertThrows(function() { Promise(function() {}) }, TypeError)
101 assertTrue(new Promise(function() {}) instanceof Promise)
105 assertThrows(function() { new Promise(5) }, TypeError)
109 assertDoesNotThrow(function() { new Promise(function() { throw 5 }) })
113 (new Promise(function() { throw 5 })).chain(
121 Promise.accept(5);
122 Promise.accept(5).chain(undefined, assertUnreachable).chain(
130 Promise.reject(5).chain(assertUnreachable, undefined).chain
    [all...]
  /external/v8/test/mjsunit/es6/debug-promises/
reject-in-constructor.js 8 // the Promise is rejected in the Promise constructor.
9 // We expect an Exception debug event with a promise to be triggered.
21 assertTrue(event_data.promise() instanceof Promise);
34 var p = new Promise(function(resolve, reject) {
throw-in-constructor.js 8 // an exception is thrown in the Promise constructor.
9 // We expect an Exception debug event with a promise to be triggered.
21 assertTrue(event_data.promise() instanceof Promise);
35 var p = new Promise(function(resolve, reject) {
try-reject-in-constructor.js 8 // the Promise is rejected within a try-catch in the Promise constructor.
9 // We expect an Exception debug event with a promise to be triggered.
21 assertTrue(event_data.promise() instanceof Promise);
35 var p = new Promise(function(resolve, reject) {
reject-uncaught-all.js 8 // there is a catch handler for the to-be-rejected Promise.
9 // We expect an Exception debug event with a promise to be triggered.
16 var p = new Promise(function(resolve, reject) {
24 return Promise.reject(new Error("uncaught reject"));
33 assertTrue(event_data.promise() instanceof Promise);
34 assertSame(q, event_data.promise());
reject-uncaught-late.js 8 // there is a catch handler for the to-be-rejected Promise.
9 // We expect an Exception debug event with a promise to be triggered.
18 var p = new Promise(function(resolve, reject) {
23 var q = new Promise(function(resolve, reject) {
40 assertTrue(event_data.promise() instanceof Promise);
41 assertSame(p, event_data.promise());
reject-uncaught-uncaught.js 8 // there is no catch handler for the to-be-rejected Promise.
9 // We expect an Exception debug event with a promise to be triggered.
16 var p = new Promise(function(resolve, reject) {
24 return Promise.reject(Error("uncaught reject")); // event
33 assertTrue(event_data.promise() instanceof Promise);
34 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());

Completed in 886 milliseconds

1 2 34 5 6 7