1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/media/test/test_texttracklist_chrome.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=881976 1.8 +--> 1.9 +<head> 1.10 + <meta charset='utf-8'> 1.11 + <title>Test for Bug 881976 - TextTrackCue Computed Position</title> 1.12 + <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 1.13 + <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/> 1.14 +</head> 1.15 +<body> 1.16 +<p id="display"></p> 1.17 +<div id="content"> 1.18 +</div> 1.19 +<pre id="test"> 1.20 +<script class="testbody" type="text/javascript"> 1.21 +SimpleTest.waitForExplicitFinish(); 1.22 +SpecialPowers.pushPrefEnv({"set": [["media.webvtt.enabled", true]]}, 1.23 + function() { 1.24 + var video = document.createElement("video"); 1.25 + is(video.textTracks.mediaElement, video, "Video's TextTrackList's MediaElement reference should be set to the video."); 1.26 + SimpleTest.finish(); 1.27 + } 1.28 +); 1.29 + 1.30 +</script> 1.31 +</pre> 1.32 +</body> 1.33 +</html> 1.34 \ No newline at end of file