Chromium Code Reviews| Index: LayoutTests/compositing/fixed-background-composited-html.html |
| diff --git a/LayoutTests/compositing/fixed-background-composited-html.html b/LayoutTests/compositing/fixed-background-composited-html.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..55d37f98b233396cde30ed3574f190b4edfa94a0 |
| --- /dev/null |
| +++ b/LayoutTests/compositing/fixed-background-composited-html.html |
| @@ -0,0 +1,39 @@ |
| +<!DOCTYPE html> |
| + |
| +<html> |
| +<head> |
| + <style> |
| + html { |
| + -webkit-transform: translateZ(0); |
| + } |
| + body { |
| + height: 2000px; |
| + background-image: url('../../../../compositing/resources/simple_image.png'); |
| + background-size: 200px 200px; |
| + background-attachment: fixed; |
| + overflow: hidden; /* hide scrollbar */ |
| + } |
| + </style> |
| + <script> |
| + if (window.testRunner) { |
| + testRunner.waitUntilDone(); |
| + window.internals.settings.setForceCompositingMode(true); |
| + window.internals.settings.setAcceleratedCompositingForFixedRootBackgroundEnabled(true); |
| + } |
| + |
| + |
| + function doTest() |
| + { |
| + window.setTimeout(function() { |
|
jamesr
2013/06/13 19:48:47
what's the setTimeout for?
|
| + window.scrollTo(0, 223); |
| + if (window.testRunner) |
| + testRunner.notifyDone(); |
| + }, 0); |
| + } |
| + |
| + window.addEventListener('load', doTest, false); |
| + </script> |
| +</head> |
| +<body> |
| +</body> |
| +</html> |