Bug 971720 - Add tests. r=roc
authorMatt Woodrow <mwoodrow@mozilla.com>
Sat, 01 Mar 2014 08:52:57 +1300
changeset 171607 4895aa1f1ee50b434c3f3d6ff86bc64d164511c5
parent 171606 253efc28d705366a486972686c6457c2d5dc0d62
child 171608 d82096b00f8a9c6b55c4bb28518d7a045da0c8f7
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersroc
bugs971720
milestone30.0a1
Bug 971720 - Add tests. r=roc
layout/reftests/border-radius/clipping-6-ref.html
layout/reftests/border-radius/clipping-6.html
layout/reftests/border-radius/clipping-7-ref.html
layout/reftests/border-radius/clipping-7.html
layout/reftests/border-radius/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/border-radius/clipping-6-ref.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+</head>
+<body>
+    <div style="overflow:hidden; border-radius:25px; border:3px solid #f00; padding:1px; height:180px;">
+        <div style="transform: perspective(1px)">
+            <div style="height:100px; width:100px; background-color:lime"></div>
+            <div style="height:100px; width: 50px; background-color:red; position:relative; top: -20px;">Hi</div>
+        </div>
+    </div>
+    <div
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/border-radius/clipping-6.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+</head>
+<body>
+    <div style="overflow:hidden; border-radius:25px; border:3px solid #f00; padding:1px; height:180px;">
+        <div style="height:100px; width:100px; transform:perspective(1px); background-color:lime"></div>
+        <div style="height:100px; width: 50px; background-color:red; position:relative; top: -20px;">Hi</div>
+    </div>
+    <div
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/border-radius/clipping-7-ref.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+</head>
+<body>
+    <div style="overflow:hidden; border-radius:25px; border:3px solid #f00; padding:1px; height:180px;">
+        <div style="height:100px; width:100px; background-color:lime"></div>
+        <div style="height:100px; width: 50px; background-color:red; position:relative; top: -20px;"></div>
+    </div>
+    <div
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/border-radius/clipping-7.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+</head>
+<body>
+    <div style="overflow:hidden; border-radius:25px; border:3px solid #f00; padding:1px; height:180px;">
+        <div style="height:100px; width:100px; transform:perspective(1px); background-color:lime"></div>
+        <div style="height:100px; width: 50px; background-color:red; position:relative; top: -20px;"></div>
+    </div>
+    <div
+</body>
+</html>
--- a/layout/reftests/border-radius/reftest.list
+++ b/layout/reftests/border-radius/reftest.list
@@ -44,16 +44,18 @@ fuzzy-if(Android&&AndroidVersion<15,9,73
 fuzzy-if(true,1,20) fuzzy-if(cocoaWidget,1,180) fuzzy-if(Android&&browserIsRemote,7,169) fuzzy-if(Android&&!browserIsRemote,140,237) == clipping-4-canvas.html clipping-4-ref.html # bug 732535
 fuzzy-if(Android,5,54) fuzzy-if(/^Windows\x20NT\x206\.2/.test(http.oscpu),1,10) == clipping-4-image.html clipping-4-ref.html
 fuzzy-if(/^Windows\x20NT\x206\.2/.test(http.oscpu),1,10) == clipping-4-overflow-hidden.html clipping-4-ref.html
 == clipping-5-canvas.html clipping-5-refc.html
 fuzzy-if(/^Windows\x20NT\x206\.2/.test(http.oscpu),1,5) == clipping-5-image.html clipping-5-refi.html
 fuzzy-if(/^Windows\x20NT\x206\.2/.test(http.oscpu),1,5) == clipping-5-overflow-hidden.html clipping-5-ref.html
 fuzzy-if(/^Windows\x20NT\x206\.2/.test(http.oscpu),1,5) fuzzy-if(Android,5,21) == clipping-5-refi.html clipping-5-ref.html
 fuzzy-if(true,1,7) fuzzy-if(cocoaWidget,1,99) fuzzy-if(Android&&browserIsRemote,7,89) fuzzy-if(Android&&!browserIsRemote,99,115) == clipping-5-refc.html clipping-5-ref.html # bug 732535
+fuzzy-if(winWidget,105,71) fuzzy-if(Android,8,464) == clipping-6.html clipping-6-ref.html # ThebesLayer and MaskLayer with transforms that aren't identical
+fuzzy-if(true,1,29) fuzzy-if(Android&&AndroidVersion<15,12,81) fuzzy-if(Android&&AndroidVersion>=15,255,586) == clipping-7.html clipping-7-ref.html # ColorLayer and MaskLayer with transforms that aren't identical. Reference image rendered without using layers (which causes fuzzy failures).
 fuzzy-if(/^Windows\x20NT\x206\.2/.test(http.oscpu),1,5) == clipping-and-zindex-1.html clipping-and-zindex-1-ref.html
 fuzzy-if(cocoaWidget,1,4) == intersecting-clipping-1-canvas.html intersecting-clipping-1-refc.html
 == intersecting-clipping-1-image.html intersecting-clipping-1-refi.html
 == intersecting-clipping-1-overflow-hidden.html intersecting-clipping-1-ref.html
 fuzzy-if(Android,5,105) fuzzy-if(d2d,1,20) == intersecting-clipping-1-refi.html intersecting-clipping-1-ref.html
 fuzzy-if(true,1,33) fuzzy-if(cocoaWidget,1,332) fuzzy-if(Android&&browserIsRemote,7,310) fuzzy-if(Android&&!browserIsRemote,124,440) == intersecting-clipping-1-refc.html intersecting-clipping-1-ref.html # bug 732535
 
 # Inheritance