Chromium Code Reviews| Index: LayoutTests/fast/repaint/border-outline-0.html |
| diff --git a/LayoutTests/fast/repaint/border-outline-0.html b/LayoutTests/fast/repaint/border-outline-0.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..76fc7c77ea91dfcdb72daf2143adb5298d9838ca |
| --- /dev/null |
| +++ b/LayoutTests/fast/repaint/border-outline-0.html |
| @@ -0,0 +1,29 @@ |
| +<!DOCTYPE html> |
| + |
| +<style> |
| +#border, |
| +#outline { |
| + height: 100px; |
| + width: 100px; |
| +} |
| +</style> |
| + |
| +<script src="resources/text-based-repaint.js"></script> |
| +<script> |
| +if (window.testRunner) |
| + testRunner.dumpAsText(); |
| + |
| +function repaintTest() { |
|
ojan
2014/04/03 00:51:06
Should this also test the cases of border-style:hi
|
| + var border = document.getElementById("border"); |
| + border.style.border = "0"; |
| + |
| + var outline = document.getElementById("outline"); |
| + outline.style.outline = "0"; |
| +} |
| +onload = runRepaintTest; |
| +</script> |
| + |
| +<p>Tests that setting an outline or a border of 0 on an element without a border or outline doesn't repaint.</p> |
| + |
| +<div id="border"></div> |
| +<div id="outline"></div> |