From b7cddec48a109528df2d1ec5af4583de03b0edc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Wed, 20 Feb 2019 10:51:47 +0100 Subject: [PATCH] Import WPT fraction tests from WebKit (#15301) See https://bugs.webkit.org/show_bug.cgi?id=194436 Tests have been reformatted and rewritten. The following are excluded: - Tests have equivalent (and more reliable testing) in WPT. - Tests that verify crashes/asserts, hangs or invalid markup. --- .../fractions/frac-color-001-notref.html | 16 ++++ .../fractions/frac-color-001.html | 19 +++++ .../fractions/frac-linethickness-001-ref.html | 39 ++++++++++ .../fractions/frac-linethickness-001.html | 42 +++++++++++ .../fractions/frac-linethickness-002-ref.html | 40 ++++++++++ .../fractions/frac-linethickness-002.html | 43 +++++++++++ .../frac-linethickness-003-notref.html | 16 ++++ .../fractions/frac-linethickness-003.html | 19 +++++ .../fractions/frac-mrow-001-ref.html | 16 ++++ .../fractions/frac-mrow-001.html | 25 +++++++ .../frac-numalign-denomalign-001-ref.html | 73 +++++++++++++++++++ .../frac-numalign-denomalign-001.html | 56 ++++++++++++++ 12 files changed, 404 insertions(+) create mode 100644 mathml/presentation-markup/fractions/frac-color-001-notref.html create mode 100644 mathml/presentation-markup/fractions/frac-color-001.html create mode 100644 mathml/presentation-markup/fractions/frac-linethickness-001-ref.html create mode 100644 mathml/presentation-markup/fractions/frac-linethickness-001.html create mode 100644 mathml/presentation-markup/fractions/frac-linethickness-002-ref.html create mode 100644 mathml/presentation-markup/fractions/frac-linethickness-002.html create mode 100644 mathml/presentation-markup/fractions/frac-linethickness-003-notref.html create mode 100644 mathml/presentation-markup/fractions/frac-linethickness-003.html create mode 100644 mathml/presentation-markup/fractions/frac-mrow-001-ref.html create mode 100644 mathml/presentation-markup/fractions/frac-mrow-001.html create mode 100644 mathml/presentation-markup/fractions/frac-numalign-denomalign-001-ref.html create mode 100644 mathml/presentation-markup/fractions/frac-numalign-denomalign-001.html diff --git a/mathml/presentation-markup/fractions/frac-color-001-notref.html b/mathml/presentation-markup/fractions/frac-color-001-notref.html new file mode 100644 index 00000000000000..498d6277a3258c --- /dev/null +++ b/mathml/presentation-markup/fractions/frac-color-001-notref.html @@ -0,0 +1,16 @@ + + + + + Fraction bar color + + +

This test passes if you see a fraction with a blue fraction bar.

+ + + + + + + + diff --git a/mathml/presentation-markup/fractions/frac-color-001.html b/mathml/presentation-markup/fractions/frac-color-001.html new file mode 100644 index 00000000000000..bc61dbf51ffe48 --- /dev/null +++ b/mathml/presentation-markup/fractions/frac-color-001.html @@ -0,0 +1,19 @@ + + + + + Fraction bar color + + + + + +

This test passes if you see a fraction with a blue fraction bar.

+ + + + + + + + diff --git a/mathml/presentation-markup/fractions/frac-linethickness-001-ref.html b/mathml/presentation-markup/fractions/frac-linethickness-001-ref.html new file mode 100644 index 00000000000000..c703edb764fe88 --- /dev/null +++ b/mathml/presentation-markup/fractions/frac-linethickness-001-ref.html @@ -0,0 +1,39 @@ + + + + + fractions linethickness + + + +

This test passes if you see fractions with line thickness equal to the height of their blue numerator and cyan denominator.

+ + + + + + + + + + + + + + + + + + + + diff --git a/mathml/presentation-markup/fractions/frac-linethickness-001.html b/mathml/presentation-markup/fractions/frac-linethickness-001.html new file mode 100644 index 00000000000000..94111174c6aa3e --- /dev/null +++ b/mathml/presentation-markup/fractions/frac-linethickness-001.html @@ -0,0 +1,42 @@ + + + + + fractions linethickness + + + + + + +

This test passes if you see fractions with line thickness equal to the height of their blue numerator and cyan denominator.

+ + + + + + + + + + + + + + + + + + + + diff --git a/mathml/presentation-markup/fractions/frac-linethickness-002-ref.html b/mathml/presentation-markup/fractions/frac-linethickness-002-ref.html new file mode 100644 index 00000000000000..69663938c1951a --- /dev/null +++ b/mathml/presentation-markup/fractions/frac-linethickness-002-ref.html @@ -0,0 +1,40 @@ + + + + + fractions linethickness + + + +

This test passes if you see fraction with a cyan denominator and + a blue numerator as tall as its black bar.

+ + + + + + + + + + + + + + + + + + + + diff --git a/mathml/presentation-markup/fractions/frac-linethickness-002.html b/mathml/presentation-markup/fractions/frac-linethickness-002.html new file mode 100644 index 00000000000000..5bb0d6bfb9d611 --- /dev/null +++ b/mathml/presentation-markup/fractions/frac-linethickness-002.html @@ -0,0 +1,43 @@ + + + + + fractions linethickness + + + + + + +

This test passes if you see fraction with a cyan denominator and + a blue numerator as tall as its black bar.

+ + + + + + + + + + + + + + + + + + + + diff --git a/mathml/presentation-markup/fractions/frac-linethickness-003-notref.html b/mathml/presentation-markup/fractions/frac-linethickness-003-notref.html new file mode 100644 index 00000000000000..934d6663339731 --- /dev/null +++ b/mathml/presentation-markup/fractions/frac-linethickness-003-notref.html @@ -0,0 +1,16 @@ + + + + + fractions linethickness + + +

This test passes if you see a fraction without fraction bar.

+ + + + + + + + diff --git a/mathml/presentation-markup/fractions/frac-linethickness-003.html b/mathml/presentation-markup/fractions/frac-linethickness-003.html new file mode 100644 index 00000000000000..e535e703b52c75 --- /dev/null +++ b/mathml/presentation-markup/fractions/frac-linethickness-003.html @@ -0,0 +1,19 @@ + + + + + fractions linethickness + + + + + +

This test passes if you see a fraction without fraction bar.

+ + + + + + + + diff --git a/mathml/presentation-markup/fractions/frac-mrow-001-ref.html b/mathml/presentation-markup/fractions/frac-mrow-001-ref.html new file mode 100644 index 00000000000000..e42cb96fe83839 --- /dev/null +++ b/mathml/presentation-markup/fractions/frac-mrow-001-ref.html @@ -0,0 +1,16 @@ + + + + + Fraction mrow + + +

This test passes if you see a fraction with a blue square as numerator and a cyan square as denominator.

+ + + + + + + + diff --git a/mathml/presentation-markup/fractions/frac-mrow-001.html b/mathml/presentation-markup/fractions/frac-mrow-001.html new file mode 100644 index 00000000000000..e5c6f52529443e --- /dev/null +++ b/mathml/presentation-markup/fractions/frac-mrow-001.html @@ -0,0 +1,25 @@ + + + + + Fraction mrow + + + + + +

This test passes if you see a fraction with a blue square as numerator and a cyan square as denominator.

+ + + + + + + + + + + + + + diff --git a/mathml/presentation-markup/fractions/frac-numalign-denomalign-001-ref.html b/mathml/presentation-markup/fractions/frac-numalign-denomalign-001-ref.html new file mode 100644 index 00000000000000..2fa978624dc206 --- /dev/null +++ b/mathml/presentation-markup/fractions/frac-numalign-denomalign-001-ref.html @@ -0,0 +1,73 @@ + + + + + Fraction numalign denomalign + + +

This test passes if you see 3 fractions with a numerator respectively + aligned left/center/right with respect to the denominator ; + followed by 3 fractions with a denominator respectively aligned + left/center/right with respect to the numerator.

+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + diff --git a/mathml/presentation-markup/fractions/frac-numalign-denomalign-001.html b/mathml/presentation-markup/fractions/frac-numalign-denomalign-001.html new file mode 100644 index 00000000000000..61f49e2ff5381c --- /dev/null +++ b/mathml/presentation-markup/fractions/frac-numalign-denomalign-001.html @@ -0,0 +1,56 @@ + + + + + Fraction numalign denomalign + + + + + +

This test passes if you see 3 fractions with a numerator respectively + aligned left/center/right with respect to the denominator ; + followed by 3 fractions with a denominator respectively aligned + left/center/right with respect to the numerator.

+

+ + + + + + + + + + + + + + + + + + +

+

+ + + + + + + + + + + + + + + + + + +

+ +