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

Unified Diff: third_party/WebKit/LayoutTests/animations/function-easing-use-counters-other2.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-other2.html
diff --git a/third_party/WebKit/LayoutTests/animations/function-easing-use-counters-other2.html b/third_party/WebKit/LayoutTests/animations/function-easing-use-counters-other2.html
index 8cac23d20cfb55bf864369adf5c9da1b802641fd..b02fd1eeba92b738d9e99d1ecdf0f76b904d9884 100644
--- a/third_party/WebKit/LayoutTests/animations/function-easing-use-counters-other2.html
+++ b/third_party/WebKit/LayoutTests/animations/function-easing-use-counters-other2.html
@@ -8,7 +8,9 @@ var WebAnimationsEasingAsFunctionLinear = 1295;
var WebAnimationsEasingAsFunctionOther = 1296;
test(() => {
- document.documentElement.animate([], { easing: 'function(x, y){return 0.3}' });
+ assert_throws(
+ {name: 'TypeError'},
+ function() { document.documentElement.animate([], { easing: 'function(x, y){return 0.3}' }) });
assert_false(internals.isUseCounted(document, WebAnimationsEasingAsFunctionLinear));
assert_true(internals.isUseCounted(document, WebAnimationsEasingAsFunctionOther));
}, 'Arbitrary functions for easing are counted in WebAnimationsEasingAsFunctionOther.');

Powered by Google App Engine
This is Rietveld 408576698