Bug 1869043 allow a device to be specified with MediaTrackGraph::NotifyWhenDeviceStar...
[gecko.git] / layout / mathml / tests / test_disabled_chrome.html
blobcecba95327500080473735559399845f8c9274a7
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=1173199
5 -->
6 <head>
7 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
8 <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
9 </head>
10 <body>
11 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1173199">Mozilla Bug 1173199</a>
12 <div id="testnodes"></div>
13 <pre id="test">
14 <script type="application/javascript">
15 add_task(async function() {
16 const { ContentTaskUtils } = ChromeUtils.importESModule(
17 "resource://testing-common/ContentTaskUtils.sys.mjs"
19 let t = document.getElementById('testnodes');
21 const url = 'chrome://mochitests/content/chrome/layout/mathml/tests/test_disabled_chrome_iframe.html';
22 const chromeIframeEl = document.createElement('iframe');
23 let chromeLoadPromise = ContentTaskUtils.waitForEvent(chromeIframeEl, 'load', false);
24 chromeIframeEl.src = url;
25 t.appendChild(chromeIframeEl);
27 await chromeLoadPromise;
28 const mspaceBox = chromeIframeEl.contentDocument.body.querySelector("mspace").getBoundingClientRect();
29 ok(mspaceBox.width > 50, "MathML is laid out in Chrome documents even when the mathml.disabled preference is true.");
30 });
31 </script>
32 </pre>
33 </body>
34 </html>