Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 <body> | |
| 3 <div id="target"> | |
| 4 <svg width="0" height="0"> | |
| 5 <use xlink:href="#foo"/> | |
| 6 </svg> | |
| 7 </div> | |
| 8 <div id="console"></div> | |
| 9 </body> | |
| 10 <script> | |
| 11 var target = document.querySelector("use"); | |
| 12 var baseval = target.href.baseVal; | |
| 13 var animval = target.href.animVal; | |
| 14 | |
| 15 function log(str) { | |
| 16 var li = document.createElement("li"); | |
| 17 li.appendChild(document.createTextNode(str)); | |
| 18 var console = document.getElementById("console"); | |
| 19 console.appendChild(li); | |
| 20 } | |
| 21 function assert(bool, text) { | |
| 22 if (!bool) | |
| 23 log(text + "Failure"); | |
| 24 } | |
| 25 window.onload = function() { | |
| 26 if (window.testRunner && window.internals) { | |
| 27 window.testRunner.displayAsyncThen(function() { | |
| 28 assert(window.internals.isUseCounted(document, 758), "has SV GHrefBaseVal 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.
| |
| 29 assert(window.internals.isUseCounted(document, 759), "has SV GHrefAnimVal UseCounter: "); // 759 == UseCounter::Feature::SVGHrefAnimVal | |
| 30 testRunner.notifyDone(); | |
| 31 }); | |
| 32 } | |
| 33 } | |
| 34 testRunner.waitUntilDone(); | |
| 35 </script> | |
| 36 </html> | |
| OLD | NEW |