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

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

Issue 1087283002: Rework the checks for too-few values in feColorMatrix filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review comments and tests! Created 5 years, 8 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
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('values', '1');
14 if (window.testRunner) {
15 testRunner.displayAsyncThen(testDone);
16 }
17 }
18
19 onload = function() {
20 if (window.testRunner) {
21 testRunner.waitUntilDone();
22 testRunner.displayAsyncThen(changeValues);
23 } else {
24 setTimeout(changeValues, 200);
pdr. 2015/04/16 18:54:53 setTimeout 200ms? Can this be requestAnimationFram
Stephen Chennney 2015/04/16 19:14:13 Done.
25 }
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="matrix"></fecolormatrix>
34 </filter>
35 </defs>
36 </svg>
37 PASS
38 </body>
39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698