mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
8a5ab88480
- Bug 1179718 - Add a CheckAllPermissions extended attribute to WebIDL. r=bz (ccaf27417) - Bug 1178513 - Add <extapp> element and interfaces to be used by ACL. r=khuey (146b766c7) - Bug 1184647. Cloning an image should ensure that the clone tries to load the src, if any. r=smaug (7e532fdb6) - Bug 1142717, part 1 - Remove unused forward declaration of xpc_GetJSPrivate. r=bholley (9ed60f8c9) - Bug 1037329 - Part 1: Implement SystemUpdate API. r=baku (b446efdb5) - Bug 1037329 - Part 2: Enable SystemUpdate API on b2g. r=fabrice (570fc0e98) - Bug 1142717, part 2 - Use nsRefPtr for obj in XPCWrappedNative::InitTearOff. r=bholley (6e262259e) - Bug 1142717, part 2b - Rename obj to qiResult in InitTearOff. r=bholley (ad76ada13) - Bug 1142717, part 3 - Make XPCWrappedNativeTearOff::mNative a smart pointer. r=bholley (7ad2c24b8) - Bug 1142717, part 4 - Add MOZ_COUNT_CTOR/DTOR for XPCWrappedNativeTearOff. r=bholley (67aeaf0c3) - Bug 1142717, part 5 - Eliminate XPC_WRAPPED_NATIVE_TEAROFFS_PER_CHUNK. r=bholley (251bd5478) - Bug 1184630 - Remove the unused XPCWrappedNative::LocateTearOff(). r=gabor (de125f7df)
22 lines
785 B
HTML
22 lines
785 B
HTML
<!DOCTYPE html>
|
|
<meta charset=utf-8>
|
|
<title>Test for image clones doing their load</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<div id="log"></div>
|
|
<script>
|
|
var t = async_test("The clone of an image should do the load of the same image, and do it synchronously");
|
|
t.step(function() {
|
|
var img = new Image();
|
|
img.onload = t.step_func(function() {
|
|
var clone = img.cloneNode();
|
|
assert_not_equals(img.naturalWidth, 0, "Should have a width");
|
|
assert_equals(clone.naturalWidth, img.naturalWidth,
|
|
"Clone should have a width too");
|
|
// And make sure the clone fires onload too, which happens async.
|
|
clone.onload = function() { t.done() }
|
|
});
|
|
img.src = "image.png";
|
|
});
|
|
</script>
|