historical.html (1013B)
1 <!doctype html> 2 <title>Historical WebVTT APIs must not be supported</title> 3 <script src=/resources/testharness.js></script> 4 <script src=/resources/testharnessreport.js></script> 5 <script> 6 // Also see /html/semantics/embedded-content/media-elements/historical.html 7 8 [ 9 // https://github.com/w3c/webvtt/pull/31 10 ['VTTCue', 'regionId'], 11 ['TextTrack', 'regions'], 12 ['TextTrack', 'addRegion'], 13 ['TextTrack', 'removeRegion'], 14 ['VTTRegion', 'track'], 15 // id re-introduced in https://github.com/w3c/webvtt/pull/349/files 16 17 ].forEach(function(feature) { 18 var interf = feature[0]; 19 var member = feature[1]; 20 test(function() { 21 assert_true(interf in window, interf + ' is not supported'); 22 assert_false(member in window[interf].prototype); 23 }, interf + ' ' + member + ' member must be nuked'); 24 }); 25 26 [ 27 // https://github.com/w3c/webvtt/pull/31 28 'VTTRegionList', 29 30 ].forEach(function(interf) { 31 test(function() { 32 assert_false(interf in window); 33 }, interf + ' interface must be nuked'); 34 }); 35 </script>