diff --git a/pages.json b/pages.json index d6b2ba54e8a2b8999a866a4d7480c45204365528..b8fd449a3739355cfd926b55846a2708470d7bb4 100644 --- a/pages.json +++ b/pages.json @@ -377,13 +377,6 @@ "navigationBarTitleText": "nextTick" } }, - - { - "path": "pages/component-instance/nextTick-function/nextTick-function", - "style": { - "navigationBarTitleText": "$nextTick()" - } - }, { "path": "pages/component-instance/methods/call-method-uni-element-options", "style": { diff --git a/pages/component-instance/nextTick-function/child.uvue b/pages/component-instance/nextTick-function/child.uvue deleted file mode 100644 index 1867409660915181725383f0e3ae749ece7b7362..0000000000000000000000000000000000000000 --- a/pages/component-instance/nextTick-function/child.uvue +++ /dev/null @@ -1,100 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/component-instance/nextTick-function/nextTick-function.test.js b/pages/component-instance/nextTick-function/nextTick-function.test.js deleted file mode 100644 index 4316f6728d3c826ecd37ed8fd47ce6e7ac3f5f2e..0000000000000000000000000000000000000000 --- a/pages/component-instance/nextTick-function/nextTick-function.test.js +++ /dev/null @@ -1,39 +0,0 @@ -const PAGE_PATH = '/pages/component-instance/nextTick-function/nextTick-function' - -describe('$nextTick()', () => { - let page - beforeAll(async () => { - page = await program.reLaunch(PAGE_PATH) - await page.waitFor(500) - }) - - it('$nextTick() 回调方式', async () => { - const data = await page.data() - - expect(data.nextTickBeforeWidth).toBe(100) - expect(data.nextTickAfterWidth).toBe(200) - }); - - it('$nextTick() Promise方式', async () => { - const data = await page.data() - - expect(data.nextTickBeforeHeight).toBe(100) - expect(data.nextTickAfterHeight).toBe(200) - }); - - it('子组件 $nextTick() 回调方式', async () => { - const comp = await page.$('.next-tick-child') - const data = await comp.data() - - expect(data.nextTickBeforeWidth).toBe(100) - expect(data.nextTickAfterWidth).toBe(200) - }); - - it('子组件 $nextTick() Promise方式', async () => { - const comp = await page.$('.next-tick-child') - const data = await comp.data() - - expect(data.nextTickBeforeHeight).toBe(100) - expect(data.nextTickAfterHeight).toBe(200) - }); -}) diff --git a/pages/component-instance/nextTick-function/nextTick-function.uvue b/pages/component-instance/nextTick-function/nextTick-function.uvue deleted file mode 100644 index ce64699859af0df6afc5fdd2d73813612ded61b6..0000000000000000000000000000000000000000 --- a/pages/component-instance/nextTick-function/nextTick-function.uvue +++ /dev/null @@ -1,98 +0,0 @@ - - - - - \ No newline at end of file