Changeset 287874 in webkit
- Timestamp:
- Jan 11, 2022, 5:22:12 AM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
TestExpectations (modified) (1 diff)
-
css3/calc/transitions-dependent-expected.txt (modified) (1 diff)
-
css3/calc/transitions-dependent.html (modified) (4 diffs)
-
platform/gtk/TestExpectations (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r287867 r287874 1 2022-01-11 Diego Pino Garcia <dpino@igalia.com> 2 3 REGRESSION (Lazy tree creation): css3/calc/transitions-dependent.html is frequently failing 4 https://bugs.webkit.org/show_bug.cgi?id=126142 5 <rdar://problem/15725243> 6 7 Reviewed by Alexey Proskuryakov. 8 9 This test is no longer flaky, it has been consistently failing with fixed values. Update 10 'innerTransition' expected values to match actual values. 11 12 The test code was modernized to make it pass in other browsers since getPropertyCSSValue() 13 is deprecated and no longer supported by Chrome or Firefox). 14 15 * TestExpectations: 16 * css3/calc/transitions-dependent-expected.txt: 17 * css3/calc/transitions-dependent.html: 18 * platform/gtk/TestExpectations: 19 1 20 2022-01-10 Alan Bujtas <zalan@apple.com> 2 21 -
trunk/LayoutTests/TestExpectations
r287847 r287874 1228 1228 1229 1229 webkit.org/b/53990 fast/forms/search-event-delay.html [ Pass Failure ] 1230 1231 webkit.org/b/126142 css3/calc/transitions-dependent.html [ Pass Failure ]1232 1230 1233 1231 webkit.org/b/124932 media/video-size.html [ Pass Failure ] -
trunk/LayoutTests/css3/calc/transitions-dependent-expected.txt
r121351 r287874 5 5 PASS - "width" property for "inner" element at 0.75s was: 210 6 6 PASS - "width" property for "inner" element at 1s was: 260 7 PASS - "width" property for "innerTransition" element at 0s was: 208 PASS - "width" property for "innerTransition" element at 0.25s was: 709 PASS - "width" property for "innerTransition" element at 0.5s was: 16510 PASS - "width" property for "innerTransition" element at 0.75s was: 3 057 PASS - "width" property for "innerTransition" element at 0s was: 60 8 PASS - "width" property for "innerTransition" element at 0.25s was: 167.5 9 PASS - "width" property for "innerTransition" element at 0.5s was: 275 10 PASS - "width" property for "innerTransition" element at 0.75s was: 382.5 11 11 PASS - "width" property for "innerTransition" element at 1s was: 490 12 12 -
trunk/LayoutTests/css3/calc/transitions-dependent.html
r236541 r287874 1 1 <!DOCTYPE html> 2 <style> 3 .outerBlock { 4 border: 1px solid black; 5 -webkit-transition: all 1s linear; 6 -moz-transition: all 1s linear; 7 } 2 <html> 3 <head> 4 <meta charset="UTF-8"> 5 <title></title> 8 6 9 .innerBlock { 10 background-color: green;11 height: 100px;12 -webkit-transition: all 1s linear;13 -moz-transition: all 1s linear;14 }7 <style> 8 .outerBlock { 9 border: 1px solid black; 10 -webkit-transition: all 1s linear; 11 -moz-transition: all 1s linear; 12 } 15 13 16 #outer { 17 width: 100px; 18 } 14 .innerBlock { 15 background-color: green; 16 height: 100px; 17 -webkit-transition: all 1s linear; 18 -moz-transition: all 1s linear; 19 } 19 20 20 #outer.go{21 width: 500px;22 }21 #outer { 22 width: 100px; 23 } 23 24 24 #inner{25 width: calc(50% + 10px);26 }25 #outer.go { 26 width: 500px; 27 } 27 28 28 #innerTransition{29 width: calc(10% + 10px);30 }29 #inner { 30 width: calc(50% + 10px); 31 } 31 32 32 #innerTransition.go{33 width: calc(100% -10px);34 }33 #innerTransition { 34 width: calc(10% + 10px); 35 } 35 36 36 </style> 37 #innerTransition.go { 38 width: calc(100% - 10px); 39 } 40 </style> 41 </head> 37 42 38 This tests that calc() expressions depending on transitioning elements behave correctly. 39 <div class="outerBlock" id="outer"> 40 <div class="innerBlock" id="inner"></div> 41 <div class="innerBlock" id="innerTransition"></div> 42 </div> 43 <div id="result"></div> 43 <body> 44 This tests that calc() expressions depending on transitioning elements behave correctly. 45 <div class="outerBlock" id="outer"> 46 <div class="innerBlock" id="inner"></div> 47 <div class="innerBlock" id="innerTransition"></div> 48 </div> 49 <div id="result"></div> 50 </body> 44 51 45 52 <script src="../../transitions/resources/transition-test-helpers.js"></script> … … 47 54 48 55 if (window.testRunner) 49 window.testRunner.dumpAsText();56 testRunner.dumpAsText(); 50 57 51 58 const transitioningElements = ["outer", "innerTransition"]; … … 59 66 [1.00, "inner", 'width', 260, "outer"], 60 67 61 [0.00, "innerTransition", 'width', 20, "outer"],62 [0.25, "innerTransition", 'width', 70, "outer"],63 [0.50, "innerTransition", 'width', 165, "outer"],64 [0.75, "innerTransition", 'width', 3 05, "outer"],68 [0.00, "innerTransition", 'width', 60, "outer"], 69 [0.25, "innerTransition", 'width', 167.5, "outer"], 70 [0.50, "innerTransition", 'width', 275, "outer"], 71 [0.75, "innerTransition", 'width', 382.5, "outer"], 65 72 [1.00, "innerTransition", 'width', 490, "outer"], 66 73 ]; 67 74 68 function runTest(expected)75 function getPropertyCSSValue(elementId, property) 69 76 { 70 for (var i = 0; i < expected.length; ++i) { 71 var time = expected[i][0]; 72 var elementId = expected[i][1]; 73 var property = expected[i][2]; 74 var expectedValue = expected[i][3]; 75 var dependsOn = expected[i][4]; 76 pauseTransitionAtTimeOnElement(property, time, document.getElementById(dependsOn)); 77 pauseTransitionAtTimeOnElement(property, time, document.getElementById(elementId)); 78 var actual = window.getComputedStyle(document.getElementById(elementId)).getPropertyCSSValue(property).getFloatValue(CSSPrimitiveValue.CSS_NUMBER); 79 var result = document.getElementById("result"); 77 let element = document.getElementById(elementId); 78 let style = window.getComputedStyle(element, null); 79 return style.getPropertyValue(property); 80 } 81 82 function runTest(expected) 83 { 84 let result = document.getElementById("result"); 85 for (let i = 0; i < expected.length; i++) { 86 let [time, elementId, property, expectedValue, dependsOn] = expected[i]; 87 let elem = (i < 5) ? dependsOn : elementId; 88 pauseTransitionAtTimeOnElement(property, time, document.getElementById(elem)); 89 let actual = Number.parseFloat(getPropertyCSSValue(elementId, property)); 80 90 if (actual == expectedValue) 81 91 result.innerHTML += 'PASS - "' + property + '" property for "' + elementId +'" element at ' + time + 's was: ' + actual + '<br/>'; … … 92 102 } 93 103 94 for ( var i = 0; i < transitioningElements.length; i++) {95 var element = document.getElementById(transitioningElements[i]);104 for (let each of transitioningElements) { 105 let element = document.getElementById(each); 96 106 element.className += " go"; 97 107 } 98 108 99 109 window.addEventListener("load", loadListener, false); 100 window.testRunner.waitUntilDone(); 110 if (window.testRunner) 111 testRunner.waitUntilDone(); 101 112 102 113 </script> 114 115 </html> -
trunk/LayoutTests/platform/gtk/TestExpectations
r287846 r287874 1053 1053 1054 1054 webkit.org/b/127742 fast/spatial-navigation/snav-unit-overflow-and-scroll-in-direction.html [ Failure ] 1055 1056 # Tests showing flakiness in the bot1057 webkit.org/b/132182 css3/calc/transitions-dependent.html [ Failure ]1058 1055 1059 1056 webkit.org/b/132385 compositing/repaint/repaint-on-layer-grouping-change.html [ Failure Pass ]
Note:
See TracChangeset
for help on using the changeset viewer.