Index: third_party/WebKit/LayoutTests/compositing/will-change/containing-block-removed.html |
diff --git a/third_party/WebKit/LayoutTests/compositing/will-change/containing-block-removed.html b/third_party/WebKit/LayoutTests/compositing/will-change/containing-block-removed.html |
index 0645f9ff7d39aaed625cb5806b9ec37f7e53082c..8f866ca2cc4efeb243ac55f486b457d4f040ae24 100644 |
--- a/third_party/WebKit/LayoutTests/compositing/will-change/containing-block-removed.html |
+++ b/third_party/WebKit/LayoutTests/compositing/will-change/containing-block-removed.html |
@@ -3,7 +3,7 @@ |
<head> |
<style> |
#container { |
- will-change: -webkit-transform; |
+ will-change: transform; |
position: absolute; |
left: 200px; |
top: 100px; |
@@ -21,26 +21,16 @@ |
background-color: green |
} |
</style> |
- <script type="text/javascript"> |
- if (window.testRunner) { |
- testRunner.waitUntilDone(); |
- } |
- |
- function doTest() |
+ <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
+ <script> |
+ function repaintTest() |
{ |
- if (window.internals) { |
- window.internals.forceCompositingUpdate(document); |
- } |
- // Removing "will-change: -webkit-transform" to the container div should |
- // make this div no longer be the containing block for its fixed position |
- // descendant. |
+ // Removing "will-change: transform" to the container div should make this |
+ // div no longer be the containing block for its fixed position descendant. |
+ console.log('debug'); |
document.getElementById("container").style.willChange = "top"; |
- if (window.testRunner) { |
- testRunner.notifyDone(); |
- } |
} |
- |
- window.addEventListener('load', doTest, false); |
+ onload = runRepaintAndPixelTest; |
</script> |
</head> |