| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 This tests verifies that the old filters are removed from the platform layer
when the filters cannot be | 3 This tests verifies that the old filters are removed from the platform layer
when the filters cannot be |
| 4 rendered in platform code and it fallbacks to render the filters in software
. | 4 rendered in platform code and it fallbacks to render the filters in software
. |
| 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 window.testRunner.waitUntilDone(); | 13 window.testRunner.waitUntilDone(); |
| 14 } | 14 } |
| 15 | 15 |
| 16 function done() | 16 function done() |
| 17 { | 17 { |
| 18 // After the onload is fired, we know for sure that the shader is lo
aded. | 18 // After the onload is fired, we know for sure that the shader is lo
aded. |
| 19 if (window.testRunner) | 19 if (window.testRunner) |
| 20 window.testRunner.notifyDone(); | 20 window.testRunner.notifyDone(); |
| 21 } | 21 } |
| 22 </script> | 22 </script> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 45 --> | 45 --> |
| 46 <div class="box shader before"></div> | 46 <div class="box shader before"></div> |
| 47 <script> | 47 <script> |
| 48 // Force a layout. | 48 // Force a layout. |
| 49 document.body.clientHeight; | 49 document.body.clientHeight; |
| 50 // Having this inline forces the onload event to only fire after the sha
der code is loaded. | 50 // Having this inline forces the onload event to only fire after the sha
der code is loaded. |
| 51 document.querySelector(".before").classList.remove("before"); | 51 document.querySelector(".before").classList.remove("before"); |
| 52 </script> | 52 </script> |
| 53 </body> | 53 </body> |
| 54 </html> | 54 </html> |
| OLD | NEW |