Title: [189022] trunk/LayoutTests
Revision
189022
Author
wenson_hs...@apple.com
Date
2015-08-27 07:26:20 -0700 (Thu, 27 Aug 2015)

Log Message

Add a Layout test for r188991
https://bugs.webkit.org/show_bug.cgi?id=148507

Reviewed by Tim Horton.

Tests that stopping an animation early and closing the window does
not crash the process. This is a retrospective test added for
https://bugs.webkit.org/show_bug.cgi?id=148442, "Fix crash due to
animationDidEnd called on deallocated RemoteLayerTreeHost."

* animations/crash-on-removing-animation.html: Added.
* animations/crash-on-removing-animation-expected.txt: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (189021 => 189022)


--- trunk/LayoutTests/ChangeLog	2015-08-27 10:26:47 UTC (rev 189021)
+++ trunk/LayoutTests/ChangeLog	2015-08-27 14:26:20 UTC (rev 189022)
@@ -1,3 +1,18 @@
+2015-08-26  Wenson Hsieh  <wenson_hs...@apple.com>
+
+        Add a Layout test for r188991
+        https://bugs.webkit.org/show_bug.cgi?id=148507
+
+        Reviewed by Tim Horton.
+
+        Tests that stopping an animation early and closing the window does
+        not crash the process. This is a retrospective test added for
+        https://bugs.webkit.org/show_bug.cgi?id=148442, "Fix crash due to
+        animationDidEnd called on deallocated RemoteLayerTreeHost."
+
+        * animations/crash-on-removing-animation.html: Added.
+        * animations/crash-on-removing-animation-expected.txt: Added.
+
 2015-08-27  Csaba Osztrogon√°c  <o...@webkit.org>
 
         [EFL] REGRESSION: userscripts tests crash

Added: trunk/LayoutTests/animations/crash-on-removing-animation-expected.txt (0 => 189022)


--- trunk/LayoutTests/animations/crash-on-removing-animation-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/animations/crash-on-removing-animation-expected.txt	2015-08-27 14:26:20 UTC (rev 189022)
@@ -0,0 +1,4 @@
+PASS successfullyParsed is true
+
+TEST COMPLETE
+If you are reading this, we managed to avoid crashing!

Added: trunk/LayoutTests/animations/crash-on-removing-animation.html (0 => 189022)


--- trunk/LayoutTests/animations/crash-on-removing-animation.html	                        (rev 0)
+++ trunk/LayoutTests/animations/crash-on-removing-animation.html	2015-08-27 14:26:20 UTC (rev 189022)
@@ -0,0 +1,55 @@
+<html>
+
+<head>
+    <script src=""
+    <script>
+    var successfullyParsed = false;
+    window.jsTestIsAsync = true;
+
+    function tryToCrash() {
+        var div = document.getElementById("test");
+        div.style.webkitTransform = "translateY(1px)";
+        div.style.webkitTransition = "1s ease-in-out";
+        setTimeout(function() {
+            div.style.webkitTransform = "none";
+            div.style.webkitTransition = "none";
+            setTimeout(function() {
+                window.close();
+                window.opener.finishJSTest();
+            }, 0);
+        }, 0);
+    }
+
+    function setup() {
+        if (window.testRunner) {
+            if (location.href.indexOf("auxillary") != -1) {
+                setTimeout(tryToCrash, 0);
+            } else {
+                testRunner.setCanOpenWindows();
+                window.open("crash-on-removing-animation.html#auxillary");
+            }
+        } else {
+            document.write("This test must be run in DRT/WKTR.");
+        }
+    }
+    </script>
+
+    <style>
+    #test {
+        background-color: blue;
+        width: 10px;
+        height: 10px;
+    }
+    </style>
+<head>
+
+<body _onload_="setup()">
+    <div id="test"></div>
+    <script>
+        successfullyParsed = true;
+    </script>
+    <p>If you are reading this, we managed to avoid crashing!</p>
+    <script src=""
+</body>
+
+</html>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to