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

Unified Diff: third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-creation.html

Issue 1926813004: Replace assert_promise_rejects with upstream promise_rejects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update testharness.js and rebase Created 4 years, 8 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/fast/imagecapture/ImageCapture-creation.html
diff --git a/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-creation.html b/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-creation.html
index 8cfadc4edafdf985ee79df8d892e04b8071494c7..a7f4ff837ce68638ee132da50c0c3c008923e5ff 100644
--- a/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-creation.html
+++ b/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-creation.html
@@ -22,15 +22,17 @@ var testVideo = promise_test(function() {
// disabled, or ended. grabFrame() would also reject if the video Track is
// muted but that's a read-only property.
stream.getVideoTracks()[0].enabled = false;
- assert_promise_rejects(capturer.grabFrame(),
- 'InvalidStateError',
- 'ImageCapturer cannot grabFrame() of a disabled Track');
+ promise_rejects(this,
Marijn Kruisselbrink 2016/04/28 19:10:46 These changes aren't strictly correct, but they're
jsbell 2016/04/29 17:39:07 Acknowledged.
+ 'InvalidStateError',
+ capturer.grabFrame(),
+ 'ImageCapturer cannot grabFrame() of a disabled Track');
stream.getVideoTracks()[0].stop();
assert_equals(stream.getVideoTracks()[0].readyState, 'ended');
- assert_promise_rejects(capturer.grabFrame(),
- 'InvalidStateError',
- 'ImageCapturer cannot grabFrame() of a non-live Track');
+ promise_rejects(this,
+ 'InvalidStateError',
+ capturer.grabFrame(),
+ 'ImageCapturer cannot grabFrame() of a non-live Track');
this.done();
});

Powered by Google App Engine
This is Rietveld 408576698