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

Unified Diff: third_party/WebKit/LayoutTests/animations/usecounter-tests/function-easing-use-counters-linear.html

Issue 2971753002: Rename usecounter-tests directory to usecounters (Closed)
Patch Set: Created 3 years, 5 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
Index: third_party/WebKit/LayoutTests/animations/usecounter-tests/function-easing-use-counters-linear.html
diff --git a/third_party/WebKit/LayoutTests/animations/usecounter-tests/function-easing-use-counters-linear.html b/third_party/WebKit/LayoutTests/animations/usecounter-tests/function-easing-use-counters-linear.html
deleted file mode 100644
index 8e11d5974ab6cc5b184aaaaffcd2e07d66806185..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/usecounter-tests/function-easing-use-counters-linear.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<script>
-'use strict';
-// From UseCounter.h
-var WebAnimationsEasingAsFunctionLinear = 1295;
-var WebAnimationsEasingAsFunctionOther = 1296;
-
-test(() => {
- document.documentElement.animate([], { });
- document.documentElement.animate([], { easing: 'linear' });
- document.documentElement.animate([], { easing: 'step-start' });
- assert_false(internals.isUseCounted(document, WebAnimationsEasingAsFunctionLinear));
- assert_false(internals.isUseCounted(document, WebAnimationsEasingAsFunctionOther));
-}, 'Non-function values for easing are not use-counted.');
-
-test(() => {
- assert_throws(
- {name: 'TypeError'},
- function() { document.documentElement.animate([], { easing: 'invalid' }) });
- assert_false(internals.isUseCounted(document, WebAnimationsEasingAsFunctionLinear));
- assert_false(internals.isUseCounted(document, WebAnimationsEasingAsFunctionOther));
-}, 'Invalid non-function values for easing are not use-counted.');
-
-test(() => {
- // This linear function value is the one expected from uses of the unpatched
- // Web Animations polyfill (i.e. old versions lacking
- // https://github.com/web-animations/web-animations-next/pull/423).
- assert_throws(
- {name: 'TypeError'},
- function() { document.documentElement.animate([], { easing: 'function (a){return a}' }) });
- assert_true(internals.isUseCounted(document, WebAnimationsEasingAsFunctionLinear));
- assert_false(internals.isUseCounted(document, WebAnimationsEasingAsFunctionOther));
-}, 'A specific linear function for easing is counted in WebAnimationsEasingAsFunctionLinear.');
-</script>

Powered by Google App Engine
This is Rietveld 408576698