File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Integration/Hosting/UIKit/View Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -785,7 +785,7 @@ extension _UIHostingView: TestHost {
785785
786786 public func _renderForTest( interval: Double ) {
787787 func shouldContinue( ) -> Bool {
788- if propertiesNeedingUpdate == [ ] , !CoreTesting. needRender {
788+ if propertiesNeedingUpdate == [ ] , !CoreTesting. needsRender {
789789 false
790790 } else {
791791 times >= 0
@@ -796,15 +796,15 @@ extension _UIHostingView: TestHost {
796796 var times = 16
797797 repeat {
798798 times -= 1
799- CoreTesting . needRender = false
799+ CoreTesting . needsRender = false
800800 updateGraph { host in
801801 host. flushTransactions ( )
802802 }
803803 RunLoop . flushObservers ( )
804804 render ( targetTimestamp: nil )
805805 CATransaction . flush ( )
806806 } while shouldContinue ( )
807- CoreTesting . needRender = false
807+ CoreTesting . needsRender = false
808808 canAdvanceTimeAutomatically = true
809809 }
810810}
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ extension _ViewTest {
260260 let commonMode = RunLoop . Mode. common
261261 let interval = 0.001
262262 var times = 17
263- while CoreTesting . needRender || CoreTesting . neeedsRunLoopTurn {
263+ while CoreTesting . needsRender || CoreTesting . neeedsRunLoopTurn {
264264 // let modes = [defaultMode, commonMode]
265265 let date = Date ( timeIntervalSinceNow: interval)
266266 if !RunLoop. current. run ( mode: defaultMode, before: date) {
@@ -272,7 +272,7 @@ extension _ViewTest {
272272 break
273273 }
274274 }
275- if CoreTesting . needRender || CoreTesting . neeedsRunLoopTurn {
275+ if CoreTesting . needsRender || CoreTesting . neeedsRunLoopTurn {
276276 Log . unitTests. log ( level: . default, " Render or run loop turn needed after max iterations " )
277277 }
278278 }
Original file line number Diff line number Diff line change 99package enum CoreTesting {
1010 package static var isRunning : Bool = false
1111
12- package static var needRender : Bool = false
12+ package static var needsRender : Bool = false
1313
1414 package static var neeedsRunLoopTurn : Bool {
1515 false
You can’t perform that action at this time.
0 commit comments