| Index: LayoutTests/fast/dom/HTMLImageElement/image-dynamic-width.html
|
| diff --git a/LayoutTests/fast/dom/HTMLImageElement/image-dynamic-width.html b/LayoutTests/fast/dom/HTMLImageElement/image-dynamic-width.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0152532fd94b7b840357ca372f33f2c2692a4e57
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/HTMLImageElement/image-dynamic-width.html
|
| @@ -0,0 +1,17 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../resources/js-test.js"></script>
|
| +<script>
|
| +description("Test that creating a cached image and immediately checking its width works");
|
| +jsTestIsAsync = true;
|
| +var src = '../resources/abe.png?' + Math.random();
|
| +var currentResult = false;
|
| +function test(expected) {
|
| + var i = new Image();
|
| + i.src = src;
|
| + currentResult = (i.width == expected);
|
| + shouldBeTrue('currentResult');
|
| + finishJSTest();
|
| +}
|
| +test(0);
|
| +onload = function(){test(76);};
|
| +</script>
|
|
|