File tree Expand file tree Collapse file tree 3 files changed +34
-44
lines changed Expand file tree Collapse file tree 3 files changed +34
-44
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import { Text } from 'react-native' ;
3
+
4
+ const PolyfillTests = ( ) => (
5
+ < >
6
+ < Text testID = "url-polyfill-version" >
7
+ { global . REACT_NATIVE_URL_POLYFILL }
8
+ </ Text >
9
+ < Text testID = "url-test-1" > { new URL ( 'dev' , 'https://google.dev' ) . href } </ Text >
10
+ < Text testID = "url-test-2" >
11
+ {
12
+ new URL ( 'https://facebook.github.io/react-native/img/header_logo.png' )
13
+ . href
14
+ }
15
+ </ Text >
16
+ < Text testID = "url-test-3" >
17
+ { URL . createObjectURL ( {
18
+ data : {
19
+ blobId : 1 ,
20
+ offset : 32 ,
21
+ } ,
22
+ size : 64 ,
23
+ } ) }
24
+ </ Text >
25
+ </ >
26
+ ) ;
27
+
28
+ export default PolyfillTests ;
Original file line number Diff line number Diff line change 9
9
import React from 'react' ;
10
10
import { SafeAreaView , Text , StatusBar } from 'react-native' ;
11
11
12
+ import TestPolyfill from '../../detox/TestPolyfill' ;
13
+
12
14
const App : ( ) => React$Node = ( ) => {
13
15
return (
14
16
< >
15
17
< StatusBar barStyle = "dark-content" />
16
18
< SafeAreaView >
17
- < Text testID = "url-polyfill-version" >
18
- { global . REACT_NATIVE_URL_POLYFILL }
19
- </ Text >
20
- < Text testID = "url-test-1" >
21
- { new URL ( 'dev' , 'https://google.dev' ) . href }
22
- </ Text >
23
- < Text testID = "url-test-2" >
24
- {
25
- new URL (
26
- 'https://facebook.github.io/react-native/img/header_logo.png' ,
27
- ) . href
28
- }
29
- </ Text >
30
- < Text testID = "url-test-3" >
31
- { URL . createObjectURL ( {
32
- data : {
33
- blobId : 1 ,
34
- offset : 32 ,
35
- } ,
36
- size : 64 ,
37
- } ) }
38
- </ Text >
19
+ < TestPolyfill />
39
20
</ SafeAreaView >
40
21
</ >
41
22
) ;
Original file line number Diff line number Diff line change @@ -10,33 +10,14 @@ import React from 'react';
10
10
import type { Node } from 'react' ;
11
11
import { SafeAreaView , Text , StatusBar } from 'react-native' ;
12
12
13
+ import TestPolyfill from '../../detox/TestPolyfill' ;
14
+
13
15
const App : ( ) => Node = ( ) => {
14
16
return (
15
17
< >
16
18
< StatusBar barStyle = "dark-content" />
17
19
< SafeAreaView >
18
- < Text testID = "url-polyfill-version" >
19
- { global . REACT_NATIVE_URL_POLYFILL }
20
- </ Text >
21
- < Text testID = "url-test-1" >
22
- { new URL ( 'dev' , 'https://google.dev' ) . href }
23
- </ Text >
24
- < Text testID = "url-test-2" >
25
- {
26
- new URL (
27
- 'https://facebook.github.io/react-native/img/header_logo.png' ,
28
- ) . href
29
- }
30
- </ Text >
31
- < Text testID = "url-test-3" >
32
- { URL . createObjectURL ( {
33
- data : {
34
- blobId : 1 ,
35
- offset : 32 ,
36
- } ,
37
- size : 64 ,
38
- } ) }
39
- </ Text >
20
+ < TestPolyfill />
40
21
</ SafeAreaView >
41
22
</ >
42
23
) ;
You can’t perform that action at this time.
0 commit comments