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.)
michael@0 | 1 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 2 | <!-- |
michael@0 | 3 | https://bugzilla.mozilla.org/show_bug.cgi?id=811701 |
michael@0 | 4 | --> |
michael@0 | 5 | <head> |
michael@0 | 6 | <title>Test for Bug 811701</title> |
michael@0 | 7 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 8 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 9 | </head> |
michael@0 | 10 | <body> |
michael@0 | 11 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=811701">Mozilla Bug 811701</a> |
michael@0 | 12 | <p id="display"></p> |
michael@0 | 13 | <div id="content" style="display: none"> |
michael@0 | 14 | <math xmlns="http://www.w3.org/1998/Math/MathML"><mtext>test</mtext></math> |
michael@0 | 15 | <svg xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 100,100 200,300"/></svg> |
michael@0 | 16 | </div> |
michael@0 | 17 | <pre id="test"> |
michael@0 | 18 | </pre> |
michael@0 | 19 | <script type="application/javascript"> |
michael@0 | 20 | <![CDATA[ |
michael@0 | 21 | |
michael@0 | 22 | |
michael@0 | 23 | /** Test for Bug 811701 **/ |
michael@0 | 24 | var math = document.querySelector("math"); |
michael@0 | 25 | is(math.innerHTML, |
michael@0 | 26 | '<mtext xmlns="http://www.w3.org/1998/Math/MathML">test</mtext>', |
michael@0 | 27 | "<math> should have innerHTML"); |
michael@0 | 28 | is(math.outerHTML, |
michael@0 | 29 | '<math xmlns="http://www.w3.org/1998/Math/MathML"><mtext>test</mtext></math>', |
michael@0 | 30 | "<math> should have innerHTML"); |
michael@0 | 31 | math.innerHTML = "<mo>+</mo>"; |
michael@0 | 32 | is(math.firstChild.namespaceURI, "http://www.w3.org/1998/Math/MathML", |
michael@0 | 33 | "Should have the right namespace after setting innerHTML on <math>"); |
michael@0 | 34 | |
michael@0 | 35 | var polygon = document.querySelector("polygon"); |
michael@0 | 36 | is(polygon.parentNode.innerHTML, |
michael@0 | 37 | '<polygon xmlns="http://www.w3.org/2000/svg" points="0,0 100,100 200,300"/>', |
michael@0 | 38 | "<svg> should have innerHTML"); |
michael@0 | 39 | is(polygon.parentNode.outerHTML, |
michael@0 | 40 | '<svg xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 100,100 200,300"/></svg>', |
michael@0 | 41 | "<svg> should have outerHTML"); |
michael@0 | 42 | is(polygon.outerHTML, '<polygon xmlns="http://www.w3.org/2000/svg" points="0,0 100,100 200,300"/>', |
michael@0 | 43 | "<polygon> should have outerHTML"); |
michael@0 | 44 | |
michael@0 | 45 | var svg = document.querySelector("svg"); |
michael@0 | 46 | svg.innerHTML = "<rect/>"; |
michael@0 | 47 | is(svg.firstChild.namespaceURI, "http://www.w3.org/2000/svg", |
michael@0 | 48 | "Should have the right namespace after setting innerHTML on <math>"); |
michael@0 | 49 | ]]> |
michael@0 | 50 | </script> |
michael@0 | 51 | </body> |
michael@0 | 52 | </html> |