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

Unified Diff: LayoutTests/fast/svg/href-baseval-animval.html

Issue 1086873004: Add UseCounter for SVGURIReference.href.baseVal/animVal. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix nit + rebase Created 5 years, 8 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 | Source/core/core.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/svg/href-baseval-animval.html
diff --git a/LayoutTests/fast/svg/href-baseval-animval.html b/LayoutTests/fast/svg/href-baseval-animval.html
new file mode 100644
index 0000000000000000000000000000000000000000..34c87663bf228b8af27bf1e0b312e1c93c47e833
--- /dev/null
+++ b/LayoutTests/fast/svg/href-baseval-animval.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<title>Test UseCounters for SVGURIReference.href.baseVal/animVal</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<svg width="0" height="0">
+ <use xlink:href="#foo"/>
+ <script>
+ var target = document.querySelector("use");
+ test(function() {
+ var baseval = target.href.baseVal;
+ assert_true(window.internals.isUseCounted(document, 758));
+ }, "has SVGHrefBaseVal UseCounter"); // 758 == UseCounter::Feature::SVGHrefBaseVal
+ test(function() {
+ var animval = target.href.animVal;
+ assert_true(window.internals.isUseCounted(document, 759));
+ }, "has SVGHrefAnimVal UseCounter"); // 759 == UseCounter::Feature::SVGHrefAnimVal
+ </script>
+</svg>
« no previous file with comments | « no previous file | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698