Changeset 53333 in webkit
- Timestamp:
- Jan 15, 2010 9:46:01 AM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r53324 r53333 1 2010-01-14 Ojan Vafai <ojan@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 animations/combo-transform-translate+scale.html failed on Snow Leopard Debug Bot 6 https://bugs.webkit.org/show_bug.cgi?id=33461 7 8 Make test half as long. Remove a setTimeout and tweak tolerances to 9 reduce flakiness. 10 11 * animations/combo-transform-translate+scale.html: 12 1 13 2010-01-14 Darin Fisher <darin@chromium.org> 2 14 -
trunk/LayoutTests/animations/combo-transform-translate+scale-expected.txt
r39922 r53333 1 This test performs an animation of the translate() and scale() operators. It animates over 2 seconds. At 0.5 and 1 secondit takes a snapshot and expects the result to be within range.1 This test performs an animation of the translate() and scale() operators. It animates over 1 seconds. At 0.25 and 0.5 seconds it takes a snapshot and expects the result to be within range. 2 2 PASS -
trunk/LayoutTests/animations/combo-transform-translate+scale.html
r52843 r53333 11 11 width: 100px; 12 12 background-color: blue; 13 -webkit-animation-duration: 2s;13 -webkit-animation-duration: 1s; 14 14 -webkit-animation-timing-function: linear; 15 15 -webkit-animation-name: "anim"; … … 26 26 } 27 27 28 result = " PASS";28 result = ""; 29 29 30 30 const expected = [ [ 1.25,0,0,1.75,25,50 ], 31 31 [ 1.5,0,0,2.5,50,100 ] ]; 32 const tolerance = [ 0.2,0.2,0.2,0. 2,5,10];32 const tolerance = [ 0.2,0.2,0.2,0.3,5,15 ]; 33 33 const prop = [ "a", "b", "c", "d", "e", "f" ]; 34 34 … … 39 39 } 40 40 41 var numSnapshots = 0; 42 41 43 function snapshot(which) 42 44 { 43 if (result != "PASS") 44 return; 45 var t = new WebKitCSSMatrix(window.getComputedStyle(document.getElementById('box')).webkitTransform); 46 for (i = 0; i < 6; ++i) { 47 if (!isEqual(t[prop[i]], expected[which][i], tolerance[i])) 48 result += "FAIL('"+prop[i]+"' was:"+t[prop[i]]+", expected:"+expected[which][i]+")"; 49 } 45 50 46 var t = new WebKitCSSMatrix(window.getComputedStyle(document.getElementById('box')).webkitTransform);47 for (i = 0; i < 6; ++i)48 if (!isEqual(t[prop[i]], expected[which][i], tolerance[i])) {49 result = "FAIL('"+prop[i]+"' was:"+t[prop[i]]+", expected:"+expected[which][i]+")";50 return;51 51 numSnapshots++; 52 if (numSnapshots == 2) { 53 document.getElementById('result').innerHTML = result || "PASS"; 54 if (window.layoutTestController) 55 layoutTestController.notifyDone(); 56 } 52 57 } 53 58 54 59 function start() 55 60 { 56 setTimeout("snapshot(0)", 500); 57 setTimeout("snapshot(1)", 1000); 58 59 window.setTimeout(function() { 60 document.getElementById('result').innerHTML = result; 61 if (window.layoutTestController) 62 layoutTestController.notifyDone(); 63 }, 1100); 61 setTimeout("snapshot(0)", 250); 62 setTimeout("snapshot(1)", 500); 64 63 } 65 64 … … 69 68 </head> 70 69 <body> 71 This test performs an animation of the translate() and scale() operators. It animates over 2seconds.72 At 0. 5 and 1 secondit takes a snapshot and expects the result to be within range.70 This test performs an animation of the translate() and scale() operators. It animates over 1 seconds. 71 At 0.25 and 0.5 seconds it takes a snapshot and expects the result to be within range. 73 72 <div id="box"> 74 73 </div>
Note: See TracChangeset
for help on using the changeset viewer.