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

Unified Diff: LayoutTests/loader/data-uri-images-reload-synchronously.html

Issue 16433002: Prepopulate the memoryCache with data:uri images. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update TestExpectations Created 7 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
Index: LayoutTests/loader/data-uri-images-reload-synchronously.html
diff --git a/LayoutTests/loader/data-uri-images-reload-synchronously.html b/LayoutTests/loader/data-uri-images-reload-synchronously.html
new file mode 100644
index 0000000000000000000000000000000000000000..9b583e079ce71185b6312556bf695bf9a15af630
--- /dev/null
+++ b/LayoutTests/loader/data-uri-images-reload-synchronously.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<body>
+Test for crbug.com/224317: data:uri images should reload synchronously.<br/>
+<script>
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+ }
+
+ var image = new Image();
+ image.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAnklEQVR42u3QMQEAAAgDoGlyo1vBzwciUJlw1ApkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyfq2MosBSIeKONMAAAAASUVORK5CYII=";
+
+ if (image.width != 100 || image.height != 100) {
+ document.write("FAIL");
+ } else {
+ if (location.hash == "#reloaded") {
+ document.write("PASS");
+ if (window.testRunner)
+ testRunner.notifyDone();
+ } else {
+ location.hash = "#reloaded";
+ location.reload();
+ }
+ }
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698