Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / mochitest / test_bug393269.html
blobd69e9ef2d18a05eeac2ddf4e5a652b284079f20f
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=393269
5 -->
6 <head>
7 <title>Test for Bug 393269</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=393269">Mozilla Bug 393269</a>
13 <iframe id="ifr"></iframe>
14 <pre id="test">
15 <script class="testbody" type="text/javascript">
17 (function () {
18 /** Test for Bug 393269 **/
19 var doc = $("ifr").contentDocument;
20 is("UTF-8", doc.characterSet, "control, getting a property");
21 doc.open();
22 try {
23 is("UTF-8", doc.characterSet,
24 "can get a property after 1 document.open")
25 } catch (e) {
26 fail("Shouldn't have thrown: " + e);
27 return;
28 } finally {
29 doc.close();
32 doc.open();
33 try {
34 is("UTF-8", doc.characterSet,
35 "can get a property after 2 document.opens")
36 } catch (e) {
37 fail("Shouldn't have thrown: " + e);
38 } finally {
39 doc.close();
41 })();
42 </script>
43 </pre>
44 </body>
45 </html>