From 63f1a7cfd64e840d5a4197a0fbc1d560547d6904 Mon Sep 17 00:00:00 2001 From: Mats Palmgren Date: Mon, 5 May 2014 17:55:55 +0000 Subject: [PATCH] Bug 613659 - Reftests for box-decoration-break. r=cam --- layout/reftests/bugs/368020-3-ref.html | 2 +- layout/reftests/bugs/368020-3.html | 2 +- layout/reftests/bugs/368020-5-ref.html | 2 +- layout/reftests/bugs/368020-5.html | 2 +- layout/reftests/bugs/reftest.list | 2 +- .../css-break/box-decoration-break-1-ref.html | 67 +++++++++ .../css-break/box-decoration-break-1.html | 71 ++++++++++ ...ion-break-with-inset-box-shadow-1-ref.html | 132 +++++++++++++++++ ...oration-break-with-inset-box-shadow-1.html | 134 ++++++++++++++++++ ...on-break-with-outset-box-shadow-1-ref.html | 131 +++++++++++++++++ ...ration-break-with-outset-box-shadow-1.html | 133 +++++++++++++++++ .../css-break/green-circle-alpha-32x32.png | Bin 0 -> 396 bytes layout/reftests/css-break/reftest.list | 4 + layout/reftests/reftest.list | 3 + 14 files changed, 680 insertions(+), 5 deletions(-) create mode 100644 layout/reftests/css-break/box-decoration-break-1-ref.html create mode 100644 layout/reftests/css-break/box-decoration-break-1.html create mode 100644 layout/reftests/css-break/box-decoration-break-with-inset-box-shadow-1-ref.html create mode 100644 layout/reftests/css-break/box-decoration-break-with-inset-box-shadow-1.html create mode 100644 layout/reftests/css-break/box-decoration-break-with-outset-box-shadow-1-ref.html create mode 100644 layout/reftests/css-break/box-decoration-break-with-outset-box-shadow-1.html create mode 100644 layout/reftests/css-break/green-circle-alpha-32x32.png create mode 100644 layout/reftests/css-break/reftest.list diff --git a/layout/reftests/bugs/368020-3-ref.html b/layout/reftests/bugs/368020-3-ref.html index 13209c61fd02..7a95a6c4d429 100644 --- a/layout/reftests/bugs/368020-3-ref.html +++ b/layout/reftests/bugs/368020-3-ref.html @@ -5,7 +5,7 @@ - + blah
blah
blah diff --git a/layout/reftests/bugs/368020-3.html b/layout/reftests/bugs/368020-3.html index 294a935f34d7..d04165527d86 100644 --- a/layout/reftests/bugs/368020-3.html +++ b/layout/reftests/bugs/368020-3.html @@ -5,7 +5,7 @@ - + blah
blah
blah diff --git a/layout/reftests/bugs/368020-5-ref.html b/layout/reftests/bugs/368020-5-ref.html index f048ae93716a..0cc7180afed4 100644 --- a/layout/reftests/bugs/368020-5-ref.html +++ b/layout/reftests/bugs/368020-5-ref.html @@ -5,7 +5,7 @@ - + blah
blah
blah diff --git a/layout/reftests/bugs/368020-5.html b/layout/reftests/bugs/368020-5.html index f576bbf45e39..013708cad03e 100644 --- a/layout/reftests/bugs/368020-5.html +++ b/layout/reftests/bugs/368020-5.html @@ -5,7 +5,7 @@ - + blah
blah
blah diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list index 2bf597f4e535..9b5e57dd9dc6 100644 --- a/layout/reftests/bugs/reftest.list +++ b/layout/reftests/bugs/reftest.list @@ -595,7 +595,7 @@ skip-if(B2G) == 367247-l-scroll.html 367247-l-auto.html != 367612-1g.html 367612-1-ref.html skip-if(B2G) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) == 368020-1.html 368020-1-ref.html == 368020-2.html 368020-2-ref.html -fails == 368020-3.html 368020-3-ref.html # bug 368085 +== 368020-3.html 368020-3-ref.html pref(layout.css.box-decoration-break.enabled,true) == 368020-5.html 368020-5-ref.html == 368155-1.xhtml 368155-1-ref.xhtml asserts(4) == 368155-negative-margins-1.html 368155-negative-margins-1-ref.html # bug 387205 / bug 457397 diff --git a/layout/reftests/css-break/box-decoration-break-1-ref.html b/layout/reftests/css-break/box-decoration-break-1-ref.html new file mode 100644 index 000000000000..431c499a1f66 --- /dev/null +++ b/layout/reftests/css-break/box-decoration-break-1-ref.html @@ -0,0 +1,67 @@ + + + + + CSS Test: Testing box-decoration-break:clone + + + + + + + + + + + +
  a  
  b  
  c  
  a  
  b  
  c  
  a  
  b  
  c  
+ +
+ + + + + + +
  a  
  b  
  c  
  a  
  b  
  c  
  a  
  b  
  c  
