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 #
Messages
Total messages: 23 (15 generated)
|