Changeset 53302 in webkit
- Timestamp:
- Jan 14, 2010 5:22:54 PM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r53300 r53302 1 2010-01-13 Ojan Vafai <ojan@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 A few more flaky transitions/animations tests 6 https://bugs.webkit.org/show_bug.cgi?id=33642 7 8 Attempt to deflake a few more tests. Some of these are second 9 attempts. The first attempt made it less flaky, but not 100%. 10 Also, for a couple tests, make them shorter. They seemed 11 unnecessarily long. 12 13 * animations/change-one-anim-expected.txt: 14 * animations/change-one-anim.html: 15 * transitions/cancel-transition.html: 16 * transitions/mask-transitions.html: 17 * transitions/shorthand-border-transitions-expected.txt: 18 * transitions/shorthand-border-transitions.html: 19 1 20 2010-01-14 Beth Dakin <bdakin@apple.com> 2 21 -
trunk/LayoutTests/animations/change-one-anim-expected.txt
r39187 r53302 1 This test performs two animations, left and top. It animates over 1 second. At 0.5second it removes the left animation and the top animation should continue from where it left off.2 PASS - "left" property for "box" element at 0. 75s saw something close to: 1503 PASS - "top" property for "box" element at 0. 75s saw something close to: 2251 This test performs two animations, left and top. It animates over 0.4 second. At 0.2 second it removes the left animation and the top animation should continue from where it left off. 2 PASS - "left" property for "box" element at 0.3s saw something close to: 200 3 PASS - "top" property for "box" element at 0.3s saw something close to: 300 4 4 -
trunk/LayoutTests/animations/change-one-anim.html
r52844 r53302 9 9 #box { 10 10 position: relative; 11 height: 20 0px;12 width: 20 0px;11 height: 20px; 12 width: 20px; 13 13 background-color: #9bb; 14 14 -webkit-animation-name: horiz, vert; 15 -webkit-animation-duration: 1s;15 -webkit-animation-duration: 0.4s; 16 16 -webkit-animation-iteration-count: infinite; 17 17 -webkit-animation-direction: alternate; … … 21 21 @-webkit-keyframes horiz { 22 22 from { left: 0px; } 23 to { left: 300px; }23 to { left: 400px; } 24 24 } 25 25 @-webkit-keyframes vert { 26 26 from { top: 0px; } 27 to { top: 300px; }27 to { top: 400px; } 28 28 } 29 29 </style> … … 33 33 const expectedValues = [ 34 34 // [animation-name, time, element-id, property, expected-value, tolerance] 35 [null, 0. 75, "box", "left", 150, 30],36 [null, 0. 75, "box", "top", 225, 30],35 [null, 0.3, "box", "left", 200, 40], 36 [null, 0.3, "box", "top", 300, 40], 37 37 ]; 38 38 … … 47 47 function setup() 48 48 { 49 setTimeout("removeAnim()", 500);49 setTimeout("removeAnim()", 200); 50 50 } 51 51 … … 54 54 </head> 55 55 <body> 56 This test performs two animations, left and top. It animates over 1second.57 At 0. 5second it removes the left animation and the top animation should continue56 This test performs two animations, left and top. It animates over 0.4 second. 57 At 0.2 second it removes the left animation and the top animation should continue 58 58 from where it left off. 59 59 <div id="box"> -
trunk/LayoutTests/transitions/cancel-transition.html
r53006 r53302 51 51 function isEqual(actual, desired, tolerance) 52 52 { 53 if (tolerance == undefined || tolerance == 0)54 tolerance = defaultTolerance;55 53 var diff = Math.abs(actual - desired); 56 54 return diff < tolerance; … … 65 63 { 66 64 document.getElementById("container").className = "run"; 67 setTimeout("check()", 250);68 65 } 69 66 … … 97 94 setTimeout("cancelTransition()", 100); 98 95 setTimeout("restartTransition()", 200); 96 setTimeout("check()", 500); 99 97 } 100 98 </script> -
trunk/LayoutTests/transitions/mask-transitions.html
r42823 r53302 38 38 const expectedValues = [ 39 39 // [time, element-id, property, expected-value, tolerance] 40 [0.5, 'box', '-webkit-mask-position', [10, 10], 2],41 [0.5, 'box2', '-webkit-mask-size', [150, 150], 10],40 [0.5, 'box', '-webkit-mask-position', [10, 10], 4], 41 [0.5, 'box2', '-webkit-mask-size', [150, 150], 20], 42 42 ]; 43 43 -
trunk/LayoutTests/transitions/shorthand-border-transitions-expected.txt
r40051 r53302 1 1 Tests transitions of the border shorthand properties. 2 2 3 PASS - "border-top-color" property for "box" element at 0. 5s saw something close to: 128,0,1284 PASS - "border-right-color" property for "box" element at 0. 5s saw something close to: 128,0,1285 PASS - "border-bottom-color" property for "box" element at 0. 5s saw something close to: 128,0,1286 PASS - "border-left-color" property for "box" element at 0. 5s saw something close to: 128,0,1287 PASS - "border-top-width" property for "box" element at 0. 5s saw something close to: 108 PASS - "border-right-width" property for "box" element at 0. 5s saw something close to: 109 PASS - "border-bottom-width" property for "box" element at 0. 5s saw something close to: 1010 PASS - "border-left-width" property for "box" element at 0. 5s saw something close to: 1011 PASS - "border-top-width" property for "box1" element at 0. 5s saw something close to: 1012 PASS - "border-top-color" property for "box1" element at 0. 5s saw something close to: 255,0,25513 PASS - "border-top-width" property for "box2" element at 0. 5s saw something close to: 1014 PASS - "border-bottom-width" property for "box2" element at 0. 5s saw something close to: 203 PASS - "border-top-color" property for "box" element at 0.25s saw something close to: 128,0,128 4 PASS - "border-right-color" property for "box" element at 0.25s saw something close to: 128,0,128 5 PASS - "border-bottom-color" property for "box" element at 0.25s saw something close to: 128,0,128 6 PASS - "border-left-color" property for "box" element at 0.25s saw something close to: 128,0,128 7 PASS - "border-top-width" property for "box" element at 0.25s saw something close to: 10 8 PASS - "border-right-width" property for "box" element at 0.25s saw something close to: 10 9 PASS - "border-bottom-width" property for "box" element at 0.25s saw something close to: 10 10 PASS - "border-left-width" property for "box" element at 0.25s saw something close to: 10 11 PASS - "border-top-width" property for "box1" element at 0.25s saw something close to: 10 12 PASS - "border-top-color" property for "box1" element at 0.25s saw something close to: 255,0,255 13 PASS - "border-top-width" property for "box2" element at 0.25s saw something close to: 10 14 PASS - "border-bottom-width" property for "box2" element at 0.25s saw something close to: 20 15 15 -
trunk/LayoutTests/transitions/shorthand-border-transitions.html
r52999 r53302 13 13 background-color: gray; 14 14 border: 0px solid rgb(0, 0, 0); 15 -webkit-transition: border 1s linear;15 -webkit-transition: border 0.5s linear; 16 16 } 17 17 … … 26 26 background-color: gray; 27 27 border: 0px solid rgb(0, 0, 0); 28 -webkit-transition: border-width 1s linear;28 -webkit-transition: border-width 0.5s linear; 29 29 } 30 30 … … 39 39 background-color: gray; 40 40 border: 0px solid rgb(0, 0, 0); 41 -webkit-transition: border 1s linear;41 -webkit-transition: border 0.5s linear; 42 42 } 43 43 … … 53 53 // [time, element-id, property, expected-value, tolerance] 54 54 // color and width of each side should be animating 55 [0. 5, 'box', 'border-top-color', [128, 0, 128], 15],56 [0. 5, 'box', 'border-right-color', [128, 0, 128], 15],57 [0. 5, 'box', 'border-bottom-color', [128, 0, 128], 15],58 [0. 5, 'box', 'border-left-color', [128, 0, 128], 15],59 [0. 5, 'box', 'border-top-width', 10, 1],60 [0. 5, 'box', 'border-right-width', 10, 1],61 [0. 5, 'box', 'border-bottom-width', 10, 1],62 [0. 5, 'box', 'border-left-width', 10, 1],55 [0.25, 'box', 'border-top-color', [128, 0, 128], 20], 56 [0.25, 'box', 'border-right-color', [128, 0, 128], 20], 57 [0.25, 'box', 'border-bottom-color', [128, 0, 128], 20], 58 [0.25, 'box', 'border-left-color', [128, 0, 128], 20], 59 [0.25, 'box', 'border-top-width', 10, 2], 60 [0.25, 'box', 'border-right-width', 10, 2], 61 [0.25, 'box', 'border-bottom-width', 10, 2], 62 [0.25, 'box', 'border-left-width', 10, 2], 63 63 64 64 // only border-width should be animating 65 [0. 5, 'box1', 'border-top-width', 10, 1],66 [0. 5, 'box1', 'border-top-color', [255, 0, 255], 0], // initial value65 [0.25, 'box1', 'border-top-width', 10, 2], 66 [0.25, 'box1', 'border-top-color', [255, 0, 255], 0], // initial value 67 67 68 68 // border-width should be animating 69 [0. 5, 'box2', 'border-top-width', 10, 1],70 [0. 5, 'box2', 'border-bottom-width', 20, 2],69 [0.25, 'box2', 'border-top-width', 10, 2], 70 [0.25, 'box2', 'border-bottom-width', 20, 4], 71 71 ]; 72 72
Note: See TracChangeset
for help on using the changeset viewer.