Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / cache / smil-usecounter-in-cached-image.html
blob5ddae3af580f19e28ed3e7d1813616cba9a727e0
1 <!DOCTYPE html>
2 <script src="../../js-test-resources/js-test.js"></script>
3 <script>
4 var SVGSMILAnimationInImageRegardlessOfCache = 768; // From UseCounter.h
5 window.jsTestIsAsync = true;
7 window.onload = function() {
8 var img = new Image();
9 if (location.hash != '#loadWithCachedImage') {
10 img.onload = function() {
11 location.hash = 'loadWithCachedImage';
12 window.location.reload();
14 } else {
15 shouldBeFalse("window.internals.isUseCounted(document, SVGSMILAnimationInImageRegardlessOfCache)");
16 img.onload = function() {
17 shouldBeTrue("window.internals.isUseCounted(document, SVGSMILAnimationInImageRegardlessOfCache)");
18 finishJSTest();
21 img.src = "resources/svg-with-animation.svg";
23 </script>
24 </html>