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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-impossible-constraint.html

Issue 2020083002: Import wpt@1b61dad2be6c5100beb565e91c58b8c1084b3c7d (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing tests Created 4 years, 6 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/imported/wpt/mediacapture-streams/GUM-impossible-constraint.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-impossible-constraint.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-impossible-constraint.html
index a05642eb419322288495aa4ab0d03bc1e2e6e91b..d8d6d9a8d96c239308f73e8f2e7e435ab63d7844 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-impossible-constraint.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-impossible-constraint.html
@@ -9,8 +9,8 @@
<body>
<p class="instructions">When prompted, accept to share your video stream.</p>
<h1 class="instructions">Description</h1>
-<p class="instructions">This test checks that setting a trivial mandatory
-constraint (width &gt;=0) in getUserMedia works</p>
+<p class="instructions">This test checks that setting an impossible mandatory
+constraint (width &gt;=infinity) in getUserMedia works</p>
<div id='log'></div>
<script src=/resources/testharness.js></script>
@@ -19,7 +19,7 @@ constraint (width &gt;=0) in getUserMedia works</p>
<script>
var t = async_test("Tests that setting an impossible constraint in getUserMedia fails", {timeout:10000});
t.step(function() {
- navigator.getUserMedia({video: {mandatory: {width: {min:Infinity}}}}, t.step_func(function (stream) {
+ navigator.getUserMedia({video: {width: {min:Infinity}}}, t.step_func(function (stream) {
assert_unreached("a Video stream of infinite width cannot be created");
t.done();
}), t.step_func(function(error) {

Powered by Google App Engine
This is Rietveld 408576698