| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Old Powerful Features on an Insecure Origin</title> | 4 <title>Old Powerful Features on an Insecure Origin</title> |
| 5 </head> | 5 </head> |
| 6 <script src="/resources/testharness.js"></script> | 6 <script src="/resources/testharness.js"></script> |
| 7 <script src="/resources/testharnessreport.js"></script> | 7 <script src="/resources/testharnessreport.js"></script> |
| 8 <script src="/resources/get-host-info.js"></script> | 8 <script src="/resources/get-host-info.js"></script> |
| 9 | 9 |
| 10 <body> | 10 <body> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 this.step_func(function() { | 48 this.step_func(function() { |
| 49 this.done(); | 49 this.done(); |
| 50 }), | 50 }), |
| 51 this.step_func(function(error) { | 51 this.step_func(function(error) { |
| 52 assert_unreached('watchPosition should succeed, but failed.'); | 52 assert_unreached('watchPosition should succeed, but failed.'); |
| 53 this.done(); | 53 this.done(); |
| 54 })); | 54 })); |
| 55 }, 'watchPosition'); | 55 }, 'watchPosition'); |
| 56 | 56 |
| 57 async_test(function() { | 57 async_test(function() { |
| 58 var element = document.getElementById('target'); | |
| 59 document.addEventListener('fullscreenerror', this.step_func(function(e)
{ | |
| 60 assert_unreached('requestFullscreen should succeed, but failed.'); | |
| 61 this.done(); | |
| 62 })); | |
| 63 document.addEventListener('fullscreenchange', this.step_func(function()
{ | |
| 64 this.done(); | |
| 65 })); | |
| 66 | |
| 67 var request = element.requestFullscreen.bind(element); | |
| 68 document.addEventListener("click", request); | |
| 69 eventSender.mouseDown(); | |
| 70 eventSender.mouseUp(); | |
| 71 document.removeEventListener("click", request); | |
| 72 }, 'fullscreen'); | |
| 73 | |
| 74 async_test(function() { | |
| 75 testRunner.setMockDeviceMotion(true, 0, true, 0, true, 0, | 58 testRunner.setMockDeviceMotion(true, 0, true, 0, true, 0, |
| 76 true, 0, true, 0, true, 0, | 59 true, 0, true, 0, true, 0, |
| 77 true, 0, true, 0, true, 0, | 60 true, 0, true, 0, true, 0, |
| 78 0); | 61 0); |
| 79 | 62 |
| 80 window.addEventListener('devicemotion', this.step_func(function() { | 63 window.addEventListener('devicemotion', this.step_func(function() { |
| 81 this.done(); | 64 this.done(); |
| 82 })); | 65 })); |
| 83 }, 'device motion'); | 66 }, 'device motion'); |
| 84 | 67 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 106 test.unreached_func("navigator.mediaDevices.getUserMedia should reje
ct the promise, but resolved instead."), | 89 test.unreached_func("navigator.mediaDevices.getUserMedia should reje
ct the promise, but resolved instead."), |
| 107 function(error) { | 90 function(error) { |
| 108 assert_equals(error.name, "NotSupportedError"); | 91 assert_equals(error.name, "NotSupportedError"); |
| 109 assert_equals(error.message, "Only secure origins are allowed (s
ee: https://goo.gl/Y0ZkNV)."); | 92 assert_equals(error.message, "Only secure origins are allowed (s
ee: https://goo.gl/Y0ZkNV)."); |
| 110 }); | 93 }); |
| 111 }, 'navigator.mediaDevices.getUserMedia'); | 94 }, 'navigator.mediaDevices.getUserMedia'); |
| 112 } | 95 } |
| 113 </script> | 96 </script> |
| 114 </body> | 97 </body> |
| 115 </html> | 98 </html> |
| OLD | NEW |