Changeset 226902 in webkit
- Timestamp:
- Jan 12, 2018 11:19:07 AM (6 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r226896 r226902 1 2018-01-11 Simon Fraser <simon.fraser@apple.com> 2 3 fast/events/ios/rotation/layout-viewport-during-safari-type-rotation.html is flakey 4 https://bugs.webkit.org/show_bug.cgi?id=181569 5 rdar://problem/34117680 6 7 Reviewed by Zalan Bujtas. 8 9 Wait a tick before starting the rotation, otherwise -[WKWebView _beginAnimatedResizeWithUpdates:] 10 can bail because the unobscuredRect is empty. 11 12 Also wait for both the rotation UI script to complete, and the receipt of the 13 orientationchange event. 14 15 * fast/events/ios/rotation/layout-viewport-during-safari-type-rotation.html: 16 * fast/events/ios/rotation/resources/rotation-utils.js: 17 (doTest): 18 1 19 2018-01-12 Matt Lewis <jlewis3@apple.com> 2 20 -
trunk/LayoutTests/fast/events/ios/rotation/layout-viewport-during-safari-type-rotation.html
r216352 r226902 33 33 } 34 34 35 var rotationComplete = false; 36 var gotOrientationChange = false; 37 38 function rotationFinished() 39 { 40 rotationComplete = true; 41 checkForCompletion(); 42 } 43 44 function checkForCompletion() 45 { 46 if (rotationComplete && gotOrientationChange) { 47 if (window.testRunner) 48 testRunner.notifyDone(); 49 } 50 } 51 35 52 window.addEventListener('resize', function() { 36 53 accumulateLog(''); … … 44 61 accumulateLog('(This will trigger the resize handler by forcing a layout.)'); 45 62 logFixedAndViewports(); 63 gotOrientationChange = true; 46 64 }, false); 47 65 48 window.addEventListener('load', doTest, false); 66 window.addEventListener('load', function() { 67 setTimeout(function() { 68 doTest(rotationFinished); 69 }, 0); 70 }, false); 49 71 </script> 50 72 </head> -
trunk/LayoutTests/fast/events/ios/rotation/resources/rotation-utils.js
r216352 r226902 28 28 } 29 29 30 function doTest( )30 function doTest(scriptCompleteCallback) 31 31 { 32 32 accumulateLog('Before rotation'); … … 44 44 document.body.appendChild(logPre); 45 45 46 if (window.testRunner) 47 testRunner.notifyDone(); 46 if (scriptCompleteCallback) 47 scriptCompleteCallback(); 48 else { 49 if (window.testRunner) 50 testRunner.notifyDone(); 51 } 48 52 }); 49 53 }
Note: See TracChangeset
for help on using the changeset viewer.