Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: LayoutTests/svg/animations/smil-syncbase-self-dependency.svg

Issue 144333002: Prevent crash in createInstanceTimesFromSyncbase (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/svg/animations/smil-syncbase-self-dependency.svg
diff --git a/LayoutTests/svg/animations/smil-syncbase-self-dependency.svg b/LayoutTests/svg/animations/smil-syncbase-self-dependency.svg
new file mode 100644
index 0000000000000000000000000000000000000000..406cac3c88ceaa1e12dcca79d1b20d155ed2460f
--- /dev/null
+++ b/LayoutTests/svg/animations/smil-syncbase-self-dependency.svg
@@ -0,0 +1,25 @@
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" onload="loaded()">
+ <!-- Test whether SMILElement animation self dependencies handled correctly. -->
+ <rect id="rectID" width="100" height="100" fill="green">
+ <animate id="selfID" attributeName="x" begin="0s; selfID.end" dur="0.02s" from="0" to="400"/>
+ </rect>
+ <text id="label" y="150"/>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ function displayMessage() {
+ document.getElementById("label").textContent = "SMILElement animation time self-dependency is" +
+ ((document.getElementById("rectID").x.animVal.value > 0) ? " " : " not ") + "handled.";
+ }
+
+ function loaded() {
+ setTimeout('displayMessage()', 30);
+ if (window.testRunner) {
+ setTimeout('testRunner.notifyDone()', 40);
+ }
+ }
+ </script>
+</svg>

Powered by Google App Engine
This is Rietveld 408576698