Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: LayoutTests/http/tests/loading/resources/picture-preload-helper.js

Issue 265763010: Add preloader support for picture based source selection (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified fixmes Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/loading/preload-picture-sizes-expected.txt ('k') | Source/core/html/parser/HTMLPreloadScanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698