Bug 1295466 - Copy test box-sizing-replaced-001.xht and use non-standard MozReftestInvalidate event to avoid test failure when paint delay is reduced. r=dholbert,mstange
authorNeerja Pancholi <npancholi@mozilla.com>
Fri, 11 Nov 2016 13:25:42 -0800
changeset 324789 faa9981549a6d24268e5259a2a20fc30ae5f0482
parent 324788 d63d083ab7672423620d6d83366d3e1cbae86bad
child 324790 c46aadcf745c1ae266a1633c900dba9df449a41b
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersdholbert, mstange
bugs1295466
milestone53.0a1
Bug 1295466 - Copy test box-sizing-replaced-001.xht and use non-standard MozReftestInvalidate event to avoid test failure when paint delay is reduced. r=dholbert,mstange MozReview-Commit-ID: Dcyx4Z4D8Ni
layout/reftests/bugs/1295466-1-ref.xhtml
layout/reftests/bugs/1295466-1.xhtml
layout/reftests/bugs/reftest.list
layout/reftests/bugs/support/replaced-min-max-1.png
layout/reftests/bugs/support/replaced-min-max-10.png
layout/reftests/bugs/support/replaced-min-max-11.png
layout/reftests/bugs/support/replaced-min-max-12.png
layout/reftests/bugs/support/replaced-min-max-13.png
layout/reftests/bugs/support/replaced-min-max-14.png
layout/reftests/bugs/support/replaced-min-max-15.png
layout/reftests/bugs/support/replaced-min-max-16.png
layout/reftests/bugs/support/replaced-min-max-17.png
layout/reftests/bugs/support/replaced-min-max-18.png
layout/reftests/bugs/support/replaced-min-max-19.png
layout/reftests/bugs/support/replaced-min-max-2.png
layout/reftests/bugs/support/replaced-min-max-3.png
layout/reftests/bugs/support/replaced-min-max-4.png
layout/reftests/bugs/support/replaced-min-max-5.png
layout/reftests/bugs/support/replaced-min-max-6.png
layout/reftests/bugs/support/replaced-min-max-7.png
layout/reftests/bugs/support/replaced-min-max-8.png
layout/reftests/bugs/support/replaced-min-max-9.png
layout/reftests/bugs/support/replaced-min-max.png
copy from layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-001-ref.xht
copy to layout/reftests/bugs/1295466-1-ref.xhtml
copy from layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-001.xht
copy to layout/reftests/bugs/1295466-1.xhtml
--- a/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-001.xht
+++ b/layout/reftests/bugs/1295466-1.xhtml
@@ -127,19 +127,24 @@
 
       #img19 {
         max-width:  85px;
         min-height: 85px;
       }
     </style>
   </head>
   <script>
-  /* this test shouldn't need reftest-wait, but if the reftest snapshot is triggered before we've painted,
-   * for img5 the right 1/3rd of the element simply isn't painted.
-   * See Bug 1283302
+  /* This test is a copy of the original w3c-submitted test at
+   * w3c-css/submitted/ui3/box-sizing-replaced-001.xht.
+   * We need this copy so that we can use non-standard MozReftestInvalidate here
+   * without hindering the w3c testsuite.
+   * Without MozReftestInvalidate, for img5 the right 1/3rd of the element
+   * simply isn't painted.
+   * This copy can be removed (along with the fuzzy annotation in the original
+   * test) when we've fixed the underlying issue i.e. Bug 1316772.
    */
   window.addEventListener("MozReftestInvalidate", endTest);
 
   function endTest() {
     document.documentElement.removeAttribute("class");
   }
   </script>
   <body>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1968,20 +1968,23 @@ random-if(!winWidget) == 1273154-2.html 
 == 1275411-1.html 1275411-1-ref.html
 == 1288255.html 1288255-ref.html
 fuzzy(8,1900) == 1291528.html 1291528-ref.html
 # Buttons in 2 pages have different position and the rendering result can be
 # different, but they should use the same button style and the background color
 # should be same.  |fuzzy()| here allows the difference in border, but not
 # background color.
 fuzzy(255,1000) skip-if(!cocoaWidget) == 1294102-1.html 1294102-1-ref.html
+random-if(Android) fuzzy-if(skiaContent,15,50) == 1295466-1.xhtml 1295466-1-ref.xhtml #bug 982547
 fuzzy(2,320000) == 1315113-1.html 1315113-1-ref.html
 fuzzy(2,20000) == 1315113-2.html 1315113-2-ref.html
 == 1315632-1.html 1315632-1-ref.html
 fuzzy(2,40000) == 1316719-1a.html 1316719-1-ref.html
 fuzzy(2,40000) == 1316719-1b.html 1316719-1-ref.html
 fuzzy(2,40000) == 1316719-1c.html 1316719-1-ref.html
 
 HTTP == 652991-1a.html 652991-1-ref.html
 HTTP == 652991-1b.html 652991-1-ref.html
 HTTP == 652991-2.html 652991-2-ref.html
 HTTP == 652991-3.html 652991-3-ref.html
 HTTP == 652991-4.html 652991-4-ref.html
+
+
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-1.png
copy to layout/reftests/bugs/support/replaced-min-max-1.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-10.png
copy to layout/reftests/bugs/support/replaced-min-max-10.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-11.png
copy to layout/reftests/bugs/support/replaced-min-max-11.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-12.png
copy to layout/reftests/bugs/support/replaced-min-max-12.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-13.png
copy to layout/reftests/bugs/support/replaced-min-max-13.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-14.png
copy to layout/reftests/bugs/support/replaced-min-max-14.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-15.png
copy to layout/reftests/bugs/support/replaced-min-max-15.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-16.png
copy to layout/reftests/bugs/support/replaced-min-max-16.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-17.png
copy to layout/reftests/bugs/support/replaced-min-max-17.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-18.png
copy to layout/reftests/bugs/support/replaced-min-max-18.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-19.png
copy to layout/reftests/bugs/support/replaced-min-max-19.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-2.png
copy to layout/reftests/bugs/support/replaced-min-max-2.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-3.png
copy to layout/reftests/bugs/support/replaced-min-max-3.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-4.png
copy to layout/reftests/bugs/support/replaced-min-max-4.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-5.png
copy to layout/reftests/bugs/support/replaced-min-max-5.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-6.png
copy to layout/reftests/bugs/support/replaced-min-max-6.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-7.png
copy to layout/reftests/bugs/support/replaced-min-max-7.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-8.png
copy to layout/reftests/bugs/support/replaced-min-max-8.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-9.png
copy to layout/reftests/bugs/support/replaced-min-max-9.png
copy from layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max.png
copy to layout/reftests/bugs/support/replaced-min-max.png