Chromium Code Reviews
DescriptionImageCapture: 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 #
Messages
Total messages: 23 (12 generated)
|
|||||||||||||||||||||||||||||||||||||