diff --git a/layout/reftests/text-svgglyphs/reftest.list b/layout/reftests/text-svgglyphs/reftest.list new file mode 100644 index 00000000000..e3aed3d82e6 --- /dev/null +++ b/layout/reftests/text-svgglyphs/reftest.list @@ -0,0 +1,5 @@ +pref(gfx.font_rendering.opentype_svg.enabled,false) != svg-glyph-basic.svg svg-glyph-basic-ref.svg +pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-basic.svg svg-glyph-basic-ref.svg +pref(gfx.font_rendering.opentype_svg.enabled,false) != svg-glyph-positioning.svg svg-glyph-positioning-ref.svg +pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-positioning.svg svg-glyph-positioning-ref.svg +pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-invalid.html svg-glyph-invalid-ref.html diff --git a/layout/reftests/text-svgglyphs/resources/nosvg.woff b/layout/reftests/text-svgglyphs/resources/nosvg.woff new file mode 100644 index 00000000000..3840aaf8a36 Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/nosvg.woff differ diff --git a/layout/reftests/text-svgglyphs/resources/rubbish.txt b/layout/reftests/text-svgglyphs/resources/rubbish.txt new file mode 100644 index 00000000000..1ad1631812c --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/rubbish.txt @@ -0,0 +1 @@ +This is the text contained in the rubbish.ttf 'SVG ' table. It is obviously not XML, and should thus be ignored. diff --git a/layout/reftests/text-svgglyphs/resources/rubbish.woff b/layout/reftests/text-svgglyphs/resources/rubbish.woff new file mode 100644 index 00000000000..52d75fc9657 Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/rubbish.woff differ diff --git a/layout/reftests/text-svgglyphs/resources/svg-woff.svg b/layout/reftests/text-svgglyphs/resources/svg-woff.svg new file mode 100644 index 00000000000..0770e470e12 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/svg-woff.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/svg.woff b/layout/reftests/text-svgglyphs/resources/svg.woff new file mode 100644 index 00000000000..621c1b0aa21 Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/svg.woff differ diff --git a/layout/reftests/text-svgglyphs/svg-glyph-basic-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-basic-ref.svg new file mode 100644 index 00000000000..3b2dd57c00a --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-basic-ref.svg @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-basic.svg b/layout/reftests/text-svgglyphs/svg-glyph-basic.svg new file mode 100644 index 00000000000..77b2d43d57e --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-basic.svg @@ -0,0 +1,33 @@ + + + + + + L + + + + M + + + + L︁ + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-invalid-ref.html b/layout/reftests/text-svgglyphs/svg-glyph-invalid-ref.html new file mode 100644 index 00000000000..632e8f2ca8b --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-invalid-ref.html @@ -0,0 +1,18 @@ + + + Reference for test that invalid XML in the 'SVG ' table is rejected + + + + LML︁ + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-invalid.html b/layout/reftests/text-svgglyphs/svg-glyph-invalid.html new file mode 100644 index 00000000000..3c785d02f79 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-invalid.html @@ -0,0 +1,23 @@ + + + Test that invalid XML in the 'SVG ' table is rejected + + + + + LML︁ + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-positioning-ref.svg b/layout/reftests/text-svgglyphs/svg-glyph-positioning-ref.svg new file mode 100644 index 00000000000..88b886dd47b --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-positioning-ref.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/svg-glyph-positioning.svg b/layout/reftests/text-svgglyphs/svg-glyph-positioning.svg new file mode 100644 index 00000000000..e522ab99d08 --- /dev/null +++ b/layout/reftests/text-svgglyphs/svg-glyph-positioning.svg @@ -0,0 +1,23 @@ + + + + + MLL︁ + +