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

Unified Diff: third_party/WebKit/LayoutTests/css3/filters/usecounter-filter-function-no-arguments.html

Issue 2051233003: Add use counter for parsing of filter functions with no arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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/Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/css3/filters/usecounter-filter-function-no-arguments.html
diff --git a/third_party/WebKit/LayoutTests/css3/filters/usecounter-filter-function-no-arguments.html b/third_party/WebKit/LayoutTests/css3/filters/usecounter-filter-function-no-arguments.html
new file mode 100644
index 0000000000000000000000000000000000000000..d4be55232a26c4c0e77775c9146e1c98ab15bf39
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/filters/usecounter-filter-function-no-arguments.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<style></style>
+<script>
+'use strict';
+
+test(() => {
+ const CSSFilterFunctionNoArguments = 1403; // From UseCounter.h
+ var style = document.querySelector('style');
+ assert_false(internals.isUseCounted(document, CSSFilterFunctionNoArguments));
+ style.textContent = "* { -webkit-filter: brightness(); }";
+ assert_true(internals.isUseCounted(document, CSSFilterFunctionNoArguments));
+}, "'filter' function without arguments is use counted.");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698