Bug 755525 - Remove some tests from layout/mathml/tests/. r=karlt

This commit is contained in:
Frédéric Wang 2012-06-09 12:24:57 -04:00
Родитель 6e592a1ef4
Коммит 4a36ee05a2
4 изменённых файлов: 0 добавлений и 583 удалений

Просмотреть файл

@ -1,152 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"
[
<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
]>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:math="http://www.w3.org/1998/Math/MathML"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<head>
<title>Mixing MathML with other markup</title>
</head>
<body style="font-size: 18pt;
background-color: gold;
background-image: url(resource:/res/samples/raptor.jpg);
background-repeat: no-repeat;
background-attachment: fixed;">
<h2 style="text-align: center; color: blue">
Mixing MathML markups and other markups to get special effects</h2>
<div>
A fraction with the animated throbber as denominator...
View the source...
<math mode="display" xmlns="http://www.w3.org/1998/Math/MathML">
<mfrac linethickness="3">
<mi>a</mi>
<html:img src="chrome://communicator/skin/brand/throbber-anim.gif"
alt="throbber" />
</mfrac>
</math>
Fill the gaps in this matrix with input fields
<math mode="display" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mo>[</mo>
<mtable>
<mtr>
<mtd><mi>a</mi></mtd>
<mtd><html:input value="?" size="1"/></mtd>
</mtr>
<mtr>
<mtd><html:input value="?" size="1"/></mtd>
<mtd><mi>d</mi></mtd>
</mtr>
</mtable>
<mo>]</mo>
</mrow>
</math>
<br />
See the difference of rendering between <br />
<math xmlns="http://www.w3.org/1998/Math/MathML">
<msup>
<mi mathvariant="italic">jif</mi>
<mi mathvariant="italic">jif</mi>
</msup>
</math> -- italic MathML &lt;msup&gt; and
<br />
<span><i>jif</i><sup><i>jif</i></sup></span> -- italic HTML &lt;sup&gt;
<br />
<br />
And there could be more...
<div style="text-align: center">
<button style="background-color:rgb(192,192,192)">
<span style="color: brown;">
For example, click this MathML continued fraction inside a HTML button<br />
</span>
<math xmlns="&mathml;">
<mrow>
<mfrac>
<mi>&pi;</mi>
<mn>4</mn>
</mfrac>
<mo>=</mo>
<mfrac numalign="left">
<mstyle scriptlevel="0">
<mn>1</mn>
</mstyle>
<mstyle scriptlevel="0">
<mrow>
<mn>2</mn>
<mo>+</mo>
<mfrac numalign="left">
<mstyle scriptlevel="0">
<msup><mn>1</mn><mn>2</mn></msup>
</mstyle>
<mstyle scriptlevel="0">
<mrow>
<mn>2</mn>
<mo>+</mo>
<mfrac numalign="left">
<mstyle scriptlevel="0">
<msup><mn>3</mn><mn>2</mn></msup>
</mstyle>
<mstyle scriptlevel="0">
<mrow>
<mn>2</mn>
<mo>+</mo>
<mfrac numalign="left">
<mstyle scriptlevel="0">
<msup><mn>5</mn><mn>2</mn></msup>
</mstyle>
<mstyle scriptlevel="0">
<mrow>
<mn>2</mn>
<mo>+</mo>
<mfrac numalign="left">
<mstyle scriptlevel="0">
<msup><mn>7</mn><mn>2</mn></msup>
</mstyle>
<mstyle scriptlevel="0">
<mn>2</mn><mo>+</mo><mo mathvariant="bold">...</mo>
</mstyle>
</mfrac>
</mrow>
</mstyle>
</mfrac>
</mrow>
</mstyle>
</mfrac>
</mrow>
</mstyle>
</mfrac>
</mrow>
</mstyle>
</mfrac>
</mrow>
</math>
</button>
</div>
</div>
</body>
</html>

Просмотреть файл

@ -1,33 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"
[
<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
]>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Simple Document with MathML</title>
</head>
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>x</mi>
<mo>=</mo>
<mi>y</mi>
<mo>+</mo>
<mfrac>
<mi>a</mi>
<mi>b</mi>
</mfrac>
</mrow>
</math>
</body>
</html>

