mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0
This commit is contained in:
parent
1d40075f03
commit
079092dfea
2381 changed files with 90360 additions and 17722 deletions
|
@ -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 >=infinity) in getUserMedia works</p>
|
||||
constraint (width >=1G) in getUserMedia works</p>
|
||||
|
||||
<div id='log'></div>
|
||||
<script src=/resources/testharness.js></script>
|
||||
|
@ -19,8 +19,10 @@ constraint (width >=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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue