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

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

Issue 2273143002: Update web-platform-tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update baseline Created 4 years, 4 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.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-impossible-constraint.https.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-impossible-constraint.https.html
index d8d6d9a8d96c239308f73e8f2e7e435ab63d7844..b63856275c3c0a697ecddb801845536863d723be 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-impossible-constraint.https.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-impossible-constraint.https.html
@@ -10,7 +10,7 @@
<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 an impossible mandatory
-constraint (width &gt;=infinity) in getUserMedia works</p>
+constraint (width &gt;=1G) in getUserMedia works</p>
<div id='log'></div>
<script src=/resources/testharness.js></script>
@@ -19,8 +19,10 @@ constraint (width &gt;=infinity) 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: {width: {min:Infinity}}}, t.step_func(function (stream) {
- assert_unreached("a Video stream of infinite width cannot be created");
+ // Note - integer conversion is weird for +inf and numbers > 2^32, so we
+ // use a number less than 2^32 for testing.
+ navigator.getUserMedia({video: {width: {min:100000000}}}, t.step_func(function (stream) {
+ assert_unreached("a Video stream of width 100M cannot be created");
t.done();
}), t.step_func(function(error) {
assert_equals(error.name, "ConstraintNotSatisfiedError", "An impossible constraint triggers a ConstraintNotSatisfiedError");

Powered by Google App Engine
This is Rietveld 408576698