Title: [151630] trunk/LayoutTests
Revision
151630
Author
[email protected]
Date
2013-06-16 23:53:02 -0700 (Sun, 16 Jun 2013)

Log Message

[CSS Blending] Update the background-blend-mode-image-color-dynamic test to use the repaint test logic

Updating testcase verifying if background blend modes are updated dynamically from script. This now
properly uses the repaint test mechanism. Also, the background image resource is addded.

https://bugs.webkit.org/show_bug.cgi?id=117686

Patch by Mihai Tica <[email protected]> on 2013-06-16
Reviewed by Dean Jackson.

* fast/repaint/background-blend-mode-image-color-dynamic-expected.html:
* fast/repaint/background-blend-mode-image-color-dynamic.html:
* fast/repaint/resources/ducky.png: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (151629 => 151630)


--- trunk/LayoutTests/ChangeLog	2013-06-17 04:23:15 UTC (rev 151629)
+++ trunk/LayoutTests/ChangeLog	2013-06-17 06:53:02 UTC (rev 151630)
@@ -1,3 +1,18 @@
+2013-06-16  Mihai Tica  <[email protected]>
+
+        [CSS Blending] Update the background-blend-mode-image-color-dynamic test to use the repaint test logic
+
+        Updating testcase verifying if background blend modes are updated dynamically from script. This now
+        properly uses the repaint test mechanism. Also, the background image resource is addded.
+
+        https://bugs.webkit.org/show_bug.cgi?id=117686
+
+        Reviewed by Dean Jackson.
+
+        * fast/repaint/background-blend-mode-image-color-dynamic-expected.html:
+        * fast/repaint/background-blend-mode-image-color-dynamic.html:
+        * fast/repaint/resources/ducky.png: Added.
+
 2013-06-16  Kent Tamura  <[email protected]>
 
         Fix two assertion failures in Range::insertNode

Modified: trunk/LayoutTests/fast/repaint/background-blend-mode-image-color-dynamic-expected.html (151629 => 151630)


--- trunk/LayoutTests/fast/repaint/background-blend-mode-image-color-dynamic-expected.html	2013-06-17 04:23:15 UTC (rev 151629)
+++ trunk/LayoutTests/fast/repaint/background-blend-mode-image-color-dynamic-expected.html	2013-06-17 06:53:02 UTC (rev 151630)
@@ -7,10 +7,15 @@
         width: 130px;
         height: 130px;
         background: url('resources/ducky.png') no-repeat 0 0 /100% 100%, green;
-        float: left;
     }
 </style>
 <!-- This file should contain a duck with multiply blending. -->
-<body>
-    <div style="-webkit-background-blend-mode: multiply, normal"></div>
+<script src="" type="text/_javascript_"></script>
+<script>
+    function repaintTest() {
+        document.getElementById('blender').style.webkitBackgroundBlendMode = 'multiply, normal';
+    }
+</script>
+<body _onload_="runRepaintTest()">
+    <div id="blender"></div>
 </body>

Modified: trunk/LayoutTests/fast/repaint/background-blend-mode-image-color-dynamic.html (151629 => 151630)


--- trunk/LayoutTests/fast/repaint/background-blend-mode-image-color-dynamic.html	2013-06-17 04:23:15 UTC (rev 151629)
+++ trunk/LayoutTests/fast/repaint/background-blend-mode-image-color-dynamic.html	2013-06-17 06:53:02 UTC (rev 151630)
@@ -1,7 +1,6 @@
 <!DOCTYPE HTML>
 <html>
 <head>
-<script src="" type="text/_javascript_"></script>
 
 <style>
     div {
@@ -10,16 +9,15 @@
         height: 130px;
         background: url('resources/ducky.png') no-repeat 0 0 /100% 100%, green;
         -webkit-background-blend-mode: normal, normal;
-        float: left;
     }
 </style>
 <!-- This file should contain a duck with multiply blending set from script. -->
-<body>
+<body _onload_="runRepaintTest()">
     <script>
-
         function repaintTest() {
             document.getElementById('blender').style.webkitBackgroundBlendMode = "multiply, normal";
         }
     </script>
+    <script src="" type="text/_javascript_"></script>
     <div id="blender"></div>
 </body>

Added: trunk/LayoutTests/fast/repaint/resources/ducky.png


(Binary files differ)
Property changes on: trunk/LayoutTests/fast/repaint/resources/ducky.png ___________________________________________________________________

Added: svn:mime-type

_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to