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> |