Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / svg / href-baseval-animval.html
blob34c87663bf228b8af27bf1e0b312e1c93c47e833
1 <!doctype html>
2 <title>Test UseCounters for SVGURIReference.href.baseVal/animVal</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <svg width="0" height="0">
6 <use xlink:href="#foo"/>
7 <script>
8 var target = document.querySelector("use");
9 test(function() {
10 var baseval = target.href.baseVal;
11 assert_true(window.internals.isUseCounted(document, 758));
12 }, "has SVGHrefBaseVal UseCounter"); // 758 == UseCounter::Feature::SVGHrefBaseVal
13 test(function() {
14 var animval = target.href.animVal;
15 assert_true(window.internals.isUseCounted(document, 759));
16 }, "has SVGHrefAnimVal UseCounter"); // 759 == UseCounter::Feature::SVGHrefAnimVal
17 </script>
18 </svg>