OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <svg width="100" height="100"> | |
3 <rect x="10" y="10" width="10" height="10" fill="green"></rect> | |
4 <rect id="move" x="10" y="10" width="10" height="10" fill="red"></rect> | |
Erik Dahlström (inactive)
2014/06/11 08:22:03
Wouldn't the test be better if the red rect indica
kouhei (in TOK)
2014/06/12 04:25:28
Done.
| |
5 </svg> | |
6 <script> | |
7 jsTestIsAsync = true; | |
8 enablePixelTesting = true; | |
fs
2014/06/11 08:42:23
Could you make this a repaint test instead? (I thi
kouhei (in TOK)
2014/06/12 04:25:28
Done.
| |
9 </script> | |
10 <script src="../../resources/js-test.js"></script> | |
11 <script> | |
12 description("Modifying inserted item to a list should trigger invalidation."); | |
13 | |
14 var transform = document.querySelector('svg').createSVGTransform(); | |
15 transform.matrix.e = 10; | |
16 document.querySelector('#move').transform.baseVal.appendItem(transform); | |
17 | |
18 requestAnimationFrame(function() { | |
19 transform.matrix.f = 20; | |
20 finishJSTest(); | |
21 }); | |
22 </script> | |
OLD | NEW |