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

Unified Diff: third_party/WebKit/LayoutTests/svg/animations/animate-local-url.html

Issue 2905033003: Stricter equality check for local refs in CSSURIValue (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/animations/animate-local-url-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/animations/animate-local-url.html
diff --git a/third_party/WebKit/LayoutTests/svg/animations/animate-local-url.html b/third_party/WebKit/LayoutTests/svg/animations/animate-local-url.html
new file mode 100644
index 0000000000000000000000000000000000000000..99c6525d03605877e1e0282a23a5aa0e8c1a5a6d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/animations/animate-local-url.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<svg>
+ <marker id="a" markerWidth="2" markerHeight="2" refX="1" refY="1">
+ <rect width="2" height="2" fill="red"/>
+ </marker>
+ <marker id="b" markerWidth="2" markerHeight="2" refX="1" refY="1">
+ <rect width="2" height="2" fill="green"/>
+ </marker>
+ <line stroke-width="50" stroke="red" y1="50" x2="50" y2="50">
+ <animate attributeName="marker-end" fill="freeze" dur="10s" values="url(#a);url(#b)"/>
+ </line>
+</svg>
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
+// Advance the timeline to just before the value transition, then wait
+// for two frames (first red, second green.)
+// NOTE: Because of "legacy" in the animation engine, we first wait for 25ms,
+// since no updates will be performed prior to that. Without this the two rAF
+// calls ought to be enough.
+document.querySelector('svg').setCurrentTime(5 - 0.001);
+onload = function() {
+ setTimeout(function() {
+ requestAnimationFrame(function() {
+ requestAnimationFrame(function() {
+ testRunner.notifyDone();
+ });
+ });
+ }, 25);
+};
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/animations/animate-local-url-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698