/external/chromium_org/v8/test/webkit/fast/js/ |
H A D | 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) {
|
H A D | 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) {
|
H A D | Promise-reject.js | 29 var promise = new Promise(function(_, r) { reject = r; }); 32 promise.then(function(result) { 46 promise.then(function() {
|
H A D | Promise-resolve-state.js | 29 var promise = new Promise(function(r) { resolve = r; }); 32 promise.then(function(result) { 46 promise.then(function() { 51 testFailed('promise is rejected.');
|
H A D | Promise-resolve-with-itself.js | 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);
|
H A D | Promise-static-resolve.js | 31 var promise = Promise.resolve(new Promise(function (r) { resolve = r;} )); variable 33 promise.then(function(localResult) {
|
H A D | Promise-init.js | 31 var promise = new Promise(function(newResolve, newReject) { 37 shouldBeTrue('promise instanceof Promise'); 38 shouldBe('promise.constructor', 'Promise'); 47 promise = new Promise(function() { throw Error('foo'); }); 48 testPassed('promise = new Promise(function() { throw Error("foo"); }) did not throw exception.'); 53 promise.then(undefined, function(localResult) {
|
H A D | Promise-static-cast.js | 33 var promise = Promise.resolve(value); variable 36 shouldBe('promise', 'value'); 38 promise.then(function(res) {
|
/external/chromium_org/v8/test/promises-aplus/lib/ |
H A D | adapter.js | 35 var promise = new Promise(function(res, rej) { 39 return {promise: promise, resolve: resolve, reject: reject};
|
/external/libcxx/test/thread/futures/futures.promise/ |
H A D | uses_allocator.pass.cpp | 12 // class promise<R> 15 // struct uses_allocator<promise<R>, Alloc> 23 static_assert((std::uses_allocator<std::promise<int>, test_allocator<int> >::value), ""); 24 static_assert((std::uses_allocator<std::promise<int&>, test_allocator<int> >::value), ""); 25 static_assert((std::uses_allocator<std::promise<void>, test_allocator<void> >::value), "");
|
H A D | default.pass.cpp | 12 // class promise<R> 14 // promise(); 22 std::promise<int> p; 27 std::promise<int&> p; 32 std::promise<void> p;
|
H A D | set_lvalue_at_thread_exit.pass.cpp | 12 // class promise<R> 14 // void promise<R&>::set_value_at_thread_exit(R& r); 22 void func(std::promise<int&> p) 31 std::promise<int&> p;
|
H A D | set_value_at_thread_exit_const.pass.cpp | 12 // class promise<R> 14 // void promise::set_value_at_thread_exit(const R& r); 19 void func(std::promise<int> p) 28 std::promise<int> p;
|
H A D | set_value_at_thread_exit_void.pass.cpp | 12 // class promise<R> 14 // void promise<void>::set_value_at_thread_exit(); 22 void func(std::promise<void> p) 31 std::promise<void> p;
|
H A D | Android.mk | 17 test_makefile := external/libcxx/test/thread/futures/futures.promise/Android.mk 19 test_name := thread/futures/futures.promise/default 23 test_name := thread/futures/futures.promise/set_rvalue_at_thread_exit 27 test_name := thread/futures/futures.promise/move_ctor 31 test_name := thread/futures/futures.promise/set_rvalue 35 test_name := thread/futures/futures.promise/set_lvalue_at_thread_exit 39 test_name := thread/futures/futures.promise/get_future 43 test_name := thread/futures/futures.promise/dtor 47 test_name := thread/futures/futures.promise/set_lvalue 51 test_name := thread/futures/futures.promise/swa [all...] |
H A D | get_future.pass.cpp | 12 // class promise<R> 22 std::promise<double> p; 28 std::promise<double> p; 41 std::promise<double> p; 42 std::promise<double> p0 = std::move(p);
|
H A D | set_exception_at_thread_exit.pass.cpp | 12 // class promise<R> 14 // void promise::set_exception_at_thread_exit(exception_ptr p); 19 void func(std::promise<int> p) 29 std::promise<T> p;
|
H A D | set_rvalue_at_thread_exit.pass.cpp | 12 // class promise<R> 14 // void promise::set_value_at_thread_exit(R&& r); 22 void func(std::promise<std::unique_ptr<int>> p) 33 std::promise<std::unique_ptr<int>> p;
|
/external/chromium_org/v8/src/ |
H A D | promise.js | 43 var promise = PromiseInit(this); 45 %DebugPushPromise(promise); 46 resolver(function(x) { PromiseResolve(promise, x) }, 47 function(r) { PromiseReject(promise, r) }); 49 PromiseReject(promise, e); 57 function PromiseSet(promise, status, value, onResolve, onReject) { 58 SET_PRIVATE(promise, promiseStatus, status); 59 SET_PRIVATE(promise, promiseValue, value); 60 SET_PRIVATE(promise, promiseOnResolve, onResolve); 61 SET_PRIVATE(promise, promiseOnRejec [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/crypto/ |
H A D | SubtleCrypto.cpp | 93 ScriptPromise promise = result->promise(); local 96 return promise; 101 return promise; 103 return promise; 105 return promise; 109 return promise; 112 return promise; 138 return promise; 224 ScriptPromise promise local 244 ScriptPromise promise = result->promise(); local 276 ScriptPromise promise = result->promise(); local 309 ScriptPromise promise = result->promise(); local 333 ScriptPromise promise = result->promise(); local 367 ScriptPromise promise = result->promise(); local [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/ |
H A D | ScriptPromiseTest.cpp | 101 ScriptPromise promise(scriptState(), v8::Undefined(isolate())); 103 ASSERT_TRUE(promise.isEmpty()); 109 ScriptPromise promise = resolver.promise(); local 111 promise.then(Function::createFunction(scriptState(), &onFulfilled), Function::createFunction(scriptState(), &onRejected)); 113 ASSERT_FALSE(promise.isEmpty()); 132 ScriptPromise promise = resolver.promise(); local 135 promise.then(Function::createFunction(scriptState(), &onFulfilled), Function::createFunction(scriptState(), &onRejected)); 137 ASSERT_FALSE(promise 150 ScriptPromise promise = resolver.promise(); local 173 ScriptPromise promise = resolver.promise(); local 190 ScriptPromise promise = Resolver(scriptState()).promise(); local 232 ScriptPromise promise = ScriptPromise::reject(scriptState(), ScriptValue(value)); local 250 ScriptPromise promise = ScriptPromise::rejectWithDOMException(scriptState(), DOMException::create(SyntaxError, "some syntax error")); local [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/geofencing/ |
H A D | Geofencing.cpp | 60 ScriptPromise promise = resolver->promise(); local 63 return promise; 73 ScriptPromise promise = resolver->promise(); local 76 return promise; 86 ScriptPromise promise = resolver->promise(); local 89 return promise;
|
/external/chromium_org/third_party/WebKit/Source/modules/credentialmanager/ |
H A D | CredentialsContainer.cpp | 116 ScriptPromise promise = resolver->promise(); local 118 return promise; 122 return promise; 128 ScriptPromise promise = resolver->promise(); local 130 return promise; 133 return promise; 139 ScriptPromise promise = resolver->promise(); local 150 ScriptPromise promise = resolver->promise(); local [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
H A D | promisesPanel.css | 15 .promise-tracker-controls {
|
/external/chromium_org/content/renderer/media/crypto/ |
H A D | proxy_media_keys.cc | 59 scoped_ptr<media::SimpleCdmPromise> promise) { 60 promise->reject(NOT_SUPPORTED_ERROR, 0, "Not yet implemented."); 68 scoped_ptr<media::NewSessionCdmPromise> promise) { 79 promise->reject( 87 SavePromise(session_id, promise.PassAs<media::CdmPromise>()); 97 scoped_ptr<media::NewSessionCdmPromise> promise) { 101 promise->reject(NOT_SUPPORTED_ERROR, 0, "LoadSession() is not supported."); 108 scoped_ptr<media::SimpleCdmPromise> promise) { 111 promise->reject(INVALID_ACCESS_ERROR, 0, "Session does not exist."); 115 SavePromise(session_id, promise 56 SetServerCertificate( const uint8* certificate_data, int certificate_data_length, scoped_ptr<media::SimpleCdmPromise> promise) argument 63 CreateSession( const std::string& init_data_type, const uint8* init_data, int init_data_length, SessionType session_type, scoped_ptr<media::NewSessionCdmPromise> promise) argument 95 LoadSession( const std::string& web_session_id, scoped_ptr<media::NewSessionCdmPromise> promise) argument 104 UpdateSession( const std::string& web_session_id, const uint8* response, int response_length, scoped_ptr<media::SimpleCdmPromise> promise) argument 122 CloseSession(const std::string& web_session_id, scoped_ptr<media::SimpleCdmPromise> promise) argument 134 RemoveSession( const std::string& web_session_id, scoped_ptr<media::SimpleCdmPromise> promise) argument 140 GetUsableKeyIds(const std::string& web_session_id, scoped_ptr<media::KeyIdsPromise> promise) argument 148 scoped_ptr<media::CdmPromise> promise = TakePromise(session_id); local 164 scoped_ptr<media::CdmPromise> promise = TakePromise(session_id); local 179 scoped_ptr<media::CdmPromise> promise = TakePromise(session_id); local 209 scoped_ptr<media::CdmPromise> promise = TakePromise(session_id); local 280 SavePromise(uint32_t session_id, scoped_ptr<media::CdmPromise> promise) argument [all...] |