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

Unified Diff: third_party/WebKit/LayoutTests/animations/function-easing-use-counters-other1.html

Issue 1851003002: Throw TypeError if easing string is invalid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix "liner"->"linear" typo in ui/file_manager js file 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
Index: third_party/WebKit/LayoutTests/animations/function-easing-use-counters-other1.html
diff --git a/third_party/WebKit/LayoutTests/animations/function-easing-use-counters-other1.html b/third_party/WebKit/LayoutTests/animations/function-easing-use-counters-other1.html
index 72ae7c695426a403e0e3cd25365005e09737e595..7670d69e511801b6517934ccf594d97711176535 100644
--- a/third_party/WebKit/LayoutTests/animations/function-easing-use-counters-other1.html
+++ b/third_party/WebKit/LayoutTests/animations/function-easing-use-counters-other1.html
@@ -8,7 +8,9 @@ var WebAnimationsEasingAsFunctionLinear = 1295;
var WebAnimationsEasingAsFunctionOther = 1296;
test(() => {
- document.documentElement.animate([], { easing: 'function (x){return x}' });
+ assert_throws(
+ {name: 'TypeError'},
+ function() { document.documentElement.animate([], { easing: 'function (x){return x}' }) });
assert_false(internals.isUseCounted(document, WebAnimationsEasingAsFunctionLinear));
assert_true(internals.isUseCounted(document, WebAnimationsEasingAsFunctionOther));
}, 'Any linear function for easing other than "function (a){return a}" is counted in WebAnimationsEasingAsFunctionOther.');

Powered by Google App Engine
This is Rietveld 408576698