mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>Changing the img src should retain the 'complete' property</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<p id="display"><img src="image.png"></p>
|
||||
<script>
|
||||
function check() {
|
||||
var img = document.querySelector("img");
|
||||
assert_true(img.complete, "By onload, image should have loaded");
|
||||
img.src = `image.png?${Math.random()}`;
|
||||
assert_false(img.complete, "Now that we're loading we should no longer be complete");
|
||||
img.onload = function () {
|
||||
assert_true(img.complete, "The new thing should have loaded.");
|
||||
done();
|
||||
}
|
||||
}
|
||||
|
||||
onload = function () {
|
||||
check();
|
||||
};
|
||||
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue