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> |