diff --git a/mozilla/layout/mathml/tests/all-presentation.xml b/mozilla/layout/mathml/tests/all-presentation.xml index e4f5ec48712..951c871c5f7 100644 --- a/mozilla/layout/mathml/tests/all-presentation.xml +++ b/mozilla/layout/mathml/tests/all-presentation.xml @@ -1,181 +1,375 @@ - - - - + + Examples of Presentation Markup + + + Testing tensor indices <mmultiscripts>: - + -Ri1j2k3; + + + R + i1 + j2 + + k3 + +; This with <none/>, - + -Aqpi; - -A bit of calculus with poor markup: + + A + qp + + i + +; +A bit of calculus: + + - - a - b + a + b -f(x)dx + +f + ( + x + ) + dx + - - + + + - - - x - - - - - F - ( - x - , - y - ) - - - + - - + x + + + + F + ( + x + , + y + ) + + + + + + - - - y - - - - - F - ( - x - , - y - ) - + y + + + + F + ( + x + , + y + ) + ; Here is the alphabet with invisible portions wrapped by <mphantom> in between: - -a b c d e f g -h i j k l m n -o p q r s -t u v w x y z. + + a + b + c + + d + e + f + g + h + i + j + + k + l + m + n + o + + p + q + r + s + + t + u + v + w + x + y + z +. Testing MathML <msub>: - + -ab; + + + a + b + +; -ai; + + + a + i + +; -AIk; + + + A + + I + k + + +; Testing MathML <msup>: - + + -db + + d + b + -2ax + + 2 + + a + x + + -22x + + + 2 + 2 + + x + -(12)yax + + + ( + + 1 + 2 + + ) + + + y + + a + x + + + . Testing MathML <munder>, <mover>, and <munderover>: - - abcdun - abcdov -abcdunderover + + + abcd + un + + + + abcd + ov + + + + abcd + under + over + . Testing MathML <msubsup>: - + + -apq -ab+cx + + a + p + q + + + + + a + + b + + + c + + x + . Testing MathML <mrow>: - - + -d(ab) + + d + + ( + + a + b + + ) + + ; - + - -x2 + -4*x - + pq - = 0, + + + + x + 2 + + + + + 4 + * + x + + + + + p + q + + + = + 0 + +, with this <mfrac> hanging here - - -d*T(i + jn) -+ py*qpx*bx -+ a -+ cd + + + d + * + + T + + ( + + + i + + + j + + n + + ) + + + + + + p + y + + * + q + + + + p + x + + * + + b + x + + + + + + a + + + c + + d + + + -in the middle of a lot of running text to try to explain what this means to those who care -to read. +in the middle of a lot of running text to try to explain what this +means to those who care to read. Testing MathML merror, mtext, - -This is a text in mtext -This is a text in merror + +This is a text in mtext +This is a text in merror - + + diff --git a/mozilla/layout/mathml/tests/maxwell.xml b/mozilla/layout/mathml/tests/maxwell.xml index a939c0ee583..9d5f51dfeaf 100644 --- a/mozilla/layout/mathml/tests/maxwell.xml +++ b/mozilla/layout/mathml/tests/maxwell.xml @@ -1,49 +1,41 @@ - - ]> - - - - - - - Maxwell's Equations - + + Maxwell's Equations + - -Maxwell's Equations + +

Maxwell's Equations

- - - +

