Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / loading / resources / picture-preload-helper.js
blob11e41dbd8cc1caf4b10a9945f699359483d8e159
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 + "');");
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 + "');");
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 + "');");