@react-native-ohos/react-native-webview 13.15.1-rc.1 → 13.15.1-rc.4
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.
- package/LICENSE +20 -20
- package/README.OpenSource +10 -10
- package/README.md +12 -12
- package/harmony/rn_webview/OAT.xml +44 -44
- package/harmony/rn_webview/build-profile.json5 +28 -28
- package/harmony/rn_webview/index.ets +12 -12
- package/harmony/rn_webview/oh-package.json5 +13 -13
- package/harmony/rn_webview/src/main/cpp/CMakeLists.txt +9 -9
- package/harmony/rn_webview/src/main/cpp/WebViewPackage.h +16 -16
- package/harmony/rn_webview/src/main/cpp/generated/RNOH/generated/BaseReactNativeWebviewPackage.h +95 -95
- package/harmony/rn_webview/src/main/cpp/generated/RNOH/generated/components/RNCWebViewJSIBinder.h +119 -119
- package/harmony/rn_webview/src/main/cpp/generated/RNOH/generated/turbo_modules/RNCWebView.cpp +18 -18
- package/harmony/rn_webview/src/main/cpp/generated/RNOH/generated/turbo_modules/RNCWebView.h +16 -16
- package/harmony/rn_webview/src/main/cpp/generated/RNOH/generated/turbo_modules/RNCWebViewModule.cpp +17 -17
- package/harmony/rn_webview/src/main/cpp/generated/RNOH/generated/turbo_modules/RNCWebViewModule.h +16 -16
- package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/ComponentDescriptors.h +24 -24
- package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/EventEmitters.cpp +241 -241
- package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/EventEmitters.h +263 -263
- package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/Props.cpp +103 -103
- package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/Props.h +509 -509
- package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/ShadowNodes.cpp +17 -17
- package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/ShadowNodes.h +32 -32
- package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/States.cpp +16 -16
- package/harmony/rn_webview/src/main/cpp/generated/react/renderer/components/react_native_webview/States.h +28 -28
- package/harmony/rn_webview/src/main/ets/CutomReference.ts +29 -29
- package/harmony/rn_webview/src/main/ets/Logger.ts +43 -43
- package/harmony/rn_webview/src/main/ets/Magic.ets +184 -184
- package/harmony/rn_webview/src/main/ets/RNCWebView.ets +645 -570
- package/harmony/rn_webview/src/main/ets/RNCWebViewPackage.ets +37 -37
- package/harmony/rn_webview/src/main/ets/ShouldRequestUrl.ts +47 -47
- package/harmony/rn_webview/src/main/ets/WebViewBaseOperate.ets +457 -443
- package/harmony/rn_webview/src/main/ets/WebViewTurboModule.ets +57 -57
- package/harmony/rn_webview/src/main/ets/generated/components/RNCWebView.ts +524 -524
- package/harmony/rn_webview/src/main/ets/generated/components/ts.ts +5 -5
- package/harmony/rn_webview/src/main/ets/generated/index.ets +5 -5
- package/harmony/rn_webview/src/main/ets/generated/ts.ts +6 -6
- package/harmony/rn_webview/src/main/ets/generated/turboModules/RNCWebView.ts +18 -18
- package/harmony/rn_webview/src/main/ets/generated/turboModules/RNCWebViewModule.ts +16 -16
- package/harmony/rn_webview/src/main/ets/generated/turboModules/ts.ts +6 -6
- package/harmony/rn_webview/src/main/module.json5 +10 -10
- package/harmony/rn_webview/src/main/resources/base/element/string.json +39 -39
- package/harmony/rn_webview/src/main/resources/en_US/element/string.json +39 -39
- package/harmony/rn_webview/src/main/resources/zh_CN/element/string.json +39 -39
- package/harmony/rn_webview/src/test/List.test.ets +4 -4
- package/harmony/rn_webview/src/test/LocalUnit.test.ets +32 -32
- package/harmony/rn_webview/ts.ets +8 -8
- package/harmony/rn_webview.har +0 -0
- package/package.json +99 -99
- package/src/NativeRNCWebView.ts +21 -21
- package/src/NativeRNCWebViewModule.ts +19 -19
- package/src/RNCWebViewNativeComponent.ts +354 -354
- package/src/WebView.harmony.tsx +342 -342
- package/src/WebView.tsx +10 -10
- package/src/codegenUtils.ts +10 -10
- package/src/index.ts +10 -10
- package/harmony/rn_webview/BuildProfile.ets +0 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by "react-native codegen-lib-harmony"
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export * from "./RNCWebView"
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by "react-native codegen-lib-harmony"
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export * from "./RNCWebView"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by "react-native codegen-lib-harmony"
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export * from "./ts"
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by "react-native codegen-lib-harmony"
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export * from "./ts"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by "react-native codegen-lib-harmony"
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export * as RNC from "./components/ts"
|
|
6
|
-
export * as TM from "./turboModules/ts"
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by "react-native codegen-lib-harmony"
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export * as RNC from "./components/ts"
|
|
6
|
+
export * as TM from "./turboModules/ts"
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by "react-native codegen-lib-harmony"
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { Tag } from "@rnoh/react-native-openharmony/ts"
|
|
6
|
-
|
|
7
|
-
export namespace RNCWebView {
|
|
8
|
-
export const NAME = 'RNCWebView' as const
|
|
9
|
-
|
|
10
|
-
export interface Spec {
|
|
11
|
-
getConstants(): {};
|
|
12
|
-
|
|
13
|
-
isFileUploadSupported(): Promise<boolean>;
|
|
14
|
-
|
|
15
|
-
shouldStartLoadWithLockIdentifier(shouldStart: boolean, lockIdentifier: number): void;
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by "react-native codegen-lib-harmony"
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { Tag } from "@rnoh/react-native-openharmony/ts"
|
|
6
|
+
|
|
7
|
+
export namespace RNCWebView {
|
|
8
|
+
export const NAME = 'RNCWebView' as const
|
|
9
|
+
|
|
10
|
+
export interface Spec {
|
|
11
|
+
getConstants(): {};
|
|
12
|
+
|
|
13
|
+
isFileUploadSupported(): Promise<boolean>;
|
|
14
|
+
|
|
15
|
+
shouldStartLoadWithLockIdentifier(shouldStart: boolean, lockIdentifier: number): void;
|
|
16
|
+
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by "react-native codegen-lib-harmony"
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { Tag } from "@rnoh/react-native-openharmony/ts"
|
|
6
|
-
|
|
7
|
-
export namespace RNCWebViewModule {
|
|
8
|
-
export const NAME = 'RNCWebViewModule' as const
|
|
9
|
-
|
|
10
|
-
export interface Spec {
|
|
11
|
-
isFileUploadSupported(): Promise<boolean>;
|
|
12
|
-
|
|
13
|
-
shouldStartLoadWithLockIdentifier(shouldStart: boolean, lockIdentifier: number): void;
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by "react-native codegen-lib-harmony"
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { Tag } from "@rnoh/react-native-openharmony/ts"
|
|
6
|
+
|
|
7
|
+
export namespace RNCWebViewModule {
|
|
8
|
+
export const NAME = 'RNCWebViewModule' as const
|
|
9
|
+
|
|
10
|
+
export interface Spec {
|
|
11
|
+
isFileUploadSupported(): Promise<boolean>;
|
|
12
|
+
|
|
13
|
+
shouldStartLoadWithLockIdentifier(shouldStart: boolean, lockIdentifier: number): void;
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by "react-native codegen-lib-harmony"
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export * from "./RNCWebView"
|
|
6
|
-
export * from "./RNCWebViewModule"
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by "react-native codegen-lib-harmony"
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export * from "./RNCWebView"
|
|
6
|
+
export * from "./RNCWebViewModule"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"module":{
|
|
3
|
-
"name":"rn_webview",
|
|
4
|
-
"type":"har",
|
|
5
|
-
"deviceTypes": [
|
|
6
|
-
"default",
|
|
7
|
-
"tablet",
|
|
8
|
-
"2in1"
|
|
9
|
-
]
|
|
10
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"module":{
|
|
3
|
+
"name":"rn_webview",
|
|
4
|
+
"type":"har",
|
|
5
|
+
"deviceTypes": [
|
|
6
|
+
"default",
|
|
7
|
+
"tablet",
|
|
8
|
+
"2in1"
|
|
9
|
+
]
|
|
10
|
+
}
|
|
11
11
|
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"string":[
|
|
3
|
-
{
|
|
4
|
-
"name":"page_show",
|
|
5
|
-
"value":"page from npm package"
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"name":"deny",
|
|
9
|
-
"value":"不允许"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"name":"on_confirm",
|
|
13
|
-
"value":"允许"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"name": "use_your_camera",
|
|
17
|
-
"value": "使用你的摄像头?"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "use_your_microphone",
|
|
21
|
-
"value": "使用你的麦克风?"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"name": "use_your_camera_and_microphone",
|
|
25
|
-
"value": "使用你的摄像头和麦克风?"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "midi_sysex_resources",
|
|
29
|
-
"value": "访问 MIDI SYSEX 资源?"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "determined",
|
|
33
|
-
"value": "确定"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "cancel",
|
|
37
|
-
"value": "取消"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"string":[
|
|
3
|
+
{
|
|
4
|
+
"name":"page_show",
|
|
5
|
+
"value":"page from npm package"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name":"deny",
|
|
9
|
+
"value":"不允许"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name":"on_confirm",
|
|
13
|
+
"value":"允许"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "use_your_camera",
|
|
17
|
+
"value": "使用你的摄像头?"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "use_your_microphone",
|
|
21
|
+
"value": "使用你的麦克风?"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "use_your_camera_and_microphone",
|
|
25
|
+
"value": "使用你的摄像头和麦克风?"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "midi_sysex_resources",
|
|
29
|
+
"value": "访问 MIDI SYSEX 资源?"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "determined",
|
|
33
|
+
"value": "确定"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "cancel",
|
|
37
|
+
"value": "取消"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
40
|
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"string":[
|
|
3
|
-
{
|
|
4
|
-
"name":"page_show",
|
|
5
|
-
"value":"page from npm package"
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"name":"deny",
|
|
9
|
-
"value":"deny"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"name":"on_confirm",
|
|
13
|
-
"value":"on confirm"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"name": "use_your_camera",
|
|
17
|
-
"value": "use Your Camera?"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "use_your_microphone",
|
|
21
|
-
"value": "use your microphone?"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"name": "use_your_camera_and_microphone",
|
|
25
|
-
"value": "use your camera and microphone?"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "midi_sysex_resources",
|
|
29
|
-
"value": "MIDI SYSEX Resources?"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "determined",
|
|
33
|
-
"value": "determined"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "cancel",
|
|
37
|
-
"value": "cancel"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"string":[
|
|
3
|
+
{
|
|
4
|
+
"name":"page_show",
|
|
5
|
+
"value":"page from npm package"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name":"deny",
|
|
9
|
+
"value":"deny"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name":"on_confirm",
|
|
13
|
+
"value":"on confirm"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "use_your_camera",
|
|
17
|
+
"value": "use Your Camera?"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "use_your_microphone",
|
|
21
|
+
"value": "use your microphone?"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "use_your_camera_and_microphone",
|
|
25
|
+
"value": "use your camera and microphone?"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "midi_sysex_resources",
|
|
29
|
+
"value": "MIDI SYSEX Resources?"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "determined",
|
|
33
|
+
"value": "determined"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "cancel",
|
|
37
|
+
"value": "cancel"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
40
|
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"string": [
|
|
3
|
-
{
|
|
4
|
-
"name": "page_show",
|
|
5
|
-
"value": "page from npm package"
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"name": "deny",
|
|
9
|
-
"value": "不允许"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"name": "on_confirm",
|
|
13
|
-
"value": "允许"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"name": "use_your_camera",
|
|
17
|
-
"value": "使用你的摄像头?"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "use_your_microphone",
|
|
21
|
-
"value": "使用你的麦克风?"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"name": "use_your_camera_and_microphone",
|
|
25
|
-
"value": "使用你的摄像头和麦克风?"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "midi_sysex_resources",
|
|
29
|
-
"value": "访问 MIDI SYSEX 资源?"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "determined",
|
|
33
|
-
"value": "确认"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "cancel",
|
|
37
|
-
"value": "取消"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"string": [
|
|
3
|
+
{
|
|
4
|
+
"name": "page_show",
|
|
5
|
+
"value": "page from npm package"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": "deny",
|
|
9
|
+
"value": "不允许"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "on_confirm",
|
|
13
|
+
"value": "允许"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "use_your_camera",
|
|
17
|
+
"value": "使用你的摄像头?"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "use_your_microphone",
|
|
21
|
+
"value": "使用你的麦克风?"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "use_your_camera_and_microphone",
|
|
25
|
+
"value": "使用你的摄像头和麦克风?"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "midi_sysex_resources",
|
|
29
|
+
"value": "访问 MIDI SYSEX 资源?"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "determined",
|
|
33
|
+
"value": "确认"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "cancel",
|
|
37
|
+
"value": "取消"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
40
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import localUnitTest from './LocalUnit.test';
|
|
2
|
-
|
|
3
|
-
export default function testsuite() {
|
|
4
|
-
localUnitTest();
|
|
1
|
+
import localUnitTest from './LocalUnit.test';
|
|
2
|
+
|
|
3
|
+
export default function testsuite() {
|
|
4
|
+
localUnitTest();
|
|
5
5
|
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
|
|
2
|
-
|
|
3
|
-
export default function localUnitTest() {
|
|
4
|
-
describe('localUnitTest',() => {
|
|
5
|
-
// Defines a test suite. Two parameters are supported: test suite name and test suite function.
|
|
6
|
-
beforeAll(() => {
|
|
7
|
-
// Presets an action, which is performed only once before all test cases of the test suite start.
|
|
8
|
-
// This API supports only one parameter: preset action function.
|
|
9
|
-
});
|
|
10
|
-
beforeEach(() => {
|
|
11
|
-
// Presets an action, which is performed before each unit test case starts.
|
|
12
|
-
// The number of execution times is the same as the number of test cases defined by **it**.
|
|
13
|
-
// This API supports only one parameter: preset action function.
|
|
14
|
-
});
|
|
15
|
-
afterEach(() => {
|
|
16
|
-
// Presets a clear action, which is performed after each unit test case ends.
|
|
17
|
-
// The number of execution times is the same as the number of test cases defined by **it**.
|
|
18
|
-
// This API supports only one parameter: clear action function.
|
|
19
|
-
});
|
|
20
|
-
afterAll(() => {
|
|
21
|
-
// Presets a clear action, which is performed after all test cases of the test suite end.
|
|
22
|
-
// This API supports only one parameter: clear action function.
|
|
23
|
-
});
|
|
24
|
-
it('assertContain', 0, () => {
|
|
25
|
-
// Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
|
|
26
|
-
let a = 'abc';
|
|
27
|
-
let b = 'b';
|
|
28
|
-
// Defines a variety of assertion methods, which are used to declare expected boolean conditions.
|
|
29
|
-
expect(a).assertContain(b);
|
|
30
|
-
expect(a).assertEqual(a);
|
|
31
|
-
});
|
|
32
|
-
});
|
|
1
|
+
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
|
|
2
|
+
|
|
3
|
+
export default function localUnitTest() {
|
|
4
|
+
describe('localUnitTest',() => {
|
|
5
|
+
// Defines a test suite. Two parameters are supported: test suite name and test suite function.
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
// Presets an action, which is performed only once before all test cases of the test suite start.
|
|
8
|
+
// This API supports only one parameter: preset action function.
|
|
9
|
+
});
|
|
10
|
+
beforeEach(() => {
|
|
11
|
+
// Presets an action, which is performed before each unit test case starts.
|
|
12
|
+
// The number of execution times is the same as the number of test cases defined by **it**.
|
|
13
|
+
// This API supports only one parameter: preset action function.
|
|
14
|
+
});
|
|
15
|
+
afterEach(() => {
|
|
16
|
+
// Presets a clear action, which is performed after each unit test case ends.
|
|
17
|
+
// The number of execution times is the same as the number of test cases defined by **it**.
|
|
18
|
+
// This API supports only one parameter: clear action function.
|
|
19
|
+
});
|
|
20
|
+
afterAll(() => {
|
|
21
|
+
// Presets a clear action, which is performed after all test cases of the test suite end.
|
|
22
|
+
// This API supports only one parameter: clear action function.
|
|
23
|
+
});
|
|
24
|
+
it('assertContain', 0, () => {
|
|
25
|
+
// Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
|
|
26
|
+
let a = 'abc';
|
|
27
|
+
let b = 'b';
|
|
28
|
+
// Defines a variety of assertion methods, which are used to declare expected boolean conditions.
|
|
29
|
+
expect(a).assertContain(b);
|
|
30
|
+
expect(a).assertEqual(a);
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
33
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
2
|
-
// Use of this source code is governed by a Apache-2.0 license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import {RNCWebViewPackage as WebViewPackage} from './src/main/ets/RNCWebViewPackage'
|
|
6
|
-
|
|
7
|
-
export {WebViewPackage};
|
|
8
|
-
|
|
1
|
+
// Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
2
|
+
// Use of this source code is governed by a Apache-2.0 license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
import {RNCWebViewPackage as WebViewPackage} from './src/main/ets/RNCWebViewPackage'
|
|
6
|
+
|
|
7
|
+
export {WebViewPackage};
|
|
8
|
+
|
|
9
9
|
export * from './src/main/ets/RNCWebViewPackage'
|
package/harmony/rn_webview.har
CHANGED
|
Binary file
|