OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Testing that the custom filter is applied correctly.</title> | 4 <title>Testing that the custom filter is applied correctly.</title> |
5 <script> | 5 <script> |
6 if (window.testRunner) { | 6 if (window.testRunner) { |
7 window.testRunner.overridePreference("WebKitCSSCustomFilterEnabl
ed", "1"); | 7 window.testRunner.overridePreference("WebKitCSSCustomFilterEnabl
ed", "1"); |
8 window.testRunner.overridePreference("WebKitWebGLEnabled", "1"); | 8 window.testRunner.overridePreference("WebKitWebGLEnabled", "1"); |
9 window.testRunner.dumpAsText(true); | 9 window.testRunner.dumpAsTextWithPixelResults(); |
10 window.testRunner.waitUntilDone(); | 10 window.testRunner.waitUntilDone(); |
11 } | 11 } |
12 | 12 |
13 function runTest() | 13 function runTest() |
14 { | 14 { |
15 // We need to run the tests after the downloading succeeded. | 15 // We need to run the tests after the downloading succeeded. |
16 if (window.testRunner) | 16 if (window.testRunner) |
17 window.testRunner.notifyDone(); | 17 window.testRunner.notifyDone(); |
18 } | 18 } |
19 </script> | 19 </script> |
20 </head> | 20 </head> |
21 <body onload="runTest()"> | 21 <body onload="runTest()"> |
22 <img style="-webkit-filter: custom(url('../resources/vertex-offset.vs')
mix(url('../resources/color-offset.fs') normal source-atop))" src="../resources/
reference.png"> | 22 <img style="-webkit-filter: custom(url('../resources/vertex-offset.vs')
mix(url('../resources/color-offset.fs') normal source-atop))" src="../resources/
reference.png"> |
23 <img style="-webkit-filter: custom(url('../resources/vertex-offset.vs'),
6 11)" src="../resources/reference.png"> | 23 <img style="-webkit-filter: custom(url('../resources/vertex-offset.vs'),
6 11)" src="../resources/reference.png"> |
24 <img style="-webkit-filter: custom(url('../resources/vertex-explode-deta
ched.vs'), 3 3 detached)" src="../resources/reference.png"> | 24 <img style="-webkit-filter: custom(url('../resources/vertex-explode-deta
ched.vs'), 3 3 detached)" src="../resources/reference.png"> |
25 <img style="-webkit-filter: custom(url('../resources/vertex-explode-deta
ched.vs') mix(url('../resources/color-offset.fs') normal source-atop), 3 3 detac
hed)" src="../resources/reference.png"> | 25 <img style="-webkit-filter: custom(url('../resources/vertex-explode-deta
ched.vs') mix(url('../resources/color-offset.fs') normal source-atop), 3 3 detac
hed)" src="../resources/reference.png"> |
26 <img style="-webkit-filter: custom(url('../resources/pass-tex-coord.vs')
mix(url('../resources/color-offset.fs') normal source-atop))" src="../resources
/reference.png"> | 26 <img style="-webkit-filter: custom(url('../resources/pass-tex-coord.vs')
mix(url('../resources/color-offset.fs') normal source-atop))" src="../resources
/reference.png"> |
27 <!-- | 27 <!-- |
28 Testing that simple custom filters work in software mode. You should
see 5 blocks of colored bars with different effects applied, from left to right
: | 28 Testing that simple custom filters work in software mode. You should
see 5 blocks of colored bars with different effects applied, from left to right
: |
29 offset to the right with washed out colors, just offset to the right
with normal colors, 4 smaller blocks attached to the corners, 4 smaller blocks | 29 offset to the right with washed out colors, just offset to the right
with normal colors, 4 smaller blocks attached to the corners, 4 smaller blocks |
30 attached to the corners with washed out colors, normal block with wa
shed out colors. | 30 attached to the corners with washed out colors, normal block with wa
shed out colors. |
31 Note: WebGL needs to be enabled for this test to succeed. | 31 Note: WebGL needs to be enabled for this test to succeed. |
32 --> | 32 --> |
33 </body> | 33 </body> |
34 </html> | 34 </html> |
OLD | NEW |