Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: third_party/WebKit/LayoutTests/fast/css/border-image-style-none.html

Issue 1885713002: Remove the user counter for border-image elements with no border style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/border-image-style-none-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index cfda5a8b127cb843096ce7ba1d2eee41ed73da67..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/css/border-image-style-none.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!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>
- .test {
- width: 100px;
- height: 100px;
- }
-</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() {
- shouldBeFalse("window.internals.isUseCounted(document, BorderImageWithBorderStyleNone)");
- finishJSTest();
- });
- });
- });
- });
-</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/border-image-style-none-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698