diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index eae83d6fd83c391515a4f90751cf239d5ac55ebc..2111f4cb9c0f0edf1df87f3fa64f5b24823e26f1 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -6,14 +6,15 @@
>
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/uni_modules/uts-nativepage/utssdk/app-android/index.uts b/uni_modules/uts-nativepage/utssdk/app-android/index.uts
index 5820a8c23992de108a62ba31d43aeca0ba49f9cd..386d6e5d67728e60b60cf15f0f33c79f7e2b2f09 100644
--- a/uni_modules/uts-nativepage/utssdk/app-android/index.uts
+++ b/uni_modules/uts-nativepage/utssdk/app-android/index.uts
@@ -194,8 +194,9 @@ class RootActivityStartListener extends OnClickListener{
}
override onClick(v?: View):void{
- let intent = Intent("uni.UNI70BE9D0.RootPackageActivity")
- host.startActivity(intent)
+ // 需要开发者替换成自己的包名,并且与AndroidManifest.xml 中保持一致
+ let intent = Intent("uni.UNI70BE9D0.RootPackageActivity")
+ host.startActivity(intent)
}
}
diff --git a/uni_modules/uts-tests/utssdk/Date.uts b/uni_modules/uts-tests/utssdk/Date.uts
index b5daea026df8d07fb9a79d163ca34e948650a4f7..5df20cdbcd6d271a68676dcc01be80452bd25d69 100644
--- a/uni_modules/uts-tests/utssdk/Date.uts
+++ b/uni_modules/uts-tests/utssdk/Date.uts
@@ -9,7 +9,16 @@ export function testDate() : Result {
const secondsElapsed = Math.floor(millis / 1000)
expect(secondsElapsed).toEqual(2);
}, 2000)
- })
+ })
+ test('new Date', () => {
+ let date1 = new Date('1992-02-02');
+ console.log("1111",date1.getTime())
+ expect(date1.getTime()).toEqual(696988800000);
+ let date2 = new Date('1992-2-02');
+ console.log("2222",date2.getTime())
+ expect(date2.getTime()).toEqual(696960000000);
+ })
+
test('valueOf', () => {
const date1 = new Date('December 17, 1995 03:24:00');
expect(date1.valueOf()).toEqual(819141840000);
@@ -104,7 +113,8 @@ export function testDate() : Result {
expect(new Date(2016, 6, 6, 13, 59, 59, 999).getHours()).toEqual(13);
// subsequent millisecond
expect(new Date(2016, 6, 6, 13, 59, 59, 1000).getHours()).toEqual(14);
- })
+ })
+
test('getMilliseconds', () => {
const moonLanding = new Date('July 20, 69 00:20:18');
moonLanding.setMilliseconds(123);
diff --git a/uni_modules/uts-tests/utssdk/Number.uts b/uni_modules/uts-tests/utssdk/Number.uts
index 0e1a0fb0d34f10d9df9b39e5aaa7835dd85a1318..2dca1ed7eb903e861fbc6024e1530a7d872363c5 100644
--- a/uni_modules/uts-tests/utssdk/Number.uts
+++ b/uni_modules/uts-tests/utssdk/Number.uts
@@ -84,6 +84,7 @@ export function testNumber() : Result {
expect((6).toString(2)).toEqual("110");
expect((254).toString(16)).toEqual("fe");
expect((-10).toString(2)).toEqual("-1010");
+
expect((-0xff).toString(2)).toEqual("-11111111");
})