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

Unified Diff: LayoutTests/svg/animations/discard-on-svg-crash.html

Issue 99533004: [SVG] Implement 'discard' element (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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/discard-on-svg-crash.html
diff --git a/LayoutTests/svg/animations/discard-on-svg-crash.html b/LayoutTests/svg/animations/discard-on-svg-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..547e06d3f69da4cf9e19d7d6fb468b62d8ed5b71
--- /dev/null
+++ b/LayoutTests/svg/animations/discard-on-svg-crash.html
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML>
+<html>
+<body onload="startTest()">
+ <svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+ <svg id="inner" width="300" height="300">
+ <rect id="rect" width="100" height="100" fill="green">
+ <animate attributeName="x" from="0" to="300" begin="0s" dur="10s"/>
+ <discard xlink:href="#inner" begin="0s"/>
+ </rect>
+ </svg>
+ </svg>
+ <script>
+ function startTest() {
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+ setTimeout(function() {
+ document.write('PASS: Test did not crash.');
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.notifyDone();
+ }
+ }, 10);
+ }
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698