diff --git a/pages/advance/advance.vue b/pages/advance/advance.vue index acb67373682d5d833d81e5d6739485d0c1014506..50f1c1f7980843ed1e5727d7eddb4eb5d8c288a9 100644 --- a/pages/advance/advance.vue +++ b/pages/advance/advance.vue @@ -28,6 +28,8 @@ + + @@ -198,6 +200,11 @@ url: '/pages/SyntaxCase/consoleTest' }) }, + testGrammar: function() { + uni.navigateTo({ + url: '/pages/test/index' + }) + }, testGetResourcePath: function() { uni.navigateTo({ url: '/pages/advance/iOS/getResourcePath' diff --git a/pages/test/index.test.js b/pages/test/index.test.js index fc88caa186edb2ea379c56509ac7218af142389a..b0539ee3782fb7f0ff48f14ad62cbc5d3522a897 100644 --- a/pages/test/index.test.js +++ b/pages/test/index.test.js @@ -6,8 +6,8 @@ beforeAll(async () => { await program.reLaunch('/pages/test/index') page = await program.currentPage() await page.waitFor(3000); - const data = await page.data('result'); - result = data + const data = await page.data(); + result = data['result'] }) function getApiFailed(describe, api) { diff --git a/pages/test/index.uvue b/pages/test/index.uvue new file mode 100644 index 0000000000000000000000000000000000000000..d95492234d0f0e83c03953cceac64c25fb65498c --- /dev/null +++ b/pages/test/index.uvue @@ -0,0 +1,62 @@ + + + \ No newline at end of file diff --git a/uni_modules/uts-tests/utssdk/index.uts b/uni_modules/uts-tests/utssdk/index.uts index 7cac94ddfe54358fee9c45497c0115eaff2428c9..c2fe59a8ea94b1d1ad88bb512f6f56a8f6e891a2 100644 --- a/uni_modules/uts-tests/utssdk/index.uts +++ b/uni_modules/uts-tests/utssdk/index.uts @@ -13,7 +13,7 @@ import { testRegExp } from './RegExp.uts' // import { testReactiveArray } from './reactiveArray.uts' // import { testReactiveMap } from './ReactiveMap.uts' // #endif -// export { Result } from './tests.uts' +export { Result } from './tests.uts' // Promise、Proxy、Reflect、Weakmap、WeakSet 不支持 export function runTests() : UTSJSONObject {