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

Unified Diff: LayoutTests/animations/unsigned-underflow.html

Issue 23287005: CSS Animations: Clamp to avoid underflow when blending unsigned values (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | « LayoutTests/TestExpectations ('k') | LayoutTests/animations/unsigned-underflow-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/unsigned-underflow.html
diff --git a/LayoutTests/animations/unsigned-underflow.html b/LayoutTests/animations/unsigned-underflow.html
new file mode 100644
index 0000000000000000000000000000000000000000..14998322a5883fb7d630c2edcc8cc087df76500b
--- /dev/null
+++ b/LayoutTests/animations/unsigned-underflow.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<style>
+#target {
+ height: 100px;
+ width: 100px;
+ border: solid blue 0px;
+ -webkit-animation-duration: 1s;
+ -webkit-animation-timing-function: cubic-bezier(0,-1,1,-1);
+ -webkit-animation-name: anim;
+}
+@-webkit-keyframes "anim" {
+ from { border-top-width: 0px; }
+ to { border-top-width: 10px; }
+}
+</style>
+<script src="resources/animation-test-helpers.js"></script>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+const expectedValues = [
+ // [animation-name, time, element-id, property, expected-value, tolerance]
+ ['anim', 0.5, 'target', 'border-top-width', 0, 0],
+];
+
+runAnimationTest(expectedValues);
+</script>
+<body>
Steve Block 2013/08/20 06:56:08 Would be good to add some text describing what thi
+<div id="target"></div>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/animations/unsigned-underflow-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698