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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/core.gypi » ('j') | Source/core/core.gypi » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« 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