Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=706406 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <title>Test for Bug 706406</title> |
michael@0 | 8 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 9 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 10 | </head> |
michael@0 | 11 | <body> |
michael@0 | 12 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=827713">Mozilla Bug 827713</a> |
michael@0 | 13 | <p id="display"></p> |
michael@0 | 14 | <p><math> |
michael@0 | 15 | <msub subscriptshift="50px"> |
michael@0 | 16 | <mspace width="50px" height="25px" depth="25px" mathbackground="blue" id ="subbase"></mspace> |
michael@0 | 17 | <mspace width="50px" height="25px" depth="25px" mathbackground="red" id="subsub"></mspace> |
michael@0 | 18 | </msub> |
michael@0 | 19 | </math></p> |
michael@0 | 20 | |
michael@0 | 21 | <p><math> |
michael@0 | 22 | <msup superscriptshift="50px"> |
michael@0 | 23 | <mspace width="50px" height="25px" depth="25px" mathbackground="blue" id="supbase"></mspace> |
michael@0 | 24 | <mspace width="50px" height="25px" depth="25px" mathbackground="green" id="supsup"></mspace> |
michael@0 | 25 | </msup> |
michael@0 | 26 | </math></p> |
michael@0 | 27 | |
michael@0 | 28 | <p><math> |
michael@0 | 29 | <msubsup subscriptshift="50px" superscriptshift="50px"> |
michael@0 | 30 | <mspace width="50px" height="25px" depth="25px" mathbackground="blue" id="ssbase"></mspace> |
michael@0 | 31 | <mspace width="50px" height="25px" depth="25px" mathbackground="red" id="sssub"></mspace> |
michael@0 | 32 | <mspace width="50px" height="25px" depth="25px" mathbackground="green" id="sssup"></mspace> |
michael@0 | 33 | </msubsup> |
michael@0 | 34 | </math></p> |
michael@0 | 35 | <pre id="test"> |
michael@0 | 36 | <script type="application/javascript"> |
michael@0 | 37 | |
michael@0 | 38 | /** Test for the scriptshift aspect of bug 827713 **/ |
michael@0 | 39 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 40 | |
michael@0 | 41 | subBaseRect = $("subbase").getBoundingClientRect(); |
michael@0 | 42 | subSubRect = $("subsub").getBoundingClientRect(); |
michael@0 | 43 | is(subBaseRect.bottom, subSubRect.top, "Bad subscript shift for msub"); |
michael@0 | 44 | |
michael@0 | 45 | supBaseRect = $("supbase").getBoundingClientRect(); |
michael@0 | 46 | supSupRect = $("supsup").getBoundingClientRect(); |
michael@0 | 47 | is(supBaseRect.top, supSupRect.bottom, "Bad superscript shift for msup"); |
michael@0 | 48 | |
michael@0 | 49 | ssBaseRect = $("ssbase").getBoundingClientRect(); |
michael@0 | 50 | ssSubRect = $("sssub").getBoundingClientRect(); |
michael@0 | 51 | ssSupRect = $("sssup").getBoundingClientRect(); |
michael@0 | 52 | is(ssBaseRect.bottom, ssSubRect.top, "Bad subscript shift for msubusp"); |
michael@0 | 53 | is(ssBaseRect.top, ssSupRect.bottom, "Bad superscript shift for msubusp"); |
michael@0 | 54 | |
michael@0 | 55 | |
michael@0 | 56 | SimpleTest.finish(); |
michael@0 | 57 | |
michael@0 | 58 | </script> |
michael@0 | 59 | </pre> |
michael@0 | 60 | </body> |
michael@0 | 61 | </html> |