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

Side by Side Diff: LayoutTests/http/tests/loading/preload-image-src.html

Issue 23861003: Enable srcset support in HTMLImageElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed a flaky test Created 7 years, 3 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 <html>
2 <head>
3 <script src="../resources/js-test-pre.js"></script>
4 <script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=1000"></script >
5 </head>
6 <body>
7 <script>
8 shouldBeTrue("internals.isPreloaded('resources/base-image1.png');");
9 shouldBeTrue("internals.isPreloaded('resources/base-image2.png');");
10 shouldBeFalse("internals.isPreloaded('resources/base-image3.png');");
11 </script>
12 <div>This test passes if the image (defined in the src attribute) is preloaded.< /div>
13 <img src="resources/base-image1.png">
14 <img src="resources/base-image2.png" src="resources/base-image3.png">
15 </body>
16 </html>
17
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698