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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/loading/preload-image-src-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/loading/preload-image-src.html
diff --git a/LayoutTests/http/tests/loading/preload-image-src.html b/LayoutTests/http/tests/loading/preload-image-src.html
index aa54ca4b9d636e968e831f50f6bfb9867a3f83e7..ce28988234624e72c3bac4aa3df3d9bbd12c4371 100644
--- a/LayoutTests/http/tests/loading/preload-image-src.html
+++ b/LayoutTests/http/tests/loading/preload-image-src.html
@@ -8,10 +8,12 @@
shouldBeTrue("internals.isPreloaded('resources/base-image1.png');");
shouldBeTrue("internals.isPreloaded('resources/base-image2.png');");
shouldBeFalse("internals.isPreloaded('resources/base-image3.png');");
+ shouldBeFalse("internals.isPreloaded('data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==');");
</script>
-<div>This test passes if the image (defined in the src attribute) is preloaded.</div>
+<div>This test passes if the image (defined in the src attribute) is preloaded, except for data URI.</div>
<img src="resources/base-image1.png">
<img src="resources/base-image2.png" src="resources/base-image3.png">
+<img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==">
</body>
</html>
« 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