Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=677495
6 As mandated by the spec, the body of a media document must only contain one child.
7 -->
8 <head>
9 <title>Test for Bug 571981</title>
10 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
11 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
13 <script type="application/javascript">
14 SimpleTest.waitForExplicitFinish();
16 function frameLoaded() {
17 var testframe = document.getElementById('testframe');
18 var testframeChildren = testframe.contentDocument.body.childNodes;
19 is(testframeChildren.length, 1, "Body of image document has 1 child");
20 is(testframeChildren[0].nodeName, "IMG", "Only child of body must be an <img> element");
22 SimpleTest.finish();
23 }
24 </script>
26 </head>
27 <body>
28 <p id="display"></p>
30 <iframe id="testframe" name="testframe" onload="frameLoaded()"
31 src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oMFgQGMyFwHucAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAADElEQVQI12P4//8/AAX+Av7czFnnAAAAAElFTkSuQmCC"></iframe>
33 </body>
34 </html>