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

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: foolip comments and rebase 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..bbac020c9995bcc189a149ad6a1cbfdbcff6d330 100644
--- a/third_party/WebKit/LayoutTests/imagecapture/takephoto.html
+++ b/third_party/WebKit/LayoutTests/imagecapture/takephoto.html
@@ -29,7 +29,9 @@ async_test(function(t) {
return capturer.takePhoto();
})
.then(blob => {
- assert_true(blob.size > 0);
+ // JS Blob is almost-opaque, can only check |type| and |size|.
+ assert_equals(blob.type, 'image/cat');
+ assert_equals(blob.size, 2);
t.done();
})
.catch(error => {

Powered by Google App Engine
This is Rietveld 408576698