Index: LayoutTests/svg/dom/modify-inserted-listitem.html |
diff --git a/LayoutTests/svg/dom/modify-inserted-listitem.html b/LayoutTests/svg/dom/modify-inserted-listitem.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7a13033de9155b87cdb08bac4402c2bff30e272f |
--- /dev/null |
+++ b/LayoutTests/svg/dom/modify-inserted-listitem.html |
@@ -0,0 +1,22 @@ |
+<!DOCTYPE html> |
+<svg width="100" height="100"> |
+ <rect x="10" y="10" width="10" height="10" fill="green"></rect> |
+ <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.
|
+</svg> |
+<script> |
+jsTestIsAsync = true; |
+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.
|
+</script> |
+<script src="../../resources/js-test.js"></script> |
+<script> |
+description("Modifying inserted item to a list should trigger invalidation."); |
+ |
+var transform = document.querySelector('svg').createSVGTransform(); |
+transform.matrix.e = 10; |
+document.querySelector('#move').transform.baseVal.appendItem(transform); |
+ |
+requestAnimationFrame(function() { |
+ transform.matrix.f = 20; |
+ finishJSTest(); |
+}); |
+</script> |