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

Unified Diff: LayoutTests/svg/repaint/modify-transferred-listitem-different-attr.html

Issue 321403004: SVG: Items inserted into list should be made a tear-off. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add baseline for mac Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/svg/repaint/modify-transferred-listitem-different-attr.html
diff --git a/LayoutTests/svg/repaint/modify-transferred-listitem-different-attr.html b/LayoutTests/svg/repaint/modify-transferred-listitem-different-attr.html
new file mode 100644
index 0000000000000000000000000000000000000000..6db8767d667909b8a934c951dbc8ce47b0becaa2
--- /dev/null
+++ b/LayoutTests/svg/repaint/modify-transferred-listitem-different-attr.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<style>
+ @font-face {
+ font-family: 'myahem';
+ src: url(../../resources/Ahem.ttf);
+ }
+ text {
+ font-family: 'myahem';
+ }
+</style>
+<svg width="100" height="100">
+ <text id="ref" x="15 65" y="10 20" fill="red">A B C</text>
+ <text id="target" x="15" y="10 20" fill="green">A B C</text>
+ <text id="source" x="50" y="50 60" fill="blue">X Y Z</text>
+</svg>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script>
+testIsAsync = true;
+window.onload = runRepaintTest;
+
+function repaintTest() {
+ var moved = document.querySelector('#source').y.baseVal.removeItem(1);
+ document.querySelector('#target').x.baseVal.appendItem(moved);
+
+ requestAnimationFrame(function() {
+ moved.value = 65;
+ if (window.testRunner)
+ finishRepaintTest();
+ });
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698