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

Unified Diff: third_party/WebKit/LayoutTests/imagecapture/takephoto.html

Issue 2167313002: ImageCapture: introduce image_capture Blob to allow move-only semantics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imagecapture/takephoto.html
diff --git a/third_party/WebKit/LayoutTests/imagecapture/takephoto.html b/third_party/WebKit/LayoutTests/imagecapture/takephoto.html
index fce83373bc2809b728dfcbec66a67c7e87ee6392..8b7c6252ebd251c185b768e0af2209aeb6ed73a1 100644
--- a/third_party/WebKit/LayoutTests/imagecapture/takephoto.html
+++ b/third_party/WebKit/LayoutTests/imagecapture/takephoto.html
@@ -29,6 +29,8 @@ async_test(function(t) {
return capturer.takePhoto();
})
.then(blob => {
+ // JS Blob is almost-opaque, can only check |type| and |size|.
+ assert_true('image/cat' === blob.type);
foolip 2016/07/22 23:35:18 assert_equals(blob.type, 'image/cat') for better e
mcasas 2016/07/23 02:58:09 Done.
assert_true(blob.size > 0);
foolip 2016/07/22 23:35:18 assert_equals(blob.size, 2)
mcasas 2016/07/23 02:58:09 Done.
t.done();
})

Powered by Google App Engine
This is Rietveld 408576698