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..59f2e4c42038586be14ca25fae322cd2920f9065 |
--- /dev/null |
+++ b/LayoutTests/fast/svg/href-baseval-animval.html |
@@ -0,0 +1,36 @@ |
+<html> |
+ <body> |
+ <div id="target"> |
+ <svg width="0" height="0"> |
+ <use xlink:href="#foo"/> |
+ </svg> |
+ </div> |
+ <div id="console"></div> |
+ </body> |
+ <script> |
+ var target = document.querySelector("use"); |
+ var baseval = target.href.baseVal; |
+ var animval = target.href.animVal; |
+ |
+ function log(str) { |
+ var li = document.createElement("li"); |
+ li.appendChild(document.createTextNode(str)); |
+ var console = document.getElementById("console"); |
+ console.appendChild(li); |
+ } |
+ function assert(bool, text) { |
+ if (!bool) |
+ log(text + "Failure"); |
+ } |
+ window.onload = function() { |
+ if (window.testRunner && window.internals) { |
+ window.testRunner.displayAsyncThen(function() { |
+ assert(window.internals.isUseCounted(document, 758), "has SVGHrefBaseVal UseCounter: "); // 758 == UseCounter::Feature::SVGHrefBaseVal |
fs
2015/04/15 14:30:06
This test looks more complicated than I had imagin
Erik Dahlström (inactive)
2015/04/16 08:39:36
Done.
|
+ assert(window.internals.isUseCounted(document, 759), "has SVGHrefAnimVal UseCounter: "); // 759 == UseCounter::Feature::SVGHrefAnimVal |
+ testRunner.notifyDone(); |
+ }); |
+ } |
+ } |
+ testRunner.waitUntilDone(); |
+ </script> |
+</html> |