2 <script src=
"../../../resources/js-test.js"></script>
4 description("Test that creating a cached image and immediately checking its width works");
6 var src
= '../resources/abe.png?' + Math
.random();
7 var currentResult
= false;
8 function test(expected
) {
11 currentResult
= (i
.width
== expected
);
12 shouldBeTrue('currentResult');