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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/previews/client-lofi-sprite.html

Issue 2795173002: Do not show image placeholders for CSS sprites (Closed)
Patch Set: remove a test Created 3 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 | third_party/WebKit/LayoutTests/http/tests/previews/client-lofi-sprite-expected.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/previews/client-lofi-sprite.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/previews/client-lofi-sprite.html b/third_party/WebKit/LayoutTests/http/tests/previews/client-lofi-sprite.html
new file mode 100644
index 0000000000000000000000000000000000000000..d72d1c84c5040c265e586fa6459968f947d93775
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/previews/client-lofi-sprite.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<body>
+ <!-- This test verifies if CSS sprite image is shown, instead of placeholder image. -->
+ <div id="sprite1"></div>
+ <div id="sprite2"></div>
+ <div id="sprite3"></div>
+ <div id="sprite4"></div>
+ <script>
+ window.internals.settings.setFetchImagePlaceholders(true);
+ document.getElementById("sprite1").style.cssText = 'width: 40px; height: 40px; background: url(https://127.0.0.1:8443/resources/square200.png) 0 0;';
+ document.getElementById("sprite2").style.cssText = 'width: 40px; height: 40px; background: url(https://127.0.0.1:8443/resources/square200.png) 0 10px;';
+ document.getElementById("sprite3").style.cssText = 'width: 40px; height: 40px; background: url(https://127.0.0.1:8443/resources/square200.png) 10px 0;';
+ document.getElementById("sprite4").style.cssText = 'width: 40px; height: 40px; background: url(https://127.0.0.1:8443/resources/square200.png) 10px 10px;';
+ </script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/previews/client-lofi-sprite-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698