mattbaker@apple.com | dbed5fc | 2017-10-03 16:12:26 +0000 | [diff] [blame] | 1 | Testing asynchronous View layout operations: needsLayout, cancelLayout. |
| 2 | |
| 3 | |
| 4 | == Running test suite: View.AsynchronousLayout |
| 5 | -- Running test case: View.automaticLayout |
| 6 | PASS: View should have a pending layout once it is attached. |
| 7 | Layout complete. |
| 8 | PASS: View should do an initial layout. |
| 9 | PASS: View should update its layout. |
| 10 | PASS: View should not have a pending layout. |
| 11 | |
| 12 | -- Running test case: View.automaticLayout.cancelled |
| 13 | PASS: View should have a pending layout once it is attached. |
| 14 | PASS: View should not have a pending layout once it is detached. |
| 15 | |
| 16 | -- Running test case: View.needsLayout |
| 17 | Flush pending layouts, then schedule an update. |
| 18 | PASS: View should have a pending layout. |
| 19 | Layout complete. |
| 20 | PASS: View should update its layout. |
| 21 | PASS: View should not have a pending layout. |
| 22 | |
| 23 | -- Running test case: View.needsLayout.propogateToSubview |
| 24 | Schedule parent view update. |
| 25 | Layout complete. |
| 26 | PASS: Chlid view should do an initial layout. |
| 27 | PASS: Child view should update its layout. |
| 28 | |
| 29 | -- Running test case: View.cancelLayout |
| 30 | Cancel automatic layout. |
| 31 | PASS: View should not have a pending layout. |
| 32 | Cancel scheduled layout. |
| 33 | PASS: View should not have a pending layout. |
| 34 | |