+ { @@ -203,12 +195,12 @@ - +

-Einstein's field equations +

Einstein's field equations

- - +

+ @@ -271,7 +263,7 @@ - +

-
-
+ + diff --git a/mozilla/layout/mathml/tests/mixing.xml b/mozilla/layout/mathml/tests/mixing.xml index 2a387547666..734b59cf50c 100644 --- a/mozilla/layout/mathml/tests/mixing.xml +++ b/mozilla/layout/mathml/tests/mixing.xml @@ -1,112 +1,145 @@ - - - - + - - - + + Mixing MathML with other markup + - - Mixing MathML markups and other markups to get special effects - - - a - - - - b - - - + + +

+Mixing MathML markups and other markups to get special effects

+ +
+ +A fraction with the animated throbber as denominator... +View the source... + + + + a + + -

+
- - See the difference between math:mi over an html:i (which doesn't understand the sriptlevel) - - a - a - +See the difference between <mi> an <html:i> +(which doesn't understand the scriptlevel) : + + + + a + a + + +   + + + a + a + - +And there could be more... +

+ +
- - - - -
+ + diff --git a/mozilla/layout/mathml/tests/simple.xml b/mozilla/layout/mathml/tests/simple.xml index ee23fe0a526..20dae4bdae9 100644 --- a/mozilla/layout/mathml/tests/simple.xml +++ b/mozilla/layout/mathml/tests/simple.xml @@ -1,6 +1,6 @@ - - + + - + + Simple Document with MathML + + + x = @@ -36,3 +40,6 @@ + + + diff --git a/mozilla/layout/mathml/tests/stretchy.xml b/mozilla/layout/mathml/tests/stretchy.xml index fe27ec44361..7c9ab39c90a 100644 --- a/mozilla/layout/mathml/tests/stretchy.xml +++ b/mozilla/layout/mathml/tests/stretchy.xml @@ -1,6 +1,6 @@ - - + + + + Testing stretchy MathML symbols + + + +Testing stretchy symbols -- view the source... + + + + ( + ... + + + ( + + + ( + a0 + + + a1 + ) + + n1 + + + + a2 + ) + + n2 + + +...+ + ap + ) + + np + + -Testing stretchy symbols -- view the source... + A = - - [ - - - x - y - - - z - w - - - ] - + + + + x + y + + + z + w + + + ; + + x + @@ -60,9 +97,11 @@ ; + in binomial formulas + ( @@ -168,13 +207,14 @@ in binomial formulas n - + and elsewhere, + -{ +{ @@ -227,8 +267,8 @@ and elsewhere, ; - a + b - + aa + bb + ; @@ -334,3 +374,6 @@ and elsewhere, + + + diff --git a/mozilla/layout/mathml/tests/various.xml b/mozilla/layout/mathml/tests/various.xml index 46840f51e82..128ec6c8270 100644 --- a/mozilla/layout/mathml/tests/various.xml +++ b/mozilla/layout/mathml/tests/various.xml @@ -1,34 +1,37 @@ - - - - + + Various examples of MathML + + Click to toggle between expressions, and watch the satus line onmouseover/onmouseout: -

+
- + statusline#First Expression @@ -47,11 +50,11 @@ Click to toggle between expressions, and watch the satus line onmouseover/onmous -

+
Click the expression below to zoom-in/zoom-out using RESTYLE: -

+
- + π @@ -67,11 +70,11 @@ Click the expression below to zoom-in/zoom-out using RESTYLE: -

+
Click the expression below to see several definitions of pi: -

+
- + @@ -196,10 +199,9 @@ Click the expression below to see several definitions of pi: -

+
- - A + A @@ -207,9 +209,9 @@ Click the expression below to see several definitions of pi: i - + +
+ R @@ -280,19 +282,7 @@ Click the expression below to see several definitions of pi: a - b c - - d e f g - h i j k - - l m - n o - - p q r s - - t u v w - x y z - + a @@ -566,7 +556,7 @@ Click the expression below to see several definitions of pi: -

+
@@ -605,7 +595,7 @@ Click the expression below to see several definitions of pi: t+=dt -

+
@@ -659,6 +649,383 @@ Click the expression below to see several definitions of pi: x - + - + + + + + Z + α + + + ( + f + ) + + = + + + 1 + + 2 + i + + cos + ( + + + α + π + + 2 + + ) + + + + + + + C + + + + f + ( + i + z + ) + + + ( + - + z + ) + + α + + + + + e + + 2 + π + z + + + - + 1 + + + + dz + + + +
+ +
+ +And this is from the "Thomson scattering theory" + + + + + + + + + + + + d + 2 + + P + + + + d + + Ω + s + + + d + + ω + s + + + + + + + + + = + + + + + + + r + e + 2 + + + + + V + + + < + + S + i + + > + + + d + 3 + + + r + + + + + | + + + e + ^ + + + . + + + Π + + + + . + + + e + ^ + + + | + + 2 + + + + κ + 2 + + + f + + δ + + + ( + k + . + v + - + ω + ) + + + + d + 3 + + + v + + + + + + + + + + = + + + + + + + r + e + 2 + + + + + V + + + < + + S + i + + > + + + d + 3 + + + r + + + + + | + 1 + - + + + + ( + 1 + - + + s + ^ + + . + + ı + ^ + + ) + + + + ( + 1 + - + + β + i + + ) + ( + 1 + - + + β + s + + ) + + + + + β + e + 2 + + + | + + 2 + + + + + + + | + + + + 1 + - + + β + i + + + + + 1 + - + + β + s + + + + + | + + 2 + + + + + + + + + + + + × + + + ( + 1 + - + + β + 2 + + ) + + + + f + + δ + + + ( + k + . + v + - + ω + ) + + + + d + 3 + + + v + + + + + + + + + +