diff --git a/graphic/graphicColorSpace/signature/openharmony_sx.p7b b/graphic/graphicColorSpace/signature/openharmony_sx.p7b index 7ffcdc78527c5c1aa24520ab7e913c5f47c703f0..ef13e2c296addc66ddb0610c65c2c6d4b4cf337d 100644 Binary files a/graphic/graphicColorSpace/signature/openharmony_sx.p7b and b/graphic/graphicColorSpace/signature/openharmony_sx.p7b differ diff --git a/graphic/windowstandard/signature/openharmony_sx.p7b b/graphic/windowstandard/signature/openharmony_sx.p7b index 6c0f124a79c8713f74f0b235c8946f2ecda32040..462c34cbec4a02c3ac8d911fee49cba3a7e9868c 100644 Binary files a/graphic/windowstandard/signature/openharmony_sx.p7b and b/graphic/windowstandard/signature/openharmony_sx.p7b differ diff --git a/graphic/windowstandard/src/main/config.json b/graphic/windowstandard/src/main/config.json index f4ccfe21de20feca8f4a39db0902d5d353d69815..2a5df980e9515b3864f95b132c19430e9b420359 100644 --- a/graphic/windowstandard/src/main/config.json +++ b/graphic/windowstandard/src/main/config.json @@ -16,8 +16,8 @@ "package": "com.test.window", "name": ".entry", "deviceType": [ - "tablet", - "default", + "tablet", + "default", "phone" ], "distro": { @@ -63,12 +63,6 @@ "launchType": "standard" } ], - "reqPermissions": [ - { - "name": "ohos.permission.CAPTURE_SCREEN", - "reason": "query download status" - } - ], "js": [ { "pages": [ diff --git a/graphic/windowstandard/src/main/js/test/window.test.js b/graphic/windowstandard/src/main/js/test/window.test.js index 7179178eb53de0c43242c0867a4932833ba2ce1f..29d017abd82920d2c370059d09edbc79bd4598f2 100644 --- a/graphic/windowstandard/src/main/js/test/window.test.js +++ b/graphic/windowstandard/src/main/js/test/window.test.js @@ -15,7 +15,6 @@ import app from '@system.app' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '@ohos/hypium' import window from '@ohos.window' -import screen from '@ohos.screen' import display from '@ohos.display' const TRUE_WINDOW = true; const avoidAreaType = 3; @@ -1922,56 +1921,7 @@ describe('window_test', function () { done(); }) }) - - /** - * @tc.number SUB_WMS_SETSCREENACTIVEMODE_JSAPI_001 - * @tc.name Test setScreenActiveMode_Test_001. - * @tc.desc To set the function of setting screen parameters - */ - it('setScreenActiveMode_Test_001', 0, async function (done) { - console.log('screenshotTest setScreenActiveModeTest1 begin'); - screen.getAllScreens().then(src => { - console.log('screenshotTest setScreenActiveModeTest1 getAllScreen src' + src); - expect(src[0] != null).assertTrue(); - let screenIndex = src[0]; - screenIndex.setScreenActiveMode(0).then(() => { - console.log('screenshotTest setScreenActiveModeTest1 setScreenActiveMode 0 success '); - expect(TRUE_WINDOW).assertTrue() - done(); - },(err) => { - console.log('screenshotTest setScreenActiveModeTest1 setScreenActiveMode 0 failed: err' + JSON.stringify(err)); - expect().assertFail(); - done(); - }) - }, (err) => { - console.log('screenshotTest setScreenActiveModeTest1 failed: err: ' + JSON.stringify(err)); - done(); - }) - }) - - /** - * @tc.number SUB_WMS_SETSCREENACTIVEMODE_JSAPI_002 - * @tc.name Test setScreenActiveMode_Test_002. - * @tc.desc To set the function of screen parameters to abnormal values. - */ - it('setScreenActiveMode_Test_002', 0, async function (done) { - console.log('screenshotTest setScreenActiveModeTest2 begin'); - screen.getAllScreens().then(src => { - console.log('screenshotTest setScreenActiveModeTest2 getAllScreen src' + src); - expect(src[0] != null).assertTrue(); - let screenIndex = src[0]; - screenIndex.setScreenActiveMode(-5).then(res => { - console.log('screenshotTest setScreenActiveModeTest2 setScreenActiveMode -5 res: ' + res); - expect().assertFail(); - done(); - },(err) => { - console.log('screenshotTest setScreenActiveModeTest2 setScreenActiveMode -5 failed: err' + JSON.stringify(err)); - expect(err.code).assertEqual(1400003); - done(); - }) - }) - }) - + /** * @tc.number SUB_WMS_ENUM_WINDOWSTAGEEVENTTYPE_JSAPI_001 * @tc.name Test enumWindowStageEventType_Test_001.