@onekeyfe/react-native-native-list 6.8.0-22 → 6.8.0-23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -58,6 +58,7 @@ final class NativeListMediaFrameCaptureTests: XCTestCase {
|
|
|
58
58
|
rootView.addSubview(container)
|
|
59
59
|
defer { container.removeFromSuperview() }
|
|
60
60
|
let slot = NativeListMediaPreviewSlot()
|
|
61
|
+
defer { slot.recycle() }
|
|
61
62
|
slot.view.frame = CGRect(x: 0, y: 0, width: 120, height: 120)
|
|
62
63
|
container.addSubview(slot.view)
|
|
63
64
|
slot.view.layoutIfNeeded()
|
|
@@ -98,6 +99,7 @@ final class NativeListMediaFrameCaptureTests: XCTestCase {
|
|
|
98
99
|
XCTAssertNotNil(slot.capturedFrame)
|
|
99
100
|
XCTAssertEqual(slot.createdPlayerCount, coldPlayers, "Recycled row reuses the cached still")
|
|
100
101
|
let second = NativeListMediaPreviewSlot()
|
|
102
|
+
defer { second.recycle() }
|
|
101
103
|
second.view.frame = CGRect(x: 120, y: 0, width: 120, height: 120)
|
|
102
104
|
container.addSubview(second.view)
|
|
103
105
|
second.view.layoutIfNeeded()
|
|
@@ -108,7 +110,6 @@ final class NativeListMediaFrameCaptureTests: XCTestCase {
|
|
|
108
110
|
}
|
|
109
111
|
XCTAssertNotNil(second.capturedFrame)
|
|
110
112
|
XCTAssertEqual(second.createdPlayerCount, 0, "A different cell uses shared cached pixels")
|
|
111
|
-
second.recycle(); slot.recycle()
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
/// A 64×48, ten-frame H.264 MP4 (generated with AVAssetWriter on macOS); the simulator
|
package/package.json
CHANGED