| Index: LayoutTests/svg/custom/image-svgload-after-docload.html
|
| diff --git a/LayoutTests/svg/custom/image-svgload-after-docload.html b/LayoutTests/svg/custom/image-svgload-after-docload.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1976f7af1d0576f0f25df5a467d79c94fcefe745
|
| --- /dev/null
|
| +++ b/LayoutTests/svg/custom/image-svgload-after-docload.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<svg></svg>
|
| +<script>
|
| +var t = async_test("No 'load' is fired on the SVG root when an image is inserted into it.");
|
| +
|
| +window.onload = function() {
|
| + var svgRoot = document.querySelector('svg');
|
| + svgRoot.onload = t.unreached_func("'load' should not fire on the SVG root.");
|
| +
|
| + var image = document.createElementNS('http://www.w3.org/2000/svg', 'image');
|
| + image.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', 'resources/red-checker.png');
|
| + image.setAttribute('width', 10);
|
| + image.setAttribute('height', 10);
|
| + image.onload = t.step_func(function() {
|
| + setTimeout(function() { t.done(); }, 0);
|
| + });
|
| + svgRoot.appendChild(image);
|
| +}
|
| +</script>
|
|
|