Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 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); | |
|
pdr.
2015/04/16 19:19:16
Does this test really need three requestAnimationF
Stephen Chennney
2015/04/16 19:30:32
It's needed. The first one comes before any frame,
| |
| 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> | |
| OLD | NEW |