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

Side by Side Diff: LayoutTests/svg/filters/feColorMatrix-setAttribute-crash2.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 function testDone() {
6 if (window.testRunner) {
7 testRunner.dumpAsText();
8 testRunner.notifyDone();
9 }
10 }
11
12 function changeValues() {
13 document.getElementById('color').setAttribute('type', 'matrix');
14 requestAnimationFrame(testDone);
15 }
16
17 function forcePaint() {
18 requestAnimationFrame(changeValues);
19 }
20
21 onload = function() {
22 if (window.testRunner) {
23 testRunner.waitUntilDone();
24 }
25 requestAnimationFrame(forcePaint);
26 }
27 </script>
28 </head>
29 <body>
30 <svg id="svg" xmlns="http://www.w3.org/2000/svg" width="100" height="100" fil ter="url(#MyFilter)" version="1.1">
31 <defs>
32 <filter id="MyFilter">
33 <fecolormatrix id="color" type="hueRotate"></fecolormatrix>
34 </filter>
35 </defs>
36 </svg>
37 PASS
38 </body>
39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698