diff --git a/pages/component/native-view/native-view.test.js b/pages/component/native-view/native-view.test.js new file mode 100644 index 0000000000000000000000000000000000000000..7cf66a70312b4ed4cd1827bf04eac94e676bd941 --- /dev/null +++ b/pages/component/native-view/native-view.test.js @@ -0,0 +1,17 @@ +describe('native-view.uvue', () => { + if (process.env.uniTestPlatformInfo.indexOf('web') > -1 || process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true') { + it('object', () => { + expect(1).toBe(1) + }) + return + } + beforeAll(async () => { + page = await program.reLaunch('/pages/component/native-view/native-view') + }); + + it('native-view检测init函数是否响应', async () => { + await page.waitFor(600) + const value = await page.data('isLoad') + expect(value).toBe(true) + }) +}) diff --git a/pages/component/native-view/native-view.uvue b/pages/component/native-view/native-view.uvue index 61adda9c7701a79208056d56e52398ff57fe2d1b..4398993d17f7a08c869b168ad5ba906c4ba71b2a 100644 --- a/pages/component/native-view/native-view.uvue +++ b/pages/component/native-view/native-view.uvue @@ -44,5 +44,7 @@ .native-time-picker { margin: 10px auto 25px auto; + border-style: solid; + border-radius: 5px; }