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

Issue 2481013004: [sensors] Reject test promise when callback throws an error (Closed)

Created:
4 years, 1 month ago by shalamov
Modified:
4 years, 1 month ago
Reviewers:
haraken, Mikhail
CC:
chromium-reviews, blink-reviews, Reilly Grant (use Gerrit)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sensors] Reject test promise when callback throws an error This CL improves test reports for ambient light sensor by wrapping Sensor.on* callbacks that might throw an error. When error is thrown, promise for async test is rejected and executed test would be marked as 'FAIL'. Before this change, failing tests could timeout and block consecutive test execution. BUG=606766 Committed: https://crrev.com/6420f2fefc6438000fe55814cc3d18fe38096915 Cr-Commit-Position: refs/heads/master@{#430917}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fixes for comments from Mikhail #

Patch Set 3 : Rebased to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -38 lines) Patch
M third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html View 1 2 13 chunks +49 lines, -37 lines 0 comments Download
M third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js View 1 2 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 23 (15 generated)
shalamov
Please take a look.
4 years, 1 month ago (2016-11-08 08:49:48 UTC) #7
Mikhail
https://codereview.chromium.org/2481013004/diff/1/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js File third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js (right): https://codereview.chromium.org/2481013004/diff/1/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js#newcode15 third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js:15: callback() { Could you provide more readable name for ...
4 years, 1 month ago (2016-11-08 09:04:16 UTC) #8
Mikhail
lgtm
4 years, 1 month ago (2016-11-08 10:26:45 UTC) #9
shalamov
PTAL
4 years, 1 month ago (2016-11-09 10:36:34 UTC) #15
haraken
LGTM on my side
4 years, 1 month ago (2016-11-09 11:39:13 UTC) #16
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/2481013004/40001
4 years, 1 month ago (2016-11-09 12:39:03 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-09 12:43:16 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 12:44:50 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6420f2fefc6438000fe55814cc3d18fe38096915
Cr-Commit-Position: refs/heads/master@{#430917}

Powered by Google App Engine
This is Rietveld 408576698