| 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>
|
|
|