diff --git a/graphic/graphicColorSpace/entry/src/main/ets/test/colorSpaceManager.test.ets b/graphic/graphicColorSpace/entry/src/main/ets/test/colorSpaceManager.test.ets index f8fc1d1d6eec45a506dbe1901879706a5e5a6660..a0e97fb28a7442f06e89b00c7a02d2476720973b 100644 --- a/graphic/graphicColorSpace/entry/src/main/ets/test/colorSpaceManager.test.ets +++ b/graphic/graphicColorSpace/entry/src/main/ets/test/colorSpaceManager.test.ets @@ -12,9 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -// @ts-nocheck -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "deccjsunit/index" +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium" import colorSpaceManager from '@ohos.graphics.colorSpaceManager'; export default function colorSpaceManagerTest(context, windowStage, abilityStorage) { @@ -93,7 +91,7 @@ export default function colorSpaceManagerTest(context, windowStage, abilityStora done(); } catch (err) { console.log('test enum value of ColorSpace Manager not support error ' + JSON.stringify(err)); - expect(err.code == 18600001).assertTrue(); + expect(err.code).assertEqual(18600001); done(); } }) diff --git a/graphic/windowstandard/src/main/js/test/window.test.js b/graphic/windowstandard/src/main/js/test/window.test.js index 3d14082f3f74c010ce0b9bd532c7c8448ae38a6b..0ed5232b93060512b017b6daa06bb0e7b65d6167 100644 --- a/graphic/windowstandard/src/main/js/test/window.test.js +++ b/graphic/windowstandard/src/main/js/test/window.test.js @@ -2955,6 +2955,15 @@ describe('window_test', function () { expect(0).assertEqual(window.Orientation.UNSPECIFIED); expect(1).assertEqual(window.Orientation.PORTRAIT); expect(2).assertEqual(window.Orientation.LANDSCAPE); + expect(3).assertEqual(window.Orientation.PORTRAIT_INVERTED); + expect(4).assertEqual(window.Orientation.LANDSCAPE_INVERTED); + expect(5).assertEqual(window.Orientation.AUTO_ROTATION); + expect(6).assertEqual(window.Orientation.AUTO_ROTATION_PORTRAIT); + expect(7).assertEqual(window.Orientation.AUTO_ROTATION_LANDSCAPE); + expect(8).assertEqual(window.Orientation.AUTO_ROTATION_RESTRICTED); + expect(9).assertEqual(window.Orientation.AUTO_ROTATION_PORTRAIT_RESTRICTED); + expect(10).assertEqual(window.Orientation.AUTO_ROTATION_LANDSCAPE_RESTRICTED); + expect(11).assertEqual(window.Orientation.LOCKED); done(); } catch (err) { console.info('test enum value of windowStageEventType error ' + JSON.stringify(err));