diff options
Diffstat (limited to 'WebCore/manual-tests')
-rw-r--r-- | WebCore/manual-tests/animated-gif-looping.html (renamed from WebCore/manual-tests/qt/qt-gif-test.html) | 6 | ||||
-rw-r--r-- | WebCore/manual-tests/image-prefetch-stress.html | 20 | ||||
-rw-r--r-- | WebCore/manual-tests/resources/animated-10x.gif (renamed from WebCore/manual-tests/qt/qt-10loop-anim.gif) | bin | 1253 -> 1253 bytes | |||
-rw-r--r-- | WebCore/manual-tests/resources/animated-infinite.gif (renamed from WebCore/manual-tests/qt/qt-anim.gif) | bin | 1661 -> 1661 bytes | |||
-rw-r--r-- | WebCore/manual-tests/resources/non-animated.gif (renamed from WebCore/manual-tests/qt/qt-noanim.gif) | bin | 1642 -> 1642 bytes |
5 files changed, 23 insertions, 3 deletions
diff --git a/WebCore/manual-tests/qt/qt-gif-test.html b/WebCore/manual-tests/animated-gif-looping.html index 3412e1b..e98a6d9 100644 --- a/WebCore/manual-tests/qt/qt-gif-test.html +++ b/WebCore/manual-tests/animated-gif-looping.html @@ -1,15 +1,15 @@ <html> <body> <div> - <img src="qt-anim.gif"> + <img src="./resources/animated-infinite.gif"> <p>This should animate.</p> </div> <div> - <img src="qt-noanim.gif"> + <img src="./resources/non-animated.gif"> <p>This should not animate and you should see a cross.</p> </div <div> - <img src="qt-10loop-anim.gif"> + <img src="./resources/animated-10x.gif"> <p>This animation should loop 10 times.</p> </div </body> diff --git a/WebCore/manual-tests/image-prefetch-stress.html b/WebCore/manual-tests/image-prefetch-stress.html new file mode 100644 index 0000000..b9203b7 --- /dev/null +++ b/WebCore/manual-tests/image-prefetch-stress.html @@ -0,0 +1,20 @@ +<html> +<script type="text/javascript"> +(function(){ + var i = 0; +setInterval(function(){ + var x = new Image(); + x.src = "http://upload.wikimedia.org/wikipedia/commons/e/e9/Sombrero_Galaxy_in_infrared_light_%28Hubble_Space_Telescope_and_Spitzer_Space_Telescope%29.jpg?" + i; + i++; + }, 500); +})() +</script> +<body> +When an image is preloaded in javascript, the size of the image is never +reported to the javascript garbage collector. If a large image is repeatedly +preloaded but never used, it will not free any of the images until the +garbage collector has run out of space to allocate any new free javascript +variables. This test passes if after a certain point, the number of allocated +images as reported by the caches window stops growing. +</body> +</html> diff --git a/WebCore/manual-tests/qt/qt-10loop-anim.gif b/WebCore/manual-tests/resources/animated-10x.gif Binary files differindex ddb0006..56bdb0e 100644 --- a/WebCore/manual-tests/qt/qt-10loop-anim.gif +++ b/WebCore/manual-tests/resources/animated-10x.gif diff --git a/WebCore/manual-tests/qt/qt-anim.gif b/WebCore/manual-tests/resources/animated-infinite.gif Binary files differindex 8bca4a8..8bca4a8 100644 --- a/WebCore/manual-tests/qt/qt-anim.gif +++ b/WebCore/manual-tests/resources/animated-infinite.gif diff --git a/WebCore/manual-tests/qt/qt-noanim.gif b/WebCore/manual-tests/resources/non-animated.gif Binary files differindex b6a8540..b6a8540 100644 --- a/WebCore/manual-tests/qt/qt-noanim.gif +++ b/WebCore/manual-tests/resources/non-animated.gif |