Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / mochitest / test_bug428021.html
blob932dcf7428fc0166509b6085c2db5e264e7ea92f
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=428021
5 -->
6 <head>
7 <title>Test for Bug 428021</title>
8 <script 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=428021">Mozilla Bug 428021</a>
13 <p id="display"></p>
14 <div id="content" style="display: none">
16 </div>
17 <pre id="test">
18 <script class="testbody" type="text/javascript">
20 /** Test for Bug 428021 **/
21 var rangetter, ransetter;
22 this.__defineGetter__('x', function() { rangetter = true; });
23 this.__defineSetter__('x', function(val) { ransetter = true; });
25 var exn;
26 try {
27 e = x;
28 x = false;
29 } catch (e) {
30 exn = e;
32 ok(!exn, "Exception caught: " + exn);
33 ok(rangetter, "Failed to run getter");
34 ok(ransetter, "Failed to run setter");
36 </script>
37 </pre>
38 </body>
39 </html>