Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(842)

Issue 2600733002: Convert budget LayoutTests to use promise_test. (Closed)

Created:
3 years, 12 months ago by harkness
Modified:
3 years, 11 months ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert budget LayoutTests to use promise_test. The infrastructure of async_test LayoutTests was changed recently, and one effect is that an assert inside an event listener will cause the test to time out instead of returning the error. This makes the test much more difficult to debug failures. Additionally, promise_test is just nicer when it's easy to return a promise. This CL updates the existing budget tests which run in service workers to use promise_test. It also cleans up a bit of style. BUG=617971 Review-Url: https://codereview.chromium.org/2600733002 Cr-Commit-Position: refs/heads/master@{#441931} Committed: https://chromium.googlesource.com/chromium/src/+/66cd34190886e221b7d79beac0b19cf6b2ebf633

Patch Set 1 #

Total comments: 4

Patch Set 2 : Changed then scoping and removed unnecessary rejection. #

Messages

Total messages: 10 (5 generated)
harkness
3 years, 12 months ago (2016-12-23 13:33:19 UTC) #2
Peter Beverloo
lgtm w/ nits https://codereview.chromium.org/2600733002/diff/1/third_party/WebKit/LayoutTests/http/tests/budget/get-budget-in-service-worker.html File third_party/WebKit/LayoutTests/http/tests/budget/get-budget-in-service-worker.html (right): https://codereview.chromium.org/2600733002/diff/1/third_party/WebKit/LayoutTests/http/tests/budget/get-budget-in-service-worker.html#newcode22 third_party/WebKit/LayoutTests/http/tests/budget/get-budget-in-service-worker.html:22: .then(function(workerInfo) { nit: I'd move the ...
3 years, 11 months ago (2017-01-04 18:18:11 UTC) #3
harkness
https://codereview.chromium.org/2600733002/diff/1/third_party/WebKit/LayoutTests/http/tests/budget/get-budget-in-service-worker.html File third_party/WebKit/LayoutTests/http/tests/budget/get-budget-in-service-worker.html (right): https://codereview.chromium.org/2600733002/diff/1/third_party/WebKit/LayoutTests/http/tests/budget/get-budget-in-service-worker.html#newcode22 third_party/WebKit/LayoutTests/http/tests/budget/get-budget-in-service-worker.html:22: .then(function(workerInfo) { On 2017/01/04 18:18:11, Peter Beverloo wrote: > ...
3 years, 11 months ago (2017-01-06 13:37:10 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2600733002/20001
3 years, 11 months ago (2017-01-06 13:37:35 UTC) #7
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 14:58:19 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/66cd34190886e221b7d79beac0b1...

Powered by Google App Engine
This is Rietveld 408576698