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 var baseval = target.href.baseVal; | |
fs
2015/04/16 08:55:07
Nit: Could've been scoped within the corresponding
| |
10 var animval = target.href.animVal; | |
11 test(function() { | |
12 assert_true(window.internals.isUseCounted(document, 758)); | |
13 }, "has SVGHrefBaseVal UseCounter"); // 758 == UseCounter::Feature::SVGHrefB aseVal | |
14 test(function() { | |
15 assert_true(window.internals.isUseCounted(document, 759)); | |
16 }, "has SVGHrefAnimVal UseCounter"); // 759 == UseCounter::Feature::SVGHrefA nimVal | |
17 </script> | |
18 </svg> | |
OLD | NEW |