Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=463830
5 -->
6 <head>
7 <title>Test for Bug 463830</title>
8 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=463830">Mozilla Bug 463830</a>
13 <p id="display"></p>
14 <iframe id="i"></iframe>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script type="application/javascript">
21 /** Test for Bug 463830 **/
23 var gTests = [
24 { file: "320x240.ogv", title: "320x240.ogv" },
25 { file: "bug461281.ogg", title: "bug461281.ogg" },
26 ];
28 var gTestNum = 0;
30 addLoadEvent(runTest);
32 var title;
33 var i = document.getElementById("i");
35 function runTest() {
36 if (gTestNum == gTests.length) {
37 SimpleTest.finish();
38 return;
39 }
40 if (gTestNum == 0) {
41 i.addEventListener("load", function() {
42 is(i.contentDocument.title, title, "Doc title incorrect");
43 setTimeout(runTest, 0);
44 }, false);
45 }
47 title = gTests[gTestNum].title;
48 i.src = gTests[gTestNum].file;
49 gTestNum++;
50 }
52 SimpleTest.waitForExplicitFinish();
54 </script>
55 </pre>
56 </body>
57 </html>