| Index: third_party/WebKit/LayoutTests/fast/css/border-image-style-none.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css/border-image-style-none.html b/third_party/WebKit/LayoutTests/fast/css/border-image-style-none.html
|
| index 03b642dd68b66898f212da04f16897c2e8fa6eca..28c88b577cf6ff55e82046c9ddc9ecb2d5966e70 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/css/border-image-style-none.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/css/border-image-style-none.html
|
| @@ -1,4 +1,5 @@
|
| <!DOCTYPE html>
|
| +<title>Test UseCounters for border-image with border-style: none</title>
|
| <script src="../../resources/js-test.js"></script>
|
| <script src="../../resources/run-after-layout-and-paint.js"></script>
|
| <style>
|
| @@ -9,47 +10,43 @@
|
| </style>
|
| <div class="test"></div>
|
| <script>
|
| - var BorderImageWithBorderStyleNone = 1026; // From UseCounter.h
|
| - window.jsTestIsAsync = true;
|
| -
|
| - shouldBeFalse("window.internals.isUseCounted(document, BorderImageWithBorderStyleNone)");
|
| -
|
| - var style = document.querySelector('.test').style;
|
| -
|
| - // Set a solid border-image; expect no hit
|
| - style.borderWidth = '20px';
|
| - style.borderStyle = 'solid';
|
| - style.borderImage = 'linear-gradient(to bottom, blue, white) 1 repeat';
|
| -
|
| - runAfterLayoutAndPaint(
|
| - function() {
|
| - shouldBeFalse("window.internals.isUseCounted(document, BorderImageWithBorderStyleNone)");
|
| -
|
| - // Set one border to none but nuke all border widths; expect no hit
|
| - style.borderWidth = '0px';
|
| - style.borderTopStyle = 'none';
|
| -
|
| - runAfterLayoutAndPaint(
|
| - function() {
|
| - shouldBeFalse("window.internals.isUseCounted(document, BorderImageWithBorderStyleNone)");
|
| -
|
| - // Add fill to trigger more border-image code; expect no hit
|
| - style.borderImage = 'linear-gradient(to bottom, blue, white) fill 1 repeat';
|
| -
|
| - runAfterLayoutAndPaint(
|
| - function() {
|
| - shouldBeFalse("window.internals.isUseCounted(document, BorderImageWithBorderStyleNone)");
|
| -
|
| - // Add a top border width that according to spec should be clamped to zero because
|
| - // border-top-style is none; expect hit
|
| - style.borderTopWidth = '10px';
|
| -
|
| - runAfterLayoutAndPaint(
|
| - function() {
|
| - shouldBeTrue("window.internals.isUseCounted(document, BorderImageWithBorderStyleNone)");
|
| - finishJSTest();
|
| - });
|
| - });
|
| - });
|
| - });
|
| + var BorderImageWithBorderStyleNone = 1026; // From UseCounter.h
|
| + window.jsTestIsAsync = true;
|
| +
|
| + shouldBeFalse("window.internals.isUseCounted(document, BorderImageWithBorderStyleNone)");
|
| +
|
| + var style = document.querySelector('.test').style;
|
| +
|
| + // Set a solid border-image; expect no hit
|
| + style.borderWidth = '20px';
|
| + style.borderStyle = 'solid';
|
| + style.borderImage = 'linear-gradient(to bottom, blue, white) 1 repeat';
|
| +
|
| + runAfterLayoutAndPaint(function() {
|
| + shouldBeFalse("window.internals.isUseCounted(document, BorderImageWithBorderStyleNone)");
|
| +
|
| + // Set one border to none but nuke all border widths; expect no hit
|
| + style.borderWidth = '0px';
|
| + style.borderTopStyle = 'none';
|
| +
|
| + runAfterLayoutAndPaint(function() {
|
| + shouldBeFalse("window.internals.isUseCounted(document, BorderImageWithBorderStyleNone)");
|
| +
|
| + // Add fill to trigger more border-image code; expect no hit
|
| + style.borderImage = 'linear-gradient(to bottom, blue, white) fill 1 repeat';
|
| +
|
| + runAfterLayoutAndPaint(function() {
|
| + shouldBeFalse("window.internals.isUseCounted(document, BorderImageWithBorderStyleNone)");
|
| +
|
| + // Add a top border width that according to spec should be clamped to zero because
|
| + // border-top-style is none; expect hit
|
| + style.borderTopWidth = '10px';
|
| +
|
| + runAfterLayoutAndPaint(function() {
|
| + shouldBeTrue("window.internals.isUseCounted(document, BorderImageWithBorderStyleNone)");
|
| + finishJSTest();
|
| + });
|
| + });
|
| + });
|
| + });
|
| </script>
|
|
|