OLD | NEW |
1 Tests webkitGetUserMedia. | 1 Tests webkitGetUserMedia. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS navigator.webkitGetUserMedia({audio:false, video:false}, error, error); thr
ew exception NotSupportedError: Failed to execute 'webkitGetUserMedia' on 'Navig
ator': Failed to request user media.. | 6 PASS navigator.webkitGetUserMedia({audio:false, video:false}, error, error); thr
ew exception SyntaxError: Failed to execute 'webkitGetUserMedia' on 'Navigator':
At least one of audio and video must be requested. |
7 PASS navigator.webkitGetUserMedia({audio:true}, gotStream1, error); did not thro
w exception. | 7 PASS navigator.webkitGetUserMedia({audio:true}, gotStream1, error); did not thro
w exception. |
8 PASS Stream generated. | 8 PASS Stream generated. |
9 PASS stream.getAudioTracks().length is 1 | 9 PASS stream.getAudioTracks().length is 1 |
10 PASS stream.getVideoTracks().length is 0 | 10 PASS stream.getVideoTracks().length is 0 |
11 PASS navigator.webkitGetUserMedia({video:true}, gotStream2, error); did not thro
w exception. | 11 PASS navigator.webkitGetUserMedia({video:true}, gotStream2, error); did not thro
w exception. |
12 PASS Stream generated. | 12 PASS Stream generated. |
13 PASS stream.getAudioTracks().length is 0 | 13 PASS stream.getAudioTracks().length is 0 |
14 PASS stream.getVideoTracks().length is 1 | 14 PASS stream.getVideoTracks().length is 1 |
15 PASS navigator.webkitGetUserMedia({audio:true, video:true}, gotStream3, error);
did not throw exception. | 15 PASS navigator.webkitGetUserMedia({audio:true, video:true}, gotStream3, error);
did not throw exception. |
16 PASS Stream generated. | 16 PASS Stream generated. |
17 PASS stream.getAudioTracks().length is 1 | 17 PASS stream.getAudioTracks().length is 1 |
18 PASS stream.getVideoTracks().length is 1 | 18 PASS stream.getVideoTracks().length is 1 |
19 PASS navigator.webkitGetUserMedia({audio:{mandatory:{}, optional:[]}, video:true
}, gotStream4, error); did not throw exception. | 19 PASS navigator.webkitGetUserMedia({audio:{mandatory:{}, optional:[]}, video:true
}, gotStream4, error); did not throw exception. |
20 PASS Stream generated. | 20 PASS Stream generated. |
21 PASS stream.getAudioTracks().length is 1 | 21 PASS stream.getAudioTracks().length is 1 |
22 PASS stream.getVideoTracks().length is 1 | 22 PASS stream.getVideoTracks().length is 1 |
23 PASS navigator.webkitGetUserMedia({audio:{mandatory:{'valid_but_unsupported_1':0
}, optional:[]}, video:true}, gotStreamInError, error1); did not throw exception
. | 23 PASS navigator.webkitGetUserMedia({audio:{mandatory:{'valid_but_unsupported_1':0
}, optional:[]}, video:true}, gotStreamInError, error1); did not throw exception
. |
24 PASS Error callback called. | 24 PASS Error callback called. |
25 PASS errorArg.name is "ConstraintNotSatisfiedError" | 25 PASS errorArg.name is "ConstraintNotSatisfiedError" |
26 PASS errorArg.constraintName is "valid_but_unsupported_1" | 26 PASS errorArg.constraintName is "valid_but_unsupported_1" |
27 PASS navigator.webkitGetUserMedia({audio:{mandatory:{'valid_and_supported_1':1},
optional:[{'valid_but_unsupported_1':0}]}, video:true}, gotStream5, error); did
not throw exception. | 27 PASS navigator.webkitGetUserMedia({audio:{mandatory:{'valid_and_supported_1':1},
optional:[{'valid_but_unsupported_1':0}]}, video:true}, gotStream5, error); did
not throw exception. |
28 PASS Stream generated. | 28 PASS Stream generated. |
29 PASS stream.getAudioTracks().length is 1 | 29 PASS stream.getAudioTracks().length is 1 |
30 PASS stream.getVideoTracks().length is 1 | 30 PASS stream.getVideoTracks().length is 1 |
31 PASS successfullyParsed is true | 31 PASS successfullyParsed is true |
32 | 32 |
33 TEST COMPLETE | 33 TEST COMPLETE |
34 | 34 |
OLD | NEW |