js/xpconnect/tests/mochitest/test_bug871887.html

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:699e70b32b6f
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=871887
5 -->
6 <head>
7 <meta charset="utf-8">
8 <title>Test for Bug 871887</title>
9 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 <script type="application/javascript;version=1.7">
12
13 /** Test for Bug 871887 **/
14 SimpleTest.waitForExplicitFinish();
15
16 // NB: onstart ends up getting invoked twice, for mysterious and potentially-
17 // IE6-related reasons.
18 function checkpoint(invocant) {
19 ok(true, "onstart called");
20 is(invocant, $('llama'), "this-binding is correct");
21 $('llama').loop = 1;
22 $('llama').scrollDelay = 1;
23 $('llama').scrollAmount = 500;
24 }
25
26 function done(invocant) {
27 is(invocant, $('llama'), "this-binding is correct");
28 ok(true, "onfinish called");
29 SimpleTest.finish();
30 }
31
32 </script>
33 </head>
34 <body>
35 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=871887">Mozilla Bug 871887</a>
36 <p id="display"></p>
37 <div id="content">
38 <marquee id="llama" onstart="checkpoint(this);" onfinish="done(this);">Watch the Llama</marquee>
39 </div>
40 <pre id="test">
41 </pre>
42 </body>
43 </html>

mercurial