Share common code between calendar picker and color suggestion picker
[WebKit-https.git] / ManualTests / user-media-request-crash.html
1 <html>
2 <head>
3 <meta http-equiv="refresh" content="2"/>
4
5 <script>
6 function error() {
7 }
8
9 function getUserMedia(dictionary, callback) {
10     try {
11         navigator.webkitGetUserMedia(dictionary, callback, error);
12     } catch (e) {
13     }
14 }
15
16 function gotStream1(s) {
17 }
18
19 function start() {
20     getUserMedia({audio:true}, gotStream1);
21 }
22 </script>
23
24 </head>
25 <body onload="start()">
26 <h1>Test passes if it does not crash.</h1>
27 </body>
28 </html>