mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Merge the backout of bug 466586.
This commit is contained in:
commit
7c40b7738b
@ -49,8 +49,6 @@ _TEST_FILES = test_bug399925.html \
|
|||||||
bug468160.sjs \
|
bug468160.sjs \
|
||||||
test_bug468160.html \
|
test_bug468160.html \
|
||||||
red.png \
|
red.png \
|
||||||
test_bug466586.html \
|
|
||||||
big.png \
|
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
libs:: $(_TEST_FILES)
|
libs:: $(_TEST_FILES)
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 126 KiB |
@ -1,48 +0,0 @@
|
|||||||
<!DOCTYPE HTML>
|
|
||||||
<html>
|
|
||||||
<!--
|
|
||||||
https://bugzilla.mozilla.org/show_bug.cgi?id=466586
|
|
||||||
-->
|
|
||||||
<head>
|
|
||||||
<title>Test for Bug 466586</title>
|
|
||||||
<script type="application/javascript" src="/MochiKit/MochiKit.js"></script>
|
|
||||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
||||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
||||||
</head>
|
|
||||||
<body onload="loadSmall()">
|
|
||||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=89419">Mozilla Bug 466586</a>
|
|
||||||
<p id="display"></p>
|
|
||||||
<div id="content" style="display: none">
|
|
||||||
<img src="big.png" width="100" height="100" id="big" />
|
|
||||||
</div>
|
|
||||||
<pre id="test">
|
|
||||||
<script type="application/javascript">
|
|
||||||
|
|
||||||
SimpleTest.waitForExplicitFinish();
|
|
||||||
|
|
||||||
// We have loaded the large png with id "big". We want to test if it'll be
|
|
||||||
// kicked out of the cache and thus have to be reloaded, but to ensure that, we
|
|
||||||
// need to get the cache to look at what's there. So we load another image,
|
|
||||||
// this one small.
|
|
||||||
function loadSmall()
|
|
||||||
{
|
|
||||||
var small = new Image();
|
|
||||||
|
|
||||||
small.onload = smallLoaded;
|
|
||||||
small.src="red.png";
|
|
||||||
}
|
|
||||||
|
|
||||||
function smallLoaded()
|
|
||||||
{
|
|
||||||
// Make sure that we don't need another load.
|
|
||||||
var big = document.getElementById('big');
|
|
||||||
var img = new Image();
|
|
||||||
img.src = big.src;
|
|
||||||
ok(img.width != 0);
|
|
||||||
|
|
||||||
SimpleTest.finish();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</pre>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue
Block a user