Просмотреть файл

@ -1,369 +0,0 @@
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"
[
<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
]>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Testing stretchy MathML symbols</title>
</head>
<body>
<div>
Testing stretchy symbols -- view the source...
<math xmlns="http://www.w3.org/1998/Math/MathML">
<msup>
<mrow>
<mo symmetric='false' minsize='3'>(</mo>
<mo>...</mo>
<msup>
<mrow>
<mo symmetric='false' minsize='2'>(</mo>
<msup>
<mrow>
<mo symmetric='false'>(</mo>
<msub><mi>a</mi><mn>0</mn></msub>
<mo>+</mo>
<msub><mi>a</mi><mn>1</mn></msub>
<mo symmetric='false'>)</mo>
</mrow>
<msub><mi>n</mi><mn>1</mn></msub>
</msup>
<mo>+</mo>
<msub><mi>a</mi><mn>2</mn></msub>
<mo symmetric='false' minsize='2'>)</mo>
</mrow>
<msub><mi>n</mi><mn>2</mn></msub>
</msup>
<mo>+</mo><mo>...</mo><mo>+</mo>
<msup><mi>a</mi><mi>p</mi></msup>
<mo symmetric='false' minsize='3'>)</mo>
</mrow>
<msup><mi>n</mi><mi>p</mi></msup>
</msup>
</math>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>A</mi>
<mo>=</mo>
<mfenced open="[" close="]">
<mtable>
<mtr>
<mtd><mi>x</mi></mtd>
<mtd><mi>y</mi></mtd>
</mtr>
<mtr>
<mtd><mi>z</mi></mtd>
<mtd><mi>w</mi></mtd>
</mtr>
</mtable>
</mfenced>
</mrow>
<mo>;</mo>
</math>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>x</mi>
<mo>+</mo>
<mrow>
<mo>(</mo>
<mfrac linethickness="30">
<mi>a</mi>
<mi>b</mi>
</mfrac>
<mo stretchy="false">)</mo>
</mrow>
</mrow>
<mo>;</mo>
</math>
in binomial formulas
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mo>(</mo>
<mfrac linethickness="0">
<mi>n</mi>
<mi>p</mi>
</mfrac>
<mo>)</mo>
</mrow>
<mo>=</mo>
<mrow>
<mrow>
<mo>(</mo>
<mfrac linethickness="0">
<mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow>
<mi>p</mi>
</mfrac>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mrow>
<mo>(</mo>
<mfrac linethickness="0">
<mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow>
<mrow><mi>p</mi><mo>-</mo><mn>1</mn></mrow>
</mfrac>
<mo>)</mo>
</mrow>
<mo>;</mo>
</mrow>
<mrow>
<msup>
<mrow>
<mo>(</mo>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
<mo>)</mo>
</mrow>
<mi>n</mi>
</msup>
<mo>=</mo>
<msup>
<mi>a</mi>
<mi>n</mi>
</msup>
<mo>+</mo>
<mrow>
<mrow>
<mo>(</mo>
<mfrac linethickness="0">
<mi>n</mi>
<mi>1</mi>
</mfrac>
<mo>)</mo>
</mrow>
<msup>
<mi>a</mi>
<mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow>
</msup>
<mi>b</mi>
</mrow>
<mo>+</mo>
<mo>...</mo>
<mo>+</mo>
<mrow>
<mrow>
<mo>(</mo>
<mfrac linethickness="0">
<mi>n</mi>
<mi>p</mi>
</mfrac>
<mo>)</mo>
</mrow>
<msup>
<mi>a</mi>
<mrow><mi>n</mi><mo>-</mo><mi>p</mi></mrow>
</msup>
<msup>
<mi>b</mi>
<mi>p</mi>
</msup>
</mrow>
<mo>+</mo>
<mo>...</mo>
<mo>+</mo>
<msup>
<mi>b</mi>
<mi>n</mi>
</msup>
</mrow>
</math>
and elsewhere,
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mo symmetric='false'>{</mo>
<mrow>
<msub>
<mi>a</mi>
<mn>0</mn>
</msub>
<mo>+</mo>
<mfrac>
<mstyle scriptlevel="0">
<mn>1</mn>
</mstyle>
<mstyle scriptlevel="0">
<mrow>
<msub>
<mi>a</mi>
<mn>1</mn>
</msub>
<mo>+</mo>
<mfrac>
<mstyle scriptlevel="0">
<mn>1</mn>
</mstyle>
<mstyle scriptlevel="0">
<mrow>
<msub>
<mi>a</mi>
<mn>2</mn>
</msub>
<mo>+</mo>
<mfrac>
<mstyle scriptlevel="0">
<mn>1</mn>
</mstyle>
<mstyle scriptlevel="0">
<msub>
<mi>a</mi>
<mn>3</mn>
</msub>
</mstyle>
</mfrac>
</mrow>
</mstyle>
</mfrac>
</mrow>
</mstyle>
</mfrac>
</mrow>
</mrow>
<mo>;</mo>
<mover>
<mrow> <mi>aa</mi> <mo>+</mo> <mi>bb</mi> </mrow>
<mo>&OverBrace;</mo>
</mover>
<mo>;</mo>
<munder>
<mrow> <mi>b</mi> <mo>+</mo> <mi>c</mi> <mo>+</mo> <mi>d</mi></mrow>
<mo form="infix">&RightArrow;</mo>
</munder>
<mo>;</mo>
<munderover>
<mrow> <mi>a</mi> <mo>+</mo> <mi>b</mi> <mo>+</mo>
<mi>c</mi> <mo>+</mo> <mi>d</mi></mrow>
<mo form="infix">&RightArrow;</mo>
<mo form="infix">&LeftArrow;</mo>
</munderover>
<mo>;</mo>
<mrow>
<mo>(</mo><mfrac>
<mrow>
<mn>1</mn>
<mo>+</mo>
<msqrt><mn>5</mn></msqrt>
</mrow>
<mn>2</mn>
</mfrac><mo>)</mo>
</mrow>
<mo>;</mo>
<mrow>
<mi>x</mi>
<mo>=</mo>
<mfrac>
<mrow>
<mrow>
<mo>-</mo>
<mi>b</mi>
</mrow>
<mo>&PlusMinus;</mo>
<msqrt>
<mrow>
<msup>
<mi>b</mi>
<mn>2</mn>
</msup>
<mo>-</mo>
<mrow>
<mn>4</mn>
<mo>&InvisibleTimes;</mo>
<mi>a</mi>
<mo>&InvisibleTimes;</mo>
<mi>c</mi>
</mrow>
</mrow>
</msqrt>
</mrow>
<mrow>
<mn>2</mn>
<mo>&InvisibleTimes;</mo>
<mi>a</mi>
</mrow>
</mfrac>
</mrow>
<mrow>
<mo form="prefix">(</mo>
<mo form="prefix">{</mo>
<mo form="infix">&UpArrow;</mo>
<mrow>
<mo>&#x222B;</mo>
<mfrac linethickness="26">
<mfrac>
<mrow><mi>n</mi>
<mrow>
<mo>{</mo>
<mi>n</mi>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
</mrow>
<mn>2</mn>
</mfrac>
<mi>y</mi>
</mfrac>
<mo>&DownArrow;</mo>
<mo form="postfix">}</mo>
<mo form="postfix">)</mo>
</mrow>
</mrow>
<mrow>
<mi>x</mi>
<mover>
<mo form="infix">&RightArrow;</mo>
<mtext> maps to </mtext>
</mover>
<mi>y</mi>
</mrow>
</math>
</div>
</body>
</html>

Просмотреть файл

@ -1,29 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<head><title>Symbol Glyphs</title></head>
<body>
<table border="1">
<tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
<tr><td>&#160;</td><td>&#33;</td><td>&#8704;</td><td>&#35;</td><td>&#8707;</td><td>&#37;</td><td>&#38;</td><td>&#8715;</td><td>&#40;</td><td>&#41;</td><td>&#8727;</td><td>&#43;</td><td>&#44;</td><td>&#8722;</td><td>&#46;</td><td>&#47;</td></tr>
<tr><td>&#48;</td><td>&#49;</td><td>&#50;</td><td>&#51;</td><td>&#52;</td><td>&#53;</td><td>&#54;</td><td>&#55;</td><td>&#56;</td><td>&#57;</td><td>&#58;</td><td>&#59;</td><td>&#60;</td><td>&#61;</td><td>&#62;</td><td>&#63;</td></tr>
<tr><td>&#8773;</td><td>&#913;</td><td>&#914;</td><td>&#935;</td><td>&#8710;</td><td>&#917;</td><td>&#934;</td><td>&#915;</td><td>&#919;</td><td>&#921;</td><td>&#977;</td><td>&#922;</td><td>&#923;</td><td>&#924;</td><td>&#925;</td><td>&#927;</td></tr>
<tr><td>&#928;</td><td>&#920;</td><td>&#929;</td><td>&#931;</td><td>&#932;</td><td>&#933;</td><td>&#962;</td><td>&#8486;</td><td>&#926;</td><td>&#936;</td><td>&#918;</td><td>&#91;</td><td>&#8756;</td><td>&#93;</td><td>&#8869;</td><td>&#95;</td></tr>
<tr><td>&#63717;</td><td>&#945;</td><td>&#946;</td><td>&#967;</td><td>&#948;</td><td>&#949;</td><td>&#966;</td><td>&#947;</td><td>&#951;</td><td>&#953;</td><td>&#981;</td><td>&#954;</td><td>&#955;</td><td>&#956;</td><td>&#957;</td><td>&#959;</td></tr>
<tr><td>&#960;</td><td>&#952;</td><td>&#961;</td><td>&#963;</td><td>&#964;</td><td>&#965;</td><td>&#982;</td><td>&#969;</td><td>&#958;</td><td>&#968;</td><td>&#950;</td><td>&#123;</td><td>&#124;</td><td>&#125;</td><td>&#8764;</td><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
<tr><td>&#8364;</td><td>&#978;</td><td>&#8242;</td><td>&#8804;</td><td>&#8725;</td><td>&#8734;</td><td>&#402;</td><td>&#9827;</td><td>&#9830;</td><td>&#9829;</td><td>&#9824;</td><td>&#8596;</td><td>&#8592;</td><td>&#8593;</td><td>&#8594;</td><td>&#8595;</td></tr>
<tr><td>&#176;</td><td>&#177;</td><td>&#8243;</td><td>&#8805;</td><td>&#215;</td><td>&#8733;</td><td>&#8706;</td><td>&#8226;</td><td>&#247;</td><td>&#8800;</td><td>&#8801;</td><td>&#8776;</td><td>&#8230;</td><td>&#63718;</td><td>&#63719;</td><td>&#8629;</td></tr>
<tr><td>&#8501;</td><td>&#8465;</td><td>&#8476;</td><td>&#8472;</td><td>&#8855;</td><td>&#8853;</td><td>&#8709;</td><td>&#8745;</td><td>&#8746;</td><td>&#8835;</td><td>&#8839;</td><td>&#8836;</td><td>&#8834;</td><td>&#8838;</td><td>&#8712;</td><td>&#8713;</td></tr>
<tr><td>&#8736;</td><td>&#8711;</td><td>&#63194;</td><td>&#63193;</td><td>&#63195;</td><td>&#8719;</td><td>&#8730;</td><td>&#8901;</td><td>&#172;</td><td>&#8743;</td><td>&#8744;</td><td>&#8660;</td><td>&#8656;</td><td>&#8657;</td><td>&#8658;</td><td>&#8659;</td></tr>
<tr><td>&#9674;</td><td>&#9001;</td><td>&#63720;</td><td>&#63721;</td><td>&#63722;</td><td>&#8721;</td><td>&#63723;</td><td>&#63724;</td><td>&#63725;</td><td>&#63726;</td><td>&#63727;</td><td>&#63728;</td><td>&#63729;</td><td>&#63730;</td><td>&#63731;</td><td>&#63732;</td></tr>
<tr><td>&nbsp;</td><td>&#9002;</td><td>&#8747;</td><td>&#8992;</td><td>&#63733;</td><td>&#8993;</td><td>&#63734;</td><td>&#63735;</td><td>&#63736;</td><td>&#63737;</td><td>&#63738;</td><td>&#63739;</td><td>&#63740;</td><td>&#63741;</td><td>&#63742;</td><td>&nbsp;</td></tr>
</table>
</body>
</html>