Title: [178004] trunk/LayoutTests
Revision
178004
Author
simon.fra...@apple.com
Date
2015-01-06 16:20:06 -0800 (Tue, 06 Jan 2015)

Log Message

Fix this test to wait for the load event before dumping. Expected image
changes.

* compositing/images/content-image-change.html:
* platform/mac/compositing/images/content-image-change-expected.png:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (178003 => 178004)


--- trunk/LayoutTests/ChangeLog	2015-01-07 00:18:40 UTC (rev 178003)
+++ trunk/LayoutTests/ChangeLog	2015-01-07 00:20:06 UTC (rev 178004)
@@ -1,5 +1,13 @@
 2015-01-06  Simon Fraser  <simon.fra...@apple.com>
 
+        Fix this test to wait for the load event before dumping. Expected image
+        changes.
+
+        * compositing/images/content-image-change.html:
+        * platform/mac/compositing/images/content-image-change-expected.png:
+
+2015-01-06  Simon Fraser  <simon.fra...@apple.com>
+
         Some composting reflections tests are broken
         https://bugs.webkit.org/show_bug.cgi?id=139889
 

Modified: trunk/LayoutTests/compositing/images/content-image-change.html (178003 => 178004)


--- trunk/LayoutTests/compositing/images/content-image-change.html	2015-01-07 00:18:40 UTC (rev 178003)
+++ trunk/LayoutTests/compositing/images/content-image-change.html	2015-01-07 00:20:06 UTC (rev 178004)
@@ -21,12 +21,11 @@
 
         window.setTimeout(function() {
             // Change the contents to green.
-            image.src =  ""
-            if (window.testRunner) {
-                window.setTimeout(function() {
+            image.addEventListener('load', function() {
+                if (window.testRunner)
                     testRunner.notifyDone();
-                }, 0);
-            }
+            }, false);
+            image.src =  ""
         }, 0);
     }
 

Modified: trunk/LayoutTests/platform/mac/compositing/images/content-image-change-expected.png


(Binary files differ)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to