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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html

Issue 2528563005: Add deprecation messages for EME requestMediaKeySystemAccess features (Closed)
Patch Set: fix test (+rebase) Created 4 years 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html manifest="/security/powerfulFeatureRestrictions/resources/simple.manifest" > 2 <html manifest="/security/powerfulFeatureRestrictions/resources/simple.manifest" >
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 15 matching lines...) Expand all
26 0); 26 0);
27 window.addEventListener('devicemotion', this.step_func_done()); 27 window.addEventListener('devicemotion', this.step_func_done());
28 }, 'device motion'); 28 }, 'device motion');
29 29
30 async_test(function() { 30 async_test(function() {
31 testRunner.setMockDeviceOrientation(11.1, 22.2, 33.3, true); 31 testRunner.setMockDeviceOrientation(11.1, 22.2, 33.3, true);
32 window.addEventListener('deviceorientation', this.step_func_done()); 32 window.addEventListener('deviceorientation', this.step_func_done());
33 }, 'device orientation'); 33 }, 'device orientation');
34 34
35 promise_test(function(test) { 35 promise_test(function(test) {
36 return navigator.requestMediaKeySystemAccess('org.w3.clearkey', [{}]); 36 return navigator.requestMediaKeySystemAccess('org.w3.clearkey',
37 [{ videoCapabilities: [{contentType: 'video/webm; codecs="vp9"'}] }] );
37 }, 'requestMediaKeySystemAccess'); 38 }, 'requestMediaKeySystemAccess');
38 39
39 // Tests for APIs that have been turned off on insecure origins 40 // Tests for APIs that have been turned off on insecure origins
40 async_test(function() { 41 async_test(function() {
41 navigator.geolocation.getCurrentPosition( 42 navigator.geolocation.getCurrentPosition(
42 this.unreached_func('getCurrentPosition should fail, but succeeded.' ), 43 this.unreached_func('getCurrentPosition should fail, but succeeded.' ),
43 this.step_func_done(function(error) { 44 this.step_func_done(function(error) {
44 assert_equals(error.code, error.PERMISSION_DENIED); 45 assert_equals(error.code, error.PERMISSION_DENIED);
45 })); 46 }));
46 }, 'getCurrentPosition'); 47 }, 'getCurrentPosition');
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 })) 84 }))
84 .catch(this.unreached_func("fetch() for cachable resource unexpe ctedly failed")); 85 .catch(this.unreached_func("fetch() for cachable resource unexpe ctedly failed"));
85 }); 86 });
86 87
87 applicationCache.addEventListener('cached', cached, false); 88 applicationCache.addEventListener('cached', cached, false);
88 }, 'appcache'); 89 }, 'appcache');
89 } 90 }
90 </script> 91 </script>
91 </body> 92 </body>
92 </html> 93 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698