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

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: remove all testharness-helpers.js references Created 4 years, 7 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 ab0ae95f1086c3087b2eec3c94eb71dc5ffe105e..4b1f4b85c66c63357a905f6fdb817574d3bf545e 100644
--- a/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-creation.html
+++ b/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-creation.html
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<script src=../../resources/testharness.js></script>
<script src=../../resources/testharnessreport.js></script>
-<script src=../../resources/testharness-helpers.js></script>
<script>
// This test verifies that ImageCapture can be created (or not) with different
@@ -24,10 +23,11 @@ function makeAsyncTest(modifyTrack, message) {
modifyTrack(videoTrack);
- assert_promise_rejects(capturer.grabFrame(),
- 'InvalidStateError',
- 'Should throw InvalidStateError.')
- .then(() => test.done());
+ promise_rejects(test,
+ 'InvalidStateError',
+ capturer.grabFrame(),
+ 'Should throw InvalidStateError.')
+ .then(() => test.done());
});
const onError = test.unreached_func('Error creating MediaStream.');

Powered by Google App Engine
This is Rietveld 408576698