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

Unified Diff: LayoutTests/svg/filters/feColorMatrix-setAttribute-crash1.html

Issue 1135023003: Rework the checks for too-few values in feColorMatrix filter. (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2357
Patch Set: Created 5 years, 7 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/feColorMatrix-setAttribute-crash1-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/filters/feColorMatrix-setAttribute-crash1.html
diff --git a/LayoutTests/svg/filters/feColorMatrix-setAttribute-crash1.html b/LayoutTests/svg/filters/feColorMatrix-setAttribute-crash1.html
new file mode 100644
index 0000000000000000000000000000000000000000..dc280a52aae6226e83dfdfea80d487d2346fb2a4
--- /dev/null
+++ b/LayoutTests/svg/filters/feColorMatrix-setAttribute-crash1.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script>
+ function testDone() {
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.notifyDone();
+ }
+ }
+
+ function changeValues() {
+ document.getElementById('color').setAttribute('values', '1');
+ requestAnimationFrame(testDone);
+ }
+
+ function forcePaint() {
+ requestAnimationFrame(changeValues);
+ }
+
+ onload = function() {
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ }
+ requestAnimationFrame(forcePaint);
+ }
+ </script>
+</head>
+<body>
+ <svg id="svg" xmlns="http://www.w3.org/2000/svg" width="100" height="100" filter="url(#MyFilter)" version="1.1">
+ <defs>
+ <filter id="MyFilter">
+ <fecolormatrix id="color" type="matrix"></fecolormatrix>
+ </filter>
+ </defs>
+ </svg>
+ PASS
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/svg/filters/feColorMatrix-setAttribute-crash1-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698