+ + + diff --git a/layout/reftests/css-break/box-decoration-break-1.html b/layout/reftests/css-break/box-decoration-break-1.html new file mode 100644 index 000000000000..e0326ccc1fa2 --- /dev/null +++ b/layout/reftests/css-break/box-decoration-break-1.html @@ -0,0 +1,71 @@ + + + + + CSS Test: Testing box-decoration-break:clone + + + + + + + + + + + + + +
  a  
  b  
  c  
  a  
  b  
  c  
  a  
  b  
  c  
+ +
+ + + + + + +
  a  
  b  
  c  

  a  
  b  
  c  

  a  
  b  
  c  

+ + + diff --git a/layout/reftests/css-break/box-decoration-break-with-inset-box-shadow-1-ref.html b/layout/reftests/css-break/box-decoration-break-with-inset-box-shadow-1-ref.html new file mode 100644 index 000000000000..f372a0f920ed --- /dev/null +++ b/layout/reftests/css-break/box-decoration-break-with-inset-box-shadow-1-ref.html @@ -0,0 +1,132 @@ + + + + + CSS Test: Testing box-decoration-break:clone with inset box-shadow + + + + + + +
+ +
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+ +
+ + +
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+
+ +
+ + + diff --git a/layout/reftests/css-break/box-decoration-break-with-inset-box-shadow-1.html b/layout/reftests/css-break/box-decoration-break-with-inset-box-shadow-1.html new file mode 100644 index 000000000000..97e64700cc9b --- /dev/null +++ b/layout/reftests/css-break/box-decoration-break-with-inset-box-shadow-1.html @@ -0,0 +1,134 @@ + + + + + CSS Test: Testing box-decoration-break:clone with inset box-shadow + + + + + + + + +
+ +
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+ +
+ + +
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+
+ +
+ + + diff --git a/layout/reftests/css-break/box-decoration-break-with-outset-box-shadow-1-ref.html b/layout/reftests/css-break/box-decoration-break-with-outset-box-shadow-1-ref.html new file mode 100644 index 000000000000..938fc391480f --- /dev/null +++ b/layout/reftests/css-break/box-decoration-break-with-outset-box-shadow-1-ref.html @@ -0,0 +1,131 @@ + + + + + CSS Test: Testing box-decoration-break:clone with outset box-shadow + + + + + + +
+ +
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+ +
+ + +
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+  a  
  b  
  c  
+  a  
  b  
  c  
+  a  
  b  
  c  
+
+
+ +
+ + diff --git a/layout/reftests/css-break/box-decoration-break-with-outset-box-shadow-1.html b/layout/reftests/css-break/box-decoration-break-with-outset-box-shadow-1.html new file mode 100644 index 000000000000..417bf76ca434 --- /dev/null +++ b/layout/reftests/css-break/box-decoration-break-with-outset-box-shadow-1.html @@ -0,0 +1,133 @@ + + + + + CSS Test: Testing box-decoration-break:clone with outset box-shadow + + + + + + + + +
+ +
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+ +
+ + +
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+  a  
  b  
  c  

+  a  
  b  
  c  

+  a  
  b  
  c  

+
+
+ +
+ + diff --git a/layout/reftests/css-break/green-circle-alpha-32x32.png b/layout/reftests/css-break/green-circle-alpha-32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..a007675a176123cab7291d684537dde8961ecec7 GIT binary patch literal 396 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzwj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&kwIla1GcWoG4q7eFD|%#er@=ltB<)VvZPmw~~#C^fMp zHASI3vm`^o-P1Q9MK6^dDE`6I#W5t}@YCsrLd^;SuJV~G+fV4eS);RcoA>LzHtnHS z{Rz{fGqi#h82epO>Di%p@}Jj%pY!>3xc^jZJh$gjS6~cMkc*ODz^13M?q8~u5>Gmh z>@(F}i8)WYZK|6~cyC^d43|FP9`Y_P;?p(epB>kHTjtL^KUW~4__^)Ev}?}$KVQ7A zk@xuc!-bm#PS_qbX18*9ud~3taE^6?@f@)N2mYANsva!s8&W(Sv@{fAg#@^{IYXATM literal 0 HcmV?d00001 diff --git a/layout/reftests/css-break/reftest.list b/layout/reftests/css-break/reftest.list new file mode 100644 index 000000000000..2935df26bb25 --- /dev/null +++ b/layout/reftests/css-break/reftest.list @@ -0,0 +1,4 @@ +pref(layout.css.box-decoration-break.enabled,true) == box-decoration-break-1.html box-decoration-break-1-ref.html + +fuzzy(1,20) pref(layout.css.box-decoration-break.enabled,true) == box-decoration-break-with-inset-box-shadow-1.html box-decoration-break-with-inset-box-shadow-1-ref.html +fuzzy(16,460) pref(layout.css.box-decoration-break.enabled,true) == box-decoration-break-with-outset-box-shadow-1.html box-decoration-break-with-outset-box-shadow-1-ref.html diff --git a/layout/reftests/reftest.list b/layout/reftests/reftest.list index a16d5938b4b9..8c5dd41b092b 100644 --- a/layout/reftests/reftest.list +++ b/layout/reftests/reftest.list @@ -56,6 +56,9 @@ include css-animations/reftest.list # blending/ include css-blending/reftest.list +# Tests for the css-break spec +include css-break/reftest.list + # css calc() tests include css-calc/reftest.list