@@ -173,6 +173,44 @@ class SentryReplayOptionsTests: XCTestCase {
173
173
] )
174
174
XCTAssertTrue ( options. maskAllImages)
175
175
}
176
+
177
+ func testInitFromDictEnableExperimentalViewRendererWithBool( ) {
178
+ let options = SentryReplayOptions ( dictionary: [
179
+ " enableExperimentalViewRenderer " : true
180
+ ] )
181
+ XCTAssertTrue ( options. enableExperimentalViewRenderer)
182
+
183
+ let options2 = SentryReplayOptions ( dictionary: [
184
+ " enableExperimentalViewRenderer " : false
185
+ ] )
186
+ XCTAssertFalse ( options2. enableExperimentalViewRenderer)
187
+ }
188
+
189
+ func testInitFromDictEnableExperimentalViewRendererWithString( ) {
190
+ let options = SentryReplayOptions ( dictionary: [
191
+ " enableExperimentalViewRenderer " : " invalid_value "
192
+ ] )
193
+ XCTAssertFalse ( options. enableExperimentalViewRenderer)
194
+ }
195
+
196
+ func testInitFromDictEnableFastViewRenderingWithBool( ) {
197
+ let options = SentryReplayOptions ( dictionary: [
198
+ " enableFastViewRendering " : true
199
+ ] )
200
+ XCTAssertTrue ( options. enableFastViewRendering)
201
+
202
+ let options2 = SentryReplayOptions ( dictionary: [
203
+ " enableFastViewRendering " : false
204
+ ] )
205
+ XCTAssertFalse ( options2. enableFastViewRendering)
206
+ }
207
+
208
+ func testInitFromDictEnableFastViewRenderingWithString( ) {
209
+ let options = SentryReplayOptions ( dictionary: [
210
+ " enableFastViewRendering " : " invalid_value "
211
+ ] )
212
+ XCTAssertFalse ( options. enableFastViewRendering)
213
+ }
176
214
177
215
func testInitFromDictQualityWithString( ) {
178
216
let options = SentryReplayOptions ( dictionary: [
@@ -217,6 +255,8 @@ class SentryReplayOptionsTests: XCTestCase {
217
255
XCTAssertEqual ( options. onErrorSampleRate, 0.8 )
218
256
XCTAssertFalse ( options. maskAllText)
219
257
XCTAssertTrue ( options. maskAllImages)
258
+ XCTAssertFalse ( options. enableExperimentalViewRenderer)
259
+ XCTAssertFalse ( options. enableFastViewRendering)
220
260
XCTAssertEqual ( options. maskedViewClasses. count, 1 )
221
261
XCTAssertEqual ( ObjectIdentifier ( options. maskedViewClasses. first!) , ObjectIdentifier ( NSString . self) )
222
262
XCTAssertEqual ( options. unmaskedViewClasses. count, 1 )
0 commit comments