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

Issue 1966083003: ImageCapture: takePhoto() mock LayoutTest (Closed)

Created:
4 years, 7 months ago by mcasas
Modified:
4 years, 7 months ago
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ImageCapture: takePhoto() mock LayoutTest ImageCapture takePhoto() implementation needs a meaningful MediaStream implementation in Browser side, but LayoutTests doesn't have it. Following the example of USB, 'battery-status' and 'payments' Layout Tests, this CL: - creates a LayoutTest entry for image capture - defines a MockImageCapture js class, that simply resolves successfully the takePhoto() Promise - adds a JS test that instantiates said Mock and exercises it. The previous LayoutTest/fast/imagecapture/...takePhoto is removed. BUG=610333 Committed: https://crrev.com/b1ac16005aa53c3ceecd666a892371834074d83b Cr-Commit-Position: refs/heads/master@{#393290}

Patch Set 1 #

Patch Set 2 : mlamouri@ comments: converted to testharness.js #

Patch Set 3 : offline reillyg@ comments on mock-imagecapture.js #

Total comments: 6

Patch Set 4 : mlamouri@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -34 lines) Patch
M third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-takePhoto.html View 1 chunk +0 lines, -34 lines 0 comments Download
A third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/imagecapture/takephoto.html View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
mcasas
mlamouri@ PTAL
4 years, 7 months ago (2016-05-11 05:28:03 UTC) #7
mcasas
reillyg@ PTAL as well (I see mlamouri@ has loads of reviews)
4 years, 7 months ago (2016-05-11 05:31:48 UTC) #9
mlamouri (slow - plz ping)
Is there any reason why you no longer use testharness?
4 years, 7 months ago (2016-05-11 10:21:37 UTC) #10
mcasas
On 2016/05/11 10:21:37, Mounir Lamouri wrote: > Is there any reason why you no longer ...
4 years, 7 months ago (2016-05-11 15:57:52 UTC) #11
mlamouri (slow - plz ping)
On 2016/05/11 at 15:57:52, mcasas wrote: > On 2016/05/11 10:21:37, Mounir Lamouri wrote: > > ...
4 years, 7 months ago (2016-05-11 16:07:48 UTC) #12
mcasas
Done changing, PTAL at PS2.
4 years, 7 months ago (2016-05-11 16:25:51 UTC) #13
mlamouri (slow - plz ping)
lgtm. Thanks! :) https://codereview.chromium.org/1966083003/diff/120001/third_party/WebKit/LayoutTests/imagecapture/takephoto.html File third_party/WebKit/LayoutTests/imagecapture/takephoto.html (right): https://codereview.chromium.org/1966083003/diff/120001/third_party/WebKit/LayoutTests/imagecapture/takephoto.html#newcode4 third_party/WebKit/LayoutTests/imagecapture/takephoto.html:4: </body> I would recommend having this ...
4 years, 7 months ago (2016-05-12 13:19:32 UTC) #15
mcasas
https://codereview.chromium.org/1966083003/diff/120001/third_party/WebKit/LayoutTests/imagecapture/takephoto.html File third_party/WebKit/LayoutTests/imagecapture/takephoto.html (right): https://codereview.chromium.org/1966083003/diff/120001/third_party/WebKit/LayoutTests/imagecapture/takephoto.html#newcode4 third_party/WebKit/LayoutTests/imagecapture/takephoto.html:4: </body> On 2016/05/12 13:19:32, Mounir Lamouri wrote: > I ...
4 years, 7 months ago (2016-05-12 16:32:01 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1966083003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1966083003/140001
4 years, 7 months ago (2016-05-12 16:32:21 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:140001)
4 years, 7 months ago (2016-05-12 17:36:19 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-12 17:38:22 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b1ac16005aa53c3ceecd666a892371834074d83b
Cr-Commit-Position: refs/heads/master@{#393290}

Powered by Google App Engine
This is Rietveld 408576698