From 4a137498b6718c545c48b4964302799e380ebd21 Mon Sep 17 00:00:00 2001 From: KuoE0 Date: Tue, 20 Jun 2017 11:51:56 +0800 Subject: [PATCH] Bug 1373159 - Add a bunch of test cases for 'context-fill-opacity' and 'context-stroke-opacity'. r=heycam MozReview-Commit-ID: AkSep6phtm8 --HG-- extra : rebase_source : f82775c1e97e0aef540f3cf2e58d16351615e1c7 --- .../svg/as-image/context-fill-opacity-01.html | 19 +++++++++++++ .../svg/as-image/context-fill-opacity-02.html | 27 +++++++++++++++++++ .../svg/as-image/context-fill-opacity-02.svg | 3 +++ .../svg/as-image/context-fill-opacity-03.html | 20 ++++++++++++++ .../svg/as-image/context-fill-opacity-04.html | 18 +++++++++++++ .../svg/as-image/context-fill-opacity-05.html | 20 ++++++++++++++ ...context-fill-or-stroke-opacity-01-ref.html | 6 +++++ ...context-fill-or-stroke-opacity-02-ref.html | 18 +++++++++++++ ...context-fill-or-stroke-opacity-03-ref.html | 6 +++++ .../as-image/context-stroke-opacity-01.html | 19 +++++++++++++ .../as-image/context-stroke-opacity-02.html | 27 +++++++++++++++++++ .../as-image/context-stroke-opacity-02.svg | 3 +++ .../as-image/context-stroke-opacity-03.html | 20 ++++++++++++++ .../as-image/context-stroke-opacity-04.html | 18 +++++++++++++ .../as-image/context-stroke-opacity-05.html | 19 +++++++++++++ layout/reftests/svg/as-image/reftest.list | 14 ++++++++++ 16 files changed, 257 insertions(+) create mode 100644 layout/reftests/svg/as-image/context-fill-opacity-01.html create mode 100644 layout/reftests/svg/as-image/context-fill-opacity-02.html create mode 100644 layout/reftests/svg/as-image/context-fill-opacity-02.svg create mode 100644 layout/reftests/svg/as-image/context-fill-opacity-03.html create mode 100644 layout/reftests/svg/as-image/context-fill-opacity-04.html create mode 100644 layout/reftests/svg/as-image/context-fill-opacity-05.html create mode 100644 layout/reftests/svg/as-image/context-fill-or-stroke-opacity-01-ref.html create mode 100644 layout/reftests/svg/as-image/context-fill-or-stroke-opacity-02-ref.html create mode 100644 layout/reftests/svg/as-image/context-fill-or-stroke-opacity-03-ref.html create mode 100644 layout/reftests/svg/as-image/context-stroke-opacity-01.html create mode 100644 layout/reftests/svg/as-image/context-stroke-opacity-02.html create mode 100644 layout/reftests/svg/as-image/context-stroke-opacity-02.svg create mode 100644 layout/reftests/svg/as-image/context-stroke-opacity-03.html create mode 100644 layout/reftests/svg/as-image/context-stroke-opacity-04.html create mode 100644 layout/reftests/svg/as-image/context-stroke-opacity-05.html diff --git a/layout/reftests/svg/as-image/context-fill-opacity-01.html b/layout/reftests/svg/as-image/context-fill-opacity-01.html new file mode 100644 index 000000000000..1ba306a0548a --- /dev/null +++ b/layout/reftests/svg/as-image/context-fill-opacity-01.html @@ -0,0 +1,19 @@ + + + + Basic context-fill-opacity test + + + + + + diff --git a/layout/reftests/svg/as-image/context-fill-opacity-02.html b/layout/reftests/svg/as-image/context-fill-opacity-02.html new file mode 100644 index 000000000000..8420d0105da1 --- /dev/null +++ b/layout/reftests/svg/as-image/context-fill-opacity-02.html @@ -0,0 +1,27 @@ + + + + Test context-fill-opacity with different fill-opacity values (test image caching correctness) + + + + + + + diff --git a/layout/reftests/svg/as-image/context-fill-opacity-02.svg b/layout/reftests/svg/as-image/context-fill-opacity-02.svg new file mode 100644 index 000000000000..bbc12702718b --- /dev/null +++ b/layout/reftests/svg/as-image/context-fill-opacity-02.svg @@ -0,0 +1,3 @@ + + + diff --git a/layout/reftests/svg/as-image/context-fill-opacity-03.html b/layout/reftests/svg/as-image/context-fill-opacity-03.html new file mode 100644 index 000000000000..33d4684c2b24 --- /dev/null +++ b/layout/reftests/svg/as-image/context-fill-opacity-03.html @@ -0,0 +1,20 @@ + + + + Test context-fill-opacity works with context-fill + + + + + + diff --git a/layout/reftests/svg/as-image/context-fill-opacity-04.html b/layout/reftests/svg/as-image/context-fill-opacity-04.html new file mode 100644 index 000000000000..e8b1b343cddd --- /dev/null +++ b/layout/reftests/svg/as-image/context-fill-opacity-04.html @@ -0,0 +1,18 @@ + + + + No context-fill-opacity value is provided + + + + + + diff --git a/layout/reftests/svg/as-image/context-fill-opacity-05.html b/layout/reftests/svg/as-image/context-fill-opacity-05.html new file mode 100644 index 000000000000..ca34db6d5175 --- /dev/null +++ b/layout/reftests/svg/as-image/context-fill-opacity-05.html @@ -0,0 +1,20 @@ + + + + Test context-fill-opacity when only '-moz-context-properties: stroke-opacity' is specified + + + + + + diff --git a/layout/reftests/svg/as-image/context-fill-or-stroke-opacity-01-ref.html b/layout/reftests/svg/as-image/context-fill-or-stroke-opacity-01-ref.html new file mode 100644 index 000000000000..87b98a894dbf --- /dev/null +++ b/layout/reftests/svg/as-image/context-fill-or-stroke-opacity-01-ref.html @@ -0,0 +1,6 @@ + + + +
+ + diff --git a/layout/reftests/svg/as-image/context-fill-or-stroke-opacity-02-ref.html b/layout/reftests/svg/as-image/context-fill-or-stroke-opacity-02-ref.html new file mode 100644 index 000000000000..f16b49ff406b --- /dev/null +++ b/layout/reftests/svg/as-image/context-fill-or-stroke-opacity-02-ref.html @@ -0,0 +1,18 @@ + + + + + + +
+
+ + diff --git a/layout/reftests/svg/as-image/context-fill-or-stroke-opacity-03-ref.html b/layout/reftests/svg/as-image/context-fill-or-stroke-opacity-03-ref.html new file mode 100644 index 000000000000..87b98a894dbf --- /dev/null +++ b/layout/reftests/svg/as-image/context-fill-or-stroke-opacity-03-ref.html @@ -0,0 +1,6 @@ + + + +
+ + diff --git a/layout/reftests/svg/as-image/context-stroke-opacity-01.html b/layout/reftests/svg/as-image/context-stroke-opacity-01.html new file mode 100644 index 000000000000..6c3e9b386bd0 --- /dev/null +++ b/layout/reftests/svg/as-image/context-stroke-opacity-01.html @@ -0,0 +1,19 @@ + + + + Basic context-stroke-opacity test + + + + + + diff --git a/layout/reftests/svg/as-image/context-stroke-opacity-02.html b/layout/reftests/svg/as-image/context-stroke-opacity-02.html new file mode 100644 index 000000000000..4445cc7b935e --- /dev/null +++ b/layout/reftests/svg/as-image/context-stroke-opacity-02.html @@ -0,0 +1,27 @@ + + + + Test context-stroke-opacity with different stroke-opacity values (test image caching correctness) + + + + + + + diff --git a/layout/reftests/svg/as-image/context-stroke-opacity-02.svg b/layout/reftests/svg/as-image/context-stroke-opacity-02.svg new file mode 100644 index 000000000000..d00c3a0e59c4 --- /dev/null +++ b/layout/reftests/svg/as-image/context-stroke-opacity-02.svg @@ -0,0 +1,3 @@ + + + diff --git a/layout/reftests/svg/as-image/context-stroke-opacity-03.html b/layout/reftests/svg/as-image/context-stroke-opacity-03.html new file mode 100644 index 000000000000..cc0f5685a7c2 --- /dev/null +++ b/layout/reftests/svg/as-image/context-stroke-opacity-03.html @@ -0,0 +1,20 @@ + + + + Test context-stroke-opacity works with context-stroke + + + + + + diff --git a/layout/reftests/svg/as-image/context-stroke-opacity-04.html b/layout/reftests/svg/as-image/context-stroke-opacity-04.html new file mode 100644 index 000000000000..cc329b463afb --- /dev/null +++ b/layout/reftests/svg/as-image/context-stroke-opacity-04.html @@ -0,0 +1,18 @@ + + + + No context-stroke-opacity value is provided + + + + + + diff --git a/layout/reftests/svg/as-image/context-stroke-opacity-05.html b/layout/reftests/svg/as-image/context-stroke-opacity-05.html new file mode 100644 index 000000000000..f31b42d0627d --- /dev/null +++ b/layout/reftests/svg/as-image/context-stroke-opacity-05.html @@ -0,0 +1,19 @@ + + + + Test context-stroke-opacity when only '-moz-context-properties: fill-opacity' is specified + + + + + + diff --git a/layout/reftests/svg/as-image/reftest.list b/layout/reftests/svg/as-image/reftest.list index 20d584b9a6f4..d5feb66693ad 100644 --- a/layout/reftests/svg/as-image/reftest.list +++ b/layout/reftests/svg/as-image/reftest.list @@ -81,6 +81,20 @@ test-pref(svg.context-properties.content.enabled,true) == context-stroke-06.html test-pref(svg.context-properties.content.enabled,true) == context-stroke-07.html context-stroke-07-ref.html test-pref(svg.context-properties.content.enabled,true) == context-stroke-08.html blue100x100-border-ref.html test-pref(svg.context-properties.content.enabled,true) == context-stroke-bg-image-01.html blue100x100-border-ref.html +# context-fill-opacity: +== context-fill-opacity-01.html blue100x100-ref.html +fuzzy-if(winWidget,1,10000) test-pref(svg.context-properties.content.enabled,true) == context-fill-opacity-01.html context-fill-or-stroke-opacity-01-ref.html # Bug 1377327 +fuzzy-if(winWidget,1,20000) test-pref(svg.context-properties.content.enabled,true) == context-fill-opacity-02.html context-fill-or-stroke-opacity-02-ref.html # Bug 1377327 +fuzzy-if(winWidget,1,10000) test-pref(svg.context-properties.content.enabled,true) == context-fill-opacity-03.html context-fill-or-stroke-opacity-03-ref.html # Bug 1377327 +fuzzy-if(winWidget,1,10000) test-pref(svg.context-properties.content.enabled,true) == context-fill-opacity-04.html blue100x100-ref.html # Bug 1377327 +fuzzy-if(winWidget,1,10000) test-pref(svg.context-properties.content.enabled,true) == context-fill-opacity-05.html blue100x100-ref.html # Bug 1377327 +# context-stroke-opacity: +== context-stroke-opacity-01.html blue100x100-ref.html +fuzzy-if(winWidget,1,10000) test-pref(svg.context-properties.content.enabled,true) == context-stroke-opacity-01.html context-fill-or-stroke-opacity-01-ref.html # Bug 1377327 +fuzzy-if(winWidget,1,20000) test-pref(svg.context-properties.content.enabled,true) == context-stroke-opacity-02.html context-fill-or-stroke-opacity-02-ref.html # Bug 1377327 +fuzzy-if(winWidget,1,10000) test-pref(svg.context-properties.content.enabled,true) == context-stroke-opacity-03.html context-fill-or-stroke-opacity-03-ref.html # Bug 1377327 +fuzzy-if(winWidget,1,10000) test-pref(svg.context-properties.content.enabled,true) == context-stroke-opacity-04.html blue100x100-ref.html # Bug 1377327 +fuzzy-if(winWidget,1,10000) test-pref(svg.context-properties.content.enabled,true) == context-stroke-opacity-05.html blue100x100-ref.html # Bug 1377327 # Simple tests == img-simple-1.html lime100x100-ref.html