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

Unified Diff: third_party/WebKit/LayoutTests/animations/unstringable-keyframe-value-crash.html

Issue 2334123002: Web Animations: Support iterator protocol in property indexed keyframe values (Closed)
Patch Set: Add missing null check Created 4 years, 3 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/unstringable-keyframe-value-crash.html
diff --git a/third_party/WebKit/LayoutTests/animations/unstringable-keyframe-value-crash.html b/third_party/WebKit/LayoutTests/animations/unstringable-keyframe-value-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..ee495b252e5cd973d7cbf0932048e4e599c32565
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/unstringable-keyframe-value-crash.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+test(() => {
+ assert_throws({name: 'TypeError'}, () => {
+ document.body.animate({left: [{toString:null}]});
+ });
+}, 'Do not crash when passing an unstringable value in a property indexed keyframe');
+</script>

Powered by Google App Engine
This is Rietveld 408576698