From de86269d951e896b2c568a2a86e474921a4126cc Mon Sep 17 00:00:00 2001 From: guoenquan Date: Tue, 10 Jan 2023 16:55:52 +0800 Subject: [PATCH] modify webGL of question checkcode Signed-off-by: guoenquan --- graphic/webGL/src/main/js/TestAbility/app.js | 15 +++++++++++++++ .../src/main/js/TestAbility/pages/index/index.js | 14 ++++++++++++++ graphic/webGL/src/main/js/test/WebGL.test04.js | 4 ++-- 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/graphic/webGL/src/main/js/TestAbility/app.js b/graphic/webGL/src/main/js/TestAbility/app.js index eb6fa275e..bc7aee0a9 100644 --- a/graphic/webGL/src/main/js/TestAbility/app.js +++ b/graphic/webGL/src/main/js/TestAbility/app.js @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export default { onCreate() { console.info('TestApplication onCreate'); diff --git a/graphic/webGL/src/main/js/TestAbility/pages/index/index.js b/graphic/webGL/src/main/js/TestAbility/pages/index/index.js index 3ff367da3..5a8af71d5 100644 --- a/graphic/webGL/src/main/js/TestAbility/pages/index/index.js +++ b/graphic/webGL/src/main/js/TestAbility/pages/index/index.js @@ -1,3 +1,17 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import { Hypium } from '@ohos/hypium' diff --git a/graphic/webGL/src/main/js/test/WebGL.test04.js b/graphic/webGL/src/main/js/test/WebGL.test04.js index 0103b8731..0de1efc37 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test04.js +++ b/graphic/webGL/src/main/js/test/WebGL.test04.js @@ -1124,10 +1124,10 @@ export default function webgl1Test_webgl4() { /** * @tc.number GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0347 - * @tc.name testTexSubImage2D8 + * @tc.name testTexSubImage2D_8 * @tc.desc Test texSubImage2D. */ - it('testTexSubImage2D8', 0, async function (done) { + it('testTexSubImage2D_8', 0, async function (done) { //initContext(); console.info('jsWebGL2 texSubImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); -- GitLab