diff --git a/pages.json b/pages.json
index 9c606147e36158a8767aba36c8cb8bfc61bb5da0..54fdc694d8cdbfa5e57a13003722d4e4854b0491 100644
--- a/pages.json
+++ b/pages.json
@@ -72,6 +72,22 @@
"enablePullDownRefresh": false
}
+ },
+ {
+ "path": "pages/SyntaxCase/utsAndroid",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+ {
+ "path": "pages/SyntaxCase/utsiOS",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
}
],
"tabBar": {
diff --git a/pages/SyntaxCase/utsAndroid.uvue b/pages/SyntaxCase/utsAndroid.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..02409e35d24cc6426e4ce2e7d6beeb9fcc68e162
--- /dev/null
+++ b/pages/SyntaxCase/utsAndroid.uvue
@@ -0,0 +1,8 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/SyntaxCase/utsAndroid.vue b/pages/SyntaxCase/utsAndroid.vue
new file mode 100644
index 0000000000000000000000000000000000000000..02409e35d24cc6426e4ce2e7d6beeb9fcc68e162
--- /dev/null
+++ b/pages/SyntaxCase/utsAndroid.vue
@@ -0,0 +1,8 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/SyntaxCase/utsiOS.uvue b/pages/SyntaxCase/utsiOS.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..02409e35d24cc6426e4ce2e7d6beeb9fcc68e162
--- /dev/null
+++ b/pages/SyntaxCase/utsiOS.uvue
@@ -0,0 +1,8 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/SyntaxCase/utsiOS.vue b/pages/SyntaxCase/utsiOS.vue
new file mode 100644
index 0000000000000000000000000000000000000000..02409e35d24cc6426e4ce2e7d6beeb9fcc68e162
--- /dev/null
+++ b/pages/SyntaxCase/utsiOS.vue
@@ -0,0 +1,8 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/advance/advance.vue b/pages/advance/advance.vue
index c6c76a1adce9b8c2504a4a2a2bc0f98ef420b63f..52052b31c51a127c2712953cfef6fc8de2662688 100644
--- a/pages/advance/advance.vue
+++ b/pages/advance/advance.vue
@@ -61,14 +61,32 @@
}, {
name: "参数传递示例",
url: "SyntaxCase/paramTest"
- }, {
- name: "日志打印示例",
- url: "SyntaxCase/consoleTest"
},{
name: "实例测试示例",
url: "SyntaxCase/instanceTest"
}]
},
+ {
+ name: "日志打印",
+ open: false,
+ pages: [{
+ name: "console示例",
+ url: "SyntaxCase/consoleTest"
+ }]
+ },
+ {
+ name: "平台代码示例",
+ open: false,
+ pages: [{
+ name: "UTSAndroid",
+ url: "SyntaxCase/utsAndroid"
+ }, {
+ name: "UTSiOS",
+ url: "SyntaxCase/utsiOS"
+ }]
+ },
+
+
],
arrowUpIcon: '/static/icons/arrow-up.png',
arrowDownIcon: '/static/icons/arrow-down.png',
diff --git a/uni_modules/uts-tests/utssdk/Matchers.uts b/uni_modules/uts-tests/utssdk/Matchers.uts
index d51e8f03974a44cc9ab548e7ece67609244d5f91..94b45f7fce9d76cbde202e95043918b1a2ae5b70 100644
--- a/uni_modules/uts-tests/utssdk/Matchers.uts
+++ b/uni_modules/uts-tests/utssdk/Matchers.uts
@@ -9,7 +9,7 @@ export class Matchers {
return
}
// #ifndef APP-IOS
- throw new Error(format(expected, this.actual))
+ // throw new Error(format(expected, this.actual))
// #endif
// #ifdef APP-IOS
NSException(name = NSExceptionName.internalInconsistencyException, reason = format(expected, this.actual)).raise()