OLD | NEW |
(Empty) | |
| 1 function loadFromSource(i) { |
| 2 shouldBeFalse("internals.isPreloaded('resources/preload-test.jpg?" + i + "')
;"); |
| 3 shouldBeFalse("internals.isPreloaded('resources/base-image1.png?" + i + "');
"); |
| 4 shouldBeFalse("internals.isPreloaded('resources/base-image2.png?" + i + "');
"); |
| 5 shouldBeTrue("internals.isPreloaded('resources/base-image3.png?" + i + "');"
); |
| 6 } |
| 7 |
| 8 function loadFromSource2x(i) { |
| 9 shouldBeFalse("internals.isPreloaded('resources/preload-test.jpg?" + i + "')
;"); |
| 10 shouldBeFalse("internals.isPreloaded('resources/base-image1.png?" + i + "');
"); |
| 11 shouldBeTrue("internals.isPreloaded('resources/base-image2.png?" + i + "');"
); |
| 12 shouldBeFalse("internals.isPreloaded('resources/base-image3.png?" + i + "');
"); |
| 13 } |
| 14 |
| 15 function loadFromImg(i) { |
| 16 shouldBeTrue("internals.isPreloaded('resources/preload-test.jpg?" + i + "');
"); |
| 17 shouldBeFalse("internals.isPreloaded('resources/base-image1.png?" + i + "');
"); |
| 18 shouldBeFalse("internals.isPreloaded('resources/base-image2.png?" + i + "');
"); |
| 19 shouldBeFalse("internals.isPreloaded('resources/base-image3.png?" + i + "');
"); |
| 20 } |
OLD | NEW |