Index: LayoutTests/svg/repaint/modify-transferred-listitem.html |
diff --git a/LayoutTests/svg/repaint/modify-transferred-listitem.html b/LayoutTests/svg/repaint/modify-transferred-listitem.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e3869d6c649a7440632924bd65a66a8b4e95fd61 |
--- /dev/null |
+++ b/LayoutTests/svg/repaint/modify-transferred-listitem.html |
@@ -0,0 +1,23 @@ |
+<!DOCTYPE html> |
+<svg width="100" height="100"> |
+ <polygon id="ref" points="20,10 10,30 30,30 40,10" fill="red"></polygon> |
+ <polygon id="target" points="20,10 10,30 30,30" fill="green"></polygon> |
+ <polygon id="source" points="20,20" fill="blue"></polygon> |
+</svg> |
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
+<script> |
+testIsAsync = true; |
+window.onload = runRepaintTest; |
+ |
+function repaintTest() { |
+ var moved = document.querySelector('#source').points.removeItem(0); |
+ document.querySelector('#target').points.appendItem(moved); |
+ |
+ requestAnimationFrame(function() { |
+ moved.x = 40; |
+ moved.y = 10; |
+ if (window.testRunner) |
+ finishRepaintTest(); |
+ }); |
+} |
+</script> |