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

Unified Diff: LayoutTests/svg/filters/filtered-animated-image-crash.html

Issue 1220053003: Disentangle filter content recording state from FilterData (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test. Created 5 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/svg/filters/filtered-animated-image-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/filters/filtered-animated-image-crash.html
diff --git a/LayoutTests/svg/filters/filtered-animated-image-crash.html b/LayoutTests/svg/filters/filtered-animated-image-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..fb1644bc76b4ad0da7d9f54031f8f0a6f045cf5b
--- /dev/null
+++ b/LayoutTests/svg/filters/filtered-animated-image-crash.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<script src=../../resources/run-after-layout-and-paint.js></script>
+<svg>
+ <filter id='filt'><feMerge><feMergeNode/></feMerge></filter>
+ <image height='400' width='400' filter='url(#filt)'
+ xlink:href='../../fast/images/resources/animated-10color-fast.gif'
+ onload="runTest()"/>
+</svg>
+<p>PASS if no crash.</p>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+function runTest() {
+ // Nudge the frame time for the image to force the animation to catch up.
+ if (window.internals)
+ internals.advanceTimeForImage(document.querySelector('image'), 0.5);
+ runAfterLayoutAndPaint(function(){}, true);
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/svg/filters/filtered-animated-image-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698