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

Unified Diff: third_party/WebKit/LayoutTests/animations/element-animate-keyframe-value-warning.html

Issue 2524303002: Emit console warning when element.animate() keyframe value fails to parse (Closed)
Patch Set: Review changes Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/element-animate-keyframe-value-warning-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/animations/element-animate-keyframe-value-warning.html
diff --git a/third_party/WebKit/LayoutTests/animations/element-animate-keyframe-value-warning.html b/third_party/WebKit/LayoutTests/animations/element-animate-keyframe-value-warning.html
new file mode 100644
index 0000000000000000000000000000000000000000..33756496ed8517146fc1e29fa68c723a9965d65d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/element-animate-keyframe-value-warning.html
@@ -0,0 +1,15 @@
+<div id="target"></div>
+This test passes if there are three warnings about invalid keyframe values.
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+}
+target.animate({offsetPath: ''});
+target.animate({offsetPath: 'path("m0 0")'});
+target.animate({offsetPath: 'path("invalid")'});
+target.animate({'--valid': ''});
+target.animate({'--x': 'valid'});
+target.animate({'--x': 'invalid )'});
+target.animate({'--x': 'invalid !important'});
+target.animate([{background: 'green', backgroundColor: 'green'}]);
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/element-animate-keyframe-value-warning-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698