Title: [189299] branches/safari-601.1.46-branch/LayoutTests

Diff

Modified: branches/safari-601.1.46-branch/LayoutTests/ChangeLog (189298 => 189299)


--- branches/safari-601.1.46-branch/LayoutTests/ChangeLog	2015-09-03 22:32:17 UTC (rev 189298)
+++ branches/safari-601.1.46-branch/LayoutTests/ChangeLog	2015-09-03 22:33:37 UTC (rev 189299)
@@ -1,3 +1,22 @@
+2015-09-03  Babak Shafiei  <[email protected]>
+
+        Merge r189022.
+
+    2015-08-26  Wenson Hsieh  <[email protected]>
+
+            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-26  Andy Estes  <[email protected]>
 
         Merge r188988.

Copied: branches/safari-601.1.46-branch/LayoutTests/animations/crash-on-removing-animation-expected.txt (from rev 189022, trunk/LayoutTests/animations/crash-on-removing-animation-expected.txt) (0 => 189299)


--- branches/safari-601.1.46-branch/LayoutTests/animations/crash-on-removing-animation-expected.txt	                        (rev 0)
+++ branches/safari-601.1.46-branch/LayoutTests/animations/crash-on-removing-animation-expected.txt	2015-09-03 22:33:37 UTC (rev 189299)
@@ -0,0 +1,4 @@
+PASS successfullyParsed is true
+
+TEST COMPLETE
+If you are reading this, we managed to avoid crashing!

Copied: branches/safari-601.1.46-branch/LayoutTests/animations/crash-on-removing-animation.html (from rev 189022, trunk/LayoutTests/animations/crash-on-removing-animation.html) (0 => 189299)


--- branches/safari-601.1.46-branch/LayoutTests/animations/crash-on-removing-animation.html	                        (rev 0)
+++ branches/safari-601.1.46-branch/LayoutTests/animations/crash-on-removing-animation.html	2015-09-03 22:33:37 UTC (rev 189299)
@@ -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
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to