Searched defs:then (Results 1 - 25 of 53) sorted by relevance

123

/external/chromium_org/v8/test/mjsunit/es6/regress/
H A Dregress-cr372788.js33 var thenable = { then: function(f) { x++; f(); } };
36 Promise.resolve(thenable).then(function() { x++; y++; });
/external/chromium_org/v8/test/webkit/fast/js/
H A DPromise-resolve-with-then-fulfill.js31 then: function(onFulfilled) {
32 testPassed('value.then is called.');
41 }).then(function(localResult) {
H A DPromise-resolve-with-then-reject.js31 then: function(onFulfilled, onRejected) {
32 testPassed('value.then is called.');
41 }).then(function() {
/external/chromium_org/chrome/installer/util/
H A Dgoogle_update_experiment_util.cc48 base::Time::Exploded then = {}; local
49 current_time.UTCExplode(&then);
50 then.year += 1;
51 DCHECK(then.HasValidValues());
55 kDays[then.day_of_week],
56 then.day_of_month,
57 kMonths[then.month - 1],
58 then.year,
59 then.hour,
60 then
[all...]
/external/chromium_org/chrome/browser/ui/webui/options/
H A Dautomatic_settings_reset_handler.cc34 const base::Time then = local
36 if (!then.is_null()) {
38 if ((now - then).InDays() < kBannerShowTimeInDays)
/external/chromium_org/chrome/common/extensions/docs/server2/
H A Dfuture.py23 If any Future raises an error in |except_pass| then None will be inserted as
24 its result. If |except_pass_log| is True then the exception will be logged.
45 If all Futures throw errors in |except_pass| then |default| is returned,
46 if specified. If |default| is not specified then one of the passed errors
84 If |callback| returns a non-Future value then the returned Future will
87 If |callback| returns a Future then it gets chained to the current Future.
106 def then(): function in function:Future.Then
115 return Future(callback=then)
/external/mockito/src/org/mockito/internal/stubbing/
H A DConsecutiveStubbing.java23 public OngoingStubbing<T> then(Answer<?> answer) { method in class:ConsecutiveStubbing
H A DOngoingStubbingImpl.java32 public OngoingStubbing<T> then(Answer<?> answer) { method in class:OngoingStubbingImpl
/external/mockito/src/org/mockito/stubbing/
H A DOngoingStubbing.java11 * Simply put: "<b>When</b> the x method is called <b>then</b> return y". E.g:
74 * If throwables contain a checked exception then it has to
80 * if throwable is null then exception will be thrown.
99 * If throwableClasses contain a checked exception then it has to
105 * if throwable is null then exception will be thrown.
130 * // if it isn't safe then you will have trouble stubbing it using this api. Use Mockito.doCallRealMethod() instead.
169 * //using 'then' alias:
170 * when(mock.foo()).then(returnCoolValue());
182 OngoingStubbing<T> then(Answer<?> answer); method in interface:OngoingStubbing
/external/qemu/distrib/sdl-1.2.15/src/timer/riscos/
H A DSDL_systimer.c86 Uint32 now,then,elapsed; local
103 then = SDL_GetTicks();
116 elapsed = (now-then);
117 then = now;
/external/chromium_org/chrome/browser/resources/google_now/
H A Dcommon_test_util.js87 return (typeof value === 'object') && isCallable(value.then);
109 function then(onResolve, onReject) {
118 var resolveReject = callResolveRejectFunc(handlerResult.then);
134 return this.then(undefined, onRejected);
142 var thenResolveReject = callResolveRejectFunc(result.then);
147 return {then: then, catch: catchFunc, isPromise: true};
154 arrayOfPromises[i].then(function(result) {
H A Dutility.js450 var originalThen = Promise.prototype.then;
463 Promise.prototype.then = function(onResolved, onRejected) {
475 * Handles coordination of 'then' and 'catch' callbacks in a task
476 * manager compatible way. For an individual promise, either the 'then'
481 * p.then([ThenA]);
482 * p.then([ThenB]);
492 * p.then([ThenA]).then([ThenB]).catch([CatchA]);
503 * If p resolves, then the 'then' call
[all...]
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/
H A DScriptPromise.cpp103 ScriptPromise ScriptPromise::then(v8::Handle<v8::Function> onFulfilled, v8::Handle<v8::Function> onRejected) function in class:blink::ScriptPromise
112 // In fact it is not the exact bahavior of Promise.prototype.then
/external/qemu/distrib/sdl-1.2.15/test/
H A Dtestgamma.c83 Uint32 then, timeout; local
141 then = SDL_GetTicks();
143 while ( (SDL_GetTicks()-then) < timeout ) {
H A Dtestvidinfo.c79 Uint32 then, now; local
94 then = SDL_GetTicks();
121 seconds = (float)(now - then) / 1000.0f;
147 then = SDL_GetTicks();
150 seconds = (float)(now - then) / 1000.0f;
178 then = SDL_GetTicks();
181 seconds = (float)(now - then) / 1000.0f;
209 then = SDL_GetTicks();
212 seconds = (float)(now - then) / 1000.0f;
240 then
[all...]
H A Dtestwin.c244 Uint32 then, now; local
367 then = SDL_GetTicks();
370 printf("Time: %d milliseconds\n", now-then);
H A Dtestoverlay.c330 Uint32 then, now; local
552 then = SDL_GetTicks();
578 printf("Conversion Time: %d milliseconds\n", now-then);
583 then = SDL_GetTicks();
588 printf("Time: %d milliseconds\n", now-then);
H A Dtestsprite.c134 blits directly to it, then use page flipping.
161 Uint32 then, now, frames; local
290 then = SDL_GetTicks();
317 if ( now > then ) {
319 ((double)frames*1000)/(now-then));
/external/chromium_org/content/browser/quota/
H A Dmock_quota_manager_unittest.cc190 base::Time then = base::Time(); local
194 GetModifiedOrigins(kTemporary, then);
200 GetModifiedOrigins(kTemporary, then);
210 GetModifiedOrigins(kTemporary, then);
/external/chromium_org/third_party/icu/source/test/cintltst/
H A Dcdtdptst.c197 UChar *pattern=NULL, *now=NULL, *then=NULL; local
214 else then=myDateFormat(format, date2);
215 log_verbose("%s\n", austrdup(then) );
/external/chromium_org/third_party/libvpx/source/libvpx/
H A Drate_hist.c77 int64_t then = 0; local
91 then = now;
97 then = hist->pts[i_idx];
98 if (now - then > cfg->rc_buf_sz)
103 if (now == then)
106 avg_bitrate = sum_sz * 8 * 1000 / (now - then);
/external/icu/icu4c/source/test/cintltst/
H A Dcdtdptst.c197 UChar *pattern=NULL, *now=NULL, *then=NULL; local
214 else then=myDateFormat(format, date2);
215 log_verbose("%s\n", austrdup(then) );
/external/icu/icu4c/source/test/intltest/
H A Dastrotst.cpp150 UDate then = cal->getTime(status); local
151 CalendarAstronomer *myastro = new CalendarAstronomer(then);
/external/libvpx/libvpx/
H A Drate_hist.c77 int64_t then = 0; local
91 then = now;
97 then = hist->pts[i_idx];
98 if (now - then > cfg->rc_buf_sz)
103 if (now == then)
106 avg_bitrate = sum_sz * 8 * 1000 / (now - then);
/external/chromium_org/third_party/icu/source/test/intltest/
H A Dastrotst.cpp152 UDate then = cal->getTime(status); local
153 CalendarAstronomer *myastro = new CalendarAstronomer(then);

Completed in 4606 milliseconds

123