OLD | NEW |
(Empty) | |
| 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::SVGHrefB
aseVal |
| 13 test(function() { |
| 14 var animval = target.href.animVal; |
| 15 assert_true(window.internals.isUseCounted(document, 759)); |
| 16 }, "has SVGHrefAnimVal UseCounter"); // 759 == UseCounter::Feature::SVGHrefA
nimVal |
| 17 </script> |
| 18 </svg> |
OLD | NEW |