| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 This tests verifies that filters repaint correctly in software mode when the
filter property is changed. | 3 This tests verifies that filters repaint correctly in software mode when the
filter property is changed. |
| 4 You should see 5 green rectangles. First 4 of the rectangles have a blue sha
dow. There should be no red. | 4 You should see 5 green rectangles. First 4 of the rectangles have a blue sha
dow. There should be no red. |
| 5 --> | 5 --> |
| 6 <html> | 6 <html> |
| 7 <head> | 7 <head> |
| 8 <style> | 8 <style> |
| 9 .box { | 9 .box { |
| 10 height: 50px; | 10 height: 50px; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } | 57 } |
| 58 | 58 |
| 59 .none_from_software.before { | 59 .none_from_software.before { |
| 60 -webkit-filter: drop-shadow(0px 0px 10px red); | 60 -webkit-filter: drop-shadow(0px 0px 10px red); |
| 61 } | 61 } |
| 62 </style> | 62 </style> |
| 63 | 63 |
| 64 <script src="../../fast/repaint/resources/repaint.js"></script> | 64 <script src="../../fast/repaint/resources/repaint.js"></script> |
| 65 <script> | 65 <script> |
| 66 if (window.testRunner) | 66 if (window.testRunner) |
| 67 testRunner.dumpAsText(true); | 67 testRunner.dumpAsTextWithPixelResults(); |
| 68 | 68 |
| 69 function repaintTest() | 69 function repaintTest() |
| 70 { | 70 { |
| 71 var items = document.getElementsByClassName('before'); | 71 var items = document.getElementsByClassName('before'); |
| 72 while (items.length) | 72 while (items.length) |
| 73 items[0].classList.remove("before"); | 73 items[0].classList.remove("before"); |
| 74 } | 74 } |
| 75 </script> | 75 </script> |
| 76 </head> | 76 </head> |
| 77 | 77 |
| 78 <body onload="runRepaintTest()"> | 78 <body onload="runRepaintTest()"> |
| 79 <div class="box software_from_none before"></div> | 79 <div class="box software_from_none before"></div> |
| 80 <div class="box software_from_software before"></div> | 80 <div class="box software_from_software before"></div> |
| 81 <div class="box composited_from_software before"></div> | 81 <div class="box composited_from_software before"></div> |
| 82 <div class="box software_from_composited before"></div> | 82 <div class="box software_from_composited before"></div> |
| 83 <div class="box none_from_software before"></div> | 83 <div class="box none_from_software before"></div> |
| 84 </body> | 84 </body> |
| 85 </html> | 85 </html> |
| OLD | NEW |