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

Unified Diff: LayoutTests/animations/css-length-range-crash.html

Issue 1170913002: Clamp animated lengths to CSS length range to match CSSPrimitiveValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | Source/core/animation/LengthStyleInterpolation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/css-length-range-crash.html
diff --git a/LayoutTests/animations/css-length-range-crash.html b/LayoutTests/animations/css-length-range-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..c2ea97d6e8b0c826976ec5b6a1a4d1abde8b9769
--- /dev/null
+++ b/LayoutTests/animations/css-length-range-crash.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<div id="target"></div>
+<script>
+target.animate([{
+ left: '1e100px',
+ top: '-1e100px',
+}, {
+ left: '0px',
+ top: '0px',
+}], 1000);
+
+var async_handle = async_test('This test passes if it does not crash');
+requestAnimationFrame(function() {
+ async_handle.done();
+});
+</script>
« no previous file with comments | « no previous file | Source/core/animation/LengthStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698