2 <script src=
"../../js-test-resources/js-test.js"></script>
4 var SVGSMILAnimationInImageRegardlessOfCache
= 768; // From UseCounter.h
5 window
.jsTestIsAsync
= true;
7 window
.onload = function() {
9 if (location
.hash
!= '#loadWithCachedImage') {
10 img
.onload = function() {
11 location
.hash
= 'loadWithCachedImage';
12 window
.location
.reload();
15 shouldBeFalse("window.internals.isUseCounted(document, SVGSMILAnimationInImageRegardlessOfCache)");
16 img
.onload = function() {
17 shouldBeTrue("window.internals.isUseCounted(document, SVGSMILAnimationInImageRegardlessOfCache)");
21 img
.src
= "resources/svg-with-animation.svg";