Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / mochitest / test_bug790732.html
blobc7022739003da8e3072c3d5ba2c831148af2fe5d
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=790732
5 -->
6 <head>
7 <meta charset="utf-8">
8 <title>Test for Bug 790732</title>
9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 <script type="application/javascript">
12 SimpleTest.waitForExplicitFinish();
14 async function doTest() {
15 await SpecialPowers.pushPrefEnv({set: [["dom.use_components_shim", true]]})
17 // Basic stuff
18 ok(Components, "Components shim exists!");
19 var Ci = Components.interfaces;
20 ok(Ci, "interfaces shim exists!");
21 is(typeof Components.classes, 'undefined', "Shouldn't have a Cc");
23 // Check each interface that we shim. We start by checking specific
24 // constants for a couple of interfaces, and then once it's pretty clear that
25 // it's working as intended we just check that the objects themselves are the
26 // same.
27 is(Ci.nsIXMLHttpRequest.HEADERS_RECEIVED, XMLHttpRequest.HEADERS_RECEIVED);
28 is(Ci.nsIDOMNode.DOCUMENT_NODE, Node.DOCUMENT_NODE);
29 is(Ci.nsIDOMKeyEvent, KeyEvent);
30 is(Ci.nsIDOMMouseEvent, MouseEvent);
31 is(Ci.nsIDOMMouseScrollEvent, MouseScrollEvent);
32 is(Ci.nsIDOMMutationEvent, MutationEvent);
33 is(Ci.nsIDOMUIEvent, UIEvent);
34 is(Ci.nsIDOMHTMLMediaElement, HTMLMediaElement);
35 is(Ci.nsIDOMRange, Range);
36 is(Ci.nsIDOMNodeFilter, NodeFilter);
37 is(Ci.nsIDOMXPathResult, XPathResult);
39 SimpleTest.finish();
42 doTest();
43 </script>
44 </head>
45 <body>
46 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=790732">Mozilla Bug 790732</a>
47 <p id="display"></p>
48 <div id="content" style="display: none">
50 </div>
51 <pre id="test">
52 </pre>
53 <iframe id="ifr"></iframe>
54 </body>
55 </html>