| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 This tests verifies that the shader filter is repainted using the full sourc
e image of the element instead of just the dirty area. | 3 This tests verifies that the shader filter is repainted using the full sourc
e image of the element instead of just the dirty area. |
| 4 There should be 4 boxes of same size. 3 of them are green and the last one o
n the right is blue. | 4 There should be 4 boxes of same size. 3 of them are green and the last one o
n the right is blue. |
| 5 --> | 5 --> |
| 6 <html> | 6 <html> |
| 7 <head> | 7 <head> |
| 8 <script> | 8 <script> |
| 9 if (window.testRunner) { | 9 if (window.testRunner) { |
| 10 window.testRunner.overridePreference("WebKitCSSCustomFilterEnabled",
"1"); | 10 window.testRunner.overridePreference("WebKitCSSCustomFilterEnabled",
"1"); |
| 11 window.testRunner.overridePreference("WebKitWebGLEnabled", "1"); | 11 window.testRunner.overridePreference("WebKitWebGLEnabled", "1"); |
| 12 window.testRunner.dumpAsText(true); | 12 window.testRunner.dumpAsTextWithPixelResults(); |
| 13 } | 13 } |
| 14 function repaintTest() | 14 function repaintTest() |
| 15 { | 15 { |
| 16 document.querySelector(".before").classList.remove("before"); | 16 document.querySelector(".before").classList.remove("before"); |
| 17 } | 17 } |
| 18 </script> | 18 </script> |
| 19 <style> | 19 <style> |
| 20 .box { | 20 .box { |
| 21 margin-top: 10px; | 21 margin-top: 10px; |
| 22 margin-bottom: 10px; | 22 margin-bottom: 10px; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 42 <body onload="runRepaintTest()"> | 42 <body onload="runRepaintTest()"> |
| 43 | 43 |
| 44 <div class="shader"> | 44 <div class="shader"> |
| 45 <div class="box"></div> | 45 <div class="box"></div> |
| 46 <div class="box before"></div> | 46 <div class="box before"></div> |
| 47 <div class="box"></div> | 47 <div class="box"></div> |
| 48 </div> | 48 </div> |
| 49 | 49 |
| 50 </body> | 50 </body> |
| 51 </html> | 51 </html> |
| OLD | NEW |