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

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

Issue 1203143002: Do not preload data URIs. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added TODO and layout test case Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/http/tests/loading/preload-image-src-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="/js-test-resources/js-test.js"></script> 3 <script src="/js-test-resources/js-test.js"></script>
4 <script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=100"></script> 4 <script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=100"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 shouldBeTrue("internals.isPreloaded('resources/base-image1.png');"); 8 shouldBeTrue("internals.isPreloaded('resources/base-image1.png');");
9 shouldBeTrue("internals.isPreloaded('resources/base-image2.png');"); 9 shouldBeTrue("internals.isPreloaded('resources/base-image2.png');");
10 shouldBeFalse("internals.isPreloaded('resources/base-image3.png');"); 10 shouldBeFalse("internals.isPreloaded('resources/base-image3.png');");
11 shouldBeFalse("internals.isPreloaded('data:image/gif;base64,R0lGODlhAQABAIAA AP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==');");
11 </script> 12 </script>
12 <div>This test passes if the image (defined in the src attribute) is preloaded.< /div> 13 <div>This test passes if the image (defined in the src attribute) is preloaded, except for data URI.</div>
13 <img src="resources/base-image1.png"> 14 <img src="resources/base-image1.png">
14 <img src="resources/base-image2.png" src="resources/base-image3.png"> 15 <img src="resources/base-image2.png" src="resources/base-image3.png">
16 <img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEA AAICTAEAOw==">
15 </body> 17 </body>
16 </html> 18 </html>
17 19
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/loading/preload-image-src-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698