historical.html (2593B)
1 <!doctype html> 2 <title>Historical media element features should not be supported</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <div id=log></div> 6 <script> 7 function t(property, tagName) { 8 var tagNames = tagName ? [tagName] : ['audio', 'video']; 9 tagNames.forEach(function(tagName) { 10 test(function() { 11 assert_false(property in document.createElement(tagName)); 12 }, tagName + '.' + property + ' should not be supported'); 13 }); 14 } 15 16 t('bufferingRate'); // added in r678, removed in r2872. 17 t('start'); // added in r692, removed in r2401. 18 t('end'); // added in r692, removed in r2401. 19 t('loopStart'); // added in r692, removed in r2401. 20 t('loopEnd'); // added in r692, removed in r2401. 21 t('loopCount'); // added in r692, replaced with playCount in r1105. 22 t('currentLoop'); // added in r692, removed in r2401. 23 t('addCuePoint'); // added in r721, replaced with addCueRange in r1106. 24 t('removeCuePoint'); // added in r721, replaced with removeCueRanges in r1106. 25 t('playCount'); // added in r1105, removed in r2401. 26 t('addCueRange'); // added in r1106, removed in r5070. 27 t('removeCueRanges'); // added in r1106, removed in r5070. 28 t('pixelratio', 'source'); // added in r1629, removed in r2493. 29 t('bufferedBytes'); // added in r1630, removed in r2405. 30 t('totalBytes'); // added in r1630, removed in r2405. 31 t('bufferingThrottled'); // added in r1632, removed in r2872. 32 t('autobuffer'); // added in r2855, replaced with preload in r4811. 33 t('startTime'); // added in r3035, replaced with initialTime in r5310. 34 t('startOffsetTime'); // added in r5310, replaced with startDate in r7045. 35 t('initialTime'); // added in r5310, removed in r7046. 36 t('audio', 'video'); // added in r5636, replaced with muted in r5991. 37 t('startDate'); // added in r7045, replaced with getStartDate() in r8113. 38 t('mozSrcObject'); // never in the spec 39 t('mozPreservesPitch'); // prefixed version should be removed. 40 t('webkitPreservesPitch'); // prefixed version should be removed. 41 42 // TextTrackCue constructor: added in r5723, removed in r7742. 43 test(function() { 44 assert_throws_js(TypeError, function() { 45 new TextTrackCue(0, 0, ''); 46 }); 47 }, 'TextTrackCue constructor should not be supported'); 48 49 // added in https://github.com/whatwg/html/commit/66c5b32240c202c74f475872e7ea2cd163777b4a 50 // removed in https://github.com/whatwg/html/commit/634698e70ea4586d58c989fa7d2cbfcad20d33e6 51 t('mediaGroup'); 52 t('controller'); 53 test(function() { 54 assert_false('MediaController' in window); 55 }, 'MediaController constructor should not be supported'); 56 </script>