Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Unified Diff: LayoutTests/fast/svg/href-baseval-animval.html

Issue 1086873004: Add UseCounter for SVGURIReference.href.baseVal/animVal. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: move to SVGAnimatedString Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/core.gypi » ('j') | Source/core/core.gypi » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | Source/core/core.gypi » ('j') | Source/core/core.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698