From 61722e97d8d28cc57e545350b3aea5e69c8d2fb8 Mon Sep 17 00:00:00 2001 From: tianwenzhe Date: Sat, 27 May 2023 14:43:41 +0800 Subject: [PATCH] delete rongyu Signed-off-by: tian-wenzhe411 --- .../main/js/test/FeatureAbilityJsunit.test.js | 3 - .../src/main/js/test/OsAccountGet.test.js | 19 - .../src/main/js/test/OsAccountQuery.test.js | 20 - .../default/test/commonComponentJsApi.test.js | 21 - .../src/main/js/default/test/divProps.test.js | 64 --- .../main/js/default/test/dividerProps.test.js | 64 --- .../main/js/default/test/inputProps.test.js | 64 --- .../main/js/default/test/labelProps.test.js | 64 --- .../main/js/default/test/optionProps.test.js | 64 --- .../main/js/default/test/pickerProps.test.js | 64 --- .../js/default/test/pickerViewProps.test.js | 64 --- .../default/test/pickerViewProps2111.test.js | 28 -- .../default/test/pickerViewProps2112.test.js | 27 -- .../default/test/pickerViewProps2113.test.js | 26 -- .../default/test/pickerViewProps212.test.js | 28 +- .../js/default/test/pickerViewProps42.test.js | 38 -- .../main/js/default/test/pieceProps.test.js | 38 -- .../js/default/test/progressProps.test.js | 64 --- .../main/js/default/test/qrcodeProps.test.js | 67 --- .../main/js/default/test/ratingProps.test.js | 64 --- .../main/js/default/test/refreshProps.test.js | 38 -- .../main/js/default/test/selectProps.test.js | 64 --- .../main/js/default/test/sliderProps.test.js | 64 --- .../main/js/default/test/stackProps.test.js | 38 -- .../js/default/test/stepperItemProps.test.js | 64 --- .../main/js/default/test/stepperProps.test.js | 64 --- .../main/js/default/test/swiperProps.test.js | 38 -- .../main/js/default/test/textProps.test.js | 38 -- .../js/default/test/toolbarItemProps.test.js | 64 --- .../main/js/default/test/toolbarProps.test.js | 38 -- .../main/js/default/test/videoProps.test.js | 217 ---------- .../src/main/ets/test/ThreadWorker.test.js | 1 - .../src/main/ets/test/WorkerTest.test.js | 1 - .../main/js/test/StorageHelperJsunit.test.js | 21 - .../src/main/ets/MainAbility/MainAbility.ts | 3 - .../webGL/src/main/js/test/WebGL.test01.js | 392 +++++++++--------- .../webGL/src/main/js/test/WebGL.test02.js | 329 +++++++-------- .../webGL/src/main/js/test/WebGL.test03.js | 204 +++++---- .../webGL/src/main/js/test/WebGL.test04.js | 190 ++++----- .../webGL/src/main/js/test/WebGL.test05.js | 166 ++++---- .../webGL/src/main/js/test/WebGL.test06.js | 294 ++++++------- .../webGL/src/main/js/test/WebGL.test07.js | 292 ++++++------- .../webGL/src/main/js/test/WebGL.test08.js | 366 ++++++++-------- .../webGL/src/main/js/test/WebGL.test09.js | 252 +++++------ .../webGL/src/main/js/test/WebGL.test10.js | 220 +++++----- .../webGL/src/main/js/test/WebGL.test11.js | 312 +++++++------- .../webGL/src/main/js/test/WebGL.test12.js | 276 ++++++------ .../webGL/src/main/js/test/WebGL.test13.js | 282 ++++++------- .../webGL/src/main/js/test/WebGL.test14.js | 78 ++-- .../webGL/src/main/js/test/WebGL.test15.js | 11 +- .../media_js_standard/AVPlayerTestBase.js | 2 - .../ets/test/AVPlayerStabilityTest.test.js | 28 -- .../src/main/ets/MainAbility/MainAbility.ts | 27 -- .../src/main/ets/pages/model/AudioRenderer.ts | 16 - .../src/main/ets/pages/model/CameraService.ts | 10 - 55 files changed, 1807 insertions(+), 3584 deletions(-) diff --git a/ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js b/ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js index 5d0b0b188..b0f1b31f9 100644 --- a/ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js +++ b/ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js @@ -896,13 +896,10 @@ describe('ActsFeatureAbilityTest', function () { expect(info.name).assertEqual("com.example.actsfeatureabilitytest"); expect(info.description).assertEqual("descriptionTest"); - // expect(info.descriptionId).assertEqual(0); //create by DevEco when building HAP. expect(info.systemApp).assertEqual(true); expect(info.enabled).assertEqual(true); expect(info.label).assertEqual("$string:app_name"); - // expect(info.labelId).assertEqual(0); //create by DevEco when building HAP. expect(info.icon).assertEqual("$media:icon"); - // expect(info.iconId).assertEqual(0); //create by DevEco when building HAP. expect(info.process).assertEqual("com.example.actsfeatureabilitytest"); expect(info.supportedModes).assertEqual(0); expect(info.moduleInfos[0].moduleName).assertEqual("entry"); diff --git a/account/osaccount/actsosaccountthirdpartytest/src/main/js/test/OsAccountGet.test.js b/account/osaccount/actsosaccountthirdpartytest/src/main/js/test/OsAccountGet.test.js index e8b7bdf38..017546f11 100644 --- a/account/osaccount/actsosaccountthirdpartytest/src/main/js/test/OsAccountGet.test.js +++ b/account/osaccount/actsosaccountthirdpartytest/src/main/js/test/OsAccountGet.test.js @@ -434,12 +434,6 @@ export default function ActsOsAccountThirdPartyTest_third_2() { localIdFir = data.localId; expect(err).assertEqual(null); expect(data.localName).assertEqual("osAccountNameIdSerialE"); - // osAccountManager.createOsAccount("osAccountIdSerialF", osaccount.OsAccountType.NORMAL, (err, data)=>{ - // console.debug("====>create second os account err: " + JSON.stringify(err)); - // console.debug("====>create second os account OsAccountInfo: " + JSON.stringify(data)); - // localIdSec = data.localId; - // expect(err).assertEqual(null); - // expect(data.localName).assertEqual("osAccountIdSerialF"); osAccountManager.getCreatedOsAccountsCount((err, count)=>{ console.debug("====>obtains the number of all os accounts created err:" + JSON.stringify(err)); console.debug("====>obtains the number of all os accounts created count:" + count); @@ -453,13 +447,7 @@ export default function ActsOsAccountThirdPartyTest_third_2() { console.debug("====>obtains the number accounts created err:" + JSON.stringify(err)); console.debug("====>obtains the number accounts created data:" + data); expect(err).assertEqual(null); - // data = data; expect(data).assertEqual(obtainCount); - // osAccountManager.removeOsAccount(localIdSec, (err)=>{ - // console.debug("====>remove localId: " + localIdSec + " err:" + JSON.stringify(err)); - // expect(err).assertEqual(null); - - // }) console.debug("====>ActsOsAccountGetCount_0100 end===="); done(); }) @@ -485,10 +473,6 @@ export default function ActsOsAccountThirdPartyTest_third_2() { console.debug("====>create first os account OsAccountInfo: " + JSON.stringify(osAccountFir)); var localIdFir = osAccountFir.localId; expect(osAccountFir.localName).assertEqual("osAccountIdSerialG"); - // var osAccountSec = await osAccountManager.createOsAccount("osAccountIdSerialH", osaccount.OsAccountType.NORMAL); - // console.debug("====>create second os account OsAccountInfo: " + JSON.stringify(osAccountSec)); - // var localIdSec = osAccountSec.localId; - // expect(osAccountSec.localName).assertEqual("osAccountIdSerialH"); var countFir = await osAccountManager.getCreatedOsAccountsCount(); console.debug("====>obtains the number of all os accounts created count:" + countFir); countFir = countFir - 1; @@ -497,10 +481,7 @@ export default function ActsOsAccountThirdPartyTest_third_2() { console.debug("====>remove localId: " + localIdFir); var countSec = await osAccountManager.getCreatedOsAccountsCount(); console.debug("====>obtains the number accounts created count:" + countSec); - // countSec = countSec ; expect(countSec).assertEqual(obtainCount); - // await osAccountManager.removeOsAccount(localIdSec); - // console.debug("====>remove localId: " + localIdSec); console.debug("====>ActsOsAccountGetCount_0200 end===="); done(); }) diff --git a/account/osaccount/actsosaccountthirdpartytest/src/main/js/test/OsAccountQuery.test.js b/account/osaccount/actsosaccountthirdpartytest/src/main/js/test/OsAccountQuery.test.js index add053c45..8bc9784f0 100644 --- a/account/osaccount/actsosaccountthirdpartytest/src/main/js/test/OsAccountQuery.test.js +++ b/account/osaccount/actsosaccountthirdpartytest/src/main/js/test/OsAccountQuery.test.js @@ -436,12 +436,6 @@ export default function ActsOsAccountThirdPartyTest_third_4() { localIdFir = data.localId; expect(err).assertEqual(null); expect(data.localName).assertEqual("osAccountNameIdSerialE"); - // osAccountManager.createOsAccount("osAccountIdSerialF", osaccount.OsAccountType.NORMAL, (err, data)=>{ - // console.debug("====>create second os account err: " + JSON.stringify(err)); - // console.debug("====>create second os account OsAccountInfo: " + JSON.stringify(data)); - // localIdSec = data.localId; - // expect(err).assertEqual(null); - // expect(data.localName).assertEqual("osAccountIdSerialF"); osAccountManager.getOsAccountCount((err, count)=>{ console.debug("====>obtains the number of all os accounts created err:" + JSON.stringify(err)); console.debug("====>obtains the number of all os accounts created count:" + count); @@ -455,11 +449,7 @@ export default function ActsOsAccountThirdPartyTest_third_4() { console.debug("====>obtains the number accounts created err:" + JSON.stringify(err)); console.debug("====>obtains the number accounts created data:" + data); expect(err).assertEqual(null); - // data = data - 1; expect(data).assertEqual(obtainCount); - // osAccountManager.removeOsAccount(localIdSec, (err)=>{ - // console.debug("====>remove localId: " + localIdSec + " err:" + JSON.stringify(err)); - // expect(err).assertEqual(null); console.debug("====>ActsOsAccountQueryCounts_0100 end===="); done(); // }) @@ -486,22 +476,12 @@ export default function ActsOsAccountThirdPartyTest_third_4() { console.debug("====>create first os account OsAccountInfo: " + JSON.stringify(osAccountFir)); var localIdFir = osAccountFir.localId; expect(osAccountFir.localName).assertEqual("osAccountIdSerialG"); - // var osAccountSec = await osAccountManager.createOsAccount("osAccountIdSerialH", osaccount.OsAccountType.NORMAL); - // console.debug("====>create second os account OsAccountInfo: " + JSON.stringify(osAccountSec)); - // var localIdSec = osAccountSec.localId; - // expect(osAccountSec.localName).assertEqual("osAccountIdSerialH"); var countFir = await osAccountManager.getOsAccountCount(); console.debug("====>obtains the number of all os accounts created count:" + countFir); countFir = countFir - 1; expect(countFir).assertEqual(obtainCount); await osAccountManager.removeOsAccount(localIdFir); console.debug("====>remove localId: " + localIdFir); - // var countSec = await osAccountManager.getOsAccountCount(); - // console.debug("====>obtains the number accounts created count:" + countSec); - // countSec = countSec - 1; - // expect(countSec).assertEqual(obtainCount); - // await osAccountManager.removeOsAccount(localIdSec); - // console.debug("====>remove localId: " + localIdSec); console.debug("====>ActsOsAccountQueryCounts_0200 end===="); done(); }) diff --git a/arkui/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js b/arkui/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js index 9261c0fbe..d68100db0 100644 --- a/arkui/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js +++ b/arkui/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js @@ -1172,27 +1172,6 @@ describe('aceJsTest', function () { expect("pages/obj_Path2D/router/").assertEqual(pages.path); done(); }); - // /** - // * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - // * @tc.name testPickerViewComponent - // * @tc.desc ACE - // */ - // it('testPickerViewComponent', 0, async function (done) { - // let result; - // let options = { - // uri: 'pages/pickerView/router2/index' - // } - // try { - // result = router.push(options) - // } catch (err) { - // result = err - // } - // await sleep(5000) - // let pages = router.getState(); - // expect("pages/pickerView/router2/").assertEqual(pages.path); - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 diff --git a/arkui/ace_standard/src/main/js/default/test/divProps.test.js b/arkui/ace_standard/src/main/js/default/test/divProps.test.js index 4feb100df..7947f5e5d 100644 --- a/arkui/ace_standard/src/main/js/default/test/divProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/divProps.test.js @@ -135,32 +135,6 @@ describe('divPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivStyleProp - * @tc.desc ACEs - */ -// it('testDivStyleProp', 0, async function (done) { -// console.info('testDivStyleProp START'); -// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('div') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[divProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[divProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[divProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testDivRefProp @@ -587,44 +561,6 @@ describe('divPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivIfPropFalse - * @tc.desc ACE - */ - // it('testDivIfPropFalse', 0, async function (done) { - // console.info('testDivIfPropFalse START'); - // console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('div') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivIfPropNone - * @tc.desc ACE - */ - // it('testDivIfPropNone', 0, async function (done) { - // console.info('testDivIfPropNone START'); - // console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('div') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testDivShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/dividerProps.test.js b/arkui/ace_standard/src/main/js/default/test/dividerProps.test.js index 18862b923..1cd789fda 100644 --- a/arkui/ace_standard/src/main/js/default/test/dividerProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/dividerProps.test.js @@ -135,32 +135,6 @@ describe('dividerPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDividerStyleProp - * @tc.desc ACEs - */ -// it('testDividerStyleProp', 0, async function (done) { -// console.info('testDividerStyleProp START'); -// console.info("[dividerProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[dividerProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[dividerProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('divider') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[dividerProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[dividerProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[dividerProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testDividerRefProp @@ -473,44 +447,6 @@ describe('dividerPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDividerIfPropFalse - * @tc.desc ACE - */ - // it('testDividerIfPropFalse', 0, async function (done) { - // console.info('testDividerIfPropFalse START'); - // console.info("[dividerProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[dividerProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[dividerProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('divider') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDividerIfPropNone - * @tc.desc ACE - */ - // it('testDividerIfPropNone', 0, async function (done) { - // console.info('testDividerIfPropNone START'); - // console.info("[dividerProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[dividerProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[dividerProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('divider') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testDividerShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/inputProps.test.js b/arkui/ace_standard/src/main/js/default/test/inputProps.test.js index cd5f8f83b..b3aa647bf 100644 --- a/arkui/ace_standard/src/main/js/default/test/inputProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/inputProps.test.js @@ -134,32 +134,6 @@ describe('inputPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testInputStyleProp - * @tc.desc ACEs - */ -// it('testInputStyleProp', 0, async function (done) { -// console.info('testInputStyleProp START'); -// console.info("[inputProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[inputProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[inputProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('input') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[inputProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[inputProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[inputProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testInputRefProp @@ -586,44 +560,6 @@ describe('inputPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testInputIfPropFalse - * @tc.desc ACE - */ - // it('testInputIfPropFalse', 0, async function (done) { - // console.info('testInputIfPropFalse START'); - // console.info("[inputProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[inputProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[inputProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('input') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testInputIfPropNone - * @tc.desc ACE - */ - // it('testInputIfPropNone', 0, async function (done) { - // console.info('testInputIfPropNone START'); - // console.info("[inputProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[inputProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[inputProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('input') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testInputShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/labelProps.test.js b/arkui/ace_standard/src/main/js/default/test/labelProps.test.js index b3e142ab7..ad8407011 100644 --- a/arkui/ace_standard/src/main/js/default/test/labelProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/labelProps.test.js @@ -135,32 +135,6 @@ describe('labelPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testLabelStyleProp - * @tc.desc ACEs - */ -// it('testLabelStyleProp', 0, async function (done) { -// console.info('testLabelStyleProp START'); -// console.info("[labelProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[labelProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[labelProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('label') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[labelProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[labelProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[labelProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testLabelRefProp @@ -587,44 +561,6 @@ describe('labelPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testLabelIfPropFalse - * @tc.desc ACE - */ - // it('testLabelIfPropFalse', 0, async function (done) { - // console.info('testLabelIfPropFalse START'); - // console.info("[labelProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[labelProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[labelProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('label') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testLabelIfPropNone - * @tc.desc ACE - */ - // it('testLabelIfPropNone', 0, async function (done) { - // console.info('testLabelIfPropNone START'); - // console.info("[labelProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[labelProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[labelProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('label') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testLabelShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/optionProps.test.js b/arkui/ace_standard/src/main/js/default/test/optionProps.test.js index a79f5fe05..1202380c1 100644 --- a/arkui/ace_standard/src/main/js/default/test/optionProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/optionProps.test.js @@ -135,32 +135,6 @@ describe('optionPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testOptionStyleProp - * @tc.desc ACEs - */ -// it('testOptionStyleProp', 0, async function (done) { -// console.info('testOptionStyleProp START'); -// console.info("[optionProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[optionProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[optionProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('option') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[optionProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[optionProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[optionProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testOptionRefProp @@ -587,44 +561,6 @@ describe('optionPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testOptionIfPropFalse - * @tc.desc ACE - */ - // it('testOptionIfPropFalse', 0, async function (done) { - // console.info('testOptionIfPropFalse START'); - // console.info("[optionProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[optionProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[optionProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('option') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testOptionIfPropNone - * @tc.desc ACE - */ - // it('testOptionIfPropNone', 0, async function (done) { - // console.info('testOptionIfPropNone START'); - // console.info("[optionProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[optionProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[optionProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('option') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testOptionShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/pickerProps.test.js b/arkui/ace_standard/src/main/js/default/test/pickerProps.test.js index e3b2785a2..0d596cd84 100644 --- a/arkui/ace_standard/src/main/js/default/test/pickerProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/pickerProps.test.js @@ -135,32 +135,6 @@ describe('pickerPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testPickerStyleProp - * @tc.desc ACEs - */ -// it('testPickerStyleProp', 0, async function (done) { -// console.info('testPickerStyleProp START'); -// console.info("[pickerProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[pickerProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[pickerProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('picker') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[pickerProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[pickerProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[pickerProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testPickerRefProp @@ -587,44 +561,6 @@ describe('pickerPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testPickerIfPropFalse - * @tc.desc ACE - */ - // it('testPickerIfPropFalse', 0, async function (done) { - // console.info('testPickerIfPropFalse START'); - // console.info("[pickerProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[pickerProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[pickerProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('picker') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testPickerIfPropNone - * @tc.desc ACE - */ - // it('testPickerIfPropNone', 0, async function (done) { - // console.info('testPickerIfPropNone START'); - // console.info("[pickerProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[pickerProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[pickerProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('picker') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testPickerShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/pickerViewProps.test.js b/arkui/ace_standard/src/main/js/default/test/pickerViewProps.test.js index f2ea44f68..2cec1a25d 100644 --- a/arkui/ace_standard/src/main/js/default/test/pickerViewProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/pickerViewProps.test.js @@ -135,32 +135,6 @@ done(); }); -// /** -// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 -// * @tc.name testPickerViewStyleProp -// * @tc.desc ACEs -// */ -// it('testPickerViewStyleProp', 0, async function (done) { -// console.info('testPickerViewStyleProp START'); -// console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('picker-view') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[pickerViewProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[pickerViewProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[pickerViewProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testPickerViewRefProp @@ -587,44 +561,6 @@ done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testPickerViewIfPropFalse - * @tc.desc ACE - */ - /* it('testPickerViewIfPropFalse', 0, async function (done) { - console.info('testPickerViewIfPropFalse START'); - console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - - let obj = JSON.parse(globalThis.value.ifPropFalse); - console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); - console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - - expect(obj.$type).assertEqual('picker-view') - expect(obj.$attrs.id).assertEqual('ifPropFalse') - expect(obj.$attrs.if).assertEqual(false) - done(); - }); */ - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testPickerViewIfPropNone - * @tc.desc ACE - */ - /* it('testPickerViewIfPropNone', 0, async function (done) { - console.info('testPickerViewIfPropNone START'); - console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - - let obj = JSON.parse(globalThis.value.ifPropNone); - console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); - console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - - expect(obj.$type).assertEqual('picker-view') - expect(obj.$attrs.id).assertEqual('ifPropNone') - expect(obj.$attrs.if).assertEqual(false) - done(); - }); */ - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testPickerViewShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/pickerViewProps2111.test.js b/arkui/ace_standard/src/main/js/default/test/pickerViewProps2111.test.js index c75619b8d..40643c1d6 100644 --- a/arkui/ace_standard/src/main/js/default/test/pickerViewProps2111.test.js +++ b/arkui/ace_standard/src/main/js/default/test/pickerViewProps2111.test.js @@ -95,33 +95,5 @@ expect(obj.$attrs.id).assertEqual('idProp') done(); }); - - - -// /** -// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 -// * @tc.name testPickerViewStyleProp -// * @tc.desc ACEs -// */ -// it('testPickerViewStyleProp', 0, async function (done) { -// console.info('testPickerViewStyleProp START'); -// console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('picker-view') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[pickerViewProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[pickerViewProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[pickerViewProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); }); diff --git a/arkui/ace_standard/src/main/js/default/test/pickerViewProps2112.test.js b/arkui/ace_standard/src/main/js/default/test/pickerViewProps2112.test.js index 9be65a285..a84a4e697 100644 --- a/arkui/ace_standard/src/main/js/default/test/pickerViewProps2112.test.js +++ b/arkui/ace_standard/src/main/js/default/test/pickerViewProps2112.test.js @@ -97,31 +97,4 @@ done(); }); - -// /** -// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 -// * @tc.name testPickerViewStyleProp -// * @tc.desc ACEs -// */ -// it('testPickerViewStyleProp', 0, async function (done) { -// console.info('testPickerViewStyleProp START'); -// console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('picker-view') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[pickerViewProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[pickerViewProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[pickerViewProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - }); diff --git a/arkui/ace_standard/src/main/js/default/test/pickerViewProps2113.test.js b/arkui/ace_standard/src/main/js/default/test/pickerViewProps2113.test.js index ec2b2dd40..337d2ff1a 100644 --- a/arkui/ace_standard/src/main/js/default/test/pickerViewProps2113.test.js +++ b/arkui/ace_standard/src/main/js/default/test/pickerViewProps2113.test.js @@ -96,31 +96,5 @@ console.info("[pickerViewProps] get className value is: " + JSON.stringify(obj.$attrs.className)); done(); }); - -// /** -// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 -// * @tc.name testPickerViewStyleProp -// * @tc.desc ACEs -// */ -// it('testPickerViewStyleProp', 0, async function (done) { -// console.info('testPickerViewStyleProp START'); -// console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('picker-view') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[pickerViewProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[pickerViewProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[pickerViewProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); }); diff --git a/arkui/ace_standard/src/main/js/default/test/pickerViewProps212.test.js b/arkui/ace_standard/src/main/js/default/test/pickerViewProps212.test.js index 1a320642a..e304154c2 100644 --- a/arkui/ace_standard/src/main/js/default/test/pickerViewProps212.test.js +++ b/arkui/ace_standard/src/main/js/default/test/pickerViewProps212.test.js @@ -77,33 +77,7 @@ await backToIndex() await sleep(1000) }) - -// /** -// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 -// * @tc.name testPickerViewStyleProp -// * @tc.desc ACEs -// */ -// it('testPickerViewStyleProp', 0, async function (done) { -// console.info('testPickerViewStyleProp START'); -// console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('picker-view') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[pickerViewProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[pickerViewProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[pickerViewProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - + /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testPickerViewRefProp diff --git a/arkui/ace_standard/src/main/js/default/test/pickerViewProps42.test.js b/arkui/ace_standard/src/main/js/default/test/pickerViewProps42.test.js index ede33441a..7b60b084a 100644 --- a/arkui/ace_standard/src/main/js/default/test/pickerViewProps42.test.js +++ b/arkui/ace_standard/src/main/js/default/test/pickerViewProps42.test.js @@ -157,45 +157,7 @@ console.info("[pickerViewProps] get for value is: " + JSON.stringify(obj.$attrs.if)); done(); }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testPickerViewIfPropFalse - * @tc.desc ACE - */ - /* it('testPickerViewIfPropFalse', 0, async function (done) { - console.info('testPickerViewIfPropFalse START'); - console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - - let obj = JSON.parse(globalThis.value.ifPropFalse); - console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); - console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - - expect(obj.$type).assertEqual('picker-view') - expect(obj.$attrs.id).assertEqual('ifPropFalse') - expect(obj.$attrs.if).assertEqual(false) - done(); - }); */ - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testPickerViewIfPropNone - * @tc.desc ACE - */ - /* it('testPickerViewIfPropNone', 0, async function (done) { - console.info('testPickerViewIfPropNone START'); - console.info("[pickerViewProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - - let obj = JSON.parse(globalThis.value.ifPropNone); - console.info("[pickerViewProps] get inspector value is: " + JSON.stringify(obj)); - console.info("[pickerViewProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - - expect(obj.$type).assertEqual('picker-view') - expect(obj.$attrs.id).assertEqual('ifPropNone') - expect(obj.$attrs.if).assertEqual(false) - done(); - }); */ - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testPickerViewShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/pieceProps.test.js b/arkui/ace_standard/src/main/js/default/test/pieceProps.test.js index 231c6205a..d96c02c55 100644 --- a/arkui/ace_standard/src/main/js/default/test/pieceProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/pieceProps.test.js @@ -561,44 +561,6 @@ describe('piecePropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testPieceIfPropFalse - * @tc.desc ACE - */ - // it('testPieceIfPropFalse', 0, async function (done) { - // console.info('testPieceIfPropFalse START'); - // console.info("[pieceProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[pieceProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[pieceProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('piece') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testPieceIfPropNone - * @tc.desc ACE - */ - // it('testPieceIfPropNone', 0, async function (done) { - // console.info('testPieceIfPropNone START'); - // console.info("[pieceProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[pieceProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[pieceProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('piece') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testPieceShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/progressProps.test.js b/arkui/ace_standard/src/main/js/default/test/progressProps.test.js index 0a43a9f8c..dd220e2b2 100644 --- a/arkui/ace_standard/src/main/js/default/test/progressProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/progressProps.test.js @@ -135,32 +135,6 @@ describe('progressPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testProgressStyleProp - * @tc.desc ACEs - */ - // it('testProgressStyleProp', 0, async function (done) { - // console.info('testProgressStyleProp START'); - // console.info("[progressProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.styleProp); - // console.info("[progressProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[progressProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('progress') - // expect(obj.$attrs.id).assertEqual('styleProp') - // expect(obj.$attrs.style).assertEqual(undefined) - // console.info("[progressProps] get style value is: " + JSON.stringify(obj.$attrs.style)); - // - // expect(obj.$styles.width).assertEqual(undefined); - // console.info("[progressProps] get style width value is: " + JSON.stringify(obj.$styles.width)); - // expect(obj.$styles.height).assertEqual(undefined); - // console.info("[progressProps] get style height value is: " + JSON.stringify(obj.$styles.height)); - // expect(obj.$styles.get('background-color')).assertEqual(undefined); - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testProgressRefProp @@ -587,44 +561,6 @@ describe('progressPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testProgressIfPropFalse - * @tc.desc ACE - */ - // it('testProgressIfPropFalse', 0, async function (done) { - // console.info('testProgressIfPropFalse START'); - // console.info("[progressProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[progressProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[progressProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('progress') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testProgressIfPropNone - * @tc.desc ACE - */ - // it('testProgressIfPropNone', 0, async function (done) { - // console.info('testProgressIfPropNone START'); - // console.info("[progressProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[progressProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[progressProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('progress') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testProgressShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/qrcodeProps.test.js b/arkui/ace_standard/src/main/js/default/test/qrcodeProps.test.js index 18dfc2671..57370f032 100644 --- a/arkui/ace_standard/src/main/js/default/test/qrcodeProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/qrcodeProps.test.js @@ -137,33 +137,6 @@ describe('qrcodePropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testQrcodeStyleProp - * @tc.desc ACEs - */ -// it('testQrcodeStyleProp', 0, async function (done) { -// console.info('testQrcodeStyleProp START'); -// console.info("[qrcodeProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[qrcodeProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[qrcodeProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('qrcode') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[qrcodeProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[qrcodeProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[qrcodeProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); - // expect(obj.$attrs.value).assertEqual('value') -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testQrcodeRefProp @@ -612,46 +585,6 @@ describe('qrcodePropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testQrcodeIfPropFalse - * @tc.desc ACE - */ - // it('testQrcodeIfPropFalse', 0, async function (done) { - // console.info('testQrcodeIfPropFalse START'); - // console.info("[qrcodeProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[qrcodeProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[qrcodeProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('qrcode') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // expect(obj.$attrs.value).assertEqual('value') - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testQrcodeIfPropNone - * @tc.desc ACE - */ - // it('testQrcodeIfPropNone', 0, async function (done) { - // console.info('testQrcodeIfPropNone START'); - // console.info("[qrcodeProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[qrcodeProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[qrcodeProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('qrcode') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // expect(obj.$attrs.value).assertEqual('value') - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testQrcodeShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/ratingProps.test.js b/arkui/ace_standard/src/main/js/default/test/ratingProps.test.js index 24791a9d4..668133390 100644 --- a/arkui/ace_standard/src/main/js/default/test/ratingProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/ratingProps.test.js @@ -134,32 +134,6 @@ describe('ratingPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testRatingStyleProp - * @tc.desc ACEs - */ -// it('testRatingStyleProp', 0, async function (done) { -// console.info('testRatingStyleProp START'); -// console.info("[ratingProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[ratingProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[ratingProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('rating') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[ratingProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[ratingProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[ratingProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testRatingRefProp @@ -586,44 +560,6 @@ describe('ratingPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testRatingIfPropFalse - * @tc.desc ACE - */ - // it('testRatingIfPropFalse', 0, async function (done) { - // console.info('testRatingIfPropFalse START'); - // console.info("[ratingProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[ratingProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[ratingProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('rating') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testRatingIfPropNone - * @tc.desc ACE - */ - // it('testRatingIfPropNone', 0, async function (done) { - // console.info('testRatingIfPropNone START'); - // console.info("[ratingProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[ratingProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[ratingProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('rating') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testRatingShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/refreshProps.test.js b/arkui/ace_standard/src/main/js/default/test/refreshProps.test.js index 5e2303966..e433602c9 100644 --- a/arkui/ace_standard/src/main/js/default/test/refreshProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/refreshProps.test.js @@ -560,44 +560,6 @@ describe('refreshPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testRefreshIfPropFalse - * @tc.desc ACE - */ - // it('testRefreshIfPropFalse', 0, async function (done) { - // console.info('testRefreshIfPropFalse START'); - // console.info("[refreshProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[refreshProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[refreshProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('refresh') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testRefreshIfPropNone - * @tc.desc ACE - */ - // it('testRefreshIfPropNone', 0, async function (done) { - // console.info('testRefreshIfPropNone START'); - // console.info("[refreshProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[refreshProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[refreshProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('refresh') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testRefreshShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/selectProps.test.js b/arkui/ace_standard/src/main/js/default/test/selectProps.test.js index 097d47694..2938538b6 100644 --- a/arkui/ace_standard/src/main/js/default/test/selectProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/selectProps.test.js @@ -134,32 +134,6 @@ describe('selectPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testSelectStyleProp - * @tc.desc ACEs - */ -// it('testSelectStyleProp', 0, async function (done) { -// console.info('testSelectStyleProp START'); -// console.info("[selectProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[selectProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[selectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('select') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[selectProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[selectProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[selectProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testSelectRefProp @@ -586,44 +560,6 @@ describe('selectPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testSelectIfPropFalse - * @tc.desc ACE - */ - // it('testSelectIfPropFalse', 0, async function (done) { - // console.info('testSelectIfPropFalse START'); - // console.info("[selectProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[selectProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[selectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('select') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testSelectIfPropNone - * @tc.desc ACE - */ - // it('testSelectIfPropNone', 0, async function (done) { - // console.info('testSelectIfPropNone START'); - // console.info("[selectProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[selectProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[selectProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('select') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testSelectShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/sliderProps.test.js b/arkui/ace_standard/src/main/js/default/test/sliderProps.test.js index 57d423fda..7ca8fd788 100644 --- a/arkui/ace_standard/src/main/js/default/test/sliderProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/sliderProps.test.js @@ -134,32 +134,6 @@ describe('sliderPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testSliderStyleProp - * @tc.desc ACEs - */ -// it('testSliderStyleProp', 0, async function (done) { -// console.info('testSliderStyleProp START'); -// console.info("[sliderProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[sliderProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[sliderProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('slider') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[sliderProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[sliderProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[sliderProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testSliderRefProp @@ -586,44 +560,6 @@ describe('sliderPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testSliderIfPropFalse - * @tc.desc ACE - */ - // it('testSliderIfPropFalse', 0, async function (done) { - // console.info('testSliderIfPropFalse START'); - // console.info("[sliderProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[sliderProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[sliderProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('slider') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testSliderIfPropNone - * @tc.desc ACE - */ - // it('testSliderIfPropNone', 0, async function (done) { - // console.info('testSliderIfPropNone START'); - // console.info("[sliderProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[sliderProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[sliderProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('slider') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testSliderShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/stackProps.test.js b/arkui/ace_standard/src/main/js/default/test/stackProps.test.js index a144abcb3..2c88d9ba8 100644 --- a/arkui/ace_standard/src/main/js/default/test/stackProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/stackProps.test.js @@ -560,44 +560,6 @@ describe('stackPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testStackIfPropFalse - * @tc.desc ACE - */ - // it('testStackIfPropFalse', 0, async function (done) { - // console.info('testStackIfPropFalse START'); - // console.info("[stackProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[stackProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[stackProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('stack') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testStackIfPropNone - * @tc.desc ACE - */ - // it('testStackIfPropNone', 0, async function (done) { - // console.info('testStackIfPropNone START'); - // console.info("[stackProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[stackProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[stackProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('stack') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testStackShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/stepperItemProps.test.js b/arkui/ace_standard/src/main/js/default/test/stepperItemProps.test.js index 9c820fde1..6cd1a73a3 100644 --- a/arkui/ace_standard/src/main/js/default/test/stepperItemProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/stepperItemProps.test.js @@ -135,32 +135,6 @@ describe('stepperItemPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testStepperStyleProp - * @tc.desc ACEs - */ -// it('testDivStyleProp', 0, async function (done) { -// console.info('testDivStyleProp START'); -// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('div') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[divProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[divProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[divProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testStepperItemRefProp @@ -587,44 +561,6 @@ describe('stepperItemPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testStepperIfPropFalse - * @tc.desc ACE - */ - // it('testDivIfPropFalse', 0, async function (done) { - // console.info('testDivIfPropFalse START'); - // console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('div') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivIfPropNone - * @tc.desc ACE - */ - // it('testDivIfPropNone', 0, async function (done) { - // console.info('testDivIfPropNone START'); - // console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('div') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testStepperItemShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/stepperProps.test.js b/arkui/ace_standard/src/main/js/default/test/stepperProps.test.js index 11415f33e..086e3cce9 100644 --- a/arkui/ace_standard/src/main/js/default/test/stepperProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/stepperProps.test.js @@ -135,32 +135,6 @@ describe('stepperPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testStepperStyleProp - * @tc.desc ACEs - */ -// it('testDivStyleProp', 0, async function (done) { -// console.info('testDivStyleProp START'); -// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('div') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[divProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[divProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[divProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testStepperRefProp @@ -587,44 +561,6 @@ describe('stepperPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testStepperIfPropFalse - * @tc.desc ACE - */ - // it('testDivIfPropFalse', 0, async function (done) { - // console.info('testDivIfPropFalse START'); - // console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('div') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivIfPropNone - * @tc.desc ACE - */ - // it('testDivIfPropNone', 0, async function (done) { - // console.info('testDivIfPropNone START'); - // console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('div') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testStepperShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/swiperProps.test.js b/arkui/ace_standard/src/main/js/default/test/swiperProps.test.js index 001175f98..642c68369 100644 --- a/arkui/ace_standard/src/main/js/default/test/swiperProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/swiperProps.test.js @@ -561,44 +561,6 @@ describe('swiperPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testSwiperIfPropFalse - * @tc.desc ACE - */ - // it('testSwiperIfPropFalse', 0, async function (done) { - // console.info('testSwiperIfPropFalse START'); - // console.info("[swiperProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[swiperProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[swiperProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('swiper') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testSwiperIfPropNone - * @tc.desc ACE - */ - // it('testSwiperIfPropNone', 0, async function (done) { - // console.info('testSwiperIfPropNone START'); - // console.info("[swiperProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[swiperProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[swiperProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('swiper') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testSwiperShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/textProps.test.js b/arkui/ace_standard/src/main/js/default/test/textProps.test.js index 2986a161e..37291e833 100644 --- a/arkui/ace_standard/src/main/js/default/test/textProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/textProps.test.js @@ -563,44 +563,6 @@ describe('textPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testTextIfPropFalse - * @tc.desc ACE - */ - // it('testTextIfPropFalse', 0, async function (done) { - // console.info('testTextIfPropFalse START'); - // console.info("[textProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[textProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[textProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('text') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testTextIfPropNone - * @tc.desc ACE - */ - // it('testTextIfPropNone', 0, async function (done) { - // console.info('testTextIfPropNone START'); - // console.info("[textProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[textProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[textProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('text') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testTextPropsShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/toolbarItemProps.test.js b/arkui/ace_standard/src/main/js/default/test/toolbarItemProps.test.js index 4913a5450..2558598d1 100644 --- a/arkui/ace_standard/src/main/js/default/test/toolbarItemProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/toolbarItemProps.test.js @@ -137,32 +137,6 @@ describe('toolbarPropsJsTest5', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivStyleProp - * @tc.desc ACEs - */ -// it('testDivStyleProp', 0, async function (done) { -// console.info('testDivStyleProp START'); -// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('div') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[divProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[divProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[divProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testToolbarRefProp @@ -589,44 +563,6 @@ describe('toolbarPropsJsTest5', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivIfPropFalse - * @tc.desc ACE - */ - // it('testDivIfPropFalse', 0, async function (done) { - // console.info('testDivIfPropFalse START'); - // console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('div') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivIfPropNone - * @tc.desc ACE - */ - // it('testDivIfPropNone', 0, async function (done) { - // console.info('testDivIfPropNone START'); - // console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('div') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testToolbarShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/toolbarProps.test.js b/arkui/ace_standard/src/main/js/default/test/toolbarProps.test.js index 2968baaf1..b743ff898 100644 --- a/arkui/ace_standard/src/main/js/default/test/toolbarProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/toolbarProps.test.js @@ -563,44 +563,6 @@ describe('toolbarPropsJsTest7', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivIfPropFalse - * @tc.desc ACE - */ - // it('testDivIfPropFalse', 0, async function (done) { - // console.info('testDivIfPropFalse START'); - // console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('div') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivIfPropNone - * @tc.desc ACE - */ - // it('testDivIfPropNone', 0, async function (done) { - // console.info('testDivIfPropNone START'); - // console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('div') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testToolbarShowPropTrue diff --git a/arkui/ace_standard/src/main/js/default/test/videoProps.test.js b/arkui/ace_standard/src/main/js/default/test/videoProps.test.js index 1ca5cb6d0..e51517710 100644 --- a/arkui/ace_standard/src/main/js/default/test/videoProps.test.js +++ b/arkui/ace_standard/src/main/js/default/test/videoProps.test.js @@ -135,32 +135,6 @@ describe('videoPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivStyleProp - * @tc.desc ACEs - */ -// it('testDivStyleProp', 0, async function (done) { -// console.info('testDivStyleProp START'); -// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.styleProp); -// console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('div') -// expect(obj.$attrs.id).assertEqual('styleProp') -// expect(obj.$attrs.style).assertEqual(undefined) -// console.info("[divProps] get style value is: " + JSON.stringify(obj.$attrs.style)); -// -// expect(obj.$styles.width).assertEqual(undefined); -// console.info("[divProps] get style width value is: " + JSON.stringify(obj.$styles.width)); -// expect(obj.$styles.height).assertEqual(undefined); -// console.info("[divProps] get style height value is: " + JSON.stringify(obj.$styles.height)); -// expect(obj.$styles.get('background-color')).assertEqual(undefined); -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testVideoRefProp @@ -316,159 +290,6 @@ describe('videoPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivClickEffectPropSmall - * @tc.desc ACE - */ -// it('testVideoClickEffectPropSmall', 0, async function (done) { -// console.info('testVideoClickEffectPropSmall START'); -// console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.clickEffectPropSmall); -// console.info("[videoProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('video') -// expect(obj.$attrs.id).assertEqual('clickEffectPropSmall') -// expect(obj.$attrs.clickEffect).assertEqual('spring-small') -// done(); -// }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivClickEffectPropMedium - * @tc.desc ACE - */ -// it('testDivClickEffectPropMedium', 0, async function (done) { -// console.info('testDivClickEffectPropMedium START'); -// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.clickEffectPropMedium); -// console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('div') -// expect(obj.$attrs.id).assertEqual('clickEffectPropMedium') -// expect(obj.$attrs.clickEffect).assertEqual('spring-medium') -// done(); -// }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivClickEffectPropLarge - * @tc.desc ACE - */ -// it('testDivClickEffectPropLarge', 0, async function (done) { -// console.info('testDivClickEffectPropLarge START'); -// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.clickEffectPropLarge); -// console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('div') -// expect(obj.$attrs.id).assertEqual('clickEffectPropLarge') -// expect(obj.$attrs.clickEffect).assertEqual('spring-large') -// done(); -// }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivClickEffectPropNone - * @tc.desc ACE - */ -// it('testDivClickEffectPropNone', 0, async function (done) { -// console.info('testDivClickEffectPropNone START'); -// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.clickEffectPropNone); -// console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('div') -// expect(obj.$attrs.id).assertEqual('clickEffectPropNone') -// expect(obj.$attrs.clickEffect).assertEqual(undefined) -// console.info("[divProps] get clickEffect value is: " + JSON.stringify(obj.$attrs.clickEffect)); -// done(); -// }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivDirPropRtl - * @tc.desc ACE - */ -// it('testDivDirPropRtl', 0, async function (done) { -// console.info('testDivDirPropRtl START'); -// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.dirPropRtl); -// console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('div') -// expect(obj.$attrs.id).assertEqual('dirPropRtl') -// expect(obj.$attrs.dir).assertEqual('rtl') -// done(); -// }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivDirPropLtr - * @tc.desc ACE - */ -// it('testDivDirPropLtr', 0, async function (done) { -// console.info('testDivDirPropLtr START'); -// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.dirPropLtr); -// console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('div') -// expect(obj.$attrs.id).assertEqual('dirPropLtr') -// expect(obj.$attrs.dir).assertEqual('ltr') -// done(); -// }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivDirPropAuto - * @tc.desc ACE - */ -// it('testDivDirPropAuto', 0, async function (done) { -// console.info('testDivDirPropAuto START'); -// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.dirPropAuto); -// console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('div') -// expect(obj.$attrs.id).assertEqual('dirPropAuto') -// expect(obj.$attrs.dir).assertEqual('auto') -// done(); -// }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivDirPropNone - * @tc.desc ACE - */ -// it('testDivDirPropNone', 0, async function (done) { -// console.info('testDivDirPropNone START'); -// console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); -// -// let obj = JSON.parse(globalThis.value.dirPropNone); -// console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); -// console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); -// -// expect(obj.$type).assertEqual('div') -// expect(obj.$attrs.id).assertEqual('dirPropNone') -// expect(obj.$attrs.dir).assertEqual('auto') -// done(); -// }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testVideoForPropNull @@ -549,44 +370,6 @@ describe('videoPropsJsTest', function () { done(); }); - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivIfPropFalse - * @tc.desc ACE - */ - // it('testDivIfPropFalse', 0, async function (done) { - // console.info('testDivIfPropFalse START'); - // console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropFalse); - // console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('div') - // expect(obj.$attrs.id).assertEqual('ifPropFalse') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - - /** - * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 - * @tc.name testDivIfPropNone - * @tc.desc ACE - */ - // it('testDivIfPropNone', 0, async function (done) { - // console.info('testDivIfPropNone START'); - // console.info("[divProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); - // - // let obj = JSON.parse(globalThis.value.ifPropNone); - // console.info("[divProps] get inspector value is: " + JSON.stringify(obj)); - // console.info("[divProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); - // - // expect(obj.$type).assertEqual('div') - // expect(obj.$attrs.id).assertEqual('ifPropNone') - // expect(obj.$attrs.if).assertEqual(false) - // done(); - // }); - /** * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.name testVideoShowPropTrue diff --git a/commonlibrary/ets_utils/threadWorker_lib_standard/entry/src/main/ets/test/ThreadWorker.test.js b/commonlibrary/ets_utils/threadWorker_lib_standard/entry/src/main/ets/test/ThreadWorker.test.js index 48d907f11..5dc7cc4a7 100644 --- a/commonlibrary/ets_utils/threadWorker_lib_standard/entry/src/main/ets/test/ThreadWorker.test.js +++ b/commonlibrary/ets_utils/threadWorker_lib_standard/entry/src/main/ets/test/ThreadWorker.test.js @@ -316,7 +316,6 @@ describe('threadWorkerTest', function () { }) // check postMessage is ok - // main post {message:"hello world"} , will receive {message:"hello world worker"} /** * @tc.name: threadWorker_postMessage_test_003 * @tc.desc: Sends a message to the worker thread. diff --git a/commonlibrary/ets_utils/worker_lib_standard/entry/src/main/ets/test/WorkerTest.test.js b/commonlibrary/ets_utils/worker_lib_standard/entry/src/main/ets/test/WorkerTest.test.js index 3c10b3bef..ffdcdb7dd 100644 --- a/commonlibrary/ets_utils/worker_lib_standard/entry/src/main/ets/test/WorkerTest.test.js +++ b/commonlibrary/ets_utils/worker_lib_standard/entry/src/main/ets/test/WorkerTest.test.js @@ -229,7 +229,6 @@ describe('WorkerTest', function () { }) // check postMessage is ok - // main post {message:"hello world"} , will receive {message:"hello world worker"} /** * @tc.name: worker_postMessage_test_003 * @tc.desc: Sends a message to the worker thread. diff --git a/distributeddatamgr/preferencesjstest/hap/src/main/js/test/StorageHelperJsunit.test.js b/distributeddatamgr/preferencesjstest/hap/src/main/js/test/StorageHelperJsunit.test.js index 2cba0e233..277f8a80f 100644 --- a/distributeddatamgr/preferencesjstest/hap/src/main/js/test/StorageHelperJsunit.test.js +++ b/distributeddatamgr/preferencesjstest/hap/src/main/js/test/StorageHelperJsunit.test.js @@ -125,27 +125,6 @@ describe('storageHelperTest', function () { done(); }) - /** - * @tc.name removeStorageFromCache callback interface test - * @tc.number SUB_DDM_AppDataFWK_JSPreferences_Storage_Helper_0041 - * @tc.desc removeStorageFromCache callback interface test - */ -// it('testRemoveStorageFromCache003', 0, function (done) { -// let perf = storage.getStorageSync('/data/test_storage3'); -// storage.removeStorageFromCache(perf, function (err) { -// if (err) { -// console.info("removeStorageFromCache callback interface test failed" + err); -// expect(null).assertFail(); -// done(); -// return -// } -// console.info("removeStorageFromCache callback interface test successfully."); -// expect(true).assertTrue(); -// done(); -// }) -// -// }) - /** * @tc.name deleteStorageSync interface test * @tc.number SUB_DDM_AppDataFWK_JSPreferences_Storage_Helper_0050 diff --git a/distributeddatamgr/relationalStoretest/relationalStoreStagetest/entry/src/main/ets/MainAbility/MainAbility.ts b/distributeddatamgr/relationalStoretest/relationalStoreStagetest/entry/src/main/ets/MainAbility/MainAbility.ts index fb807f8be..b99493eb8 100644 --- a/distributeddatamgr/relationalStoretest/relationalStoreStagetest/entry/src/main/ets/MainAbility/MainAbility.ts +++ b/distributeddatamgr/relationalStoretest/relationalStoreStagetest/entry/src/main/ets/MainAbility/MainAbility.ts @@ -32,7 +32,6 @@ var seConnect = { proxy.sendRequest(1, data, reply, option) .then(function (result) { if (result.errCode === 0) { - // let msg = reply.readString(); let msg = result.reply.readInt(); console.log("[ttt] [DataShareTest] <> seConnect reply msg: " + msg); } else { @@ -61,8 +60,6 @@ let dseUri = ("datashare:///com.samples.datasharekvtest.DataShare"); var dseConnect = { onConnect:function (elementName, proxy) { console.log("[ttt] [DataShareTest] <> dseConnect onConnect called."); - // console.log("[ttt] [DataShareTest] <> dseConnect onConnect elementName = " + elementName); - // console.log("[ttt] [DataShareTest] <> dseConnect onConnect proxy = " + proxy); dseProxy = proxy; }, onDisconnect:function (elementName) { diff --git a/graphic/webGL/src/main/js/test/WebGL.test01.js b/graphic/webGL/src/main/js/test/WebGL.test01.js index 47ee32ef7..dfde02c93 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test01.js +++ b/graphic/webGL/src/main/js/test/WebGL.test01.js @@ -316,12 +316,12 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test getSupportedExtensions. */ it('webgl_test_getSupportedExtensions', 0, async function(done) { - //initContext(); + console.info("webgltest into getSupportedExtensions"); const getSupportedExtensionsValue = gl.getSupportedExtensions(); console.info("webgltest getSupportedExtensions: " + getSupportedExtensionsValue); expect(typeof(getSupportedExtensionsValue)).assertEqual('object'); - //deleteContext(); + done(); }); @@ -332,12 +332,12 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test getExtension. */ it('webgl_test_getExtension', 0, async function(done) { - //initContext(); + console.info("webgltest into getExtension"); const getExtensionValue = gl.getExtension(); console.info("webgltest getExtension: " + getExtensionValue); expect(getExtensionValue).assertEqual(undefined); - //deleteContext(); + done(); }); @@ -348,13 +348,13 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture', 0, async function(done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE0); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); console.info("webgltest activeTexture --> getParameter: " + activeTextureParameter); expect(activeTextureParameter).assertEqual(33984); - //deleteContext(); + done(); }); @@ -365,13 +365,13 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture_1', 0, async function(done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE1); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); console.info("webgltest activeTexture --> getParameter: " + activeTextureParameter); expect(activeTextureParameter).assertEqual(33985); - //deleteContext(); + done(); }); @@ -382,7 +382,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test attachShader. */ it('webgl_test_attachShader', 0, async function(done) { - //initContext(); + console.info("webgltest into attachShader"); //顶点着色器程序 @@ -419,7 +419,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest attachShader getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -430,7 +430,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test bindAttribLocation. */ it('webgl_test_bindAttribLocation', 0, async function(done) { - //initContext(); + console.info("webgltest into bindAttribLocation"); //顶点着色器程序 @@ -469,7 +469,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest bindAttribLocation getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -480,7 +480,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test bindBuffer. */ it('webgl_test_bindBuffer', 0, async function(done) { - //initContext(); + console.info("webgltest into bindBuffer"); var buffer = gl.createBuffer(); @@ -492,7 +492,7 @@ export default function webgl1Test_webgl1(){ console.info("isBufferValue: " + isBufferValue); expect(isBufferValue).assertEqual(true); - //deleteContext(); + done(); }); @@ -503,7 +503,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test bindBuffer. */ it('webgl_test_bindBuffer_1', 0, async function(done) { - //initContext(); + console.info("webgltest into bindBuffer"); var buffer = gl.createBuffer(); @@ -520,7 +520,7 @@ export default function webgl1Test_webgl1(){ console.info("isBufferValue: " + isBufferValue); expect(isBufferValue).assertEqual(true); - //deleteContext(); + done(); }); @@ -531,7 +531,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test bindFramebuffer. */ it('webgl_test_bindFramebuffer', 0, async function(done) { - //initContext(); + console.info("webgltest into bindFramebuffer"); var framebuffer = gl.createFramebuffer(); @@ -548,7 +548,7 @@ export default function webgl1Test_webgl1(){ isFrameBuffer2); expect(isFrameBuffer2).assertEqual(true); - //deleteContext(); + done(); }); @@ -559,7 +559,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test bindRenderbuffer. */ it('webgl_test_bindRenderbuffer', 0, async function(done) { - //initContext(); + console.info("webgltest into bindRenderbuffer"); var renderbuffer = gl.createRenderbuffer(); @@ -577,7 +577,7 @@ export default function webgl1Test_webgl1(){ isRenderBuffer1); expect(isRenderBuffer1).assertEqual(true); - //deleteContext(); + done(); }); @@ -588,7 +588,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test bindTexture. */ it('webgl_test_bindTexture', 0, async function(done) { - //initContext(); + console.info("webgltest into bindTexture"); var texture = gl.createTexture(); @@ -603,7 +603,7 @@ export default function webgl1Test_webgl1(){ console.info("createTexture --> bindTexture --> isTexture: " + isTexture1); expect(isTexture1).assertEqual(true); - //deleteContext(); + done(); }); @@ -614,7 +614,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test blendColor. */ it('webgl_test_blendColor', 0, async function(done) { - //initContext(); + console.info("webgltest into blendColor"); gl.blendColor(0, 0.5, 1, 1); @@ -623,14 +623,12 @@ export default function webgl1Test_webgl1(){ var blendColorArr = new Float32Array([0, 0.5, 1, 1]); - // expect(blendColorValue).assertEqual(blendColorArr); - // 判断数据类型是否正确 expect(blendColorValue.constructor).assertEqual(blendColorArr.constructor); // 判断数据值是否正确 expect(blendColorValue.toString()).assertEqual(blendColorArr.toString()); - //deleteContext(); + done(); }); @@ -641,7 +639,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test blendColor. */ it('webgl_test_blendColor_1', 0, async function(done) { - //initContext(); + console.info("webgltest into blendColor"); gl.blendColor(1, 1, 1, 1); @@ -650,14 +648,12 @@ export default function webgl1Test_webgl1(){ var blendColorArr = new Float32Array([1, 1, 1, 1]); - // expect(blendColorValue).assertEqual(blendColorArr); - // 判断数据类型是否正确 expect(blendColorValue.constructor).assertEqual(blendColorArr.constructor); // 判断数据值是否正确 expect(blendColorValue.toString()).assertEqual(blendColorArr.toString()); - //deleteContext(); + done(); }); @@ -668,7 +664,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test blendEquation. */ it('webgl_test_blendEquation', 0, async function(done) { - //initContext(); + console.info("webgltest into blendEquation"); gl.blendEquation(gl.FUNC_ADD); @@ -677,7 +673,7 @@ export default function webgl1Test_webgl1(){ console.info("blendEquation --> getParameter: " + blendEquationValue); expect(blendEquationValue).assertEqual(gl.FUNC_ADD); - //deleteContext(); + done(); }); @@ -687,7 +683,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test blendEquation. */ it('webgl_test_blendEquation_1', 0, async function(done) { - //initContext(); + console.info("webgltest into blendEquation"); gl.blendEquation(gl.FUNC_ADD); @@ -696,7 +692,7 @@ export default function webgl1Test_webgl1(){ console.info("blendEquation --> getParameter: " + blendEquationValue2); expect(blendEquationValue2).assertEqual(32774); - //deleteContext(); + done(); }); @@ -707,7 +703,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test blendEquationSeparate. */ it('webgl_test_blendEquationSeparate', 0, async function(done) { - //initContext(); + console.info("webgltest into blendEquationSeparate"); gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_SUBTRACT); @@ -715,7 +711,7 @@ export default function webgl1Test_webgl1(){ console.info("blendEquation --> getParameter: " + blendEquationSeparateValue); expect(blendEquationSeparateValue).assertEqual(gl.FUNC_ADD); - //deleteContext(); + done(); }); @@ -726,7 +722,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test blendFunc. */ it('webgl_test_blendFunc', 0, async function(done) { - //initContext(); + console.info("webgltest into blendFunc"); gl.enable(gl.BLEND); @@ -737,7 +733,7 @@ export default function webgl1Test_webgl1(){ console.info("blendFunc --> getParameter: " + blendFuncValue); expect(blendFuncValue).assertEqual(gl.SRC_COLOR); - //deleteContext(); + done(); }); @@ -748,7 +744,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test blendFuncSeparate. */ it('webgl_test_blendFuncSeparate', 0, async function(done) { - //initContext(); + console.info("webgltest into blendFuncSeparate"); gl.enable(gl.BLEND); @@ -759,7 +755,7 @@ export default function webgl1Test_webgl1(){ console.info("blendFuncSeparate --> getParameter: " + blendFuncSeparateParameter); expect(blendFuncSeparateParameter).assertEqual(gl.SRC_COLOR); - //deleteContext(); + done(); }); @@ -770,7 +766,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test checkFramebufferStatus. */ it('webgl_test_checkFramebufferStatus2', 0, async function(done) { - //initContext(); + console.info("webgltest into checkFramebufferStatus"); var framebuffer = gl.createFramebuffer(); @@ -781,7 +777,7 @@ export default function webgl1Test_webgl1(){ checkFramebufferStatus); expect(checkFramebufferStatus).assertEqual(gl.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT); - //deleteContext(); + done(); }); @@ -792,7 +788,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test checkFramebufferStatus. */ it('webgl_test_checkFramebufferStatus_1', 0, async function(done) { - //initContext(); + console.info("webgltest into checkFramebufferStatus"); var framebuffer = gl.createFramebuffer(); @@ -806,7 +802,7 @@ export default function webgl1Test_webgl1(){ checkFrameBufferStatus2); expect(checkFrameBufferStatus2).assertEqual(gl.FRAMEBUFFER_COMPLETE); - //deleteContext(); + done(); }); @@ -817,14 +813,14 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test clear. */ it('webgl_test_clear', 0, async function(done) { - //initContext(); + console.info("webgltest into clear"); gl.clear(gl.COLOR_BUFFER_BIT); var float32Array = new Float32Array([0, 0, 0, 0]); const clearParameter = gl.getParameter(gl.COLOR_CLEAR_VALUE); console.info("webgltest clear getParameter: " + clearParameter); expect(typeof(clearParameter)).assertEqual(typeof(float32Array)); - //deleteContext(); + done(); }); @@ -835,7 +831,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test clearColor. */ it('webgl_test_clearColor', 0, async function(done) { - //initContext(); + console.info("webgltest into clearColor"); gl.clearColor(1, 0.5, 0.5, 3); @@ -845,7 +841,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest clearColor: " + clearColorParameter); expect(clearColorParameter.toString()).assertEqual(float32ArrayValue.toString()); - //deleteContext(); + done(); }); @@ -856,7 +852,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test clearDepth. */ it('webgl_test_clearDepth', 0, async function(done) { - //initContext(); + console.info("webgltest into clearDepth"); //用于设置深度缓冲区的深度清除值。 @@ -867,7 +863,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest clearDepth --> getParameter: " + clearDepthValue); expect(clearDepthValue).assertEqual(0.5); - //deleteContext(); + done(); }); @@ -878,7 +874,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test clearDepth. */ it('webgl_test_clearDepth_2', 0, async function(done) { - //initContext(); + console.info("webgltest into clearDepth"); //用于设置深度缓冲区的深度清除值。 @@ -889,7 +885,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest clearDepth --> getParameter: " + clearDepthValue); expect(clearDepthValue).assertEqual(1); - //deleteContext(); + done(); }); @@ -900,7 +896,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test clearStencil. */ it('webgl_test_clearStencil', 0, async function(done) { - //initContext(); + console.info("webgltest into clearStencil"); gl.clearStencil(1); @@ -909,7 +905,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest clearStencil --> getParameter: " + clearStencilValue); expect(clearStencilValue).assertEqual(1); - //deleteContext(); + done(); }); @@ -919,7 +915,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test clearStencil. */ it('webgl_test_clearStencil_1', 0, async function(done) { - //initContext(); + console.info("webgltest into clearStencil"); gl.clearStencil(20); @@ -928,7 +924,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest clearStencil --> getParameter: " + clearStencilValue); expect(clearStencilValue).assertEqual(20); - //deleteContext(); + done(); }); @@ -939,7 +935,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test colorMask. */ it('webgl_test_colorMask', 0, async function(done) { - //initContext(); + console.info("webgltest into colorMask"); gl.colorMask(true, true, true, false); @@ -949,7 +945,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest colorMask --> getParameter: " + colorMaskValue); expect(colorMaskValue.toString()).assertEqual('true,true,true,false'); - //deleteContext(); + done(); }); @@ -960,7 +956,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test colorMask. */ it('webgl_test_colorMask_1', 0, async function(done) { - //initContext(); + console.info("webgltest into colorMask"); gl.colorMask(false, false, false, false); @@ -970,7 +966,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest colorMask --> getParameter: " + colorMaskValue); expect(colorMaskValue.toString()).assertEqual('false,false,false,false'); - //deleteContext(); + done(); }); @@ -981,7 +977,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test compileShader. */ it('webgl_test_compileShader', 0, async function(done) { - //initContext(); + console.info("webgltest into compileShader"); var shader = gl.createShader(gl.VERTEX_SHADER); @@ -992,7 +988,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest compileShader getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1003,14 +999,14 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test copyTexImage2D_01. */ it('webgl_test_copyTexImage2D_01', 0, async function(done) { - //initContext(); + console.info("webgltest into copyTexImage2D_01"); gl.copyTexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 0, 0, 512, 512, 0); let errorCode = gl.getError(); console.info("webgltest copyTexImage2D_01 getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1021,14 +1017,14 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test copyTexImage2D_02. */ it('webgl_test_copyTexImage2D_02', 0, async function(done) { - //initContext(); + console.info("webgltest into copyTexImage2D_02"); gl.copyTexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 0, 0, '512', 512, 0); let errorCode = gl.getError(); console.info("webgltest copyTexImage2D_02 getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1039,7 +1035,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test copyTexSubImage2D. */ it('webgl_test_copyTexSubImage2D', 0, async function(done) { - //initContext(); + console.info("webgltest into copyTexSubImage2D"); gl.copyTexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, 0, 0, 16, 16); @@ -1047,7 +1043,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest copyTexSubImage2D getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1057,7 +1053,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test copyTexSubImage2D. */ it('webgl_test_copyTexSubImage2D_1', 0, async function(done) { - //initContext(); + console.info("webgltest into copyTexSubImage2D"); gl.copyTexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, 0, 0, false, 16); @@ -1065,7 +1061,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest copyTexSubImage2D getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1076,7 +1072,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test createBuffer. */ it('webgl_test_createBuffer', 0, async function(done) { - //initContext(); + console.info("webgltest into createBuffer"); const buffer = gl.createBuffer(); @@ -1088,7 +1084,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest createBuffer bindBuffer isBuffer: " + isBufferValue); expect(isBufferValue).assertEqual(true); - //deleteContext(); + done(); }); @@ -1098,7 +1094,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test createBuffer. */ it('webgl_test_createBuffer_1', 0, async function(done) { - //initContext(); + console.info("webgltest into createBuffer"); const buffer = gl.createBuffer(); @@ -1109,7 +1105,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest createBuffer bindBuffer isBuffer: " + isBufferValue); expect(isBufferValue).assertEqual(false); - //deleteContext(); + done(); }); @@ -1120,7 +1116,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test createFramebuffer. */ it('webgl_test_createFramebuffer', 0, async function(done) { - //initContext(); + console.info("webgltest into createFramebuffer"); const framebuffer = gl.createFramebuffer(); @@ -1131,7 +1127,7 @@ export default function webgl1Test_webgl1(){ isFramebuffer); expect(isFramebuffer).assertEqual(true); - //deleteContext(); + done(); }); @@ -1142,7 +1138,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test createFramebuffer. */ it('webgl_test_createFramebuffer_1', 0, async function(done) { - //initContext(); + console.info("webgltest into createFramebuffer"); const framebuffer = gl.createFramebuffer(); @@ -1152,7 +1148,7 @@ export default function webgl1Test_webgl1(){ isFramebuffer); expect(isFramebuffer).assertEqual(false); - //deleteContext(); + done(); }); @@ -1163,13 +1159,13 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test createProgram. */ it('webgl_test_createProgram', 0, async function(done) { - //initContext(); + console.info("webgltest into createProgram"); const program = gl.createProgram(); const isProgram = gl.isProgram(program); console.info("webgltest createProgram isProgram: " + isProgram); expect(isProgram).assertEqual(true); - //deleteContext(); + done(); }); @@ -1180,7 +1176,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test createRenderbuffer. */ it('webgl_test_createRenderbuffer', 0, async function(done) { - //initContext(); + console.info("webgltest into createRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1191,7 +1187,7 @@ export default function webgl1Test_webgl1(){ isRenderBuffer); expect(isRenderBuffer).assertEqual(true); - //deleteContext(); + done(); }); @@ -1202,7 +1198,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test createRenderbuffer. */ it('webgl_test_createRenderbuffer_1', 0, async function(done) { - //initContext(); + console.info("webgltest into createRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1212,7 +1208,7 @@ export default function webgl1Test_webgl1(){ isRenderBuffer); expect(isRenderBuffer).assertEqual(false); - //deleteContext(); + done(); }); @@ -1223,7 +1219,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test createShader. */ it('webgl_test_createShader', 0, async function(done) { - //initContext(); + console.info("webgltest into createShader"); const shader = gl.createShader(gl.VERTEX_SHADER); @@ -1231,7 +1227,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest createShader isShader: " + isShader); expect(isShader).assertEqual(true); - //deleteContext(); + done(); }); @@ -1242,7 +1238,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test createTexture. */ it('webgl_test_createTexture', 0, async function(done) { - //initContext(); + console.info("webgltest into createTexture"); const texture = gl.createTexture(); @@ -1251,7 +1247,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest createTexture isTexture: " + isTexture); expect(isTexture).assertEqual(true); - //deleteContext(); + done(); }); @@ -1262,7 +1258,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test createTexture. */ it('webgl_test_createTexture_1', 0, async function(done) { - //initContext(); + console.info("webgltest into createTexture"); const texture = gl.createTexture(); @@ -1270,7 +1266,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest createTexture isTexture: " + isTexture); expect(isTexture).assertEqual(false); - //deleteContext(); + done(); }); @@ -1281,7 +1277,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test cullFace. */ it('webgl_test_cullFace', 0, async function(done) { - //initContext(); + console.info("webgltest into cullFace"); gl.enable(gl.CULL_FACE); @@ -1291,7 +1287,7 @@ export default function webgl1Test_webgl1(){ console.info("cullFace --> getParameter: " + cullFaceparameter); expect(cullFaceparameter).assertEqual(gl.FRONT_AND_BACK); - //deleteContext(); + done(); }); @@ -1301,7 +1297,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test cullFace. */ it('webgl_test_cullFace_2', 0, async function(done) { - //initContext(); + console.info("webgltest into cullFace"); gl.enable(gl.CULL_FACE); @@ -1311,7 +1307,7 @@ export default function webgl1Test_webgl1(){ console.info("cullFace --> getParameter: " + cullFaceparameter); expect(cullFaceparameter).assertEqual(gl.FRONT); - //deleteContext(); + done(); }); @@ -1321,7 +1317,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test cullFace. */ it('webgl_test_cullFace_3', 0, async function(done) { - //initContext(); + console.info("webgltest into cullFace"); gl.enable(gl.CULL_FACE); @@ -1331,7 +1327,7 @@ export default function webgl1Test_webgl1(){ console.info("cullFace --> getParameter: " + cullFaceparameter); expect(cullFaceparameter).assertEqual(gl.BACK); - //deleteContext(); + done(); }); @@ -1342,7 +1338,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test deleteBuffer. */ it('webgl_test_deleteBuffer', 0, async function(done) { - //initContext(); + console.info("webgltest into deleteBuffer"); var buffer = gl.createBuffer(); @@ -1356,7 +1352,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest createBuffer bindBuffer deleteBuffer isBuffer2: " + isBuffer2); expect(isBuffer2).assertEqual(false); - //deleteContext(); + done(); }); @@ -1367,7 +1363,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test deleteBuffer. */ it('webgl_test_deleteBuffer_2', 0, async function(done) { - //initContext(); + console.info("webgltest into deleteBuffer"); var buffer = gl.createBuffer(); @@ -1381,7 +1377,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest createBuffer bindBuffer deleteBuffer isBuffer2: " + isBuffer2); expect(isBuffer2).assertEqual(false); - //deleteContext(); + done(); }); @@ -1392,7 +1388,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test deleteFramebuffer. */ it('webgl_test_deleteFramebuffer', 0, async function(done) { - //initContext(); + console.info("webgltest into deleteFramebuffer"); var framebuffer = gl.createFramebuffer(); @@ -1410,7 +1406,7 @@ export default function webgl1Test_webgl1(){ isFramebuffer2); expect(isFramebuffer2).assertEqual(false); - //deleteContext(); + done(); }); @@ -1421,7 +1417,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test deleteProgram. */ it('webgl_test_deleteProgram', 0, async function(done) { - //initContext(); + console.info("webgltest into deleteProgram"); const program = gl.createProgram(); @@ -1434,7 +1430,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest getExtension: " + isProgram2); expect(isProgram2).assertEqual(false); - //deleteContext(); + done(); }); @@ -1445,7 +1441,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test deleteProgram. */ it('webgl_test_deleteProgram_2', 0, async function(done) { - //initContext(); + console.info("webgltest into deleteProgram"); const program = gl.createProgram(); @@ -1455,7 +1451,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest getExtension: " + isProgram2); expect(isProgram2).assertEqual(false); - //deleteContext(); + done(); }); @@ -1466,7 +1462,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test deleteRenderbuffer. */ it('webgl_test_deleteRenderbuffer', 0, async function(done) { - //initContext(); + console.info("webgltest into deleteRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1484,7 +1480,7 @@ export default function webgl1Test_webgl1(){ isRenderbuffer2); expect(isRenderbuffer2).assertEqual(false); - //deleteContext(); + done(); }); @@ -1495,7 +1491,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test deleteShader. */ it('webgl_test_deleteShader', 0, async function(done) { - //initContext(); + console.info("webgltest into deleteShader"); var shader = gl.createShader(gl.VERTEX_SHADER); @@ -1509,7 +1505,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest createShader deleteShader isShader2: " + isShader2); expect(isShader2).assertEqual(false); - //deleteContext(); + done(); }); @@ -1520,7 +1516,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test deleteShader. */ it('webgl_test_deleteShader_2', 0, async function(done) { - //initContext(); + console.info("webgltest into deleteShader"); var shader = gl.createShader(gl.VERTEX_SHADER); @@ -1531,7 +1527,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest createShader deleteShader isShader2: " + isShader2); expect(isShader2).assertEqual(false); - //deleteContext(); + done(); }); @@ -1542,7 +1538,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test deleteTexture. */ it('webgl_test_deleteTexture', 0, async function(done) { - //initContext(); + console.info("webgltest into deleteTexture"); var texture = gl.createTexture(); @@ -1557,7 +1553,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest createTexture deleteTexture isTexture2: " + isTexture2); expect(isTexture2).assertEqual(false); - //deleteContext(); + done(); }); @@ -1568,7 +1564,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test deleteTexture. */ it('webgl_test_deleteTexture_2', 0, async function(done) { - //initContext(); + console.info("webgltest into deleteTexture"); var texture = gl.createTexture(); @@ -1583,7 +1579,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest createTexture deleteTexture isTexture2: " + isTexture2); expect(isTexture2).assertEqual(false); - //deleteContext(); + done(); }); @@ -1594,7 +1590,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test depthFunc. */ it('webgl_test_depthFunc', 0, async function(done) { - //initContext(); + console.info("webgltest into depthFunc"); gl.enable(gl.DEPTH_TEST); @@ -1604,7 +1600,7 @@ export default function webgl1Test_webgl1(){ console.info("depthFunc --> getParameter: " + depthParameter); expect(depthParameter).assertEqual(gl.NEVER); - //deleteContext(); + done(); }); @@ -1614,7 +1610,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test depthFunc. */ it('webgl_test_depthFunc_2', 0, async function(done) { - //initContext(); + console.info("webgltest into depthFunc"); gl.enable(gl.DEPTH_TEST); @@ -1624,7 +1620,7 @@ export default function webgl1Test_webgl1(){ console.info("depthFunc --> getParameter: " + depthParameter); expect(depthParameter).assertEqual(gl.LESS); - //deleteContext(); + done(); }); @@ -1634,7 +1630,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test depthFunc. */ it('webgl_test_depthFunc_3', 0, async function(done) { - //initContext(); + console.info("webgltest into depthFunc"); gl.enable(gl.DEPTH_TEST); @@ -1644,7 +1640,7 @@ export default function webgl1Test_webgl1(){ console.info("depthFunc --> getParameter: " + depthParameter); expect(depthParameter).assertEqual(gl.EQUAL); - //deleteContext(); + done(); }); @@ -1654,7 +1650,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test depthFunc. */ it('webgl_test_depthFunc_4', 0, async function(done) { - //initContext(); + console.info("webgltest into depthFunc"); gl.enable(gl.DEPTH_TEST); @@ -1664,7 +1660,7 @@ export default function webgl1Test_webgl1(){ console.info("depthFunc --> getParameter: " + depthParameter); expect(depthParameter).assertEqual(gl.LEQUAL); - //deleteContext(); + done(); }); @@ -1674,7 +1670,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test depthFunc. */ it('webgl_test_depthFunc_5', 0, async function(done) { - //initContext(); + console.info("webgltest into depthFunc"); gl.enable(gl.DEPTH_TEST); @@ -1684,7 +1680,7 @@ export default function webgl1Test_webgl1(){ console.info("depthFunc --> getParameter: " + depthParameter); expect(depthParameter).assertEqual(gl.GREATER); - //deleteContext(); + done(); }); @@ -1694,7 +1690,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test depthFunc. */ it('webgl_test_depthFunc_6', 0, async function(done) { - //initContext(); + console.info("webgltest into depthFunc"); gl.enable(gl.DEPTH_TEST); @@ -1704,7 +1700,7 @@ export default function webgl1Test_webgl1(){ console.info("depthFunc --> getParameter: " + depthParameter); expect(depthParameter).assertEqual(gl.NOTEQUAL); - //deleteContext(); + done(); }); @@ -1714,7 +1710,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test depthFunc. */ it('webgl_test_depthFunc_7', 0, async function(done) { - //initContext(); + console.info("webgltest into depthFunc"); gl.enable(gl.DEPTH_TEST); @@ -1724,7 +1720,7 @@ export default function webgl1Test_webgl1(){ console.info("depthFunc --> getParameter: " + depthParameter); expect(depthParameter).assertEqual(gl.GEQUAL); - //deleteContext(); + done(); }); @@ -1734,7 +1730,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test depthFunc. */ it('webgl_test_depthFunc_8', 0, async function(done) { - //initContext(); + console.info("webgltest into depthFunc"); gl.enable(gl.DEPTH_TEST); @@ -1744,7 +1740,7 @@ export default function webgl1Test_webgl1(){ console.info("depthFunc --> getParameter: " + depthParameter); expect(depthParameter).assertEqual(gl.ALWAYS); - //deleteContext(); + done(); }); @@ -1755,7 +1751,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test depthMask. */ it('webgl_test_depthMask', 0, async function(done) { - //initContext(); + console.info("webgltest into depthMask"); gl.depthMask(false); @@ -1764,7 +1760,7 @@ export default function webgl1Test_webgl1(){ // false console.info("webgltest depthMaskValue: " + depthMaskValue); expect(depthMaskValue).assertEqual(false); - //deleteContext(); + done(); }); @@ -1774,7 +1770,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test depthMask. */ it('webgl_test_depthMask_2', 0, async function(done) { - //initContext(); + console.info("webgltest into depthMask"); gl.depthMask(true); @@ -1783,7 +1779,7 @@ export default function webgl1Test_webgl1(){ // false console.info("webgltest depthMaskValue: " + depthMaskValue); expect(depthMaskValue).assertEqual(true); - //deleteContext(); + done(); }); @@ -1794,7 +1790,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test depthRange. */ it('webgl_test_depthRange', 0, async function(done) { - //initContext(); + console.info("webgltest into depthRange"); gl.depthRange(0.2, 0.6); @@ -1804,7 +1800,7 @@ export default function webgl1Test_webgl1(){ const float32ArrayValue = new Float32Array([0.2, 0.6]); console.info("webgltest depthRange: " + depthRangeValue); expect(depthRangeValue.toString()).assertEqual(float32ArrayValue.toString()); - //deleteContext(); + done(); }); @@ -1814,7 +1810,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test depthRange. */ it('webgl_test_depthRange_2', 0, async function(done) { - //initContext(); + console.info("webgltest into depthRange"); gl.depthRange(0.8, 1.0); @@ -1824,7 +1820,7 @@ export default function webgl1Test_webgl1(){ const float32ArrayValue = new Float32Array([0.8, 1.0]); console.info("webgltest depthRange: " + depthRangeValue); expect(depthRangeValue.toString()).assertEqual(float32ArrayValue.toString()); - //deleteContext(); + done(); }); @@ -1835,7 +1831,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test detachShader. */ it('webgl_test_detachShader', 0, async function(done) { - //initContext(); + console.info("webgltest into detachShader"); //顶点着色器 @@ -1861,7 +1857,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest uniform3uiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1872,7 +1868,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test disable. */ it('webgl_test_disable', 0, async function(done) { - //initContext(); + console.info("webgltest into disable"); gl.disable(gl.DITHER); @@ -1881,7 +1877,7 @@ export default function webgl1Test_webgl1(){ // false console.info("webgltest disable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(false); - //deleteContext(); + done(); }); @@ -1892,7 +1888,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test disable. */ it('webgl_test_disable_2', 0, async function(done) { - //initContext(); + console.info("webgltest into disable"); gl.enable(gl.DITHER); const isEnabled2 = gl.isEnabled(gl.DITHER); @@ -1907,7 +1903,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest disable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(false); - //deleteContext(); + done(); }); @@ -1918,13 +1914,13 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test disableVertexAttribArray. */ it('webgl_test_disableVertexAttribArray', 0, async function(done) { - //initContext(); + console.info("webgltest into disableVertexAttribArray"); gl.disableVertexAttribArray(0); let errorCode = gl.getError(); console.info("webgltest disableVertexAttribArray getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1935,14 +1931,14 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test drawArrays. */ it('webgl_test_drawArrays', 0, async function(done) { - //initContext(); + console.info("webgltest into drawArrays"); gl.drawArrays(gl.POINTS, 0, 8); let errorCode = gl.getError(); console.info("webgltest drawArrays getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1953,7 +1949,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test drawArrays. */ it('webgl_test_drawArrays_2', 0, async function(done) { - //initContext(); + console.info("webgltest into drawArrays"); gl.drawArrays(gl.POINTS, 0, -8); @@ -1961,7 +1957,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest drawArrays getError: " + errorCode); expect(errorCode).assertEqual(1281); - //deleteContext(); + done(); }); @@ -1972,7 +1968,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test drawElements. */ it('webgl_test_drawElements', 0, async function(done) { - //initContext(); + console.info("webgltest into drawElements"); @@ -2018,7 +2014,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest drawArrays getError: " + errorCode); expect(errorCode).assertEqual(1280); - //deleteContext(); + done(); }); @@ -2029,7 +2025,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test drawElements. */ it('webgl_test_drawElements_2', 0, async function(done) { - //initContext(); + console.info("webgltest into drawElements"); gl.drawElements(1, 2, 3, 4); @@ -2037,7 +2033,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest drawElements getError: " + errorCode); expect(errorCode).assertEqual(0x0500); - //deleteContext(); + done(); }); @@ -2048,7 +2044,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test enable. */ it('webgl_test_enable', 0, async function(done) { - //initContext(); + console.info("webgltest into enable"); gl.enable(gl.DITHER); @@ -2058,7 +2054,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest enable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(true); - //deleteContext(); + done(); }); @@ -2069,7 +2065,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test enable. */ it('webgl_test_enable_2', 0, async function(done) { - //initContext(); + console.info("webgltest into enable"); gl.enable(gl.DITHER); @@ -2086,7 +2082,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest disable isEnabled2: " + isEnabled2); expect(isEnabled2).assertEqual(false); - //deleteContext(); + done(); }); @@ -2097,7 +2093,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test enableVertexAttribArray. */ it('webgl_test_enableVertexAttribArray', 0, async function(done) { - //initContext(); + console.info("webgltest into enableVertexAttribArray"); //顶点着色器程序 var VSHADER_SOURCE = @@ -2140,7 +2136,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest enableVertexAttribArray getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2151,13 +2147,13 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test finish. */ it('webgl_test_finish', 0, async function(done) { - //initContext(); + console.info("webgltest into finish"); gl.finish(); let errorCode = gl.getError(); console.info("webgltest finish getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2168,13 +2164,13 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test flush. */ it('webgl_test_flush', 0, async function(done) { - //initContext(); + console.info("webgltest into flush"); gl.flush(); let errorCode = gl.getError(); console.info("webgltest flush getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2185,7 +2181,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer', 0, async function(done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -2195,7 +2191,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2206,7 +2202,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer_2', 0, async function(done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -2215,7 +2211,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2226,7 +2222,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test framebufferTexture2D. */ it('webgl_test_framebufferTexture2D', 0, async function(done) { - //initContext(); + console.info("webgltest into framebufferTexture2D"); const texture = gl.createTexture(); gl.framebufferTexture2D(gl.DRAW_FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texture, @@ -2236,7 +2232,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest framebufferTexture2D getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2247,7 +2243,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test framebufferTexture2D. */ it('webgl_test_framebufferTexture2D_1', 0, async function(done) { - //initContext(); + console.info("webgltest into framebufferTexture2D"); const texture = gl.createTexture(); gl.framebufferTexture2D(gl.DRAW_FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texture, @@ -2257,7 +2253,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest framebufferTexture2D getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2270,7 +2266,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test drawBuffers. */ it('webgl_test_drawBuffers', 0, async function(done) { - //initContext(); + console.info("webgltest into drawBuffers"); gl2.drawBuffers([gl2.NONE, gl2.COLOR_ATTACHMENT1]); @@ -2278,7 +2274,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest drawBuffers getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2288,13 +2284,13 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test drawBuffers. */ it('webgl_test_drawBuffers_2', 0, async function(done) { - //initContext(); + console.info("webgltest into drawBuffers"); gl2.drawBuffers(["gl2.NONE", "gl2.COLOR_ATTACHMENT1"]); let errorCode = gl.getError(); console.info("webgltest drawBuffers getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2304,7 +2300,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test clearBufferfv. */ it('webgl_test_clearBufferfv', 0, async function(done) { - //initContext(); + console.info("webgltest into clearBufferfv"); gl2.clearBufferfv(gl.COLOR, 0, [0.0, 0.0, 0.0, 0.0]); @@ -2312,7 +2308,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest webgl_test_clearBufferfv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2322,7 +2318,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test clearBufferfv. */ it('webgl_test_clearBufferfv_2', 0, async function(done) { - //initContext(); + console.info("webgltest into clearBufferfv"); gl2.clearBufferfv(gl.COLOR, "0", [0.0, 0.0, 0.0, 0.0]); @@ -2330,7 +2326,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest webgl_test_clearBufferfv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2341,7 +2337,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test clearBufferiv. */ it('webgl_test_clearBufferiv', 0, async function(done) { - //initContext(); + console.info("webgltest into clearBufferiv"); gl2.clearBufferiv(gl.COLOR, 0, new Int32Array([0, 1, 0, 0.5])); @@ -2349,7 +2345,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest clearBufferiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2360,7 +2356,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test clearBufferiv. */ it('webgl_test_clearBufferiv_2', 0, async function(done) { - //initContext(); + console.info("webgltest into clearBufferiv"); gl2.clearBufferiv(gl.COLOR, "0", new Int32Array([0, 1, 0, 0.5])); @@ -2368,7 +2364,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest clearBufferiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2379,7 +2375,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test clearBufferuiv. */ it('webgl_test_clearBufferuiv', 0, async function(done) { - //initContext(); + console.info("webgltest into clearBufferuiv"); gl2.clearBufferuiv(gl.COLOR, 0, new Uint32Array([0, 1, 0, 0])); @@ -2387,7 +2383,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest clearBufferuiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2398,7 +2394,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test clearBufferuiv. */ it('webgl_test_clearBufferuiv_2', 0, async function(done) { - //initContext(); + console.info("webgltest into clearBufferuiv"); gl2.clearBufferuiv(gl.COLOR, "0", new Uint32Array([0, 1, 0, 0])); @@ -2406,7 +2402,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest clearBufferuiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2417,7 +2413,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test clearBufferfi. */ it('webgl_test_clearBufferfi', 0, async function(done) { - //initContext(); + console.info("webgltest into clearBufferfi"); gl2.clearBufferfi(gl.DEPTH_STENCIL, 0, 1.0, 0); @@ -2425,7 +2421,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest clearBufferfi getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2436,7 +2432,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test clearBufferfi. */ it('webgl_test_clearBufferfi_2', 0, async function(done) { - //initContext(); + console.info("webgltest into clearBufferfi"); gl2.clearBufferfi(gl.DEPTH_STENCIL, "0", 1.0, 0); @@ -2444,7 +2440,7 @@ export default function webgl1Test_webgl1(){ let errorCode = gl.getError(); console.info("webgltest clearBufferfi getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2455,7 +2451,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test createQuery. */ it('webgl_test_createQuery', 0, async function(done) { - //initContext(); + console.info("webgltest into createQuery"); const query = gl2.createQuery(); @@ -2466,7 +2462,7 @@ export default function webgl1Test_webgl1(){ console.info("webgltest createQuery isQuery: " + isQuery); expect(isQuery).assertEqual(true); - //deleteContext(); + done(); }); @@ -2476,7 +2472,7 @@ export default function webgl1Test_webgl1(){ * @tc.desc Test beginQuery. */ it('webgl_test_beginQuery', 0, async function(done) { - //initContext(); + console.info("webgltest into beginQuery"); var query = gl2.createQuery(); @@ -2486,7 +2482,7 @@ export default function webgl1Test_webgl1(){ const isQuery1 = gl2.isQuery(currentQuery); console.info("webgltest createQuery isQuery1: " + isQuery1); expect(isQuery1).assertEqual(true); - //deleteContext(); + done(); }); }) diff --git a/graphic/webGL/src/main/js/test/WebGL.test02.js b/graphic/webGL/src/main/js/test/WebGL.test02.js index 2ad51e0a0..58fbf8a3f 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test02.js +++ b/graphic/webGL/src/main/js/test/WebGL.test02.js @@ -289,7 +289,6 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getQuery. */ it('webgl_test_getQuery', 0, async function(done) { - //initContext(); console.info("webgltest into getQuery"); var query = gl2.createQuery(); @@ -299,7 +298,6 @@ export default function webgl1Test_webgl2(){ const isQuery1 = gl2.isQuery(currentQuery); console.info("webgltest createQuery isQuery1: " + isQuery1); expect(isQuery1).assertEqual(true); - //deleteContext(); done(); }); @@ -310,7 +308,6 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test isQuery. */ it('webgl_test_isQuery', 0, async function(done) { - //initContext(); console.info("webgltest into isQuery"); const query = gl2.createQuery(); gl2.beginQuery(0x8C2F, query); @@ -319,7 +316,6 @@ export default function webgl1Test_webgl2(){ const isQuery1 = gl2.isQuery(currentQuery); console.info("webgltest createQuery isQuery1: " + isQuery1); expect(isQuery1).assertEqual(true); - //deleteContext(); done(); }); @@ -330,14 +326,12 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test isQuery. */ it('webgl_test_isQuery_2', 0, async function(done) { - //initContext(); console.info("webgltest into isQuery"); const query = gl2.createQuery(); const isQuery1 = gl2.isQuery(query); console.info("webgltest createQuery isQuery1: " + isQuery1); expect(isQuery1).assertEqual(false); - //deleteContext(); done(); }); @@ -348,7 +342,6 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test endQuery. */ it('webgl_test_endQuery', 0, async function(done) { - //initContext(); console.info("webgltest into endQuery"); var query = gl2.createQuery(); @@ -365,7 +358,6 @@ export default function webgl1Test_webgl2(){ console.info("webgltest createQuery isQuery2: " + isQuery2); expect(isQuery2).assertEqual(true); - //deleteContext(); done(); }); @@ -376,7 +368,6 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getQueryParameter. */ it('webgl_test_getQueryParameter', 0, async function(done) { - //initContext(); console.info("webgltest into getQueryParameter"); var query = gl2.createQuery(); gl2.beginQuery(0x8C2F, query); @@ -391,7 +382,6 @@ export default function webgl1Test_webgl2(){ console.info("webgltest createQuery beginQuery getQueryParameter: " + result); expect(typeof(result)).assertEqual("boolean"); - //deleteContext(); done(); }); @@ -402,7 +392,6 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getQueryParameter. */ it('webgl_test_getQueryParameter2', 0, async function(done) { - //initContext(); console.info("webgltest into getQueryParameter"); var query = gl2.createQuery(); gl2.beginQuery(0x8C2F, query); @@ -417,7 +406,6 @@ export default function webgl1Test_webgl2(){ console.info("webgltest createQuery beginQuery getQueryParameter: " + result); expect(typeof(result)).assertEqual("number"); - //deleteContext(); done(); }); @@ -428,7 +416,6 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test deleteQuery. */ it('webgl_test_deleteQuery', 0, async function(done) { - //initContext(); console.info("webgltest into deleteQuery"); var query = gl2.createQuery(); @@ -445,7 +432,6 @@ export default function webgl1Test_webgl2(){ console.info("webgltest createQuery deleteQuery isQuery2: " + isQuery2); expect(isQuery2).assertEqual(false); - //deleteContext(); done(); }); @@ -455,7 +441,6 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test createSampler. */ it('webgl_test_createSampler', 0, async function(done) { - //initContext(); console.info("webgltest into createSampler"); const sampler = gl2.createSampler(); const isSampler1 = gl2.isSampler(sampler); @@ -472,7 +457,6 @@ export default function webgl1Test_webgl2(){ console.info("webgltest createSampler bindSampler deleteSampler isSampler3: " + isSampler3); expect(isSampler3).assertEqual(false); - //deleteContext(); done(); }); @@ -483,7 +467,6 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test samplerParameterf. */ it('webgl_test_samplerParameterf', 0, async function(done) { - //initContext(); console.info("webgltest into samplerParameterf"); let sampler = gl2.createSampler(); @@ -494,7 +477,6 @@ export default function webgl1Test_webgl2(){ console.info("webgltest samplerParameterf getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); gl2.deleteSampler(sampler); - //deleteContext(); done(); }); @@ -505,18 +487,14 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test samplerParameteri. */ it('webgl_test_samplerParameteri', 0, async function(done) { - //initContext(); console.info("webgltest into samplerParameteri"); let sampler = gl2.createSampler(); - // gl2.bindSampler(0, sampler); - // gl2.samplerParameteri(sampler, 0x884D, 0x2600); gl2.samplerParameteri(sampler, gl.TEXTURE_MAG_FILTER, gl.NEAREST); let errorCode = gl.getError(); console.info("webgltest samplerParameteri getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); gl2.deleteSampler(sampler); - //deleteContext(); done(); }); @@ -527,7 +505,6 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test deleteSampler. */ it('webgl_test_deleteSampler', 0, async function(done) { - //initContext(); console.info("webgltest into deleteSampler"); const sampler = gl2.createSampler(); const isSampler1 = gl2.isSampler(sampler); @@ -543,7 +520,6 @@ export default function webgl1Test_webgl2(){ const isSampler3 = gl2.isSampler(sampler); console.info("webgltest createSampler bindSampler deleteSampler isSampler3: " + isSampler3); expect(isSampler3).assertEqual(false); - //deleteContext(); done(); }); @@ -554,7 +530,6 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test isSampler. */ it('webgl_test_isSampler', 0, async function(done) { - //initContext(); console.info("webgltest into isSampler"); const sampler = gl2.createSampler(); const isSampler1 = gl2.isSampler(sampler); @@ -569,8 +544,7 @@ export default function webgl1Test_webgl2(){ gl2.deleteSampler(sampler); const isSampler3 = gl2.isSampler(sampler); console.info("webgltest createSampler bindSampler deleteSampler isSampler3: " + isSampler3); - expect(isSampler3).assertEqual(false); - //deleteContext(); + expect(isSampler3).assertEqual(false); done(); }); @@ -581,7 +555,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test isSampler. */ it('webgl_test_isSampler_2', 0, async function(done) { - //initContext(); + console.info("webgltest into isSampler"); const sampler = gl2.createSampler(); @@ -594,7 +568,7 @@ export default function webgl1Test_webgl2(){ const isSampler3 = gl2.isSampler(sampler); console.info("webgltest createSampler bindSampler deleteSampler isSampler3: " + isSampler3); expect(isSampler3).assertEqual(false); - //deleteContext(); + done(); }); @@ -605,7 +579,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test bindSampler. */ it('webgl_test_bindSampler', 0, async function(done) { - //initContext(); + console.info("webgltest into bindSampler"); const sampler = gl2.createSampler(); const isSampler1 = gl2.isSampler(sampler); @@ -621,7 +595,7 @@ export default function webgl1Test_webgl2(){ const isSampler3 = gl2.isSampler(sampler); console.info("webgltest createSampler bindSampler deleteSampler isSampler3: " + isSampler3); expect(isSampler3).assertEqual(false); - //deleteContext(); + done(); }); @@ -632,7 +606,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getSamplerParameter. */ it('webgl_test_getSamplerParameter_1', 0, async function(done) { - //initContext(); + console.info("webgltest into getSamplerParameter"); let sampler = gl2.createSampler(); @@ -642,7 +616,7 @@ export default function webgl1Test_webgl2(){ console.info("webgltest createSampler getSamplerParameter_1: " + samplerParameter); expect(typeof(samplerParameter)).assertEqual("number"); - //deleteContext(); + done(); }); @@ -653,7 +627,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getSamplerParameter. */ it('webgl_test_getSamplerParameter_2', 0, async function(done) { - //initContext(); + console.info("webgltest into getSamplerParameter"); let sampler = gl2.createSampler(); @@ -661,7 +635,7 @@ export default function webgl1Test_webgl2(){ console.info("webgltest createSampler getSamplerParameter: " + samplerParameter); expect(typeof(samplerParameter)).assertEqual("number"); - //deleteContext(); + done(); }); @@ -672,7 +646,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getSamplerParameter. */ it('webgl_test_getSamplerParameter_3', 0, async function(done) { - //initContext(); + console.info("webgltest into getSamplerParameter"); let sampler = gl2.createSampler(); @@ -680,7 +654,7 @@ export default function webgl1Test_webgl2(){ console.info("webgltest createSampler getSamplerParameter: " + samplerParameter); expect(typeof(samplerParameter)).assertEqual("number"); - //deleteContext(); + done(); }); @@ -691,7 +665,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getSamplerParameter. */ it('webgl_test_getSamplerParameter_4', 0, async function(done) { - //initContext(); + console.info("webgltest into getSamplerParameter"); let sampler = gl2.createSampler(); @@ -699,7 +673,7 @@ export default function webgl1Test_webgl2(){ console.info("webgltest createSampler getSamplerParameter: " + samplerParameter); expect(typeof(samplerParameter)).assertEqual("number"); - //deleteContext(); + done(); }); @@ -710,7 +684,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getSamplerParameter. */ it('webgl_test_getSamplerParameter_5', 0, async function(done) { - //initContext(); + console.info("webgltest into getSamplerParameter"); let sampler = gl2.createSampler(); @@ -718,7 +692,7 @@ export default function webgl1Test_webgl2(){ console.info("webgltest createSampler getSamplerParameter: " + samplerParameter); expect(typeof(samplerParameter)).assertEqual("number"); - //deleteContext(); + done(); }); @@ -729,7 +703,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getSamplerParameter. */ it('webgl_test_getSamplerParameter_6', 0, async function(done) { - //initContext(); + console.info("webgltest into getSamplerParameter"); let sampler = gl2.createSampler(); @@ -737,7 +711,7 @@ export default function webgl1Test_webgl2(){ console.info("webgltest createSampler getSamplerParameter: " + samplerParameter); expect(typeof(samplerParameter)).assertEqual("number"); - //deleteContext(); + done(); }); @@ -748,7 +722,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getSamplerParameter. */ it('webgl_test_getSamplerParameter_7', 0, async function(done) { - //initContext(); + console.info("webgltest into getSamplerParameter"); let sampler = gl2.createSampler(); @@ -756,7 +730,7 @@ export default function webgl1Test_webgl2(){ console.info("webgltest createSampler getSamplerParameter: " + samplerParameter); expect(typeof(samplerParameter)).assertEqual("number"); - //deleteContext(); + done(); }); @@ -767,7 +741,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getSamplerParameter. */ it('webgl_test_getSamplerParameter_8', 0, async function(done) { - //initContext(); + console.info("webgltest into getSamplerParameter"); let sampler = gl2.createSampler(); @@ -775,7 +749,7 @@ export default function webgl1Test_webgl2(){ console.info("webgltest createSampler getSamplerParameter: " + samplerParameter); expect(typeof(samplerParameter)).assertEqual("number"); - //deleteContext(); + done(); }); @@ -786,7 +760,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test fenceSync. */ it('webgl_test_fenceSync', 0, async function(done) { - //initContext(); + console.info("webgltest into fenceSync"); let sync = gl2.fenceSync(0x9117, 0); @@ -802,7 +776,7 @@ export default function webgl1Test_webgl2(){ console.info("webgltest fenceSync deleteSync isSync2: " + isSync2); expect(isSync2).assertEqual(false); - //deleteContext(); + done(); }); @@ -813,7 +787,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test clientWaitSync. */ it('webgl_test_clientWaitSync', 0, async function(done) { - //initContext(); + console.info("webgltest into clientWaitSync"); let sync = gl2.fenceSync(0x9117, 0); let status = gl2.clientWaitSync(sync, 0, 0); @@ -828,7 +802,7 @@ export default function webgl1Test_webgl2(){ status == gl.CONDITION_SATISFIED || status == gl.WAIT_FAILED) { statusFlag = true;} expect(statusFlag).assertEqual(true); - //deleteContext(); + done(); }); @@ -839,7 +813,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test waitSync. */ it('webgl_test_waitSync', 0, async function(done) { - //initContext(); + console.info("webgltest into waitSync"); let sync = gl2.fenceSync(gl.SYNC_GPU_COMMANDS_COMPLETE, 0); @@ -848,7 +822,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest framebufferTexture2D getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -859,7 +833,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test isSync. */ it('webgl_test_isSync', 0, async function(done) { - //initContext(); + console.info("webgltest into isSync"); let sync = gl2.fenceSync(0x9117, 0); let status = gl2.clientWaitSync(sync, 0, 0); @@ -873,7 +847,7 @@ export default function webgl1Test_webgl2(){ const isSync2 = gl2.isSync(sync); console.info("webgltest fenceSync deleteSync isSync2: " + isSync2); expect(isSync2).assertEqual(false); - //deleteContext(); + done(); }); @@ -884,7 +858,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getSyncParameter. */ it('webgl_test_getSyncParameter', 0, async function(done) { - //initContext(); + console.info("webgltest into getSyncParameter"); console.info("webgltest into isSync"); @@ -898,7 +872,7 @@ export default function webgl1Test_webgl2(){ console.info("webgltest fenceSync getSyncParameter: " + syncParameter); expect(syncParameter).assertEqual(0x9116); - //deleteContext(); + done(); }); @@ -909,7 +883,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getSyncParameter. */ it('webgl_test_getSyncParameter2', 0, async function(done) { - //initContext(); + console.info("webgltest into getSyncParameter"); console.info("webgltest into isSync"); @@ -929,7 +903,7 @@ export default function webgl1Test_webgl2(){ syncParameterFlag = true; } expect(syncParameterFlag).assertEqual(true); - //deleteContext(); + done(); }); @@ -940,7 +914,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getSyncParameter. */ it('webgl_test_getSyncParameter3', 0, async function(done) { - //initContext(); + console.info("webgltest into getSyncParameter"); let sync = gl2.fenceSync(0x9117, 0); @@ -953,7 +927,7 @@ export default function webgl1Test_webgl2(){ console.info("webgltest fenceSync getSyncParameter: " + syncParameter); expect(syncParameter).assertEqual(0x9117); - //deleteContext(); + done(); }); @@ -964,7 +938,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getSyncParameter. */ it('webgl_test_getSyncParameter4', 0, async function(done) { - //initContext(); + console.info("webgltest into getSyncParameter"); let sync = gl2.fenceSync(0x9117, 0); @@ -980,7 +954,7 @@ export default function webgl1Test_webgl2(){ const notCrash = true; expect(notCrash).assertTrue(); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -991,7 +965,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test deleteSync. */ it('webgl_test_deleteSync', 0, async function(done) { - //initContext(); + console.info("webgltest into deleteSync"); let sync = gl2.fenceSync(0x9117, 0); let status = gl2.clientWaitSync(sync, 0, 0); @@ -1005,7 +979,7 @@ export default function webgl1Test_webgl2(){ const isSync2 = gl2.isSync(sync); console.info("webgltest fenceSync deleteSync isSync2: " + isSync2); expect(isSync2).assertEqual(false); - //deleteContext(); + done(); }); @@ -1016,7 +990,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test createTransformFeedback. */ it('webgl_test_createTransformFeedback', 0, async function(done) { - //initContext(); + console.info("webgltest into createTransformFeedback"); const transformFeedback = gl2.createTransformFeedback(); @@ -1039,7 +1013,7 @@ export default function webgl1Test_webgl2(){ "deleteTransformFeedback isTransformFeedback3: " + isTransformFeedback3); expect(isTransformFeedback3).assertEqual(false); - //deleteContext(); + done(); }); @@ -1050,7 +1024,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test isTransformFeedback. */ it('webgl_test_isTransformFeedback', 0, async function(done) { - //initContext(); + console.info("webgltest into isTransformFeedback"); let transformFeedback = gl2.createTransformFeedback(); const isTransformFeedback1 = gl2.isTransformFeedback(transformFeedback); @@ -1071,7 +1045,7 @@ export default function webgl1Test_webgl2(){ console.info("webgltest createTransformFeedback bindTransformFeedback " + "deleteTransformFeedback isTransformFeedback3: " + isTransformFeedback3); expect(isTransformFeedback3).assertEqual(false); - //deleteContext(); + done(); }); @@ -1082,7 +1056,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test bindTransformFeedback. */ it('webgl_test_bindTransformFeedback', 0, async function(done) { - //initContext(); + console.info("webgltest into bindTransformFeedback"); let transformFeedback = gl2.createTransformFeedback(); const isTransformFeedback1 = gl2.isTransformFeedback(transformFeedback); @@ -1104,7 +1078,7 @@ export default function webgl1Test_webgl2(){ "webgltest createTransformFeedback bindTransformFeedback deleteTransformFeedback " + "isTransformFeedback3: " + isTransformFeedback3); expect(isTransformFeedback3).assertEqual(false); - //deleteContext(); + done(); }); @@ -1115,7 +1089,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test beginTransformFeedback. */ it('webgl_test_beginTransformFeedback', 0, async function(done) { - //initContext(); + console.info("webgltest into beginTransformFeedback"); let transformFeedback = gl2.createTransformFeedback(); @@ -1126,7 +1100,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest framebufferTexture2D getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1136,7 +1110,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test deleteTransformFeedback. */ it('webgl_test_deleteTransformFeedback', 0, async function(done) { - //initContext(); + console.info("webgltest into deleteTransformFeedback"); const transformFeedback = gl2.createTransformFeedback(); @@ -1154,7 +1128,7 @@ export default function webgl1Test_webgl2(){ "webgltest createTransformFeedback bindTransformFeedback deleteTransformFeedback " + "isTransformFeedback3: " + isTransformFeedback3); expect(isTransformFeedback3).assertEqual(false); - //deleteContext(); + done(); }); @@ -1165,7 +1139,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getFragDataLocation. */ it('webgl_test_getFragDataLocation', 0, async function(done) { - //initContext(); + console.info("webgltest into getFragDataLocation"); //顶点着色器程序 @@ -1204,7 +1178,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest getFragDataLocation getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1215,7 +1189,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform1ui. */ it('webgl_test_uniform1ui', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform1ui"); //顶点着色器程序 @@ -1255,7 +1229,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform1ui getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1266,7 +1240,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform1ui. */ it('webgl_test_uniform1ui_2', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform1ui"); const programObj = gl.createProgram(); @@ -1278,7 +1252,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform1ui getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); }); @@ -1289,7 +1263,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform2ui. */ it('webgl_test_uniform2ui', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform2ui"); //顶点着色器程序 @@ -1329,7 +1303,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform2ui getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1339,7 +1313,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform2ui. */ it('webgl_test_uniform2ui_2', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform2ui"); const programObj = gl.createProgram(); @@ -1351,7 +1325,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform2ui getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); }); @@ -1362,7 +1336,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform3ui. */ it('webgl_test_uniform3ui', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform3ui"); //顶点着色器程序 @@ -1402,7 +1376,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform3ui getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1413,7 +1387,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform3ui. */ it('webgl_test_uniform3ui_2', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform3ui"); const programObj = gl.createProgram(); @@ -1425,7 +1399,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform3ui getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); }); @@ -1436,7 +1410,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform4ui. */ it('webgl_test_uniform4ui', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform4ui"); //顶点着色器程序 @@ -1476,7 +1450,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform4ui getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1487,7 +1461,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform4ui. */ it('webgl_test_uniform4ui_2', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform4ui"); const programObj = gl.createProgram(); @@ -1499,7 +1473,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform4ui getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); }); @@ -1510,7 +1484,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform1uiv. */ it('webgl_test_uniform1uiv', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform1uiv"); //顶点着色器程序 @@ -1549,7 +1523,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform1uiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1560,7 +1534,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform1uiv. */ it('webgl_test_uniform1uiv_2', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform1uiv"); const programObj = gl.createProgram(); @@ -1571,7 +1545,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform1uiv getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); }); @@ -1582,7 +1556,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform2uiv. */ it('webgl_test_uniform2uiv', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform2uiv"); //顶点着色器程序 @@ -1622,7 +1596,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform2uiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1633,7 +1607,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform2uiv. */ it('webgl_test_uniform2uiv_2', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform2uiv"); @@ -1646,7 +1620,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform2uiv getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); }); @@ -1657,7 +1631,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform3uiv. */ it('webgl_test_uniform3uiv', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform3uiv"); //顶点着色器程序 @@ -1697,7 +1671,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform3uiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1708,7 +1682,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform3uiv. */ it('webgl_test_uniform3uiv_3', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform3uiv"); @@ -1721,7 +1695,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform3uiv getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); }); @@ -1732,7 +1706,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform4uiv. */ it('webgl_test_uniform4uiv', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform4uiv"); //顶点着色器程序 @@ -1772,7 +1746,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform4uiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1783,7 +1757,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniform4uiv. */ it('webgl_test_uniform4uiv_2', 0, async function(done) { - //initContext(); + console.info("webgltest into uniform4uiv"); @@ -1795,7 +1769,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniform4uiv getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); }); @@ -1806,7 +1780,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniformMatrix3x2fv. */ it('webgl_test_uniformMatrix3x2fv', 0, async function(done) { - //initContext(); + console.info("webgltest into uniformMatrix3x2fv"); //顶点着色器程序 @@ -1846,7 +1820,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniformMatrix3x2fv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1857,7 +1831,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniformMatrix3x2fv. */ it('webgl_test_uniformMatrix3x2fv_2', 0, async function(done) { - //initContext(); + console.info("webgltest into uniformMatrix3x2fv"); @@ -1870,7 +1844,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniformMatrix3x2fv getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); }); @@ -1881,7 +1855,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniformMatrix4x2fv. */ it('webgl_test_uniformMatrix4x2fv', 0, async function(done) { - //initContext(); + console.info("webgltest into uniformMatrix4x2fv"); //顶点着色器程序 @@ -1920,7 +1894,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniformMatrix4x2fv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1931,7 +1905,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniformMatrix4x2fv. */ it('webgl_test_uniformMatrix4x2fv_2', 0, async function(done) { - //initContext(); + console.info("webgltest into uniformMatrix4x2fv"); @@ -1943,7 +1917,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniformMatrix4x2fv getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); }); @@ -1954,7 +1928,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniformMatrix2x3fv. */ it('webgl_test_uniformMatrix2x3fv', 0, async function(done) { - //initContext(); + console.info("webgltest into uniformMatrix2x3fv"); //顶点着色器程序 @@ -1993,7 +1967,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniformMatrix2x3fv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2004,7 +1978,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniformMatrix2x3fv. */ it('webgl_test_uniformMatrix2x3fv_2', 0, async function(done) { - //initContext(); + console.info("webgltest into uniformMatrix2x3fv"); const programObj = gl.createProgram(); @@ -2015,7 +1989,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniformMatrix2x3fv getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); }); @@ -2026,7 +2000,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniformMatrix4x3fv. */ it('webgl_test_uniformMatrix4x3fv', 0, async function(done) { - //initContext(); + console.info("webgltest into uniformMatrix4x3fv"); //顶点着色器程序 @@ -2065,7 +2039,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniformMatrix4x3fv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2076,7 +2050,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniformMatrix4x3fv. */ it('webgl_test_uniformMatrix4x3fv_2', 0, async function(done) { - //initContext(); + console.info("webgltest into uniformMatrix4x3fv"); @@ -2088,7 +2062,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniformMatrix4x3fv getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); }); @@ -2099,7 +2073,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniformMatrix2x4fv. */ it('webgl_test_uniformMatrix2x4fv', 0, async function(done) { - //initContext(); + console.info("webgltest into uniformMatrix2x4fv"); //顶点着色器程序 @@ -2138,7 +2112,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniformMatrix2x4fv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2148,7 +2122,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniformMatrix2x4fv. */ it('webgl_test_uniformMatrix2x4fv_2', 0, async function(done) { - //initContext(); + console.info("webgltest into uniformMatrix2x4fv"); @@ -2160,7 +2134,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniformMatrix2x4fv getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); }); @@ -2171,7 +2145,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniformMatrix3x4fv. */ it('webgl_test_uniformMatrix3x4fv', 0, async function(done) { - //initContext(); + console.info("webgltest into uniformMatrix3x4fv"); //顶点着色器程序 @@ -2210,7 +2184,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniformMatrix3x4fv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2221,7 +2195,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test uniformMatrix3x4fv. */ it('webgl_test_uniformMatrix3x4fv_2', 0, async function(done) { - //initContext(); + console.info("webgltest into uniformMatrix3x4fv"); @@ -2233,7 +2207,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest uniformMatrix3x4fv getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); }); @@ -2244,7 +2218,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test vertexAttribI4i. */ it('webgl_test_vertexAttribI4i', 0, async function(done) { - //initContext(); + console.info("webgltest into vertexAttribI4i"); const a = gl2.vertexAttribI4i(1, 10, 11, 12, 13); @@ -2252,7 +2226,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest vertexAttribI4i getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2263,7 +2237,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test vertexAttribI4iv. */ it('webgl_test_vertexAttribI4iv', 0, async function(done) { - //initContext(); + console.info("webgltest into vertexAttribI4iv"); const a = gl2.vertexAttribI4iv(1, int1); @@ -2271,7 +2245,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest vertexAttribI4iv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2282,7 +2256,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test vertexAttribI4iv. */ it('webgl_test_vertexAttribI4iv_2', 0, async function(done) { - //initContext(); + console.info("webgltest into vertexAttribI4iv"); const a = gl2.vertexAttribI4iv(1, int2); @@ -2290,7 +2264,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest vertexAttribI4iv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2301,7 +2275,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test vertexAttribI4ui. */ it('webgl_test_vertexAttribI4ui', 0, async function(done) { - //initContext(); + console.info("webgltest into vertexAttribI4ui"); const a = gl2.vertexAttribI4ui(1, 10, 11, 12, 13); @@ -2309,7 +2283,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest vertexAttribI4ui getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2320,7 +2294,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test vertexAttribI4uiv. */ it('webgl_test_vertexAttribI4uiv', 0, async function(done) { - //initContext(); + console.info("webgltest into vertexAttribI4uiv"); const a = gl2.vertexAttribI4uiv(1, uint1); @@ -2328,7 +2302,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest vertexAttribI4uiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2339,7 +2313,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test vertexAttribI4uiv. */ it('webgl_test_vertexAttribI4uiv_2', 0, async function(done) { - //initContext(); + console.info("webgltest into vertexAttribI4uiv"); const a = gl2.vertexAttribI4uiv(1, uint2); @@ -2347,7 +2321,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest vertexAttribI4uiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2358,7 +2332,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test vertexAttribIPointer. */ it('webgl_test_vertexAttribIPointer', 0, async function(done) { - //initContext(); + console.info("webgltest into vertexAttribIPointer"); const a = gl2.vertexAttribIPointer(2, 4, gl.UNSIGNED_BYTE, 20, 16); @@ -2366,7 +2340,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest vertexAttribIPointer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2377,7 +2351,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test vertexAttribDivisor. */ it('webgl_test_vertexAttribDivisor', 0, async function(done) { - //initContext(); + console.info("webgltest into vertexAttribDivisor"); const a = gl2.vertexAttribDivisor(0, 2); @@ -2385,7 +2359,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest vertexAttribDivisor getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2396,7 +2370,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test vertexAttribDivisor. */ it('webgl_test_vertexAttribDivisor_2', 0, async function(done) { - //initContext(); + console.info("webgltest into vertexAttribDivisor"); const a = gl2.vertexAttribDivisor(0, "2"); @@ -2404,7 +2378,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest vertexAttribDivisor getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2415,7 +2389,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test drawArraysInstanced. */ it('webgl_test_drawArraysInstanced', 0, async function(done) { - //initContext(); + console.info("webgltest into drawArraysInstanced"); const a = gl2.drawArraysInstanced(gl.POINTS, 0, 8, 4); @@ -2423,7 +2397,7 @@ export default function webgl1Test_webgl2(){ let errorCode = gl.getError(); console.info("webgltest drawArraysInstanced getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2434,7 +2408,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test drawElementsInstanced. */ it('webgl_test_drawElementsInstanced', 0, async function(done) { - //initContext(); + console.info("webgltest into drawElementsInstanced"); const indexBuffer = gl.createBuffer(); gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, indexBuffer); @@ -2447,7 +2421,7 @@ export default function webgl1Test_webgl2(){ expect(errorCode).assertEqual(gl.NO_ERROR); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -2458,7 +2432,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test drawRangeElements. */ it('webgl_test_drawRangeElements', 0, async function(done) { - //initContext(); + console.info("webgltest into drawRangeElements"); const indexBuffer = gl.createBuffer(); gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, indexBuffer); @@ -2471,7 +2445,7 @@ export default function webgl1Test_webgl2(){ expect(errorCode).assertEqual(gl.NO_ERROR); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -2482,7 +2456,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test frontFace. */ it('testFrontFaceFirst', 0, async function(done) { - //initContext(); + console.info('jsWebGL frontFace test start ...' + JSON.stringify(gl)); gl.enable(gl.CULL_FACE); gl.cullFace(gl.FRONT_AND_BACK); @@ -2500,7 +2474,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test frontFace. */ it('testFrontFace_Third', 0, async function(done) { - //initContext(); + console.info('jsWebGL frontFace test start ...' + JSON.stringify(gl)); gl.enable(gl.CULL_FACE); gl.cullFace(gl.BACK); @@ -2518,7 +2492,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test frontFace. */ it('testFrontFaceError', 0, async function(done) { - //initContext(); + console.info('jsWebGL frontFace test start ...' + JSON.stringify(gl)); gl.cullFace(gl.BACK); gl.frontFace(gl.CW); @@ -2536,7 +2510,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test generateMipmap. */ it('testGenerateMipmap', 0, async function(done) { - //initContext(); + console.info('jsWebGL generateMipmap test start ...' + JSON.stringify(gl)); gl.generateMipmap(gl2.TEXTURE_2D); const error = gl.getError(); @@ -2551,7 +2525,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test generateMipmap. */ it('testGenerateMipmapError', 0, async function(done) { - //initContext(); + console.info('jsWebGL generateMipmap test start ...' + JSON.stringify(gl)); gl.generateMipmap(gl.TEXTURE_2D); const error = gl.getError(); @@ -2566,11 +2540,10 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getActiveAttrib. */ it('testGetActiveAttrib', 0, async function(done) { - //initContext(); + console.info('jsWebGL getActiveAttrib test start ...' + JSON.stringify(gl)); const programObj = globalFunction(); gl.bindAttribLocation(programObj, 0, 'a_Position'); - // const numAttribs = gl.getProgramParameter(program, gl.ACTIVE_ATTRIBUTES); const info = gl.getActiveAttrib(programObj, 0); const error = gl.getError(); expect(error).assertEqual(0); @@ -2583,7 +2556,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getActiveUniform. */ it('testGetActiveUniform', 0, async function(done) { - //initContext(); + console.info('jsWebGL getActiveUniform test start ...' + JSON.stringify(gl)); const programObj = globalFunction(); const info = gl.getActiveUniform(programObj, 0); @@ -2598,7 +2571,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getAttachedShaders. */ it('testGetAttachedShaders', 0, async function(done) { - //initContext(); + console.info('jsWebGL getAttachedShaders test start ...' + JSON.stringify(gl)); const programObj = globalFunction(); const shaderArray = gl.getAttachedShaders(programObj); @@ -2614,7 +2587,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getAttribLocation. */ it('testGetAttribLocationError', 0, async function(done) { - //initContext(); + console.info('jsWebGL getAttribLocation test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); const index = gl.getAttribLocation(program, 'webgl_Color'); @@ -2629,7 +2602,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getAttribLocation. */ it('testGetAttribLocationFirst', 0, async function(done) { - //initContext(); + console.info('jsWebGL getAttribLocation test start ...' + JSON.stringify(gl)); var vertexShader = gl.createShader(gl.VERTEX_SHADER); gl.shaderSource(vertexShader, VSHADER_SOURCE); @@ -2659,7 +2632,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getBufferParameter. */ it('testGetBufferParameterFirst', 0, async function(done) { - //initContext(); + console.info('jsWebGL getBufferParameter test start ...' + JSON.stringify(gl)); const buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -2677,7 +2650,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getBufferParameter. */ it('testGetBufferParameterSecond', 0, async function(done) { - //initContext(); + console.info('jsWebGL getBufferParameter test start ...' + JSON.stringify(gl)); const buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -2694,7 +2667,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getError. */ it('testGetErrorFirst', 0, async function(done) { - //initContext(); + console.info('jsWebGL getError test start ...' + JSON.stringify(gl)); // turn on scissor test gl.enable(gl.SCISSOR_TEST); @@ -2714,7 +2687,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getError. */ it('testGetErrorSecond', 0, async function(done) { - //initContext(); + console.info('jsWebGL getError test start ...' + JSON.stringify(gl)); gl.getError(); // 0 (0) gl.enable(gl.DITHER); @@ -2730,7 +2703,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter', 0, async function(done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -2753,7 +2726,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getProgramParameter. */ it('testGetProgramParameterFourth', 0, async function(done) { - //initContext(); + console.info('jsWebGL getProgramParameter test start ...' + JSON.stringify(gl)); const program = globalFunction(); const attachedShaders = gl.getProgramParameter(program, gl.ATTACHED_SHADERS); @@ -2769,14 +2742,13 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getProgramParameter. */ it('testGetProgramParameterError', 0, async function(done) { - //initContext(); + console.info('jsWebGL getProgramParameter test start ...' + JSON.stringify(gl)); const vertexShader = gl.createShader(gl.VERTEX_SHADER); gl.shaderSource(vertexShader, VSHADER_SOURCE); gl.compileShader(vertexShader); const programObj = gl.createProgram(); - // gl.attachShader(programObj, vertexShader); const attachedShaders = gl.getProgramParameter(programObj, gl.ATTACHED_SHADERS); console.info('attachedShaders' + attachedShaders); const type = (attachedShaders === 1); @@ -2790,10 +2762,9 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getProgramInfoLog. */ it('testGetProgramInfoLog', 0, async function(done) { - //initContext(); + console.info('jsWebGL getProgramInfoLog test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); - // Attach pre-existing shaders gl.attachShader(program, VSHADER_SOURCE); gl.attachShader(program, FSHADER_SOURCE); gl.linkProgram(program); @@ -2813,7 +2784,7 @@ export default function webgl1Test_webgl2(){ * @tc.desc Test getRenderbufferParameter. */ it('testGetRenderbufferParameterFirst', 0, async function(done) { - //initContext(); + console.info('jsWebGL getRenderbufferParameter test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); diff --git a/graphic/webGL/src/main/js/test/WebGL.test03.js b/graphic/webGL/src/main/js/test/WebGL.test03.js index 6851c009b..a390f1f1b 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test03.js +++ b/graphic/webGL/src/main/js/test/WebGL.test03.js @@ -290,7 +290,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getRenderbufferParameter. */ it('testGetRenderbufferParameterSecond', 0, async function (done) { - //initContext(); + console.info('jsWebGL getRenderbufferParameter test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -308,7 +308,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getRenderbufferParameter. */ it('testGetRenderbufferParameterThird', 0, async function (done) { - //initContext(); + console.info('jsWebGL getRenderbufferParameter test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -326,7 +326,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getRenderbufferParameter. */ it('testGetRenderbufferParameterFourth', 0, async function (done) { - //initContext(); + console.info('jsWebGL getRenderbufferParameter test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -342,11 +342,10 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getRenderbufferParameter. */ it('testGetRenderbufferParameterError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getRenderbufferParameter test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); - // gl.renderbufferStorage(gl.RENDERBUFFER, gl.RGBA4, 256, 256); const greenSize = gl.getRenderbufferParameter(gl.RENDERBUFFER, gl.RENDERBUFFER_GREEN_SIZE); expect(greenSize).assertEqual(0); done(); @@ -358,11 +357,9 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getShaderParameter. */ it('testGetShaderParameterSecond', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderParameter test start ...' + JSON.stringify(gl)); const vertexShader = gl.createShader(gl.VERTEX_SHADER); - // const fragmentShader = gl.createShader(gl.FRAGMENT_SHADER); - // gl.deleteShader(vertexShader); const deleteStatus = gl.getShaderParameter(vertexShader, gl.DELETE_STATUS); console.info('deleteStatus' + deleteStatus); expect(deleteStatus).assertEqual(false); @@ -375,7 +372,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getShaderParameter. */ it('testGetShaderParameterThird', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderParameter test start ...' + JSON.stringify(gl)); const vertexShader = gl.createShader(gl.VERTEX_SHADER); gl.shaderSource(vertexShader, VSHADER_SOURCE); @@ -393,7 +390,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getShaderParameter. */ it('testGetShaderParameterFourth', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderParameter test start ...' + JSON.stringify(gl)); var fragmentShader = gl.createShader(gl.FRAGMENT_SHADER); gl.shaderSource(fragmentShader, FSHADER_SOURCE); @@ -410,11 +407,9 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getShaderParameter. */ it('testGetShaderParameterError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderParameter test start ...' + JSON.stringify(gl)); var fragmentShader = gl.createShader(gl.FRAGMENT_SHADER); - // gl.shaderSource(fragmentShader, FSHADER_SOURCE); - // gl.compileShader(fragmentShader); const compileStatus = gl.getShaderParameter(fragmentShader, gl.COMPILE_STATUS); console.info('compileStatus' + compileStatus); const type = (compileStatus === true) @@ -428,7 +423,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getShaderPrecisionFormat. */ it('testGetShaderPrecisionFormat', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderPrecisionFormat test start ...' + JSON.stringify(gl)); const shaderPrecisionFormat = gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl .MEDIUM_FLOAT); @@ -445,7 +440,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getTexParameter. */ it('testGetTexParameterError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getTexParameter test start ...' + JSON.stringify(gl)); const texParameterValue = gl.getTexParameter(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER); console.info('texParameterfValue' + texParameterValue); @@ -461,7 +456,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getTexParameter. */ it('testGetTexParameterFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL getTexParameter test start ...' + JSON.stringify(gl)); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR_MIPMAP_NEAREST); const texParameterValue = gl.getTexParameter(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER); @@ -477,7 +472,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getTexParameter. */ it('testGetTexParameterSecond', 0, async function (done) { - //initContext(); + console.info('jsWebGL getTexParameter test start ...' + JSON.stringify(gl)); gl.texParameterf(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); const texParameterValue = gl.getTexParameter(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER); @@ -493,14 +488,8 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getUniform. */ it('testGetUniform', 0, async function (done) { - //initContext(); + console.info('jsWebGL getUniform test start ...' + JSON.stringify(gl)); - // const programObj = globalFunction(); - // - // const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); - // const uniform = gl.getUniform(programObj, uniformLocation); - // console.info('getUniformLocation uniform' + uniform); - // expect(uniform.toString()).assertEqual([0,0,0,0].toString()); done(); }); @@ -510,7 +499,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getUniform. */ it('testGetUniformError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getUniform test start ...' + JSON.stringify(gl)); const programObj = gl.createProgram(); @@ -528,13 +517,8 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getUniformLocation. */ it('testGetUniformLocation', 0, async function (done) { - //initContext(); + console.info('jsWebGL getUniformLocation test start ...' + JSON.stringify(gl)); - // let programObj = globalFunction(); - // const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); - // const uniform = gl.getUniform(programObj, uniformLocation); - // console.info('getUniformLocation uniform' + uniform); - // expect(uniform.toString()).assertEqual([0,0,0,0].toString()); done(); }); @@ -544,7 +528,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getUniformLocation. */ it('testGetUniformLocationError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getUniformLocation test start ...' + JSON.stringify(gl)); const programObj = gl.createProgram(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -560,11 +544,10 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getParameter. */ it('testGetParameter1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) console.info("activeTexture --> getParameter: " + textureParameter); expect(textureParameter).assertEqual(33984); done(); @@ -576,7 +559,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getParameter. */ it('testGetParameter2', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); // 获取可用宽度的范围。返回一个Float32Array. @@ -598,7 +581,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getParameter. */ it('testGetParameter4', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); var framebuffer = gl.createFramebuffer(); gl.bindFramebuffer(gl.FRAMEBUFFER, framebuffer); @@ -618,7 +601,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getParameter. */ it('testGetParameter5', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); const renderbuffer = gl.getParameter(gl.RENDERBUFFER_BINDING); console.info("renderbuffer: " + renderbuffer); @@ -635,7 +618,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getParameter. */ it('testGetParameter6', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -654,7 +637,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getParameter. */ it('testGetParameter7', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.blendColor(0, 0.5, 1, 1); const blendColorValue = gl.getParameter(gl.BLEND_COLOR); @@ -679,7 +662,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getParameter. */ it('testGetParameter8', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.depthMask(false); // 要获得当前的深度遮罩值,传入 DEPTH_WRITEMASK 常量,返回 Boolean. @@ -696,7 +679,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getParameter. */ it('testGetParameter9', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.colorMask(true, true, true, false); // 要获取当前的颜色掩码,请查询COLOR_WRITEMASK返回Array. @@ -713,7 +696,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getParameter. */ it('testGetParameter10', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); //用于设置深度缓冲区的深度清除值。 gl.clearDepth(0.5); @@ -731,7 +714,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getParameter. */ it('testGetParameter11', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); const tex = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, tex); @@ -754,11 +737,10 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getParameter. */ it('testGetParameter12', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); const str = gl.getParameter(gl.SHADING_LANGUAGE_VERSION); console.info("getParameter str: " + str); - // const strType = ((typeof str) === "object"); const str1 = str.join(" "); console.info("strType: " + str1); expect(str1 != null).assertTrue(); @@ -772,7 +754,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getParameter. */ it('testGetParameter13', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.enable(gl.SAMPLE_COVERAGE); gl.sampleCoverage(0.5, false); @@ -793,7 +775,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getVertexAttrib. */ it('testGetVertexAttrib', 0, async function (done) { - //initContext(); + console.info('jsWebGL getVertexAttrib test start ...' + JSON.stringify(gl)); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -810,7 +792,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform1f. */ it('testUniform1f', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform1f test start ...' + JSON.stringify(gl)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -829,7 +811,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform1f. */ it('testUniform1fError', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform1f test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); const uniformLocation = gl.getUniformLocation(program, "a_Position"); @@ -848,7 +830,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform2f. */ it('testUniform2f', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform2f test start ...' + JSON.stringify(gl)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -866,7 +848,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform2f. */ it('testUniform2fError', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform2f test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); const uniformLocation = gl.getUniformLocation(program, "a_Position"); @@ -885,7 +867,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform3f. */ it('testUniform3f', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform3f test start ...' + JSON.stringify(gl)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -904,7 +886,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test frontFace. */ it('testUniform3fError', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform3f test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); const uniformLocation = gl.getUniformLocation(program, "a_Position"); @@ -922,7 +904,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform4f. */ it('testUniform4f', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform4f test start ...' + JSON.stringify(gl)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -940,7 +922,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform4f. */ it('testUniform4fError', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform4f test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); const uniformLocation = gl.getUniformLocation(program, "a_Position"); @@ -959,7 +941,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform1i. */ it('testUniform1i', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform1i test start ...' + JSON.stringify(gl)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -978,7 +960,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform1i. */ it('testUniform1iError', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform1i test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); const uniformLocation = gl.getUniformLocation(program, "a_Position"); @@ -997,7 +979,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform2i. */ it('testUniform2i', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform2i test start ...' + JSON.stringify(gl)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1015,7 +997,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform2i. */ it('testUniform2iError', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform2i test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); const uniformLocation = gl.getUniformLocation(program, "a_Position"); @@ -1034,7 +1016,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform3i. */ it('testUniform3i', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform3i test start ...' + JSON.stringify(gl)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1052,7 +1034,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform3i. */ it('testUniform3iError', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform3i test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); const uniformLocation = gl.getUniformLocation(program, "a_Position"); @@ -1071,7 +1053,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform4i. */ it('testUniform4i', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform4i test start ...' + JSON.stringify(gl)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1089,7 +1071,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform4i. */ it('testUniform4iError', 0, async function (done) { - //initContext(); + console.info('jsWebGL uniform4i test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); const uniformLocation = gl.getUniformLocation(program, "a_Position"); @@ -1108,7 +1090,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test texParameterf. */ it('testTexParameterf', 0, async function (done) { - //initContext(); + console.info('jsWebGL texParameterf test start ...' + JSON.stringify(gl)); gl.texParameterf(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); const texParameterValue = gl.getTexParameter(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER); @@ -1123,7 +1105,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test texParameteri. */ it('testTexParameteri', 0, async function (done) { - //initContext(); + console.info('jsWebGL texParameteri test start ...' + JSON.stringify(gl)); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR_MIPMAP_NEAREST); const texParameterValue = gl.getTexParameter(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER); @@ -1138,7 +1120,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test hint. */ it('testHint', 0, async function (done) { - //initContext(); + console.info('jsWebGL hint test start ...' + JSON.stringify(gl)); gl.hint(gl.GENERATE_MIPMAP_HINT, gl.FASTEST); gl.generateMipmap(gl2.TEXTURE_2D); @@ -1155,7 +1137,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test hint. */ it('testHintError', 0, async function (done) { - //initContext(); + console.info('jsWebGL hint test start ...' + JSON.stringify(gl)); gl.hint(gl.GENERATE_MIPMAP_HINT, gl.FASTEST); gl.generateMipmap(gl.TEXTURE_2D); @@ -1171,7 +1153,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test isBuffer. */ it('testIsBuffer', 0, async function (done) { - //initContext(); + console.info('jsWebGL isBuffer test start ...' + JSON.stringify(gl)); const buffer = gl.createBuffer(); @@ -1194,7 +1176,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test isEnabled. */ it('testIsEnabled', 0, async function (done) { - //initContext(); + console.info('jsWebGL isEnabled test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); @@ -1218,7 +1200,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test sampleCoverage. */ it('testSampleCoverageFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL sampleCoverage test start ...' + JSON.stringify(gl)); gl.enable(gl.SAMPLE_COVERAGE); gl.sampleCoverage(0.5, false); @@ -1237,7 +1219,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test sampleCoverage. */ it('testSampleCoverageSecond', 0, async function (done) { - //initContext(); + console.info('jsWebGL sampleCoverage test start ...' + JSON.stringify(gl)); gl.enable(gl.SAMPLE_COVERAGE); gl.sampleCoverage(0.5, false); @@ -1254,7 +1236,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test scissor. */ it('testScissor', 0, async function (done) { - //initContext(); + console.info('jsWebGL scissor test start ...' + JSON.stringify(gl)); // turn on scissor test @@ -1294,7 +1276,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test renderbufferStorage. */ it('testRenderbufferStorage', 0, async function (done) { - //initContext(); + console.info('jsWebGL renderbufferStorage test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -1311,7 +1293,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test stencilFunc. */ it('testStencilFunc', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilFunc test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); gl.stencilFunc(gl.LESS, 0, 0b1110011); @@ -1327,7 +1309,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test stencilFuncSeparate. */ it('testStencilFuncSeparate', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilFuncSeparate test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); gl.stencilFuncSeparate(gl.FRONT, gl.LESS, 0.2, 1110011); @@ -1344,7 +1326,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test stencilMask. */ it('testStencilMask', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilMask test start ...' + JSON.stringify(gl)); gl.stencilMask(110101); const stencilMaskParameter = gl.getParameter(gl.STENCIL_WRITEMASK); @@ -1362,7 +1344,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test stencilMaskSeparate. */ it('testStencilMaskSeparate', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilMaskSeparate test start ...' + JSON.stringify(gl)); gl.stencilMaskSeparate(gl.FRONT, 110101); const stencilMaskSeparateParameter = gl.getParameter(gl.STENCIL_WRITEMASK); @@ -1381,7 +1363,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test stencilOp. */ it('testStencilOp', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilOp test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); gl.stencilOp(gl.INCR, gl.DECR, gl.INVERT); @@ -1398,7 +1380,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test stencilOpSeparate. */ it('testStencilOpSeparate', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilOpSeparate test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); gl.stencilOpSeparate(gl.FRONT, gl.INCR, gl.DECR, gl.INVERT); @@ -1414,7 +1396,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test shaderSource. */ it('testShaderSource', 0, async function (done) { - //initContext(); + console.info('jsWebGL shaderSource test start ...' + JSON.stringify(gl)); var shader = gl.createShader(gl.VERTEX_SHADER); gl.shaderSource(shader, 'originalSource'); @@ -1431,7 +1413,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getShaderSource. */ it('testGetShaderSource', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderSource test start ...' + JSON.stringify(gl)); var shader = gl.createShader(gl.VERTEX_SHADER); gl.shaderSource(shader, 'originalSource'); @@ -1448,7 +1430,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getShaderInfoLog. */ it('testGetShaderInfoLog', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderInfoLog test start ...' + JSON.stringify(gl)); var shader = gl.createShader(gl.VERTEX_SHADER); gl.shaderSource(shader, "shaderCode"); @@ -1468,7 +1450,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test frontFace. */ it('testFrontFaceSecond', 0, async function (done) { - //initContext(); + console.info('jsWebGL frontFace test start ...' + JSON.stringify(gl)); gl.enable(gl.CULL_FACE); gl.cullFace(gl.FRONT); @@ -1487,7 +1469,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getUniformBlockIndex. */ it('testGetUniformBlockIndex', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 getUniformBlockIndex test start ...' + JSON.stringify(gl2)); const program = gl.createProgram(); const blockIndex = gl2.getUniformBlockIndex(program, 'a_Position'); @@ -1506,7 +1488,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test getActiveUniformBlockParameter. */ it('testGetActiveUniformBlockParameter', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 getActiveUniformBlockParameter test start ...' + JSON.stringify( gl2)); const program = globalFunction(); @@ -1530,7 +1512,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test createVertexArray. */ it('testCreateVertexArray', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 createVertexArray test start ...' + JSON.stringify(gl2)); const vao = gl2.createVertexArray(); const isVertexArray1 = gl2.isVertexArray(vao); @@ -1548,7 +1530,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test bindVertexArray. */ it('testBindVertexArray', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bindVertexArray test start ...' + JSON.stringify(gl2)); const vao = gl2.createVertexArray(); const isVertexArray1 = gl2.isVertexArray(vao); @@ -1567,7 +1549,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test deleteVertexArray. */ it('testDeleteVertexArray', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 deleteVertexArray test start ...' + JSON.stringify(gl2)); const vao = gl2.createVertexArray(); gl2.bindVertexArray(vao); @@ -1586,7 +1568,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform1fv. */ it('testUniform1fvFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform1fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1605,7 +1587,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform1fv. */ it('testUniform1fvSecond', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform1fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1624,7 +1606,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform1fv. */ it('testUniform1fvError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform1fv test start ...' + JSON.stringify(gl2)); const programObj = gl.createProgram(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1643,7 +1625,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform1fv. */ it('testUniform1fvThird', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform1fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1661,7 +1643,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform1fv. */ it('testUniform1fv4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform1fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1679,7 +1661,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform2fv. */ it('testUniform2fvFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform2fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1698,7 +1680,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform2fv. */ it('testUniform2fvSecond', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform2fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1717,7 +1699,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform2fv. */ it('testUniform2fvError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform2fv test start ...' + JSON.stringify(gl2)); const programObj = gl.createProgram(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1736,7 +1718,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform2fv. */ it('testUniform2fv3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform2fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1754,7 +1736,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform2fv. */ it('testUniform2fv4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform2fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1772,7 +1754,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test frontFace. */ it('testUniform3fvFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform3fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1791,7 +1773,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform3fv. */ it('testUniform3fvSecond', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform3fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1810,7 +1792,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform3fv. */ it('testUniform3fvError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform3fv test start ...' + JSON.stringify(gl2)); const programObj = gl.createProgram(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1829,7 +1811,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform3fv. */ it('testUniform3fv3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform3fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1847,7 +1829,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform3fv. */ it('testUniform3fv4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform3fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1865,7 +1847,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform4fv. */ it('testUniform4fvFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform4fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1884,7 +1866,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform4fv. */ it('testUniform4fvSecond', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform4fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1903,7 +1885,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform4fv. */ it('testUniform4fvError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform4fv test start ...' + JSON.stringify(gl2)); const programObj = gl.createProgram(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1922,7 +1904,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform4fv. */ it('testUniform4fv3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform4fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1940,7 +1922,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform4fv. */ it('testUniform4fvThird', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform4fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1958,7 +1940,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform1iv. */ it('testUniform1ivFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform1iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1978,7 +1960,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform1iv. */ it('testUniform1ivSecond', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform1iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -1997,7 +1979,7 @@ export default function webgl1Test_webgl3() { * @tc.desc Test uniform1iv. */ it('testUniform1ivError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform1iv test start ...' + JSON.stringify(gl2)); const programObj = gl.createProgram(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); diff --git a/graphic/webGL/src/main/js/test/WebGL.test04.js b/graphic/webGL/src/main/js/test/WebGL.test04.js index 2ce091c7b..fa85e7d25 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test04.js +++ b/graphic/webGL/src/main/js/test/WebGL.test04.js @@ -290,7 +290,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform1iv. */ it('testUniform1iv3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform1iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -309,7 +309,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform1iv. */ it('testUniform1iv4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform1iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -327,7 +327,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform2iv. */ it('testUniform2ivFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform2iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -347,7 +347,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform2iv. */ it('testUniform2ivSecond', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform2iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -367,7 +367,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform2iv. */ it('testUniform2ivError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform2iv test start ...' + JSON.stringify(gl2)); const programObj = gl.createProgram(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -386,7 +386,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform2iv. */ it('testUniform2iv3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform2iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -404,7 +404,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform2iv. */ it('testUniform2iv4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform2iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -422,7 +422,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform3iv. */ it('testUniform3ivFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform3iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -441,7 +441,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform3iv. */ it('testUniform3ivSecond', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform3iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -460,7 +460,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform3iv. */ it('testUniform3ivError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform3iv test start ...' + JSON.stringify(gl2)); const programObj = gl.createProgram(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -479,7 +479,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform3iv. */ it('testUniform3iv3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform3iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -497,7 +497,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform3iv. */ it('testUniform3iv4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform3iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -515,7 +515,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform4iv. */ it('testUniform4ivFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform4iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -534,7 +534,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform4iv. */ it('testUniform4ivSecond', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform4iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -553,7 +553,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform4iv. */ it('testUniform4ivError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform4iv test start ...' + JSON.stringify(gl2)); const programObj = gl.createProgram(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -572,7 +572,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform4iv. */ it('testUniform4iv3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform4iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -590,7 +590,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniform4iv. */ it('testUniform4iv4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniform4iv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -608,7 +608,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix4fv. */ it('testUniformMatrix4fvFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix4fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -627,7 +627,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix4fv. */ it('testUniformMatrix4fv2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix4fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -646,7 +646,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix4fv. */ it('testUniformMatrix4fvError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix4fv test start ...' + JSON.stringify(gl2)); const programObj = gl.createProgram(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -665,7 +665,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix4fv. */ it('testUniformMatrix4fv3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix4fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -683,7 +683,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix4fv. */ it('testUniformMatrix4fv4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix4fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -701,7 +701,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix3fv. */ it('testUniformMatrix3fvFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix3fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -721,7 +721,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix3fv. */ it('testUniformMatrix3fv2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix3fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -741,7 +741,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix3fv. */ it('testUniformMatrix3fvError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix3fv test start ...' + JSON.stringify(gl2)); const programObj = gl.createProgram(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -761,7 +761,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix3fv. */ it('testUniformMatrix3fv3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix3fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -780,7 +780,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix3fv. */ it('testUniformMatrix3fv4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix3fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -799,7 +799,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix2fv. */ it('testUniformMatrix2fv1', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix2fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -819,7 +819,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix2fv. */ it('testUniformMatrix2fv2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix2fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -840,7 +840,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix2fv. */ it('testUniformMatrix2fvError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix2fv test start ...' + JSON.stringify(gl2)); const programObj = gl.createProgram(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -859,7 +859,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix2fv. */ it('testUniformMatrix2fv3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix2fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -878,7 +878,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test uniformMatrix2fv. */ it('testUniformMatrix2fv4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformMatrix2fv test start ...' + JSON.stringify(gl2)); const programObj = globalFunction(); const uniformLocation = gl.getUniformLocation(programObj, "a_Position"); @@ -897,7 +897,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test bufferData. */ it('testBufferData1', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); const buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -914,7 +914,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test bufferData. */ it('testBufferData2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); const buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -931,7 +931,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test bufferData. */ it('testBufferData3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); gl2.bufferData(gl.ELEMENT_ARRAY_BUFFER, new ArrayBuffer(8), gl.DYNAMIC_READ); const errorCode = gl.getError(); @@ -946,7 +946,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test bufferData. */ it('testBufferData4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); gl2.bufferData(gl.ELEMENT_ARRAY_BUFFER, new ArrayBuffer(8), gl.DYNAMIC_READ, 0, 0); const errorCode = gl.getError(); @@ -961,7 +961,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test bufferData. */ it('testBufferDataError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); gl2.bufferData(1024, gl.STATIC_DRAW); const bufferSize = gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE); @@ -977,7 +977,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test bufferData. */ it('testBufferSubData', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); gl2.bufferSubData(gl.COPY_READ_BUFFER, 512, new ArrayBuffer(8)); const errorCode = gl.getError(); @@ -992,7 +992,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test bufferData. */ it('testBufferSubData2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); gl2.bufferSubData(gl.COPY_READ_BUFFER, 512, new ArrayBuffer(8), 0, 0); const errorCode = gl.getError(); @@ -1007,7 +1007,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test texImage2D. */ it('testTexImage2D', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1026,7 +1026,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test texImage2D. */ it('testTexImage2D2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); gl2.texImage2D(gl2.TEXTURE_2D, 0, gl.RGB8, 512, 512, 0, gl.RGB, gl.UNSIGNED_BYTE, 0); const errorCode = gl.getError(); @@ -1041,7 +1041,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test texImage2D. */ it('testTexImage2D3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1059,7 +1059,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test frontFace. */ it('testTexImage2D4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1077,7 +1077,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D5', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texSubImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1095,7 +1095,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D6', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texSubImage2D test start ...' + JSON.stringify(gl2)); gl2.texSubImage2D(gl2.TEXTURE_2D, 0, 0, 0, 512, 512, gl.RED, gl.FLOAT, 0); const errorCode = gl.getError(); @@ -1110,7 +1110,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D7', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texSubImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1128,7 +1128,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_8', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texSubImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1146,7 +1146,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D9', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 compressedTexImage2D test start ...' + JSON.stringify(gl2)); gl2.compressedTexImage2D(gl2.TEXTURE_2D, 0, 0x83F3, 512, 512, 0, gl.PIXEL_UNPACK_BUFFER, 0); const errorCode = gl.getError(); @@ -1161,7 +1161,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D11', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 compressedTexImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1180,7 +1180,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2D12', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 compressedTexSubImage2D test start ...' + JSON.stringify(gl2)); gl2.compressedTexSubImage2D(gl2.TEXTURE_2D, 0, 256, 256, 512, 512, 0x83F3, gl .PIXEL_UNPACK_BUFFER, 0); @@ -1197,7 +1197,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2D13', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 compressedTexSubImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1215,7 +1215,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test readPixels. */ it('testReadPixelsFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 readPixels test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1233,7 +1233,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test readPixels. */ it('testReadPixelsSecond', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 readPixels test start ...' + JSON.stringify(gl2)); gl2.readPixels(0, 0, 512, 512, gl2.RGBA, gl2.UNSIGNED_BYTE, 0); const errorCode = gl.getError(); @@ -1248,7 +1248,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test readPixels. */ it('testReadPixelsThird', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 readPixels test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1266,7 +1266,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test readPixels. */ it('testReadPixelsError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 readPixels test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1289,14 +1289,14 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isFramebuffer. */ it('testIsFramebuffer', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testIsFramebuffer test start ...66'); var framebuffer = gl.createFramebuffer(); const isFramebuffer = gl.isFramebuffer(framebuffer); console.info("createFramebuffer --> isFramebuffer: " + isFramebuffer); expect(isFramebuffer).assertEqual(false); - //deleteContext(); + done(); } catch (e) { console.log("testIsFramebuffer has failed for " + e) @@ -1310,7 +1310,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isFramebuffer. */ it('testIsFramebuffer_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testIsFramebuffer_01 test start ...66'); var framebuffer = gl.createFramebuffer(); @@ -1319,7 +1319,7 @@ export default function webgl1Test_webgl4() { console.info("createFramebuffer --> bindFramebuffer --> isFramebuffer: " + isFramebuffer); expect(isFramebuffer).assertEqual(true); - //deleteContext(); + done(); } catch (e) { console.log("testIsFramebuffer_01 has failed for " + e) @@ -1333,14 +1333,14 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isFramebuffer. */ it('testIsFramebuffer_02', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testIsFramebuffer_02 test start ...66'); var programobject = gl.createProgram(); const isFramebuffer = gl.isFramebuffer(programobject); console.info("createFramebuffer --> isFramebuffer: " + isFramebuffer); expect(isFramebuffer).assertEqual(false); - //deleteContext(); + done(); } catch (e) { console.log("testIsFramebuffer_02 has failed for " + e) @@ -1354,7 +1354,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isFramebuffer. */ it('testIsFramebuffer_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsFramebuffer_03 test start ...66'); var shader = gl.createShader(gl.VERTEX_SHADER) const isFramebuffer = gl.isFramebuffer(shader); @@ -1369,7 +1369,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isFramebuffer. */ it('testIsFramebuffer_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsFramebuffer_04 test start ...66'); var renderbufferObject = gl.createRenderbuffer(); const isFramebuffer = gl.isFramebuffer(renderbufferObject); @@ -1384,7 +1384,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isProgram. */ it('testIsProgram', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsProgram test start ...66'); var program = gl.createProgram(); const isProgram = gl.isProgram(program); @@ -1399,7 +1399,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isProgram. */ it('testIsProgram_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsProgram_02 test start ...66'); var renderbuffer = gl.createRenderbuffer(); const programError = gl.getError(); @@ -1416,7 +1416,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isProgram. */ it('testIsProgram_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsProgram_03 test start ...66'); var shader = gl.createShader(gl.VERTEX_SHADER); const programError = gl.getError(); @@ -1433,7 +1433,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isRenderbuffer. */ it('testIsRenderbuffer', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsRenderbuffer test start ...66'); var renderbuffer = gl.createRenderbuffer(); const isrenderbuffer = gl.isRenderbuffer(renderbuffer); @@ -1448,7 +1448,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isRenderbuffer. */ it('testIsRenderbuffer_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsRenderbuffer_01 test start ...66'); var renderbuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderbuffer); @@ -1465,7 +1465,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isRenderbuffer. */ it('testIsRenderbuffer_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsRenderbuffer_02 test start ...66'); var framebuffer = gl.createFramebuffer(); const isrenderbuffer = gl.isRenderbuffer(framebuffer); @@ -1483,7 +1483,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isRenderbuffer. */ it('testIsRenderbuffer_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsRenderbuffer_03 test start ...66'); var programobject = gl.createProgram(); const isrenderbuffer = gl.isRenderbuffer(programobject); @@ -1498,7 +1498,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isShader. */ it('testIsShader', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsShader test start ...66'); var shader = gl.createShader(gl.VERTEX_SHADER) const isShader = gl.isShader(shader); @@ -1513,7 +1513,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isShader. */ it('testIsShader_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsShader_01 test start ...66'); var shader = gl.createShader(gl.FRAGMENT_SHADER) const isShader = gl.isShader(shader); @@ -1528,7 +1528,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isShader. */ it('testIsShader_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsShader_02 test start ...66'); var renderbuffer = gl.createRenderbuffer(); const isShader = gl.isShader(renderbuffer); @@ -1546,7 +1546,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isShader. */ it('testIsShader_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsShader_04 test start ...66'); var programobject = gl.createProgram(); const isShader = gl.isShader(programobject); @@ -1561,7 +1561,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isTexture. */ it('testIsTexture', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsTexture test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -1577,7 +1577,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isTexture. */ it('testIsTexture_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsTexture_01 test start ...66'); var texture = gl.createTexture(); const isTexture = gl.isTexture(texture); @@ -1592,7 +1592,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isTexture. */ it('testIsTexture_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsTexture_02 test start ...66'); var programobject = gl.createProgram(); const isTexture = gl.isTexture(programobject); @@ -1607,7 +1607,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isTexture. */ it('testIsTexture_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsTexture_03 test start ...66'); var renderbuffer = gl.createRenderbuffer(); const isTexture = gl.isTexture(renderbuffer); @@ -1622,7 +1622,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test isTexture. */ it('testIsTexture_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsTexture_04 test start ...66'); var framebuffer = gl.createFramebuffer(); const isTexture = gl.isTexture(framebuffer); @@ -1637,7 +1637,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test lineWidth. */ it('testLineWidth_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testLineWidth_01 test start ...66'); gl.lineWidth(-1); const windtherror = gl.getError(); @@ -1652,7 +1652,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test lineWidth. */ it('testLineWidth_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testLineWidth_02 test start ...66'); gl.lineWidth(0); const windtherror = gl.getError(); @@ -1668,7 +1668,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test linkProgram. */ it('testLinkProgram', 0, async function (done) { - //initContext(); + console.info('jsWebGL testLinkProgram test start ...66'); console.info('jsWebGL testLinkProgram test start ...' + JSON.stringify(gl)); var shaderProg = gl.createProgram(); @@ -1685,7 +1685,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test linkProgram. */ it('testLinkProgram_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testLinkProgram_03 test start ...66'); var shader = gl.createShader(gl.VERTEX_SHADER); gl.linkProgram(shader); @@ -1701,7 +1701,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test linkProgram. */ it('testLinkProgram_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testLinkProgram_04 test start ...66'); gl.linkProgram("-123"); const linkProgramError = gl.getError(); @@ -1716,7 +1716,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test pixelStorei. */ it('testPixelStorei', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei test start ...66'); var tex = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, tex); @@ -1738,7 +1738,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_01 test start ...66'); var tex = gl.createTexture(); gl.pixelStorei(gl.UNPACK_ALIGNMENT, 8); @@ -1754,7 +1754,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_02 test start ...66'); var tex = gl.createTexture(); gl.pixelStorei(gl.LINE_LOOP, 8); @@ -1770,7 +1770,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_03 test start ...66'); var tex = gl.createTexture(); gl.pixelStorei(gl.ONE_MINUS_SRC_COLOR, 8); @@ -1786,7 +1786,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_04 test start ...66'); var tex = gl.createTexture(); gl.pixelStorei(gl.ONE_MINUS_SRC_COLOR, -1); @@ -1803,7 +1803,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test polygonOffset. */ it('testPolygonOffset', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPolygonOffset test start ...66'); gl.enable(gl.POLYGON_OFFSET_FILL); gl.polygonOffset(2, 3); @@ -1819,7 +1819,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test polygonOffset. */ it('testPolygonOffset_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPolygonOffset_01 test start ...66'); gl.enable(gl.TRIANGLE_STRIP); gl.polygonOffset(-2, 3); @@ -1835,7 +1835,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test polygonOffset. */ it('testPolygonOffset_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPolygonOffset_02 test start ...66'); gl.enable(gl.TRIANGLES); gl.polygonOffset(-2, -3); @@ -1851,7 +1851,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test polygonOffset. */ it('testPolygonOffset_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPolygonOffset_03 test start ...66'); gl.enable(gl.LINES); gl.polygonOffset(0, 0); @@ -1867,7 +1867,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test polygonOffset. */ it('testPolygonOffset_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPolygonOffset_04 test start ...66'); gl.enable(gl.LINE_STRIP); gl.polygonOffset(0, 0); @@ -1883,7 +1883,7 @@ export default function webgl1Test_webgl4() { * @tc.desc Test bufferData. */ it('testBufferData', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData test start ...66'); console.info('jsWebGL testBufferData test start ...' + JSON.stringify(gl)); var buffer = gl.createBuffer(); diff --git a/graphic/webGL/src/main/js/test/WebGL.test05.js b/graphic/webGL/src/main/js/test/WebGL.test05.js index bb47b9a43..47606d38d 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test05.js +++ b/graphic/webGL/src/main/js/test/WebGL.test05.js @@ -290,7 +290,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test bufferData. */ it('testBufferData_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_01 test start ...66'); var buffer = gl.createBuffer(); gl.bufferData(gl.ARRAY_BUFFER, 1024, gl.INVALID_ENUM); @@ -306,7 +306,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test bufferData. */ it('testBufferData_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_02 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -339,7 +339,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test bufferData. */ it('testBufferData_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_04 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -356,7 +356,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test bufferData. */ it('testBufferData_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_1 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -373,7 +373,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test bufferData. */ it('testBufferData_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_1_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -391,7 +391,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test bufferData. */ it('testBufferData_1_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_1_02 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -408,7 +408,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test bufferData. */ it('testBufferData_1_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_1_03 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -425,7 +425,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test bufferData. */ it('testBufferData_1_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_1_03 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -442,7 +442,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test bufferSubData. */ it('testBufferSubData', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferSubData test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -460,7 +460,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test bufferData. */ it('testBufferSubData_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferSubData_1 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -478,7 +478,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test bufferSubData. */ it('testBufferSubData_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferSubData_2 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -497,7 +497,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test bufferSubData. */ it('testBufferSubData_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferSubData_3 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -515,7 +515,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test bufferSubData. */ it('testBufferSubData_4', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferSubData_4 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -533,7 +533,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexImage2D test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -550,7 +550,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexImage2D_01 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_3D, texture); @@ -567,7 +567,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexImage2D_02 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_3D, texture); @@ -584,7 +584,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexImage2D_03 test start ...66'); var program = gl.createProgram(); gl.bindTexture(gl.TEXTURE_3D, program); @@ -601,7 +601,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexImage2D_04 test start ...66'); var framebuffer = gl.createFramebuffer(); gl.bindTexture(gl.TEXTURE_3D, framebuffer); @@ -618,7 +618,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2D_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexSubImage2D_1 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -637,7 +637,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test readPixels. */ it('testReadPixels', 0, async function (done) { - //initContext(); + console.info('jsWebGL testReadPixels test start ...66'); var pixels = new Uint8Array(gl.drawingBufferWidth * gl.drawingBufferHeight * 4); gl.readPixels(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight, gl.RGBA, gl @@ -654,7 +654,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test readPixels. */ it('testReadPixels_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testReadPixels_01 test start ...66'); var pixels = new Uint8Array(gl.drawingBufferWidth * gl.drawingBufferHeight * 4); gl.readPixels(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight, gl.RGBA, gl.DST_COLOR, @@ -671,7 +671,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test readPixels. */ it('testReadPixels_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testReadPixels_02 test start ...66'); var pixels = new Uint8Array(gl.drawingBufferWidth * gl.drawingBufferHeight * 4); gl.readPixels(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight, gl.RGBA, gl.DST_COLOR, @@ -688,7 +688,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test readPixels. */ it('testReadPixels_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testReadPixels_03 test start ...66'); var pixels = new Uint8Array(gl.drawingBufferWidth * gl.drawingBufferHeight * 4); gl.readPixels(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight, -1, gl.DST_COLOR, -2); @@ -704,7 +704,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test readPixels. */ it('testReadPixels_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testReadPixels_04 test start ...66'); var pixels = new Uint8Array(gl.drawingBufferWidth * gl.drawingBufferHeight * 4); gl.readPixels(-1, -1, gl.drawingBufferWidth, gl.drawingBufferHeight, -1, gl.CONSTANT_COLOR, @@ -721,7 +721,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test texImage2D. */ it('testTexImage2D', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -739,7 +739,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test texImage2D. */ it('testTexImage2D_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D_01 test start ...66'); const buffer = new ArrayBuffer(8); const z = new Uint8Array(buffer, 1, 4); @@ -757,7 +757,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test texImage2D. */ it('testTexImage2D_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D_02 test start ...66'); const buffer = new ArrayBuffer(8); const z = new Uint8Array(buffer, 1, 4); @@ -774,7 +774,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test texImage2D. */ it('testTexImage2D_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D_03 test start ...66'); const buffer = new ArrayBuffer(8); const z = new Uint8Array(buffer, 1, 4); @@ -791,7 +791,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test texImage2D. */ it('testTexImage2D_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D_04 test start ...66'); const buffer = new ArrayBuffer(8); const z = new Uint8Array(buffer, 1, 4); @@ -808,7 +808,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexSubImage2D test start ...66'); console.info('jsWebGL testTexSubImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(16); @@ -826,7 +826,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform1fv. */ it('testUniform1fv', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform1fv test start ...66'); const programObj = createProgram(gl); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -846,7 +846,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform1fv. */ it('testUniform1fv_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform1fv_1 test start ...66'); const shader = gl.createShader(gl.VERTEX_SHADER); const uniformlocationObj = gl.getUniformLocation(shader, "a_Position1"); @@ -864,7 +864,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform1fv. */ it('testUniform1fv_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform1fv_3 test start ...66'); const programobject = gl.createProgram(); const uniformlocationObj = gl.getUniformLocation(programobject, "a_Position1"); @@ -883,7 +883,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform2fv. */ it('testUniform2fv', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform2fv test start ...66'); const programObj = createProgram(gl); const uniformlocationObj = gl.getUniformLocation(programObj, "123"); @@ -901,7 +901,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform2fv. */ it('testUniform2fv_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform2fv_2 test start ...66'); const programObj = gl.createProgram(); const uniformlocationObj = gl.getUniformLocation(programObj, "123"); @@ -919,7 +919,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform2fv. */ it('testUniform2fv_4', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform2fv_4 test start ...66'); const shader = gl.createShader(gl.VERTEX_SHADER); const uniformlocationObj = gl.getUniformLocation(shader, "a_Position1"); @@ -937,7 +937,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform3fv. */ it('testUniform3fv', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform3fv test start ...66'); const programObj = createProgram(gl); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -955,7 +955,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform3fv. */ it('testUniform3fv_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform3fv_1 test start ...66'); const programObj = gl.createProgram(); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -973,7 +973,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform3fv. */ it('testUniform3fv_4', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform3fv_4 test start ...66'); const shader = gl.createShader(gl.VERTEX_SHADER); const uniformlocationObj = gl.getUniformLocation(shader, "a_Position"); @@ -991,7 +991,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform4fv. */ it('testUniform4fv', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform4fv test start ...66'); const programObj = createProgram(gl); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1009,7 +1009,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform4fv. */ it('testUniform4fv_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform4fv_01 test start ...66'); const programObj = gl.createProgram(); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1027,7 +1027,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform4fv. */ it('testUniform4fv_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform4fv_04 test start ...66'); const shader = gl.createShader(gl.VERTEX_SHADER); const uniformlocationObj = gl.getUniformLocation(shader, "a_Position"); @@ -1045,7 +1045,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform1iv. */ it('testUniform1iv', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform1iv test start ...66'); const programObj = createProgram(gl); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1063,7 +1063,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform1iv. */ it('testUniform1iv_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform1iv_01 test start ...66'); const programObj = gl.createProgram(); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1081,7 +1081,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform2iv. */ it('testUniform2iv', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform2iv test start ...66'); const programObj = createProgram(gl); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1099,7 +1099,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform2iv. */ it('testUniform2iv_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform2iv_01 test start ...66'); const programObj = gl.createProgram(); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1117,7 +1117,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform2iv. */ it('testUniform2iv_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform2iv_04 test start ...66'); const shader = gl.createShader(gl.VERTEX_SHADER); const uniformlocationObj = gl.getUniformLocation(shader, "a_Position"); @@ -1135,7 +1135,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform3iv. */ it('testUniform3iv', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform3iv test start ...66'); const programObj = createProgram(gl); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1153,7 +1153,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform3iv. */ it('testUniform3iv_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform3iv_01 test start ...66'); const programObj = gl.createProgram(); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1171,7 +1171,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform3iv. */ it('testUniform3iv_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform3iv_04 test start ...66'); const shader = gl.createShader(gl.VERTEX_SHADER); const uniformlocationObj = gl.getUniformLocation(shader, "a_Position"); @@ -1189,7 +1189,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform4iv. */ it('testUniform4iv', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform4iv test start ...66'); const programObj = createProgram(gl); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1207,7 +1207,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform4iv. */ it('testUniform4iv_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform4iv_01 test start ...66'); const programObj = gl.createProgram(); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1225,7 +1225,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform4iv. */ it('testUniform4iv_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform4iv_02 test start ...66'); const buffer = gl.createBuffer(); const uniformlocationObj = gl.getUniformLocation(buffer, "a_Position"); @@ -1246,7 +1246,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniform4iv. */ it('testUniform4iv_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform4iv_03 test start ...66'); const shader = gl.createShader(gl.FRAGMENT_SHADER); const uniformlocationObj = gl.getUniformLocation(shader, "a_Position"); @@ -1264,7 +1264,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test Uniform4uiv. */ it('testUniform4iv_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniform4iv_03 test start ...66'); const shader = gl.createShader(gl.VERTEX_SHADER); const uniformlocationObj = gl.getUniformLocation(shader, "a_Position"); @@ -1282,7 +1282,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniformMatrix2fv. */ it('testUniformMatrix2fv', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniformMatrix2fv test start ...66'); const programObj = createProgram(gl); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1300,7 +1300,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniformMatrix2fv. */ it('testUniformMatrix2fv_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniformMatrix2fv_01 test start ...66'); const programObj = gl.createProgram(); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1318,7 +1318,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniformMatrix2fv. */ it('testUniformMatrix2fv_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniformMatrix2fv_03 test start ...66'); const shader = gl.createShader(gl.VERTEX_SHADER); const uniformlocationObj = gl.getUniformLocation(shader, "a_Position"); @@ -1337,7 +1337,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniformMatrix2fv. */ it('testUniformMatrix2fv_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniformMatrix2fv_04 test start ...66'); const shader = gl.createShader(gl.VERTEX_SHADER); const uniformlocationObj = gl.getUniformLocation(shader, "a_Position"); @@ -1355,7 +1355,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniformMatrix3fv. */ it('testUniformMatrix3fv', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniformMatrix3fv test start ...66'); const programObj = createProgram(gl); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1373,7 +1373,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniformMatrix3fv. */ it('testUniformMatrix3fv_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniformMatrix3fv_01 test start ...66'); const programObj = gl.createProgram(); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1391,7 +1391,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniformMatrix3fv. */ it('testUniformMatrix3fv_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniformMatrix3fv_02 test start ...66'); const fragmentShader = gl.createShader(gl.FRAGMENT_SHADER); const uniformlocationObj = gl.getUniformLocation(fragmentShader, "a_Position"); @@ -1409,7 +1409,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniformMatrix3fv. */ it('testUniformMatrix3fv_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniformMatrix3fv_03 test start ...66'); const fragmentShader = gl.createShader(gl.FRAGMENT_SHADER); const uniformlocationObj = gl.getUniformLocation(fragmentShader, "a_Position"); @@ -1427,7 +1427,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniformMatrix3fv. */ it('testUniformMatrix3fv_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniformMatrix3fv_04 test start ...66'); var shader = gl.createShader(gl.VERTEX_SHADER); const uniformlocationObj = gl.getUniformLocation(shader, "a_Position"); @@ -1445,7 +1445,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniformMatrix4fv. */ it('testUniformMatrix4fv', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniformMatrix4fv test start ...66'); const programObj = createProgram(gl); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1464,7 +1464,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniformMatrix4fv. */ it('testUniformMatrix4fv_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniformMatrix4fv_01 test start ...66'); const programObj = gl.createProgram(); const uniformlocationObj = gl.getUniformLocation(programObj, "a_Position"); @@ -1483,7 +1483,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniformMatrix4fv. */ it('testUniformMatrix4fv_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniformMatrix4fv_02 test start ...66'); const fragmentShader = gl.createShader(gl.FRAGMENT_SHADER); const uniformlocationObj = gl.getUniformLocation(fragmentShader, "a_Position"); @@ -1502,7 +1502,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniformMatrix4fv. */ it('testUniformMatrix4fv_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniformMatrix4fv_03 test start ...66'); var fragmentShader = gl.createShader(gl.FRAGMENT_SHADER); const uniformlocationObj = gl.getUniformLocation(fragmentShader, "a_Position"); @@ -1521,7 +1521,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test uniformMatrix4fv. */ it('testUniformMatrix4fv_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testUniformMatrix4fv_04 test start ...66'); const shader = gl.createShader(gl.VERTEX_SHADER); const uniformlocationObj = gl.getUniformLocation(shader, "a_Position"); @@ -1540,7 +1540,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test copyBufferSubData. */ it('testCopyBufferSubData', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCopyBufferSubData test start ...66'); console.info('jsWebGL testCopyBufferSubData test start ...' + JSON.stringify(gl)); const srcBuffer = gl.createBuffer(); @@ -1566,7 +1566,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test copyBufferSubData. */ it('testCopyBufferSubData_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCopyBufferSubData_01 test start ...66'); const srcBuffer = gl.createBuffer(); const dstBuffer = gl.createBuffer(); @@ -1592,7 +1592,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test copyBufferSubData. */ it('testCopyBufferSubData_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCopyBufferSubData_02 test start ...66'); const srcBuffer = gl.createBuffer(); const dstBuffer = gl.createBuffer(); @@ -1618,7 +1618,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test copyBufferSubData. */ it('testCopyBufferSubData_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCopyBufferSubData_03 test start ...66'); const srcBuffer = gl.createBuffer(); const dstBuffer = gl.createBuffer(); @@ -1643,7 +1643,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test copyBufferSubData. */ it('testCopyBufferSubData_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCopyBufferSubData_04 test start ...66'); const srcBuffer = gl.createBuffer(); const dstBuffer = gl.createBuffer(); @@ -1669,7 +1669,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test getBufferSubData. */ it('testGetBufferSubData', 0, async function (done) { - //initContext(); + console.info('jsWebGL testGetBufferSubData test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -1689,7 +1689,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test getBufferSubData. */ it('testGetBufferSubData_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testGetBufferSubData_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -1709,7 +1709,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test getBufferSubData. */ it('testGetBufferSubData_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testGetBufferSubData_02 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -1729,7 +1729,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test getBufferSubData. */ it('testGetBufferSubData_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testGetBufferSubData_03 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -1749,7 +1749,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test getBufferSubData. */ it('testGetBufferSubData_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testGetBufferSubData_04 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -1772,7 +1772,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test blitFramebuffer. */ it('testBlitFramebuffer', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBlitFramebuffer test start ...66'); console.info('jsWebGL testBlitFramebuffer test start ...' + JSON.stringify(gl)); gl2.blitFramebuffer(0, 0, 400, 1080, 0, 0, 400, 1080, gl2.COLOR_BUFFER_BIT, gl2.NEAREST); @@ -1788,7 +1788,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test framebufferTextureLayer. */ it('testFramebufferTextureLayer', 0, async function (done) { - //initContext(); + console.info('jsWebGL testFramebufferTextureLayer test start ...66'); console.info('jsWebGL testFramebufferTextureLayer test start ...' + JSON.stringify(gl)); var texture = gl.createTexture(); @@ -1806,7 +1806,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test invalidateFramebuffer. */ it('testInvalidateFramebuffer', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateFramebuffer test start ...66'); console.info('jsWebGL testInvalidateFramebuffer test start ...' + JSON.stringify(gl)); gl2.invalidateFramebuffer(gl.READ_FRAMEBUFFER, @@ -1823,7 +1823,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test invalidateSubFramebuffer. */ it('testInvalidateSubFramebuffer', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateSubFramebuffer test start ...66'); console.info('jsWebGL testInvalidateSubFramebuffer test start ...' + JSON.stringify(gl)); gl2.invalidateSubFramebuffer(gl.READ_FRAMEBUFFER, diff --git a/graphic/webGL/src/main/js/test/WebGL.test06.js b/graphic/webGL/src/main/js/test/WebGL.test06.js index feded0135..5972fb66d 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test06.js +++ b/graphic/webGL/src/main/js/test/WebGL.test06.js @@ -289,7 +289,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getInternalformatParameter. */ it('testGetInternalformatParameter', 0, async function (done) { - //initContext(); + console.info('jsWebGL testGetInternalformatParameter test start ...66'); var samples = gl2.getInternalformatParameter(gl.RENDERBUFFER, gl2.RGBA8, gl.SAMPLES); console.info("samples: " + samples); @@ -308,7 +308,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getInternalformatParameter. */ it('testGetInternalformatParameter_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testGetInternalformatParameter_01 test start ...66'); var samples = gl2.getInternalformatParameter(gl.RENDERBUFFER, gl2.RGBA8, gl.SAMPLES); console.info("samples: " + samples); @@ -323,7 +323,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample test start ...66'); gl2.renderbufferStorageMultisample(gl.RENDERBUFFER, 4, gl.RBGA4, 256, 256); const renderbufferStorageMultisampleError = gl.getError(); @@ -338,7 +338,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test texStorage2D. */ it('testTexStorage2D', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexStorage2D test start ...66'); console.info('jsWebGL testTexStorage2D test start ...' + JSON.stringify(gl)); gl2.texStorage2D(gl.TEXTURE_2D, 1, gl.RGB8, 256, 256); @@ -354,7 +354,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test transformFeedbackVaryings. */ it('testTransformFeedbackVaryings', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTransformFeedbackVaryings test start ...66'); console.info('jsWebGL testTransformFeedbackVaryings test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); @@ -372,7 +372,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test pauseTransformFeedback. */ it('testPauseTransformFeedback', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testPauseTransformFeedback test start ...66'); console.info('jsWebGL testPauseTransformFeedback test start ...' + JSON.stringify(gl)); @@ -383,7 +383,7 @@ export default function webgl1Test_webgl6() { const pauseTransformFeedbackError = gl.getError(); console.info("pauseTransformFeedbackError: " + pauseTransformFeedbackError); expect(pauseTransformFeedbackError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testPauseTransformFeedback has failed for " + e) @@ -397,7 +397,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test resumeTransformFeedback. */ it('testResumeTransformFeedback', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testPauseTransformFeedback test start ...66'); console.info('jsWebGL testPauseTransformFeedback test start ...' + JSON.stringify(gl)); @@ -405,7 +405,7 @@ export default function webgl1Test_webgl6() { const resumeTransformFeedbackError = gl.getError(); console.info("resumeTransformFeedbackError: " + resumeTransformFeedbackError); expect(resumeTransformFeedbackError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("resumeTransformFeedbackError has failed for " + e) @@ -419,7 +419,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test bindBufferBase. */ it('testBindBufferBase', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testBindBufferBase test start ...66'); console.info('jsWebGL testBindBufferBase test start ...' + JSON.stringify(gl)); @@ -428,7 +428,7 @@ export default function webgl1Test_webgl6() { const bindBufferBaseError = gl.getError(); console.info("bindBufferBaseError: " + bindBufferBaseError); expect(bindBufferBaseError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("bindBufferBaseError has failed for " + e) @@ -442,7 +442,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getIndexedParameter. */ it('testGetIndexedParameter', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetIndexedParameter test start ...66'); console.info('jsWebGL testGetIndexedParameter test start ...' + JSON.stringify(gl)); @@ -450,7 +450,7 @@ export default function webgl1Test_webgl6() { 0); const isBuffer = gl.isBuffer(WebGLBufferobject); expect(isBuffer).assertEqual(false); - //deleteContext(); + done(); } catch (e) { console.log("testGetIndexedParameter has failed for " + e) @@ -464,14 +464,14 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getIndexedParameter. */ it('testGetIndexedParameter_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetIndexedParameter_01 test start ...66'); console.info('jsWebGL testGetIndexedParameter_01 test start ...' + JSON.stringify(gl)); const reurGLsizeiptr = gl2.getIndexedParameter(gl.TRANSFORM_FEEDBACK_BUFFER_SIZE, 0); const typeGLsizeiptr = typeof (reurGLsizeiptr); expect(typeGLsizeiptr).assertInstanceOf('String'); - //deleteContext(); + done(); } catch (e) { console.log("testGetIndexedParameter_01 has failed for " + e) @@ -485,14 +485,14 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getIndexedParameter. */ it('testGetIndexedParameter_02', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetIndexedParameter_02 test start ...66'); console.info('jsWebGL testGetIndexedParameter_02 test start ...' + JSON.stringify(gl)); const retuGLintptr = gl2.getIndexedParameter(gl.TRANSFORM_FEEDBACK_BUFFER_START, 0); const typeGLintptr = typeof (retuGLintptr); expect(typeGLintptr).assertInstanceOf('String'); - //deleteContext(); + done(); } catch (e) { console.log("testGetIndexedParameter_02 has failed for " + e) @@ -506,14 +506,14 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getIndexedParameter. */ it('testGetIndexedParameter_03', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetIndexedParameter_03 test start ...66'); console.info('jsWebGL testGetIndexedParameter_03 test start ...' + JSON.stringify(gl)); const WebGLBufferobject = gl2.getIndexedParameter(gl.UNIFORM_BUFFER_BINDING, 0); const isBuffer = gl.isBuffer(WebGLBufferobject); expect(isBuffer).assertEqual(false); - //deleteContext(); + done(); } catch (e) { console.log("testGetIndexedParameter_03 has failed for " + e) @@ -527,14 +527,14 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getIndexedParameter. */ it('testGetIndexedParameter_04', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetIndexedParameter_04 test start ...66'); console.info('jsWebGL testGetIndexedParameter_04 test start ...' + JSON.stringify(gl)); const reurGLsizeiptr = gl2.getIndexedParameter(gl.UNIFORM_BUFFER_SIZE, 0); const typeGLsizeiptr = typeof (reurGLsizeiptr); expect(typeGLsizeiptr).assertInstanceOf('String'); - //deleteContext(); + done(); } catch (e) { console.log("testGetIndexedParameter_04 has failed for " + e) @@ -548,14 +548,14 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getIndexedParameter. */ it('testGetIndexedParameter_05', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetIndexedParameter_05 test start ...66'); console.info('jsWebGL testGetIndexedParameter_05 test start ...' + JSON.stringify(gl)); const retuGLintptr = gl2.getIndexedParameter(gl.UNIFORM_BUFFER_START, 0); const typeGLintptr = typeof (retuGLintptr); expect(typeGLintptr).assertInstanceOf('String'); - //deleteContext(); + done(); } catch (e) { console.log("testGetIndexedParameter_05 has failed for " + e) @@ -569,7 +569,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getUniformIndices. */ it('testGetUniformIndices', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetUniformIndices test start ...66'); console.info('jsWebGL testGetUniformIndices test start ...' + JSON.stringify(gl)); @@ -580,7 +580,7 @@ export default function webgl1Test_webgl6() { console.log("testGetUniformIndices has failed for " + int32list) //判断数据类型是否正确 expect(retuGLintptr.constructor).assertEqual(int32list.constructor); - //deleteContext(); + done(); } catch (e) { console.log("testGetUniformIndices has failed for " + e) @@ -594,7 +594,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getUniformIndices. */ it('testGetUniformIndices_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetUniformIndices_01 test start ...66'); const program = gl.createProgram(); @@ -604,7 +604,7 @@ export default function webgl1Test_webgl6() { console.log("testGetUniformIndices_01 has failed for " + int32list) //判断数据值是否正确 expect(retuGLintptr.toString() != int32list.toString()).assertEqual(true); - //deleteContext(); + done(); } catch (e) { console.log("testGetUniformIndices has failed for " + e) @@ -618,7 +618,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getActiveUniforms. */ it('testGetActiveUniforms', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetActiveUniforms test start ...66'); console.info('jsWebGL testGetActiveUniforms test start ...' + JSON.stringify(gl)); @@ -661,7 +661,7 @@ export default function webgl1Test_webgl6() { const uniformType = gl2.getActiveUniforms(programObj, uniformIndices, gl2.UNIFORM_TYPE) const glenumList = [-1, -1, -1]; expect(uniformType.toString() != glenumList.toString()).assertEqual(true); - //deleteContext(); + done(); } catch (e) { console.log("testGetActiveUniforms has failed for " + e) @@ -675,7 +675,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getActiveUniforms. */ it('testGetActiveUniforms_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetActiveUniforms_01 test start ...66'); //顶点着色器程序 @@ -713,7 +713,7 @@ export default function webgl1Test_webgl6() { const uniformType = gl2.getActiveUniforms(programObj, uniformIndices, gl2.UNIFORM_TYPE) const glenumList = [-1, -1, -1]; expect(uniformType.constructor).assertEqual(glenumList.constructor); - //deleteContext(); + done(); } catch (e) { console.log("testGetActiveUniforms has failed for " + e) @@ -727,7 +727,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getActiveUniforms. */ it('testGetActiveUniforms_02', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetActiveUniforms_02 test start ...66'); //顶点着色器程序 @@ -765,7 +765,7 @@ export default function webgl1Test_webgl6() { const uniformSize = gl2.getActiveUniforms(programObj, uniformIndices, gl2.UNIFORM_SIZE) const gluintList = [-1, 0, 0]; expect(uniformSize.toString() != gluintList.toString()).assertEqual(true); - //deleteContext(); + done(); } catch (e) { console.log("testGetActiveUniforms_02 has failed for " + e) @@ -779,7 +779,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getActiveUniforms. */ it('testGetActiveUniforms_03', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetActiveUniforms_03 test start ...66'); //顶点着色器程序 @@ -817,7 +817,7 @@ export default function webgl1Test_webgl6() { .UNIFORM_BLOCK_INDEX) const glintlist = [-1, 0, 0]; expect(uniformBlockIndex.toString() != glintlist.toString()).assertEqual(true); - //deleteContext(); + done(); } catch (e) { console.log("testGetActiveUniforms_03 has failed for " + e) @@ -832,7 +832,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getActiveUniforms. */ it('testGetActiveUniforms_04', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetActiveUniforms_04 test start ...66'); //顶点着色器程序 @@ -870,7 +870,7 @@ export default function webgl1Test_webgl6() { .UNIFORM_OFFSET) const glintlist = [-1, 0, 0]; expect(uniformOffset.toString() != glintlist.toString()).assertEqual(true); - //deleteContext(); + done(); } catch (e) { console.log("testGetActiveUniforms_04 has failed for " + e) @@ -885,7 +885,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getActiveUniforms. */ it('testGetActiveUniforms_05', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetActiveUniforms_05 test start ...66'); //顶点着色器程序 @@ -923,7 +923,7 @@ export default function webgl1Test_webgl6() { .UNIFORM_ARRAY_STRIDE) const glintlist = [-1, 0, 0]; expect(uniformStride.toString() != glintlist.toString()).assertEqual(true); - //deleteContext(); + done(); } catch (e) { console.log("testGetActiveUniforms_05 has failed for " + e) @@ -938,7 +938,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getActiveUniforms. */ it('testGetActiveUniforms_06', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetActiveUniforms_06 test start ...66'); //顶点着色器程序 @@ -976,7 +976,7 @@ export default function webgl1Test_webgl6() { .UNIFORM_MATRIX_STRIDE) const glbooleanlist = [-1, 0, 0]; expect(uniformMatrixStride.toString() != glbooleanlist.toString()).assertEqual(true); - //deleteContext(); + done(); } catch (e) { console.log("testGetActiveUniforms_06 has failed for " + e) @@ -991,7 +991,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test useProgram. */ it('testUseProgram', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testUseProgram test start ...66'); console.info('jsWebGL testUseProgram test start ...' + JSON.stringify(gl)); @@ -1028,7 +1028,7 @@ export default function webgl1Test_webgl6() { const useProgramError = gl.getError(); console.info("useProgramError: " + useProgramError); expect(useProgramError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testUseProgram has failed for " + e) @@ -1042,7 +1042,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test validateProgram. */ it('testValidateProgram', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testValidateProgram test start ...66'); console.info('jsWebGL testValidateProgram test start ...' + JSON.stringify(gl)); @@ -1051,7 +1051,7 @@ export default function webgl1Test_webgl6() { const validateProgramError = gl.getError(); console.info("validateProgramError: " + validateProgramError); expect(validateProgramError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testValidateProgram has failed for " + e) @@ -1065,7 +1065,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test vertexAttrib1f. */ it('testVertexAttrib1f', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib1f test start ...66'); console.info('jsWebGL testVertexAttrib1f test start ...' + JSON.stringify(gl)); @@ -1073,7 +1073,7 @@ export default function webgl1Test_webgl6() { const vertexAttrib1fError = gl.getError(); console.info("vertexAttrib1fError: " + vertexAttrib1fError); expect(vertexAttrib1fError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib1f has failed for " + e) @@ -1087,14 +1087,14 @@ export default function webgl1Test_webgl6() { * @tc.desc Test vertexAttrib2f. */ it('testVertexAttrib2f', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib2f test start ...66'); gl.vertexAttrib2f(1, 10.0); const vertexAttrib2fError = gl.getError(); console.info("vertexAttrib2fError: " + vertexAttrib2fError); expect(vertexAttrib2fError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib2f has failed for " + e) @@ -1108,7 +1108,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test vertexAttrib3f. */ it('testVertexAttrib3f', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testvertexAttrib3f test start ...66'); console.info('jsWebGL testvertexAttrib3f test start ...' + JSON.stringify(gl)); @@ -1116,7 +1116,7 @@ export default function webgl1Test_webgl6() { const vertexAttrib3fError = gl.getError(); console.info("vertexAttrib3fError: " + vertexAttrib3fError); expect(vertexAttrib3fError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib3f has failed for " + e) @@ -1130,7 +1130,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test vertexAttrib4f. */ it('testVertexAttrib4f', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib4f test start ...66'); console.info('jsWebGL testVertexAttrib4f test start ...' + JSON.stringify(gl)); @@ -1138,7 +1138,7 @@ export default function webgl1Test_webgl6() { const vertexAttrib4fError = gl.getError(); console.info("vertexAttrib4fError: " + vertexAttrib4fError); expect(vertexAttrib4fError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testvertexAttrib4f has failed for " + e) @@ -1152,7 +1152,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test vertexAttrib1fv. */ it('testVertexAttrib1fv', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib1fv test start ...66'); console.info('jsWebGL testVertexAttrib1fv test start ...' + JSON.stringify(gl)); @@ -1161,7 +1161,7 @@ export default function webgl1Test_webgl6() { const vertexAttrib1fvError = gl.getError(); console.info("vertexAttrib1fvError: " + vertexAttrib1fvError); expect(vertexAttrib1fvError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib1fv has failed for " + e) @@ -1175,7 +1175,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test vertexAttrib2fv. */ it('testVertexAttrib2fv', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib2fv test start ...66'); console.info('jsWebGL testVertexAttrib2fv test start ...' + JSON.stringify(gl)); @@ -1184,7 +1184,7 @@ export default function webgl1Test_webgl6() { const vertexAttrib2fvError = gl.getError(); console.info("vertexAttrib2fvError: " + vertexAttrib2fvError); expect(vertexAttrib2fvError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib2fv has failed for " + e) @@ -1198,7 +1198,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test vertexAttrib3fv. */ it('testVertexAttrib3fv', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib3fv test start ...66'); console.info('jsWebGL testVertexAttrib3fv test start ...' + JSON.stringify(gl)); @@ -1207,7 +1207,7 @@ export default function webgl1Test_webgl6() { const vertexAttrib3fvError = gl.getError(); console.info("vertexAttrib3fvError: " + vertexAttrib3fvError); expect(vertexAttrib3fvError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib3fv has failed for " + e) @@ -1221,7 +1221,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test vertexAttrib4fv. */ it('testVertexAttrib4fv', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib4fv test start ...66'); console.info('jsWebGL testVertexAttrib4fv test start ...' + JSON.stringify(gl)); @@ -1230,7 +1230,7 @@ export default function webgl1Test_webgl6() { const vertexAttrib4fvError = gl.getError(); console.info("vertexAttrib4fvError: " + vertexAttrib4fvError); expect(vertexAttrib4fvError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib4fv has failed for " + e) @@ -1244,7 +1244,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test vertexAttribPointer. */ it('testVertexAttribPointer', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttribPointer test start ...66'); console.info('jsWebGL testVertexAttribPointer test start ...' + JSON.stringify(gl)); @@ -1252,7 +1252,7 @@ export default function webgl1Test_webgl6() { const vertexAttribPointerError = gl.getError(); console.info("vertexAttribPointerError: " + vertexAttribPointerError); expect(vertexAttribPointerError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttribPointer has failed for " + e) @@ -1266,7 +1266,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test viewport. */ it('testViewport', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testViewport test start ...66'); console.info('jsWebGL testViewport test start ...' + JSON.stringify(gl)); @@ -1274,7 +1274,7 @@ export default function webgl1Test_webgl6() { const viewportError = gl.getError(); console.info("viewportError: " + viewportError); expect(viewportError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testViewport has failed for " + e) @@ -1288,7 +1288,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test texStorage3D. */ it('testTexStorage3D', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexStorage3D test start ...66'); console.info('jsWebGL testTexStorage3D test start ...' + JSON.stringify(gl)); @@ -1296,7 +1296,7 @@ export default function webgl1Test_webgl6() { const texStorage3DError = gl.getError(); console.info("texStorage3DError: " + texStorage3DError); expect(texStorage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexStorage3D has failed for " + e) @@ -1310,7 +1310,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test texImage3D. */ it('testTexImage3D', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D test start ...66'); console.info('jsWebGL testTexImage3D test start ...' + JSON.stringify(gl)); @@ -1318,7 +1318,7 @@ export default function webgl1Test_webgl6() { const texImage3DError = gl.getError(); console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D has failed for " + e) @@ -1332,7 +1332,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test texImage3D. */ it('testTexImage3D_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D_01 test start ...66'); console.info('jsWebGL testTexImage3D_01 test start ...' + JSON.stringify(gl)); @@ -1342,7 +1342,7 @@ export default function webgl1Test_webgl6() { const texImage3DError = gl.getError(); console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D_01 has failed for " + e) @@ -1356,7 +1356,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test texImage3D. */ it('testTexImage3D_02', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D_02 test start ...66'); console.info('jsWebGL testTexImage3D_02 test start ...' + JSON.stringify(gl)); @@ -1366,7 +1366,7 @@ export default function webgl1Test_webgl6() { const texImage3DError = gl.getError(); console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D_02 has failed for " + e) @@ -1380,7 +1380,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test texSubImage3D. */ it('testTexSubImage3D', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexSubImage3D test start ...66'); console.info('jsWebGL testTexSubImage3D test start ...' + JSON.stringify(gl)); @@ -1388,7 +1388,7 @@ export default function webgl1Test_webgl6() { const texSubImage3DError = gl.getError(); console.info("texSubImage3DError: " + texSubImage3DError); expect(texSubImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexSubImage3D has failed for " + e) @@ -1402,7 +1402,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test texSubImage3D. */ it('testTexSubImage3D_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexSubImage3D_01 test start ...66'); console.info('jsWebGL testTexSubImage3D_01 test start ...' + JSON.stringify(gl)); @@ -1413,7 +1413,7 @@ export default function webgl1Test_webgl6() { const texSubImage3DError = gl.getError(); console.info("texSubImage3DError: " + texSubImage3DError); expect(texSubImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexSubImage3D_01 has failed for " + e) @@ -1427,7 +1427,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test copyTexSubImage3D. */ it('testCopyTexSubImage3D', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCopyTexSubImage3D test start ...66'); console.info('jsWebGL testCopyTexSubImage3D test start ...' + JSON.stringify(gl)); @@ -1435,7 +1435,7 @@ export default function webgl1Test_webgl6() { const copyTexSubImage3DError = gl.getError(); console.info("copyTexSubImage3DError: " + copyTexSubImage3DError); expect(copyTexSubImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCopyTexSubImage3D has failed for " + e) @@ -1449,7 +1449,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test compressedTexImage3D. */ it('testCompressedTexImage3D_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCompressedTexImage3D_01 test start ...66'); console.info('jsWebGL testCompressedTexImage3D_01 test start ...' + JSON.stringify(gl)); @@ -1458,7 +1458,7 @@ export default function webgl1Test_webgl6() { const compressedTexImage3DError = gl.getError(); console.info("compressedTexImage3DError: " + compressedTexImage3DError); expect(compressedTexImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCompressedTexImage3D_01 has failed for " + e) @@ -1472,7 +1472,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test compressedTexImage3D. */ it('testCompressedTexImage3D_02', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCompressedTexImage3D_02 test start ...66'); console.info('jsWebGL testCompressedTexImage3D_02 test start ...' + JSON.stringify(gl)); @@ -1481,7 +1481,7 @@ export default function webgl1Test_webgl6() { const compressedTexImage3DError = gl.getError(); console.info("compressedTexImage3DError: " + compressedTexImage3DError); expect(compressedTexImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCompressedTexImage3D_02 has failed for " + e) @@ -1495,7 +1495,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test compressedTexSubImage3D. */ it('testCompressedTexSubImage3D', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCompressedTexSubImage3D test start ...66'); console.info('jsWebGL testCompressedTexSubImage3D test start ...' + JSON.stringify(gl)); @@ -1505,7 +1505,7 @@ export default function webgl1Test_webgl6() { const compressedTexSubImage3DError = gl.getError(); console.info("compressedTexSubImage3DError: " + compressedTexSubImage3DError); expect(compressedTexSubImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCompressedTexSubImage3D has failed for " + e) @@ -1519,7 +1519,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test compressedTexSubImage3D. */ it('testCompressedTexSubImage3D_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCompressedTexSubImage3D test start ...66'); console.info('jsWebGL testCompressedTexSubImage3D test start ...' + JSON.stringify(gl)); @@ -1529,7 +1529,7 @@ export default function webgl1Test_webgl6() { const compressedTexSubImage3DError = gl.getError(); console.info("compressedTexSubImage3DError: " + compressedTexSubImage3DError); expect(compressedTexSubImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCompressedTexSubImage3D_01 has failed for " + e) @@ -1544,7 +1544,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getActiveAttrib. */ it('testGetActiveAttribError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getActiveAttrib test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); const info = gl.getActiveAttrib(); @@ -1558,7 +1558,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getActiveUniform. */ it('testGetActiveUniformError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getActiveUniform test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); const info = gl.getActiveUniform(program); @@ -1573,7 +1573,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getAttachedShaders. */ it('testGetAttachedShadersError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getAttachedShaders test start ...' + JSON.stringify(gl)); const shaderArray = gl.getAttachedShaders(); console.info('getAttachedShaders shaderArray' + shaderArray); @@ -1588,7 +1588,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getBufferParameter. */ it('testGetBufferParameterError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getBufferParameter test start ...' + JSON.stringify(gl)); const buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -1604,7 +1604,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getParameter. */ it('testGetParameterError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); var textureParameter = gl.getParameter(); console.info("activeTexture --> getParameter: " + textureParameter); @@ -1618,7 +1618,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getParameter. */ it('testGetError_error', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.enable(gl.SCISSOR_TEST); const scissorErrorCode = gl.scissor(0); @@ -1634,7 +1634,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test frontFace. */ it('testGetFramebufferAttachmentParameterError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const framebuffer = gl.getFramebufferAttachmentParameter(gl @@ -1651,7 +1651,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getProgramInfoLog. */ it('testGetProgramInfoLog', 0, async function (done) { - //initContext(); + console.info('jsWebGL getProgramInfoLog test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); // Attach pre-existing shaders @@ -1673,7 +1673,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getShaderPrecisionFormat. */ it('testGetShaderPrecisionFormatError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderPrecisionFormat test start ...' + JSON.stringify(gl)); const shaderPrecisionFormat = gl.getShaderPrecisionFormat(); console.info('shaderPrecisionFormat' + JSON.stringify(shaderPrecisionFormat)); @@ -1687,7 +1687,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getShaderInfoLog. */ it('testGetShaderInfoLogError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderInfoLog test start ...' + JSON.stringify(gl)); var shader = gl.createShader(gl.VERTEX_SHADER); gl.shaderSource(shader, "shaderCode"); @@ -1708,7 +1708,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getShaderSource. */ it('testGetShaderSourceError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderSource test start ...' + JSON.stringify(gl)); var shader = gl.createShader(gl.VERTEX_SHADER); gl.shaderSource(shader, 'originalSource'); @@ -1726,7 +1726,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getVertexAttrib. */ it('testGetVertexAttribFirstError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getVertexAttrib test start ...' + JSON.stringify(gl)); const type = gl.getVertexAttrib(0); console.info("getVertexAttrib: type" + type); @@ -1740,7 +1740,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getVertexAttribOffset. */ it('testGetVertexAttribOffsetError', 0, async function (done) { - //initContext(); + console.info('jsWebGL getVertexAttribOffset test start ...' + JSON.stringify(gl)); const index = gl.getVertexAttribOffset(); console.info("getVertexAttribOffset: index" + index); @@ -1754,7 +1754,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test isBuffer. */ it('testIsBufferError', 0, async function (done) { - //initContext(); + console.info('jsWebGL isBuffer test start ...' + JSON.stringify(gl)); const buffer = gl.createBuffer(); const isBuffer1 = gl.isBuffer(buffer); @@ -1769,7 +1769,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test isEnabled. */ it('testIsEnabledError', 0, async function (done) { - //initContext(); + console.info('jsWebGL isEnabled test start ...' + JSON.stringify(gl)); gl.disable(gl.STENCIL_TEST); const isEnabledValue2 = gl.isEnabled(gl.STENCIL_TEST); @@ -1785,7 +1785,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test renderbufferStorage. */ it('testRenderbufferStorageError', 0, async function (done) { - //initContext(); + console.info('jsWebGL renderbufferStorage test start ...' + JSON.stringify(gl)); const returnValue = gl.renderbufferStorage(256, 256); console.info("getRenderbufferParameter returnValue: " + returnValue); @@ -1800,9 +1800,9 @@ export default function webgl1Test_webgl6() { * @tc.desc Test sampleCoverage. */ it('testSampleCoverageError', 0, async function (done) { - //initContext(); + console.info('jsWebGL sampleCoverage test start ...' + JSON.stringify(gl)); - //initContext(); + console.info('jsWebGL sampleCoverage test start ...' + JSON.stringify(gl)); const sampleCoverageInvert = gl.sampleCoverage(); @@ -1819,7 +1819,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test scissor. */ it('testScissorError', 0, async function (done) { - //initContext(); + console.info('jsWebGL scissor test start ...' + JSON.stringify(gl)); const scissorValue = gl.scissor(200); console.info("scissorValue: " + scissorValue); @@ -1834,7 +1834,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test shaderSource. */ it('testShaderSourceError', 0, async function (done) { - //initContext(); + console.info('jsWebGL shaderSource test start ...' + JSON.stringify(gl)); var shader = gl.createShader(gl.VERTEX_SHADER); var source = gl.shaderSource(shader); @@ -1850,7 +1850,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test stencilFunc. */ it('testStencilFuncError', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilFunc test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); const stencilFuncParameter = gl.stencilFunc(gl.LESS); @@ -1865,7 +1865,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test stencilFuncSeparate. */ it('testStencilFuncSeparateError', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilFuncSeparate test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); const stencilFuncSeparateParameter = gl.stencilFuncSeparate(gl.FRONT); @@ -1881,7 +1881,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test stencilMask. */ it('testStencilMaskError', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilMask test start ...' + JSON.stringify(gl)); const stencilMaskParameter = gl.stencilMask(); console.info("stencilMask stencilMaskParameter: " + stencilMaskParameter); @@ -1895,7 +1895,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test stencilMaskSeparate. */ it('testStencilMaskSeparateError', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilMaskSeparate test start ...' + JSON.stringify(gl)); const stencilMaskSeparateParameter = gl.stencilMaskSeparate(gl.FRONT); console.info("stencilMaskSeparate stencilMaskSeparateParameter: " + @@ -1910,7 +1910,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test stencilOp. */ it('testStencilOpError', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilOp test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); const stencilOpParameter = gl.stencilOp(); @@ -1926,7 +1926,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test stencilOpSeparate. */ it('testStencilOpSeparateError', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilOpSeparate test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); const stencilOpSeparateParameter = gl.stencilOpSeparate(gl.FRONT, gl.INCR, gl.DECR, gl @@ -1942,7 +1942,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test texParameterf. */ it('testTexParameterfError', 0, async function (done) { - //initContext(); + console.info('jsWebGL texParameterf test start ...' + JSON.stringify(gl)); const texParameterValue = gl.texParameterf(); console.info('texParameterValue' + texParameterValue); @@ -1956,7 +1956,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test texParameteri. */ it('testTexParameteriError', 0, async function (done) { - //initContext(); + console.info('jsWebGL texParameteri test start ...' + JSON.stringify(gl)); const texParameterValue = gl.texParameteri(); console.info('texParameterfValue' + texParameterValue); @@ -1971,7 +1971,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getUniformBlockIndex. */ it('testGetUniformBlockIndexError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 getUniformBlockIndex test start ...' + JSON.stringify(gl2)); const program = gl.createProgram(); const blockIndex = gl2.getUniformBlockIndex(program); @@ -1987,7 +1987,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getActiveUniformBlockParameter. */ it('testGetActiveUniformBlockParameterError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 getActiveUniformBlockParameter test start ...' + JSON.stringify( gl2)); const program = globalFunction(); @@ -2008,7 +2008,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getActiveUniformBlockName. */ it('testGetActiveUniformBlockNameError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 getActiveUniformBlockName test start ...' + JSON.stringify(gl2)); const program = gl.createProgram(); const blockIndex = gl2.getUniformBlockIndex(program, 'UBOData'); @@ -2027,7 +2027,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test uniformBlockBinding. */ it('testUniformBlockBindingError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 uniformBlockBinding test start ...' + JSON.stringify(gl2)); const program = gl.createProgram(); const blockIndex = gl2.getUniformBlockIndex(program); @@ -2045,7 +2045,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test createVertexArray. */ it('testCreateVertexArrayError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 createVertexArray test start ...' + JSON.stringify(gl2)); const vao = gl2.createVertexArray(); const isVertexArray1 = gl2.isVertexArray(vao); @@ -2062,7 +2062,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test bindVertexArray. */ it('testBindVertexArrayError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bindVertexArray test start ...' + JSON.stringify(gl2)); const vao = gl2.createVertexArray(); const isVertexArray1 = gl2.isVertexArray(vao); @@ -2080,7 +2080,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test deleteVertexArray. */ it('testDeleteVertexArrayError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 deleteVertexArray test start ...' + JSON.stringify(gl2)); const vao = gl2.createVertexArray(); gl2.bindVertexArray(vao); @@ -2099,7 +2099,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test bindVertexArray. */ it('testIsVertexArray', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 isVertexArray test start ...' + JSON.stringify(gl2)); const vao = gl2.createVertexArray(); const isVertexArray1 = gl2.isVertexArray(vao); @@ -2118,7 +2118,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test bindVertexArray. */ it('testIsVertexArrayError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 isVertexArray test start ...' + JSON.stringify(gl2)); const vao = gl2.createVertexArray(); const isVertexArray1 = gl2.isVertexArray(vao); @@ -2137,7 +2137,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test texImage2D. */ it('testTexImage2DError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); gl2.texImage2D(-gl.TEXTURE_2D, -0, -32, -512, -512, -0, -32, -32, -new ArrayBuffer(8)); const errorCode = gl.getError(); @@ -2153,7 +2153,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2DError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texSubImage2D test start ...' + JSON.stringify(gl2)); gl2.texSubImage2D(-gl.TEXTURE_2D, -0, -0, -0, -512, -512, -gl.RED, gl.FLOAT, - new ArrayBuffer(16), -0); @@ -2169,7 +2169,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2DError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 compressedTexImage2D test start ...' + JSON.stringify(gl2)); gl2.compressedTexImage2D(-gl.TEXTURE_2D, -0, -0x83F3, -512, -512, -0, -gl .PIXEL_UNPACK_BUFFER, -0); @@ -2185,7 +2185,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2DError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 compressedTexSubImage2D test start ...' + JSON.stringify(gl2)); gl2.compressedTexSubImage2D(gl.TEXTURE_2D, 0, 256, 256, 512, 512, 0x83F3, gl .PIXEL_UNPACK_BUFFER, 0); @@ -2203,7 +2203,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test bufferData. */ it('testBufferSubDataError', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); gl2.bufferSubData(-gl.COPY_READ_BUFFER, -512, -new ArrayBuffer(8)); const errorCode = gl.getError(); @@ -2219,12 +2219,12 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getContextAttributes. */ it('webgl_test_getContextAttributes2', 0, async function (done) { - //initContext(); + console.info("webgltest into getContextAttributes"); const getContextAttributesValue = gl.getContextAttributes("error"); console.info("webgltest getContextAttributes: " + getContextAttributesValue); expect(getContextAttributesValue).assertEqual(null); - //deleteContext(); + done(); }); @@ -2235,12 +2235,12 @@ export default function webgl1Test_webgl6() { * @tc.desc Test isContextLost. */ it('webgl_test_isContextLost2', 0, async function (done) { - //initContext(); + console.info("webgltest into isContextLost"); const isContextLostValue = gl.isContextLost("error"); console.info("webgltest isContextLost: " + isContextLostValue); expect(isContextLostValue).assertEqual(false); - //deleteContext(); + done(); }); @@ -2251,12 +2251,12 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getSupportedExtensions. */ it('webgl_test_getSupportedExtensions2', 0, async function (done) { - //initContext(); + console.info("webgltest into getSupportedExtensions"); const getSupportedExtensionsValue = gl.getSupportedExtensions("error"); console.info("webgltest getSupportedExtensions: " + getSupportedExtensionsValue); expect(typeof (getSupportedExtensionsValue)).assertEqual('object'); - //deleteContext(); + done(); }); @@ -2267,12 +2267,12 @@ export default function webgl1Test_webgl6() { * @tc.desc Test getExtension. */ it('webgl_test_getExtension2', 0, async function (done) { - //initContext(); + console.info("webgltest into getExtension"); const getExtensionValue = gl.getExtension("error"); console.info("webgltest getExtension: " + getExtensionValue); expect(getExtensionValue).assertEqual(undefined); - //deleteContext(); + done(); }); @@ -2283,13 +2283,13 @@ export default function webgl1Test_webgl6() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture2', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE8B4C); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); console.info("webgltest activeTexture --> getParameter: " + activeTextureParameter); expect(activeTextureParameter).assertEqual(33984); - //deleteContext(); + done(); }); @@ -2300,13 +2300,13 @@ export default function webgl1Test_webgl6() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture_12', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE1); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); console.info("webgltest activeTexture --> getParameter: " + activeTextureParameter); expect(activeTextureParameter).assertEqual(33985); - //deleteContext(); + done(); }); @@ -2317,7 +2317,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test attachShader. */ it('webgl_test_attachShader2', 0, async function (done) { - //initContext(); + console.info("webgltest into attachShader"); //顶点着色器程序 @@ -2354,7 +2354,7 @@ export default function webgl1Test_webgl6() { let errorCode = gl.getError(); console.info("webgltest attachShader getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2365,7 +2365,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test bindAttribLocation. */ it('webgl_test_bindAttribLocation2', 0, async function (done) { - //initContext(); + console.info("webgltest into bindAttribLocation"); //顶点着色器程序 @@ -2404,7 +2404,7 @@ export default function webgl1Test_webgl6() { let errorCode = gl.getError(); console.info("webgltest bindAttribLocation getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2415,7 +2415,7 @@ export default function webgl1Test_webgl6() { * @tc.desc Test bindBuffer. */ it('webgl_test_bindBuffer2', 0, async function (done) { - //initContext(); + console.info("webgltest into bindBuffer"); var buffer = gl.createBuffer(); @@ -2427,7 +2427,7 @@ export default function webgl1Test_webgl6() { console.info("isBufferValue: " + isBufferValue); expect(isBufferValue).assertEqual(true); - //deleteContext(); + done(); }); }) diff --git a/graphic/webGL/src/main/js/test/WebGL.test07.js b/graphic/webGL/src/main/js/test/WebGL.test07.js index 4c409b2db..1d6ca67ff 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test07.js +++ b/graphic/webGL/src/main/js/test/WebGL.test07.js @@ -290,7 +290,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test bindBuffer. */ it('webgl_test_bindBuffer_12', 0, async function (done) { - //initContext(); + console.info("webgltest into bindBuffer"); var buffer = gl.createBuffer(); @@ -307,7 +307,7 @@ export default function webgl1Test_webgl7() { console.info("isBufferValue: " + isBufferValue); expect(isBufferValue).assertEqual(false); - //deleteContext(); + done(); }); @@ -318,7 +318,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test bindFramebuffer. */ it('webgl_test_bindFramebuffer2', 0, async function (done) { - //initContext(); + console.info("webgltest into bindFramebuffer"); var framebuffer = gl.createFramebuffer(); @@ -335,7 +335,7 @@ export default function webgl1Test_webgl7() { isFrameBuffer2); expect(isFrameBuffer2).assertEqual(false); - //deleteContext(); + done(); }); @@ -346,7 +346,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test bindRenderbuffer. */ it('webgl_test_bindRenderbuffer2', 0, async function (done) { - //initContext(); + console.info("webgltest into bindRenderbuffer"); var renderbuffer = gl.createRenderbuffer(); @@ -364,7 +364,7 @@ export default function webgl1Test_webgl7() { isRenderBuffer1); expect(isRenderBuffer1).assertEqual(false); - //deleteContext(); + done(); }); @@ -375,7 +375,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test bindTexture. */ it('webgl_test_bindTexture2', 0, async function (done) { - //initContext(); + console.info("webgltest into bindTexture"); var texture = gl.createTexture(); @@ -390,7 +390,7 @@ export default function webgl1Test_webgl7() { console.info("createTexture --> bindTexture --> isTexture: " + isTexture1); expect(isTexture1).assertEqual(false); - //deleteContext(); + done(); }); @@ -401,7 +401,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test blendColor. */ it('webgl_test_blendColor2', 0, async function (done) { - //initContext(); + console.info("webgltest into blendColor"); gl.blendColor(0, 0.5, 0, 1); @@ -417,7 +417,7 @@ export default function webgl1Test_webgl7() { // 判断数据值是否正确 expect(blendColorValue.toString()).assertEqual(blendColorArr.toString()); - //deleteContext(); + done(); }); @@ -428,7 +428,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test blendColor. */ it('webgl_test_blendColor_12', 0, async function (done) { - //initContext(); + console.info("webgltest into blendColor"); gl.blendColor(1, 1, 1, 0); @@ -444,7 +444,7 @@ export default function webgl1Test_webgl7() { // 判断数据值是否正确 expect(blendColorValue.toString()).assertEqual(blendColorArr.toString()); - //deleteContext(); + done(); }); @@ -455,7 +455,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test blendEquation. */ it('webgl_test_blendEquation2', 0, async function (done) { - //initContext(); + console.info("webgltest into blendEquation"); gl.blendEquation(gl.FUNC_ADD); @@ -464,7 +464,7 @@ export default function webgl1Test_webgl7() { console.info("blendEquation --> getParameter: " + blendEquationValue); expect(blendEquationValue).assertEqual(gl.FUNC_ADD); - //deleteContext(); + done(); }); @@ -474,7 +474,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test blendEquation. */ it('webgl_test_blendEquation_12', 0, async function (done) { - //initContext(); + console.info("webgltest into blendEquation"); gl.blendEquation(gl.FUNC_ADD); @@ -483,7 +483,7 @@ export default function webgl1Test_webgl7() { console.info("blendEquation --> getParameter: " + blendEquationValue2); expect(blendEquationValue2).assertEqual(gl.FUNC_ADD); - //deleteContext(); + done(); }); @@ -493,7 +493,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test blendEquationSeparate. */ it('webgl_test_blendEquationSeparate2', 0, async function (done) { - //initContext(); + console.info("webgltest into blendEquationSeparate"); gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_SUBTRACT); @@ -501,7 +501,7 @@ export default function webgl1Test_webgl7() { console.info("blendEquation --> getParameter: " + blendEquationSeparateValue); expect(blendEquationSeparateValue).assertEqual(gl.FUNC_ADD); - //deleteContext(); + done(); }); @@ -511,14 +511,14 @@ export default function webgl1Test_webgl7() { * @tc.desc Test clear. */ it('webgl_test_clear2', 0, async function (done) { - //initContext(); + console.info("webgltest into clear"); gl.clear(gl.COLOR_BUFFER_BIT); var float32Array = new Float32Array([0, 0, 0, 0]); const clearParameter = gl.getParameter(gl.COLOR_CLEAR_VALUE); console.info("webgltest clear getParameter: " + clearParameter); expect(typeof (clearParameter)).assertEqual(typeof (float32Array)); - //deleteContext(); + done(); }); @@ -528,7 +528,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test clearColor. */ it('webgl_test_clearColor2', 0, async function (done) { - //initContext(); + console.info("webgltest into clearColor"); gl.clearColor(1, 0.5, 0.5, -3); @@ -538,7 +538,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest clearColor: " + clearColorParameter); expect(clearColorParameter.toString()).assertEqual(float32ArrayValue.toString()); - //deleteContext(); + done(); }); @@ -549,7 +549,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test clearDepth. */ it('webgl_test_clearDepth2', 0, async function (done) { - //initContext(); + console.info("webgltest into clearDepth"); //用于设置深度缓冲区的深度清除值。 @@ -560,7 +560,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest clearDepth --> getParameter: " + clearDepthValue); expect(clearDepthValue).assertEqual(0.5); - //deleteContext(); + done(); }); @@ -571,7 +571,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test clearDepth. */ it('webgl_test_clearDepth_22', 0, async function (done) { - //initContext(); + console.info("webgltest into clearDepth"); //用于设置深度缓冲区的深度清除值。 @@ -582,7 +582,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest clearDepth --> getParameter: " + clearDepthValue); expect(clearDepthValue).assertEqual(0); - //deleteContext(); + done(); }); @@ -593,7 +593,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test clearStencil. */ it('webgl_test_clearStencil2', 0, async function (done) { - //initContext(); + console.info("webgltest into clearStencil"); gl.clearStencil(-1); @@ -602,7 +602,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest clearStencil --> getParameter: " + clearStencilValue); expect(clearStencilValue).assertEqual(-1); - //deleteContext(); + done(); }); @@ -612,7 +612,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test clearStencil. */ it('webgl_test_clearStencil_12', 0, async function (done) { - //initContext(); + console.info("webgltest into clearStencil"); gl.clearStencil(-20); @@ -621,7 +621,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest clearStencil --> getParameter: " + clearStencilValue); expect(clearStencilValue).assertEqual(-20); - //deleteContext(); + done(); }); @@ -631,7 +631,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test colorMask. */ it('webgl_test_colorMask_12', 0, async function (done) { - //initContext(); + console.info("webgltest into colorMask"); gl.colorMask(false, false, false, false); @@ -641,7 +641,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest colorMask --> getParameter: " + colorMaskValue); expect(colorMaskValue.toString()).assertEqual('false,false,false,false'); - //deleteContext(); + done(); }); @@ -651,13 +651,13 @@ export default function webgl1Test_webgl7() { * @tc.desc Test createProgram. */ it('webgl_test_createProgram2', 0, async function (done) { - //initContext(); + console.info("webgltest into createProgram"); const program = gl.createProgram("error"); const isProgram = gl.isProgram(program); console.info("webgltest createProgram isProgram: " + isProgram); expect(isProgram).assertEqual(true); - //deleteContext(); + done(); }); @@ -667,7 +667,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test createShader. */ it('webgl_test_createShader2', 0, async function (done) { - //initContext(); + console.info("webgltest into createShader"); const shader = gl.createShader('VERTEX_SHADER'); @@ -675,7 +675,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest createShader isShader: " + isShader); expect(isShader).assertEqual(false); - //deleteContext(); + done(); }); @@ -686,7 +686,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test deleteFramebuffer. */ it('webgl_test_deleteFramebuffer2', 0, async function (done) { - //initContext(); + console.info("webgltest into deleteFramebuffer"); var framebuffer = gl.createFramebuffer(); @@ -704,7 +704,7 @@ export default function webgl1Test_webgl7() { isFramebuffer2); expect(isFramebuffer2).assertEqual(true); - //deleteContext(); + done(); }); @@ -715,7 +715,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test deleteRenderbuffer. */ it('webgl_test_deleteRenderbuffer2', 0, async function (done) { - //initContext(); + console.info("webgltest into deleteRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -733,7 +733,7 @@ export default function webgl1Test_webgl7() { isRenderbuffer2); expect(isRenderbuffer2).assertEqual(true); - //deleteContext(); + done(); }); @@ -743,7 +743,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test enableVertexAttribArray. */ it('webgl_test_enableVertexAttribArray2', 0, async function (done) { - //initContext(); + console.info("webgltest into enableVertexAttribArray"); //顶点着色器程序 var VSHADER_SOURCE = @@ -788,7 +788,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest enableVertexAttribArray getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_FRAMEBUFFER_OPERATION); - //deleteContext(); + done(); }); @@ -799,13 +799,13 @@ export default function webgl1Test_webgl7() { * @tc.desc Test finish. */ it('webgl_test_finish2', 0, async function (done) { - //initContext(); + console.info("webgltest into finish"); gl.finish(); let errorCode = gl.getError(); console.info("webgltest finish getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -816,13 +816,13 @@ export default function webgl1Test_webgl7() { * @tc.desc Test flush. */ it('webgl_test_flush2', 0, async function (done) { - //initContext(); + console.info("webgltest into flush"); gl.flush("error"); let errorCode = gl.getError(); console.info("webgltest flush getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -832,7 +832,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test createSampler. */ it('webgl_test_createSampler2', 0, async function (done) { - //initContext(); + console.info("webgltest into createSampler"); const sampler = gl2.createSampler('error'); const isSampler1 = gl2.isSampler(sampler); @@ -849,7 +849,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest createSampler bindSampler deleteSampler isSampler3: " + isSampler3); expect(isSampler3).assertEqual(false); - //deleteContext(); + done(); }); @@ -860,7 +860,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test deleteSampler. */ it('webgl_test_deleteSampler2', 0, async function (done) { - //initContext(); + console.info("webgltest into deleteSampler"); const sampler = gl2.createSampler(); const isSampler1 = gl2.isSampler(sampler); @@ -876,7 +876,7 @@ export default function webgl1Test_webgl7() { const isSampler3 = gl2.isSampler(sampler); console.info("webgltest createSampler bindSampler deleteSampler isSampler3: " + isSampler3); expect(isSampler3).assertEqual(true); - //deleteContext(); + done(); }); @@ -886,7 +886,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test bindSampler. */ it('webgl_test_bindSampler2', 0, async function (done) { - //initContext(); + console.info("webgltest into bindSampler"); const sampler = gl2.createSampler(); const isSampler1 = gl2.isSampler(sampler); @@ -902,7 +902,7 @@ export default function webgl1Test_webgl7() { const isSampler3 = gl2.isSampler(sampler); console.info("webgltest createSampler bindSampler deleteSampler isSampler3: " + isSampler3); expect(isSampler3).assertEqual(false); - //deleteContext(); + done(); }); @@ -912,7 +912,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test samplerParameterf. */ it('webgl_test_samplerParameterf2', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameterf"); let sampler = gl2.createSampler(); @@ -923,7 +923,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest samplerParameterf getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -934,7 +934,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test getSamplerParameter. */ it('webgl_test_getSamplerParameter_12', 0, async function (done) { - //initContext(); + console.info("webgltest into getSamplerParameter"); let sampler = gl2.createSampler(); @@ -943,7 +943,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest createSampler getSamplerParameter_1: " + samplerParameter); expect(samplerParameter).assertEqual(undefined); - //deleteContext(); + done(); }); @@ -954,7 +954,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test fenceSync. */ it('webgl_test_fenceSync2', 0, async function (done) { - //initContext(); + console.info("webgltest into fenceSync"); let sync = gl2.fenceSync('0x9117', 0); @@ -970,7 +970,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest fenceSync deleteSync isSync2: " + isSync2); expect(isSync2).assertEqual(false); - //deleteContext(); + done(); }); @@ -981,7 +981,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test isSync. */ it('webgl_test_isSync2', 0, async function (done) { - //initContext(); + console.info("webgltest into isSync"); let sync = gl2.fenceSync(0x9117, 0); let status = gl2.clientWaitSync(sync, 0, 0); @@ -995,7 +995,7 @@ export default function webgl1Test_webgl7() { const isSync2 = gl2.isSync('sync'); console.info("webgltest fenceSync deleteSync isSync2: " + isSync2); expect(isSync2).assertEqual(false); - //deleteContext(); + done(); }); @@ -1006,7 +1006,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test deleteSync. */ it('webgl_test_deleteSync2', 0, async function (done) { - //initContext(); + console.info("webgltest into deleteSync"); let sync = gl2.fenceSync(0x9117, 0); let status = gl2.clientWaitSync(sync, 0, 0); @@ -1020,7 +1020,7 @@ export default function webgl1Test_webgl7() { const isSync2 = gl2.isSync(sync); console.info("webgltest fenceSync deleteSync isSync2: " + isSync2); expect(isSync2).assertEqual(true); - //deleteContext(); + done(); }); @@ -1031,7 +1031,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test clientWaitSync. */ it('webgl_test_clientWaitSync2', 0, async function (done) { - //initContext(); + console.info("webgltest into clientWaitSync"); let sync = gl2.fenceSync(0x9117, 0); let status = gl2.clientWaitSync('sync', 0, 0); @@ -1044,7 +1044,7 @@ export default function webgl1Test_webgl7() { expect(status).assertEqual(0); - //deleteContext(); + done(); }); @@ -1055,7 +1055,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test waitSync. */ it('webgl_test_waitSync2', 0, async function (done) { - //initContext(); + console.info("webgltest into waitSync"); let sync = gl2.fenceSync(gl.SYNC_GPU_COMMANDS_COMPLETE, 0); @@ -1064,7 +1064,7 @@ export default function webgl1Test_webgl7() { let errorCode = gl.getError(); console.info("webgltest framebufferTexture2D getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1075,7 +1075,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test createTransformFeedback. */ it('webgl_test_createTransformFeedback2', 0, async function (done) { - //initContext(); + console.info("webgltest into createTransformFeedback"); const transformFeedback = gl2.createTransformFeedback(); @@ -1098,7 +1098,7 @@ export default function webgl1Test_webgl7() { "deleteTransformFeedback isTransformFeedback3: " + isTransformFeedback3); expect(isTransformFeedback3).assertEqual(false); - //deleteContext(); + done(); }); @@ -1109,7 +1109,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test isTransformFeedback. */ it('webgl_test_isTransformFeedback2', 0, async function (done) { - //initContext(); + console.info("webgltest into isTransformFeedback"); let transformFeedback = gl2.createTransformFeedback(); const isTransformFeedback1 = gl2.isTransformFeedback(transformFeedback); @@ -1130,7 +1130,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest createTransformFeedback bindTransformFeedback " + "deleteTransformFeedback isTransformFeedback3: " + isTransformFeedback3); expect(isTransformFeedback3).assertEqual(false); - //deleteContext(); + done(); }); @@ -1141,7 +1141,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test bindTransformFeedback. */ it('webgl_test_bindTransformFeedback2', 0, async function (done) { - //initContext(); + console.info("webgltest into bindTransformFeedback"); let transformFeedback = gl2.createTransformFeedback(); const isTransformFeedback1 = gl2.isTransformFeedback(transformFeedback); @@ -1161,7 +1161,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest createTransformFeedback bindTransformFeedback " + "deleteTransformFeedback isTransformFeedback3: " + isTransformFeedback3); expect(isTransformFeedback3).assertEqual(false); - //deleteContext(); + done(); }); @@ -1172,7 +1172,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test beginTransformFeedback. */ it('webgl_test_beginTransformFeedback2', 0, async function (done) { - //initContext(); + console.info("webgltest into beginTransformFeedback"); let transformFeedback = gl2.createTransformFeedback(); @@ -1182,7 +1182,7 @@ export default function webgl1Test_webgl7() { let errorCode = gl.getError(); console.info("webgltest framebufferTexture2D getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1192,7 +1192,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test deleteTransformFeedback. */ it('webgl_test_deleteTransformFeedback2', 0, async function (done) { - //initContext(); + console.info("webgltest into deleteTransformFeedback"); const transformFeedback = gl2.createTransformFeedback(); @@ -1209,7 +1209,7 @@ export default function webgl1Test_webgl7() { "webgltest createTransformFeedback bindTransformFeedback deleteTransformFeedback " + "isTransformFeedback3: " + isTransformFeedback3); expect(isTransformFeedback3).assertEqual(true); - //deleteContext(); + done(); }); @@ -1220,7 +1220,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test useProgram. */ it('testUseProgramError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testUseProgram test start ...66'); console.info('jsWebGL testUseProgram test start ...' + JSON.stringify(gl)); @@ -1257,7 +1257,7 @@ export default function webgl1Test_webgl7() { const useProgramError = gl.getError(); console.info("useProgramError: " + useProgramError); expect(useProgramError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testUseProgram has failed for " + e) @@ -1271,7 +1271,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test validateProgram. */ it('testValidateProgramError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testValidateProgram test start ...66'); console.info('jsWebGL testValidateProgram test start ...' + JSON.stringify(gl)); @@ -1280,7 +1280,7 @@ export default function webgl1Test_webgl7() { const validateProgramError = gl.getError(); console.info("validateProgramError: " + validateProgramError); expect(validateProgramError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testValidateProgram has failed for " + e) @@ -1294,7 +1294,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test vertexAttrib1f. */ it('testVertexAttrib1fError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib1f test start ...66'); console.info('jsWebGL testVertexAttrib1f test start ...' + JSON.stringify(gl)); @@ -1302,7 +1302,7 @@ export default function webgl1Test_webgl7() { const vertexAttrib1fError = gl.getError(); console.info("vertexAttrib1fError: " + vertexAttrib1fError); expect(vertexAttrib1fError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib1f has failed for " + e) @@ -1316,14 +1316,14 @@ export default function webgl1Test_webgl7() { * @tc.desc Test vertexAttrib2f. */ it('testVertexAttrib2fError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib2f test start ...66'); gl.vertexAttrib2f(false, 10.0); const vertexAttrib2fError = gl.getError(); console.info("vertexAttrib2fError: " + vertexAttrib2fError); expect(vertexAttrib2fError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib2f has failed for " + e) @@ -1337,7 +1337,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test vertexAttrib3f. */ it('testVertexAttrib3fError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testvertexAttrib3f test start ...66'); console.info('jsWebGL testvertexAttrib3f test start ...' + JSON.stringify(gl)); @@ -1345,7 +1345,7 @@ export default function webgl1Test_webgl7() { const vertexAttrib3fError = gl.getError(); console.info("vertexAttrib3fError: " + vertexAttrib3fError); expect(vertexAttrib3fError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib3f has failed for " + e) @@ -1359,7 +1359,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test vertexAttrib4f. */ it('testVertexAttrib4fError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib4f test start ...66'); console.info('jsWebGL testVertexAttrib4f test start ...' + JSON.stringify(gl)); @@ -1367,7 +1367,7 @@ export default function webgl1Test_webgl7() { const vertexAttrib4fError = gl.getError(); console.info("vertexAttrib4fError: " + vertexAttrib4fError); expect(vertexAttrib4fError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testvertexAttrib4f has failed for " + e) @@ -1381,7 +1381,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test vertexAttrib1fv. */ it('testVertexAttrib1fvError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib1fv test start ...66'); console.info('jsWebGL testVertexAttrib1fv test start ...' + JSON.stringify(gl)); @@ -1390,7 +1390,7 @@ export default function webgl1Test_webgl7() { const vertexAttrib1fvError = gl.getError(); console.info("vertexAttrib1fvError: " + vertexAttrib1fvError); expect(vertexAttrib1fvError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib1fv has failed for " + e) @@ -1404,7 +1404,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test vertexAttrib2fv. */ it('testVertexAttrib2fvError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib2fv test start ...66'); console.info('jsWebGL testVertexAttrib2fv test start ...' + JSON.stringify(gl)); @@ -1413,7 +1413,7 @@ export default function webgl1Test_webgl7() { const vertexAttrib2fvError = gl.getError(); console.info("vertexAttrib2fvError: " + vertexAttrib2fvError); expect(vertexAttrib2fvError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib2fv has failed for " + e) @@ -1427,7 +1427,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test vertexAttrib3fv. */ it('testVertexAttrib3fvError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib3fv test start ...66'); console.info('jsWebGL testVertexAttrib3fv test start ...' + JSON.stringify(gl)); @@ -1436,7 +1436,7 @@ export default function webgl1Test_webgl7() { const vertexAttrib3fvError = gl.getError(); console.info("vertexAttrib3fvError: " + vertexAttrib3fvError); expect(vertexAttrib3fvError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib3fv has failed for " + e) @@ -1450,7 +1450,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test vertexAttrib4fv. */ it('testVertexAttrib4fvError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib4fv test start ...66'); console.info('jsWebGL testVertexAttrib4fv test start ...' + JSON.stringify(gl)); @@ -1459,7 +1459,7 @@ export default function webgl1Test_webgl7() { const vertexAttrib4fvError = gl.getError(); console.info("vertexAttrib4fvError: " + vertexAttrib4fvError); expect(vertexAttrib4fvError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib4fv has failed for " + e) @@ -1473,7 +1473,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test vertexAttribPointer. */ it('testVertexAttribPointerError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttribPointer test start ...66'); console.info('jsWebGL testVertexAttribPointer test start ...' + JSON.stringify(gl)); @@ -1481,7 +1481,7 @@ export default function webgl1Test_webgl7() { const vertexAttribPointerError = gl.getError(); console.info("vertexAttribPointerError: " + vertexAttribPointerError); expect(vertexAttribPointerError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttribPointer has failed for " + e) @@ -1495,7 +1495,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test viewport. */ it('testViewportError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testViewport test start ...66'); console.info('jsWebGL testViewport test start ...' + JSON.stringify(gl)); @@ -1503,7 +1503,7 @@ export default function webgl1Test_webgl7() { const viewportError = gl.getError(); console.info("viewportError: " + viewportError); expect(viewportError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testViewport has failed for " + e) @@ -1517,7 +1517,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test texStorage3D. */ it('testTexStorage3DError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexStorage3D test start ...66'); console.info('jsWebGL testTexStorage3D test start ...' + JSON.stringify(gl)); @@ -1525,7 +1525,7 @@ export default function webgl1Test_webgl7() { const texStorage3DError = gl.getError(); console.info("texStorage3DError: " + texStorage3DError); expect(texStorage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexStorage3D has failed for " + e) @@ -1539,7 +1539,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test texImage3D. */ it('testTexImage3DError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D test start ...66'); console.info('jsWebGL testTexImage3D test start ...' + JSON.stringify(gl)); @@ -1548,7 +1548,7 @@ export default function webgl1Test_webgl7() { const texImage3DError = gl.getError(); console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D has failed for " + e) @@ -1562,7 +1562,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test texImage3D. */ it('testTexImage3D_01Error', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D_01Error test start ...66'); console.info('jsWebGL testTexImage3D_01Error test start ...' + JSON.stringify(gl)); @@ -1572,7 +1572,7 @@ export default function webgl1Test_webgl7() { const texImage3DError = gl.getError(); console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D_01 has failed for " + e) @@ -1586,7 +1586,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test texImage3D. */ it('testTexImage3D_02Error', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D_02Error test start ...66'); console.info('jsWebGL testTexImage3D_02Error test start ...' + JSON.stringify(gl)); @@ -1596,7 +1596,7 @@ export default function webgl1Test_webgl7() { const texImage3DError = gl.getError(); console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D_02 has failed for " + e) @@ -1610,7 +1610,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test texSubImage3D. */ it('testTexSubImage3D_01Error', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexSubImage3D_01Error test start ...66'); console.info('jsWebGL testTexSubImage3D_01Error test start ...' + JSON.stringify(gl)); @@ -1621,7 +1621,7 @@ export default function webgl1Test_webgl7() { const texSubImage3DError = gl.getError(); console.info("texSubImage3DError: " + texSubImage3DError); expect(texSubImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexSubImage3D_01 has failed for " + e) @@ -1635,7 +1635,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test texSubImage3D. */ it('testTexSubImage3DError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexSubImage3DError test start ...66'); console.info('jsWebGL testTexSubImage3DError test start ...' + JSON.stringify(gl)); @@ -1644,7 +1644,7 @@ export default function webgl1Test_webgl7() { const texSubImage3DError = gl.getError(); console.info("texSubImage3DError: " + texSubImage3DError); expect(texSubImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexSubImage3DError has failed for " + e) @@ -1658,7 +1658,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test copyTexSubImage3D. */ it('testCopyTexSubImage3DError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCopyTexSubImage3DError test start ...66'); console.info('jsWebGL testCopyTexSubImage3DError test start ...' + JSON.stringify(gl)); @@ -1666,7 +1666,7 @@ export default function webgl1Test_webgl7() { const copyTexSubImage3DError = gl.getError(); console.info("copyTexSubImage3DError: " + copyTexSubImage3DError); expect(copyTexSubImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCopyTexSubImage3DError has failed for " + e) @@ -1680,7 +1680,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test compressedTexImage3D. */ it('testCompressedTexImage3D_01Error', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCompressedTexImage3D_01Error test start ...66'); console.info('jsWebGL testCompressedTexImage3D_01Error test start ...' + JSON.stringify( @@ -1690,7 +1690,7 @@ export default function webgl1Test_webgl7() { const compressedTexImage3DError = gl.getError(); console.info("compressedTexImage3DError: " + compressedTexImage3DError); expect(compressedTexImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCompressedTexImage3D_01Error has failed for " + e) @@ -1704,7 +1704,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test compressedTexImage3D. */ it('testCompressedTexImage3D_02Error', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCompressedTexImage3D_02Error test start ...66'); console.info('jsWebGL testCompressedTexImage3D_02Error test start ...' + JSON.stringify( @@ -1714,7 +1714,7 @@ export default function webgl1Test_webgl7() { const compressedTexImage3DError = gl.getError(); console.info("compressedTexImage3DError: " + compressedTexImage3DError); expect(compressedTexImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCompressedTexImage3D_02Error has failed for " + e) @@ -1728,7 +1728,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test compressedTexSubImage3D. */ it('testCompressedTexSubImage3DError', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCompressedTexSubImage3DError test start ...66'); console.info('jsWebGL testCompressedTexSubImage3DError test start ...' + JSON.stringify( @@ -1739,7 +1739,7 @@ export default function webgl1Test_webgl7() { const compressedTexSubImage3DError = gl.getError(); console.info("compressedTexSubImage3DError: " + compressedTexSubImage3DError); expect(compressedTexSubImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCompressedTexSubImage3DError has failed for " + e) @@ -1754,7 +1754,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test compressedTexSubImage3D. */ it('testCompressedTexSubImage3D_01Error', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCompressedTexSubImage3D_01Error test start ...66'); console.info('jsWebGL testCompressedTexSubImage3D_01Error test start ...' + JSON @@ -1766,7 +1766,7 @@ export default function webgl1Test_webgl7() { const compressedTexSubImage3DError = gl.getError(); console.info("testCompressedTexSubImage3D_01Error: " + compressedTexSubImage3DError); expect(compressedTexSubImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCompressedTexSubImage3D_01Error has failed for " + e) @@ -1781,7 +1781,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test getFragDataLocation. */ it('webgl_test_getFragDataLocationError', 0, async function (done) { - //initContext(); + console.info("webgltest into getFragDataLocation"); //顶点着色器程序 @@ -1820,7 +1820,7 @@ export default function webgl1Test_webgl7() { let errorCode = gl.getError(); console.info("webgltest webgl_test_getFragDataLocationError getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1830,7 +1830,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test vertexAttribI4ui. */ it('webgl_test_vertexAttribI4uiError', 0, async function (done) { - //initContext(); + console.info("webgltest into vertexAttribI4ui"); const a = gl2.vertexAttribI4ui(false, 10, 11, 12, 13); @@ -1838,7 +1838,7 @@ export default function webgl1Test_webgl7() { let errorCode = gl.getError(); console.info("webgltest vertexAttribI4ui getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1848,7 +1848,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test vertexAttribIPointer. */ it('webgl_test_vertexAttribIPointerError', 0, async function (done) { - //initContext(); + console.info("webgltest into vertexAttribIPointer"); const a = gl2.vertexAttribIPointer(false, 4, gl.UNSIGNED_BYTE, 20, 16); @@ -1856,7 +1856,7 @@ export default function webgl1Test_webgl7() { let errorCode = gl.getError(); console.info("webgltest vertexAttribIPointer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1866,7 +1866,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test drawArraysInstanced. */ it('webgl_test_drawArraysInstancedError', 0, async function (done) { - //initContext(); + console.info("webgltest into drawArraysInstanced"); const a = gl2.drawArraysInstanced(gl.POINTS, false, 8, 4); @@ -1874,7 +1874,7 @@ export default function webgl1Test_webgl7() { let errorCode = gl.getError(); console.info("webgltest drawArraysInstanced getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1884,7 +1884,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test drawElementsInstanced. */ it('webgl_test_drawElementsInstancedError', 0, async function (done) { - //initContext(); + console.info("webgltest into drawElementsInstanced"); const a = gl2.drawElementsInstanced(gl.POINTS, false, gl.UNSIGNED_SHORT, 0, 4); @@ -1892,7 +1892,7 @@ export default function webgl1Test_webgl7() { let errorCode = gl.getError(); console.info("webgltest drawElementsInstanced getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1902,7 +1902,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test drawRangeElements. */ it('webgl_test_drawRangeElementsError', 0, async function (done) { - //initContext(); + console.info("webgltest into drawRangeElements"); const a = gl2.drawRangeElements(gl.POINTS, false, 7, 8, gl.UNSIGNED_BYTE, 0); @@ -1911,7 +1911,7 @@ export default function webgl1Test_webgl7() { console.info("webgltest drawRangeElements getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1922,7 +1922,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D_0415', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexImage2D_0415 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -1942,7 +1942,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D_0416', 0, async function (done) { - //initContext(); + console.info('jsWebGL GRAPHIC_FUNCTION_JS_WEBGL_TESTWEBGL_0415_02 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -1963,7 +1963,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2D_0420', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexSubImage2D_0420 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -1986,7 +1986,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2D_0421', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexSubImage2D_0421 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -2009,7 +2009,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test readPixels. */ it('testReadPixels_422', 0, async function (done) { - //initContext(); + console.info('jsWebGL testReadPixels_422 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -2028,7 +2028,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test readPixels. */ it('testReadPixels_423', 0, async function (done) { - //initContext(); + console.info('jsWebGL testReadPixels_423 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -2047,7 +2047,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test texImage2D. */ it('testTexImage2D_0426', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D_0426 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -2067,7 +2067,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test texImage2D. */ it('testTexImage2D_0427', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D_0427 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -2087,7 +2087,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexSubImage2D test start ...66'); console.info('jsWebGL testTexSubImage2D test start ...' + JSON.stringify(gl)); const buf = new ArrayBuffer(8); @@ -2106,7 +2106,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexSubImage2D_02 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -2124,7 +2124,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test blitFramebuffer. */ it('testBlitFramebuffer_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBlitFramebuffer_01 test start ...66'); gl2.blitFramebuffer(0, 0, 400, 1080, 0, 0, 400, 1080, gl.COLOR_BUFFER_BIT, gl .NEAREST); @@ -2143,7 +2143,7 @@ export default function webgl1Test_webgl7() { * @tc.desc Test blitFramebuffer. */ it('testBlitFramebuffer_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBlitFramebuffer_02 test start ...66'); gl2.blitFramebuffer(gl.NEAREST, 0, 400, gl.NEAREST, 0, 0, 400, 1080, gl.COLOR_BUFFER_BIT, gl.NEAREST); diff --git a/graphic/webGL/src/main/js/test/WebGL.test08.js b/graphic/webGL/src/main/js/test/WebGL.test08.js index a555c6b93..50e23fc0d 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test08.js +++ b/graphic/webGL/src/main/js/test/WebGL.test08.js @@ -290,7 +290,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test framebufferTextureLayer. */ it('testFramebufferTextureLayer_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testFramebufferTextureLayer_01 test start ...66'); const shader = gl.createShader(gl.VERTEX_SHADER); gl2.framebufferTextureLayer(-gl.FRAMEBUFFER, -gl.COLOR_ATTACHMENT0, shader, -0, -8) @@ -307,7 +307,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test framebufferTextureLayer. */ it('testFramebufferTextureLayer_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testFramebufferTextureLayer_02 test start ...66'); const texture = gl.createTexture(); gl.bindTexture(gl2.TEXTURE_2D_ARRAY, texture); @@ -335,7 +335,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test invalidateFramebuffer. */ it('testInvalidateFramebuffer_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateFramebuffer_01 test start ...66'); gl2.invalidateFramebuffer(-0, [-0, -gl.COLOR_ATTACHMENT1]); @@ -351,7 +351,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test invalidateFramebuffer. */ it('testInvalidateFramebuffer_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateFramebuffer_02 test start ...66'); gl2.invalidateFramebuffer(-gl.READ_FRAMEBUFFER, [gl.COLOR_ATTACHMENT0, -gl.COLOR_ATTACHMENT1]); @@ -368,7 +368,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test invalidateSubFramebuffer. */ it('testInvalidateSubFramebuffer_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateSubFramebuffer_01 test start ...66'); console.info('jsWebGL testInvalidateSubFramebuffer test start ...' + JSON.stringify(gl)); gl2.invalidateSubFramebuffer(-gl.READ_FRAMEBUFFER, @@ -387,7 +387,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test invalidateSubFramebuffer. */ it('testInvalidateSubFramebuffer_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateSubFramebuffer_02 test start ...66'); console.info('jsWebGL testInvalidateSubFramebuffer test start ...' + JSON.stringify(gl)); gl2.invalidateSubFramebuffer(-gl.READ_FRAMEBUFFER, @@ -405,7 +405,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test readBuffer. */ it('testReadBuffer_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testReadBuffer_01 test start ...66'); gl2.readBuffer(-gl.COLOR_ATTACHMENT0); const readBufferError = gl.getError(); @@ -420,7 +420,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test readBuffer. */ it('testReadBuffer_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testReadBuffer_02 test start ...66'); gl2.readBuffer(gl.INVALID_ENUM); const readBufferError = gl.getError(); @@ -436,7 +436,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test getInternalformatParameter. */ it('testGetInternalformatParameter_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testGetInternalformatParameter_02 test start ...66'); var samples = gl2.getInternalformatParameter(gl.RENDERBUFFER, gl2.RGBA8, gl.SAMPLES); console.info("samples: " + samples); @@ -452,7 +452,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample test start ...66'); gl2.renderbufferStorageMultisample(-gl.RENDERBUFFER, -4, -gl.RBGA4, -256, -256); const renderbufferStorageMultisampleError = gl.getError(); @@ -468,7 +468,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample test start ...66'); gl2.renderbufferStorageMultisample(gl.ONE_MINUS_DST_COLOR, -0, -0, 256, 256); const renderbufferStorageMultisampleError = gl.getError(); @@ -484,7 +484,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test texStorage2D. */ it('testTexStorage2D_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexStorage2D_01 test start ...66'); gl2.texStorage2D(-gl.TEXTURE_2D, -1, -gl.RGB8, -256, -256); const texStorage2DError = gl.getError(); @@ -500,7 +500,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test texStorage2D. */ it('testTexStorage2D_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexStorage2D_02 test start ...66'); gl2.texStorage2D(-gl.SRC_ALPHA_SATURATE, -0, -gl.RGB8, 256, -256); const texStorage2DError = gl.getError(); @@ -516,7 +516,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test transformFeedbackVaryings. */ it('testTransformFeedbackVaryings_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTransformFeedbackVaryings_01 test start ...66'); const program = gl.createProgram(); var transformFeedbackOutputs = ['-gl_Position', 'anotherOutput']; @@ -533,7 +533,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test transformFeedbackVaryings. */ it('testTransformFeedbackVaryings_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTransformFeedbackVaryings_02 test start ...66'); const program = gl.createProgram(); var transformFeedbackOutputs = [-'gl_Position', -'anotherOutput']; @@ -550,7 +550,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test getTransformFeedbackVarying. */ it('testGetTransformFeedbackVarying_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetTransformFeedbackVarying_01 test start ...66'); const programObj = createProgram(gl); @@ -560,7 +560,7 @@ export default function webgl1Test_webgl8() { const getTransformFeedbackVaryingError = gl.getError(); console.info("getTransformFeedbackVaryingError: " + getTransformFeedbackVaryingError); expect(getTransformFeedbackVaryingError).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); } catch (e) { console.log("testGetTransformFeedbackVarying has failed for " + e) @@ -574,7 +574,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test bindBufferBase. */ it('testBindBufferBase_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testBindBufferBase_01 test start ...66'); let buffer = gl.createBuffer(); @@ -582,7 +582,7 @@ export default function webgl1Test_webgl8() { const bindBufferBaseError = gl.getError(); console.info("bindBufferBaseError: " + bindBufferBaseError); expect(bindBufferBaseError).assertEqual(gl.INVALID_ENUM); - //deleteContext(); + done(); } catch (e) { console.log("bindBufferBaseError has failed for " + e) @@ -596,7 +596,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test bindBufferBase. */ it('testBindBufferBase_02', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testBindBufferBase_02 test start ...66'); var programobject = gl.createProgram(); @@ -604,7 +604,7 @@ export default function webgl1Test_webgl8() { const bindBufferBaseError = gl.getError(); console.info("bindBufferBaseError: " + bindBufferBaseError); expect(bindBufferBaseError).assertEqual(gl.INVALID_ENUM); - //deleteContext(); + done(); } catch (e) { console.log("bindBufferBaseError has failed for " + e) @@ -618,7 +618,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test getTransformFeedbackVarying. */ it('testGetTransformFeedbackVarying_02', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetTransformFeedbackVarying_02 test start ...66'); const programObj = gl.createProgram(); @@ -627,7 +627,7 @@ export default function webgl1Test_webgl8() { const getTransformFeedbackVaryingError = gl.getError(); console.info("getTransformFeedbackVaryingError: " + getTransformFeedbackVaryingError); expect(getTransformFeedbackVaryingError).assertLarger(gl.NO_ERROR); - //deleteContext(); + done(); } catch (e) { console.log("testGetTransformFeedbackVarying has failed for " + e) @@ -642,7 +642,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test bindBufferRange. */ it('bindBufferRange', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL bindBufferRange test start ...66'); const buffer = gl.createBuffer(); @@ -650,7 +650,7 @@ export default function webgl1Test_webgl8() { const bindBufferRangeError = gl.getError(); console.info("bindBufferRangeError: " + bindBufferRangeError); expect(bindBufferRangeError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("bindBufferRange has failed for " + e) @@ -665,7 +665,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test bindBufferRange. */ it('bindBufferRange_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL bindBufferRange_01 test start ...66'); const buffer = gl.createBuffer(); @@ -673,7 +673,7 @@ export default function webgl1Test_webgl8() { const bindBufferRangeError = gl.getError(); console.info("bindBufferRangeError: " + bindBufferRangeError); expect(bindBufferRangeError).assertLarger(gl.NO_ERROR); - //deleteContext(); + done(); } catch (e) { console.log("bindBufferRange has failed for " + e) @@ -688,7 +688,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test bindBufferRange. */ it('bindBufferRange_02', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL bindBufferRange_01 test start ...66'); const buffer = gl.createBuffer(); @@ -696,7 +696,7 @@ export default function webgl1Test_webgl8() { const bindBufferRangeError = gl.getError(); console.info("bindBufferRangeError: " + bindBufferRangeError); expect(bindBufferRangeError).assertEqual(gl.INVALID_ENUM); - //deleteContext(); + done(); } catch (e) { console.log("bindBufferRange has failed for " + e) @@ -711,7 +711,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test isShader. */ it('testIsShader_05', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsShader_05 test start ...66'); var programobject = gl.createProgram(); const isShader = gl.isShader(-0); @@ -726,7 +726,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test linkProgram. */ it('testLinkProgram_05', 0, async function (done) { - //initContext(); + console.info('jsWebGL testLinkProgram_05 test start ...66'); const fragmentShader = gl.createShader(gl.FRAGMENT_SHADER); gl.linkProgram(fragmentShader); @@ -743,7 +743,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test pauseTransformFeedback. */ it('testPauseTransformFeedback_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testPauseTransformFeedback_01 test start ...66'); const transformFeedback = gl2.createTransformFeedback(); @@ -753,7 +753,7 @@ export default function webgl1Test_webgl8() { const pauseTransformFeedbackError = gl.getError(); console.info("pauseTransformFeedbackError: " + pauseTransformFeedbackError); expect(pauseTransformFeedbackError == gl.INVALID_OPERATION).assertEqual(true); - //deleteContext(); + done(); } catch (e) { console.log("testPauseTransformFeedback_01 has failed for " + e) @@ -767,14 +767,14 @@ export default function webgl1Test_webgl8() { * @tc.desc Test resumeTransformFeedback. */ it('testResumeTransformFeedback_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testResumeTransformFeedback_01 test start ...66'); gl2.resumeTransformFeedback(); const resumeTransformFeedbackError = gl.getError(); console.info("resumeTransformFeedbackError: " + resumeTransformFeedbackError); expect(resumeTransformFeedbackError == gl.INVALID_OPERATION).assertEqual(true); - //deleteContext(); + done(); } catch (e) { console.log("testResumeTransformFeedback_01 has failed for " + e) @@ -789,7 +789,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test blendEquation. */ it('webgl_test_blendEquation2', 0, async function (done) { - //initContext(); + console.info("webgltest into blendEquation"); gl.blendEquation(gl.FUNC_REVERSE_SUBTRACT); @@ -798,7 +798,7 @@ export default function webgl1Test_webgl8() { console.info("blendEquation --> getParameter: " + blendEquationValue); expect(blendEquationValue).assertEqual(gl.FUNC_REVERSE_SUBTRACT); - //deleteContext(); + done(); }); @@ -809,13 +809,13 @@ export default function webgl1Test_webgl8() { * @tc.desc Test activeTexture_01. */ it('webgl_test_activeTexture_01', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture_01"); gl.activeTexture(gl.TEXTURE2); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); console.info("webgltest activeTexture_01 --> getParameter: " + activeTextureParameter); expect(activeTextureParameter).assertEqual(33986); - //deleteContext(); + done(); }); @@ -826,13 +826,13 @@ export default function webgl1Test_webgl8() { * @tc.desc Test activeTexture_02. */ it('webgl_test_activeTexture_02', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture_02"); gl.activeTexture(gl.TEXTURE3); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); console.info("webgltest activeTexture_02 --> getParameter: " + activeTextureParameter); expect(activeTextureParameter).assertEqual(33987); - //deleteContext(); + done(); }); @@ -843,7 +843,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test bindAttribLocation. */ it('webgl_test_bindAttribLocation', 0, async function (done) { - //initContext(); + console.info("webgltest into bindAttribLocation"); //顶点着色器程序 @@ -882,7 +882,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest bindAttribLocation getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_VALUE); - //deleteContext(); + done(); }); @@ -893,7 +893,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test bindBuffer. */ it('webgl_test_bindBuffer_2', 0, async function (done) { - //initContext(); + console.info("webgltest into bindBuffer"); var buffer = gl.createBuffer(); @@ -905,7 +905,7 @@ export default function webgl1Test_webgl8() { console.info("isBufferValue: " + isBufferValue); expect(isBufferValue).assertEqual(true); - //deleteContext(); + done(); }); @@ -916,7 +916,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test bindTexture. */ it('webgl_test_bindTexture_2', 0, async function (done) { - //initContext(); + console.info("webgltest into bindTexture"); var texture = gl.createTexture(); @@ -931,7 +931,7 @@ export default function webgl1Test_webgl8() { console.info("createTexture --> bindTexture --> isTexture: " + isTexture1); expect(isTexture1).assertEqual(true); - //deleteContext(); + done(); }); @@ -942,7 +942,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test blendEquation. */ it('webgl_test_blendEquation__2', 0, async function (done) { - //initContext(); + console.info("webgltest into blendEquation"); gl.blendEquation(gl.FUNC_ADD); @@ -951,7 +951,7 @@ export default function webgl1Test_webgl8() { console.info("blendEquation --> getParameter: " + blendEquationValue); expect(blendEquationValue).assertEqual(32774); - //deleteContext(); + done(); }); @@ -962,7 +962,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test blendEquation. */ it('webgl_test_blendEquation_3', 0, async function (done) { - //initContext(); + console.info("webgltest into blendEquation"); gl.blendEquation(gl.FUNC_SUBTRACT); @@ -971,7 +971,7 @@ export default function webgl1Test_webgl8() { console.info("blendEquation --> getParameter: " + blendEquationValue); expect(blendEquationValue).assertEqual(gl.FUNC_SUBTRACT); - //deleteContext(); + done(); }); @@ -982,7 +982,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test blendEquationSeparate. */ it('webgl_test_blendEquationSeparate_2', 0, async function (done) { - //initContext(); + console.info("webgltest into blendEquationSeparate"); gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_REVERSE_SUBTRACT); @@ -990,7 +990,7 @@ export default function webgl1Test_webgl8() { console.info("blendEquationSeparate --> getParameter: " + blendEquationSeparateValue); expect(blendEquationSeparateValue).assertEqual(gl.FUNC_ADD); - //deleteContext(); + done(); }); @@ -1001,7 +1001,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test blendEquationSeparate. */ it('webgl_test_blendEquationSeparate_3', 0, async function (done) { - //initContext(); + console.info("webgltest into blendEquationSeparate"); gl.blendEquationSeparate(gl.FUNC_SUBTRACT, gl.FUNC_REVERSE_SUBTRACT); @@ -1009,7 +1009,7 @@ export default function webgl1Test_webgl8() { console.info("blendEquationSeparate --> getParameter: " + blendEquationSeparateValue); expect(blendEquationSeparateValue).assertEqual(gl.FUNC_SUBTRACT); - //deleteContext(); + done(); }); @@ -1020,7 +1020,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test blendFunc. */ it('webgl_test_blendFunc_2', 0, async function (done) { - //initContext(); + console.info("webgltest into blendFunc"); gl.enable(gl.BLEND); @@ -1031,7 +1031,7 @@ export default function webgl1Test_webgl8() { console.info("blendFunc --> getParameter: " + blendFuncValue); expect(blendFuncValue).assertEqual(gl.ZERO); - //deleteContext(); + done(); }); @@ -1042,7 +1042,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test blendFunc. */ it('webgl_test_blendFunc_3', 0, async function (done) { - //initContext(); + console.info("webgltest into blendFunc"); gl.enable(gl.BLEND); @@ -1053,7 +1053,7 @@ export default function webgl1Test_webgl8() { console.info("blendFunc --> getParameter: " + blendFuncValue); expect(blendFuncValue).assertEqual(gl.SRC_ALPHA); - //deleteContext(); + done(); }); @@ -1064,7 +1064,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test blendFuncSeparate. */ it('webgl_test_blendFuncSeparate_2', 0, async function (done) { - //initContext(); + console.info("webgltest into blendFuncSeparate"); gl.enable(gl.BLEND); @@ -1076,7 +1076,7 @@ export default function webgl1Test_webgl8() { console.info("blendFuncSeparate --> getParameter: " + blendFuncSeparateParameter); expect(blendFuncSeparateParameter).assertEqual(gl.DST_ALPHA); - //deleteContext(); + done(); }); @@ -1087,7 +1087,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test blendFuncSeparate. */ it('webgl_test_blendFuncSeparate_3', 0, async function (done) { - //initContext(); + console.info("webgltest into blendFuncSeparate"); gl.enable(gl.BLEND); @@ -1099,7 +1099,7 @@ export default function webgl1Test_webgl8() { console.info("blendFuncSeparate --> getParameter: " + blendFuncSeparateParameter); expect(blendFuncSeparateParameter).assertEqual(gl.SRC_ALPHA); - //deleteContext(); + done(); }); @@ -1110,7 +1110,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test checkFramebufferStatus. */ it('webgl_test_checkFramebufferStatus22', 0, async function (done) { - //initContext(); + console.info("webgltest into checkFramebufferStatus"); var framebuffer = gl.createFramebuffer(); @@ -1121,7 +1121,7 @@ export default function webgl1Test_webgl8() { checkFramebufferStatus); expect(checkFramebufferStatus).assertEqual(gl.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT); - //deleteContext(); + done(); }); @@ -1132,14 +1132,14 @@ export default function webgl1Test_webgl8() { * @tc.desc Test clear. */ it('webgl_test_clear_2', 0, async function (done) { - //initContext(); + console.info("webgltest into clear"); gl.clear(gl.DEPTH_BUFFER_BIT); var float32Array = new Float32Array([0, 0, 0, 0]); const clearParameter = gl.getParameter(gl.DEPTH_CLEAR_VALUE); console.info("webgltest clear getParameter: " + clearParameter); expect(typeof (clearParameter)).assertEqual('number'); - //deleteContext(); + done(); }); @@ -1150,14 +1150,14 @@ export default function webgl1Test_webgl8() { * @tc.desc Test clear. */ it('webgl_test_clear_3', 0, async function (done) { - //initContext(); + console.info("webgltest into clear"); gl.clear(gl.STENCIL_BUFFER_BIT); var float32Array = new Float32Array([0, 0, 0, 0]); const clearParameter = gl.getParameter(gl.STENCIL_CLEAR_VALUE); console.info("webgltest clear getParameter: " + clearParameter); expect(typeof (clearParameter)).assertEqual('number'); - //deleteContext(); + done(); }); @@ -1168,7 +1168,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test clearColor. */ it('webgl_test_clearColor_2', 0, async function (done) { - //initContext(); + console.info("webgltest into clearColor"); gl.clearColor(1, 3, 0.5, 3); @@ -1178,7 +1178,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest clearColor: " + clearColorParameter); expect(clearColorParameter.toString()).assertEqual(float32ArrayValue.toString()); - //deleteContext(); + done(); }); @@ -1189,14 +1189,14 @@ export default function webgl1Test_webgl8() { * @tc.desc Test copyTexImage2D. */ it('webgl_test_copyTexImage2D_2', 0, async function (done) { - //initContext(); + console.info("webgltest into copyTexImage2D"); gl.copyTexImage2D(gl.TEXTURE_CUBE_MAP_POSITIVE_X, 0, gl.ALPHA, 0, 0, 512, 512, 0); let errorCode = gl.getError(); console.info("webgltest copyTexImage2D getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_FRAMEBUFFER_OPERATION); - //deleteContext(); + done(); }); @@ -1207,14 +1207,14 @@ export default function webgl1Test_webgl8() { * @tc.desc Test copyTexImage2D. */ it('webgl_test_copyTexImage2D_3', 0, async function (done) { - //initContext(); + console.info("webgltest into copyTexImage2D"); gl.copyTexImage2D(gl.TEXTURE_CUBE_MAP_POSITIVE_Y, 0, gl.LUMINANCE, 0, 0, 512, 512, 0); let errorCode = gl.getError(); console.info("webgltest copyTexImage2D getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_FRAMEBUFFER_OPERATION); - //deleteContext(); + done(); }); @@ -1225,7 +1225,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test copyTexSubImage2D. */ it('webgl_test_copyTexSubImage2D_2', 0, async function (done) { - //initContext(); + console.info("webgltest into copyTexSubImage2D"); gl.copyTexSubImage2D(gl.TEXTURE_CUBE_MAP_POSITIVE_X, 0, 0, 0, 0, 0, 16, 16); @@ -1233,7 +1233,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest copyTexSubImage2D getError: " + errorCode); expect(errorCode).assertLarger(gl.NO_ERROR); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -1244,7 +1244,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test copyTexSubImage2D. */ it('webgl_test_copyTexSubImage2D_3', 0, async function (done) { - //initContext(); + console.info("webgltest into copyTexSubImage2D"); gl.copyTexSubImage2D(gl.TEXTURE_CUBE_MAP_NEGATIVE_Y, 0, 0, 0, 0, 0, 16, 16); @@ -1252,7 +1252,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest copyTexSubImage2D getError: " + errorCode); expect(errorCode).assertLarger(gl.NO_ERROR); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -1263,7 +1263,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test copyTexSubImage2D. */ it('webgl_test_copyTexSubImage2D_4', 0, async function (done) { - //initContext(); + console.info("webgltest into copyTexSubImage2D"); gl.copyTexSubImage2D(gl.TEXTURE_CUBE_MAP_POSITIVE_Z, 0, 0, 0, 0, 0, 16, 16); @@ -1271,7 +1271,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest copyTexSubImage2D getError: " + errorCode); expect(errorCode).assertLarger(gl.NO_ERROR); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -1282,7 +1282,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test createShader. */ it('webgl_test_createShader_2', 0, async function (done) { - //initContext(); + console.info("webgltest into createShader"); const shader = gl.createShader(gl.FRAGMENT_SHADER); @@ -1290,7 +1290,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest createShader isShader: " + isShader); expect(isShader).assertEqual(true); - //deleteContext(); + done(); }); @@ -1301,7 +1301,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test disable. */ it('webgl_test_disable_22', 0, async function (done) { - //initContext(); + console.info("webgltest into disable"); gl.enable(gl.BLEND); const isEnabled2 = gl.isEnabled(gl.BLEND); @@ -1316,7 +1316,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest disable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(false); - //deleteContext(); + done(); }); @@ -1327,7 +1327,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test disable. */ it('webgl_test_disable_23', 0, async function (done) { - //initContext(); + console.info("webgltest into disable"); gl.enable(gl.BLEND); const isEnabled2 = gl.isEnabled(gl.BLEND); @@ -1342,7 +1342,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest disable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(false); - //deleteContext(); + done(); }); @@ -1353,7 +1353,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test disable. */ it('webgl_test_disable_24', 0, async function (done) { - //initContext(); + console.info("webgltest into disable"); gl.enable(gl.DEPTH_TEST); const isEnabled2 = gl.isEnabled(gl.DEPTH_TEST); @@ -1368,7 +1368,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest disable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(false); - //deleteContext(); + done(); }); @@ -1379,7 +1379,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test disable. */ it('webgl_test_disable_25', 0, async function (done) { - //initContext(); + console.info("webgltest into disable"); gl.enable(gl.POLYGON_OFFSET_FILL); const isEnabled2 = gl.isEnabled(gl.POLYGON_OFFSET_FILL); @@ -1394,7 +1394,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest disable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(false); - //deleteContext(); + done(); }); @@ -1405,7 +1405,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test disable. */ it('webgl_test_disable_26', 0, async function (done) { - //initContext(); + console.info("webgltest into disable"); gl.enable(gl.SCISSOR_TEST); const isEnabled2 = gl.isEnabled(gl.SCISSOR_TEST); @@ -1420,7 +1420,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest disable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(false); - //deleteContext(); + done(); }); @@ -1431,13 +1431,13 @@ export default function webgl1Test_webgl8() { * @tc.desc Test disableVertexAttribArray. */ it('webgl_test_disableVertexAttribArray_2', 0, async function (done) { - //initContext(); + console.info("webgltest into disableVertexAttribArray"); gl.disableVertexAttribArray(-1); let errorCode = gl.getError(); console.info("webgltest disableVertexAttribArray getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_VALUE); - //deleteContext(); + done(); }); @@ -1448,7 +1448,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test drawArrays. */ it('webgl_test_drawArrays2', 0, async function (done) { - //initContext(); + console.info("webgltest into drawArrays"); gl.drawArrays(gl.LINE_STRIP, 0, 8); @@ -1456,7 +1456,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest drawArrays getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_FRAMEBUFFER_OPERATION); - //deleteContext(); + done(); }); @@ -1467,7 +1467,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test drawArrays. */ it('webgl_test_drawArrays3', 0, async function (done) { - //initContext(); + console.info("webgltest into drawArrays"); gl.drawArrays(gl.LINE_LOOP, 0, 8); @@ -1475,7 +1475,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest drawArrays getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_FRAMEBUFFER_OPERATION); - //deleteContext(); + done(); }); @@ -1486,7 +1486,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test drawArrays. */ it('webgl_test_drawArrays4', 0, async function (done) { - //initContext(); + console.info("webgltest into drawArrays"); gl.drawArrays(gl.LINES, 0, 8); @@ -1494,7 +1494,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest drawArrays getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_FRAMEBUFFER_OPERATION); - //deleteContext(); + done(); }); @@ -1505,7 +1505,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test drawArrays. */ it('webgl_test_drawArrays5', 0, async function (done) { - //initContext(); + console.info("webgltest into drawArrays"); gl.drawArrays(gl.TRIANGLE_STRIP, 0, 8); @@ -1513,7 +1513,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest drawArrays getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_FRAMEBUFFER_OPERATION); - //deleteContext(); + done(); }); @@ -1524,7 +1524,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test drawArrays. */ it('webgl_test_drawArrays6', 0, async function (done) { - //initContext(); + console.info("webgltest into drawArrays"); gl.drawArrays(gl.TRIANGLE_FAN, 0, 8); @@ -1532,7 +1532,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest drawArrays getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_FRAMEBUFFER_OPERATION); - //deleteContext(); + done(); }); @@ -1543,7 +1543,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test drawArrays. */ it('webgl_test_drawArrays7', 0, async function (done) { - //initContext(); + console.info("webgltest into drawArrays"); gl.drawArrays(gl.TRIANGLES, 0, 8); @@ -1551,7 +1551,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest drawArrays getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_FRAMEBUFFER_OPERATION); - //deleteContext(); + done(); }); @@ -1562,7 +1562,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test drawElements. */ it('webgl_test_drawElements22', 0, async function (done) { - //initContext(); + console.info("webgltest into drawElements"); @@ -1598,7 +1598,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest drawArrays getError: " + errorCode); expect(errorCode).assertLarger(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1609,7 +1609,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test drawElements. */ it('webgl_test_drawElements23', 0, async function (done) { - //initContext(); + console.info("webgltest into drawElements"); @@ -1645,7 +1645,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest drawArrays getError: " + errorCode); expect(errorCode).assertLarger(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1656,7 +1656,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test drawElements. */ it('webgl_test_drawElements24', 0, async function (done) { - //initContext(); + console.info("webgltest into drawElements"); @@ -1692,7 +1692,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest drawArrays getError: " + errorCode); expect(errorCode).assertLarger(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1703,7 +1703,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test enable. */ it('webgl_test_enable', 0, async function (done) { - //initContext(); + console.info("webgltest into enable"); gl.enable(gl.BLEND); @@ -1713,7 +1713,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest enable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(true); - //deleteContext(); + done(); }); @@ -1723,7 +1723,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test enable. */ it('webgl_test_enable22', 0, async function (done) { - //initContext(); + console.info("webgltest into enable"); gl.enable(gl.CULL_FACE); @@ -1733,7 +1733,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest enable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(true); - //deleteContext(); + done(); }); @@ -1743,7 +1743,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test enable. */ it('webgl_test_enable23', 0, async function (done) { - //initContext(); + console.info("webgltest into enable"); gl.enable(gl.DEPTH_TEST); @@ -1753,7 +1753,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest enable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(true); - //deleteContext(); + done(); }); @@ -1763,7 +1763,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test enable. */ it('webgl_test_enable24', 0, async function (done) { - //initContext(); + console.info("webgltest into enable"); gl.enable(gl.DITHER); @@ -1773,7 +1773,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest enable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(true); - //deleteContext(); + done(); }); @@ -1783,7 +1783,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test enable. */ it('webgl_test_enable25', 0, async function (done) { - //initContext(); + console.info("webgltest into enable"); gl.enable(gl.POLYGON_OFFSET_FILL); @@ -1793,7 +1793,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest enable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(true); - //deleteContext(); + done(); }); @@ -1803,7 +1803,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test enable. */ it('webgl_test_enable26', 0, async function (done) { - //initContext(); + console.info("webgltest into enable"); gl.enable(gl.SAMPLE_ALPHA_TO_COVERAGE); @@ -1813,7 +1813,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest enable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(true); - //deleteContext(); + done(); }); @@ -1823,7 +1823,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test enable. */ it('webgl_test_enable27', 0, async function (done) { - //initContext(); + console.info("webgltest into enable"); gl.enable(gl.SAMPLE_COVERAGE); @@ -1833,7 +1833,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest enable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(true); - //deleteContext(); + done(); }); @@ -1843,7 +1843,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test enable. */ it('webgl_test_enable28', 0, async function (done) { - //initContext(); + console.info("webgltest into enable"); gl.enable(gl.SCISSOR_TEST); @@ -1853,7 +1853,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest enable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(true); - //deleteContext(); + done(); }); @@ -1863,7 +1863,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test enable. */ it('webgl_test_enable29', 0, async function (done) { - //initContext(); + console.info("webgltest into enable"); gl.enable(gl.STENCIL_TEST); @@ -1873,7 +1873,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest enable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(true); - //deleteContext(); + done(); }); @@ -1884,7 +1884,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer22', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1894,7 +1894,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1905,7 +1905,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer23', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1915,7 +1915,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1926,7 +1926,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer24', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1936,7 +1936,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1947,7 +1947,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer25', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1957,7 +1957,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1968,7 +1968,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test framebufferTexture2D. */ it('webgl_test_framebufferTexture2D22', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferTexture2D"); const texture = gl.createTexture(); gl.framebufferTexture2D(gl.DRAW_FRAMEBUFFER, gl.DEPTH_ATTACHMENT, gl.TEXTURE_2D, texture, @@ -1978,7 +1978,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest framebufferTexture2D getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1989,7 +1989,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test framebufferTexture2D. */ it('webgl_test_framebufferTexture2D23', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferTexture2D"); const texture = gl.createTexture(); gl.framebufferTexture2D(gl.DRAW_FRAMEBUFFER, gl.STENCIL_ATTACHMENT, gl.TEXTURE_2D, texture, @@ -1999,7 +1999,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest framebufferTexture2D getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2010,7 +2010,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test framebufferTexture2D. */ it('webgl_test_framebufferTexture2D24', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferTexture2D"); const texture = gl.createTexture(); gl.framebufferTexture2D(gl.DRAW_FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl @@ -2020,7 +2020,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest framebufferTexture2D getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2031,7 +2031,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test framebufferTexture2D. */ it('webgl_test_framebufferTexture2D25', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferTexture2D"); const texture = gl.createTexture(); gl.framebufferTexture2D(gl.DRAW_FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl @@ -2041,7 +2041,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest framebufferTexture2D getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2052,7 +2052,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test framebufferTexture2D. */ it('webgl_test_framebufferTexture2D26', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferTexture2D"); const texture = gl.createTexture(); gl.framebufferTexture2D(gl.DRAW_FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl @@ -2062,7 +2062,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest framebufferTexture2D getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2073,7 +2073,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test framebufferTexture2D. */ it('webgl_test_framebufferTexture2D25', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferTexture2D"); const texture = gl.createTexture(); gl.framebufferTexture2D(gl.DRAW_FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texture, @@ -2083,7 +2083,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest framebufferTexture2D getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2094,7 +2094,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test drawBuffers. */ it('webgl_test_drawBuffers22', 0, async function (done) { - //initContext(); + console.info("webgltest into drawBuffers"); gl2.drawBuffers([gl2.BACK, gl2.COLOR_ATTACHMENT2]); @@ -2102,7 +2102,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest drawBuffers getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2113,7 +2113,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test drawBuffers. */ it('webgl_test_drawBuffers23', 0, async function (done) { - //initContext(); + console.info("webgltest into drawBuffers"); gl2.drawBuffers([gl2.NONE, gl2.COLOR_ATTACHMENT3]); @@ -2121,7 +2121,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest drawBuffers getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2132,7 +2132,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test drawBuffers. */ it('webgl_test_drawBuffers24', 0, async function (done) { - //initContext(); + console.info("webgltest into drawBuffers"); gl2.drawBuffers([gl2.BACK, gl2.COLOR_ATTACHMENT4]); @@ -2140,7 +2140,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest drawBuffers getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2151,7 +2151,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test drawBuffers. */ it('webgl_test_drawBuffers25', 0, async function (done) { - //initContext(); + console.info("webgltest into drawBuffers"); gl2.drawBuffers([gl2.NONE, gl2.COLOR_ATTACHMENT5]); @@ -2159,7 +2159,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest drawBuffers getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2169,7 +2169,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test drawBuffers. */ it('webgl_test_drawBuffers26', 0, async function (done) { - //initContext(); + console.info("webgltest into drawBuffers"); gl2.drawBuffers([gl2.BACK, gl2.COLOR_ATTACHMENT6]); @@ -2177,7 +2177,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest drawBuffers getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2188,7 +2188,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test clearBufferfv. */ it('webgl_test_clearBufferfv22', 0, async function (done) { - //initContext(); + console.info("webgltest into clearBufferfv"); gl2.clearBufferfv(gl.DEPTH, 0, [0.0, 0.0, 0.0, 0.0]); @@ -2196,7 +2196,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest webgl_test_clearBufferfv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2207,7 +2207,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test clearBufferfv. */ it('webgl_test_clearBufferfv_22', 0, async function (done) { - //initContext(); + console.info("webgltest into clearBufferfv"); gl2.clearBufferfv(gl.STENCIL, 0, [0.0, 0.0, 0.0, 0.0]); @@ -2216,7 +2216,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest webgl_test_clearBufferfv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -2227,7 +2227,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test clearBufferfv. */ it('webgl_test_clearBufferfv23', 0, async function (done) { - //initContext(); + console.info("webgltest into clearBufferfv"); gl2.clearBufferfv(gl.DEPTH_STENCIL, 0, [0.0, 0.0, 0.0, 0.0]); @@ -2236,7 +2236,7 @@ export default function webgl1Test_webgl8() { console.info("webgltest webgl_test_clearBufferfv getError: " + errorCode); expect(errorCode).assertLarger(gl.NO_ERROR); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -2247,7 +2247,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test clearBufferiv. */ it('webgl_test_clearBufferiv22', 0, async function (done) { - //initContext(); + console.info("webgltest into clearBufferiv"); gl2.clearBufferiv(gl.DEPTH, 0, new Int32Array([0, 1, 0, 0.5])); @@ -2255,7 +2255,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest clearBufferiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2266,7 +2266,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test clearBufferiv. */ it('webgl_test_clearBufferiv23', 0, async function (done) { - //initContext(); + console.info("webgltest into clearBufferiv"); gl2.clearBufferiv(gl.STENCIL, 0, new Int32Array([0, 1, 0, 0.5])); @@ -2274,7 +2274,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest clearBufferiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2284,7 +2284,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test clearBufferiv. */ it('webgl_test_clearBufferiv24', 0, async function (done) { - //initContext(); + console.info("webgltest into clearBufferiv"); gl2.clearBufferiv(gl.DEPTH_STENCIL, 0, new Int32Array([0, 1, 0, 0.5])); @@ -2292,7 +2292,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest clearBufferiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2302,7 +2302,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test clearBufferuiv. */ it('webgl_test_clearBufferuiv23', 0, async function (done) { - //initContext(); + console.info("webgltest into clearBufferuiv"); gl2.clearBufferuiv(gl.DEPTH, 0, new Uint32Array([0, 1, 0, 0])); @@ -2310,7 +2310,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest clearBufferuiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2320,7 +2320,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test clearBufferuiv. */ it('webgl_test_clearBufferuiv24', 0, async function (done) { - //initContext(); + console.info("webgltest into clearBufferuiv"); gl2.clearBufferuiv(gl.STENCIL, 0, new Uint32Array([0, 1, 0, 0])); @@ -2328,7 +2328,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest clearBufferuiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2339,7 +2339,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test clearBufferuiv. */ it('webgl_test_clearBufferuiv25', 0, async function (done) { - //initContext(); + console.info("webgltest into clearBufferuiv"); gl2.clearBufferuiv(gl.DEPTH_STENCIL, 0, new Uint32Array([0, 1, 0, 0])); @@ -2347,7 +2347,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest clearBufferuiv getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2358,7 +2358,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test clearBufferfi. */ it('webgl_test_clearBufferfi22', 0, async function (done) { - //initContext(); + console.info("webgltest into clearBufferfi"); gl2.clearBufferfi(gl.DEPTH, 0, 1.0, 0); @@ -2366,7 +2366,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest clearBufferfi getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -2377,7 +2377,7 @@ export default function webgl1Test_webgl8() { * @tc.desc Test clearBufferfi. */ it('webgl_test_clearBufferfi23', 0, async function (done) { - //initContext(); + console.info("webgltest into clearBufferfi"); gl2.clearBufferfi(gl.STENCIL, 0, 1.0, 0); @@ -2385,7 +2385,7 @@ export default function webgl1Test_webgl8() { let errorCode = gl.getError(); console.info("webgltest clearBufferfi getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); }) diff --git a/graphic/webGL/src/main/js/test/WebGL.test09.js b/graphic/webGL/src/main/js/test/WebGL.test09.js index 645ee0a65..1def6c069 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test09.js +++ b/graphic/webGL/src/main/js/test/WebGL.test09.js @@ -289,7 +289,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test beginQuery. */ it('webgl_test_beginQuery22', 0, async function (done) { - //initContext(); + console.info("webgltest into beginQuery"); var query = gl2.createQuery(); @@ -300,7 +300,7 @@ export default function webgl1Test_webgl9() { const isQuery1 = gl2.isQuery(currentQuery); console.info("webgltest createQuery isQuery1: " + isQuery1); expect(isQuery1).assertEqual(true); - //deleteContext(); + done(); }); @@ -310,7 +310,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test endQuery. */ it('webgl_test_endQuery24', 0, async function (done) { - //initContext(); + console.info("webgltest into endQuery"); var query = gl2.createQuery(); @@ -328,7 +328,7 @@ export default function webgl1Test_webgl9() { console.info("webgltest createQuery isQuery2: " + isQuery2); expect(isQuery2).assertEqual(true); - //deleteContext(); + done(); }); @@ -338,7 +338,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test endQuery. */ it('webgl_test_getQuery24', 0, async function (done) { - //initContext(); + console.info("webgltest into endQuery"); var query = gl2.createQuery(); @@ -356,7 +356,7 @@ export default function webgl1Test_webgl9() { console.info("webgltest createQuery isQuery2: " + isQuery2); expect(isQuery2).assertEqual(true); - //deleteContext(); + done(); }); @@ -367,7 +367,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bindSampler. */ it('webgl_test_bindSampler23', 0, async function (done) { - //initContext(); + console.info("webgltest into bindSampler"); const sampler = gl2.createSampler(); const isSampler1 = gl2.isSampler(sampler); @@ -383,7 +383,7 @@ export default function webgl1Test_webgl9() { const isSampler3 = gl2.isSampler(sampler); console.info("webgltest createSampler bindSampler deleteSampler isSampler3: " + isSampler3); expect(isSampler3).assertEqual(false); - //deleteContext(); + done(); }); @@ -394,18 +394,18 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameterf. */ it('webgl_test_samplerParameterf24', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameterf"); let sampler = gl2.createSampler(); - // gl2.bindSampler(0, sampler); + gl2.samplerParameterf(sampler, gl2.TEXTURE_COMPARE_FUNC, gl.NEAREST); let errorCode = gl.getError(); console.info("webgltest samplerParameterf getError: " + errorCode); expect(errorCode).assertLarger(gl.NO_ERROR); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -416,18 +416,18 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameterf. */ it('webgl_test_samplerParameterf25', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameterf"); let sampler = gl2.createSampler(); - // gl2.bindSampler(0, sampler); + gl2.samplerParameterf(sampler, gl.TEXTURE_COMPARE_MODE, gl.NEAREST); let errorCode = gl.getError(); console.info("webgltest samplerParameterf getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -437,18 +437,18 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameterf. */ it('webgl_test_samplerParameterf26', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameterf"); let sampler = gl2.createSampler(); - // gl2.bindSampler(0, sampler); + gl2.samplerParameterf(sampler, gl.TEXTURE_MAX_LOD, gl.NEAREST); let errorCode = gl.getError(); console.info("webgltest samplerParameterf getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -459,18 +459,18 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameterf. */ it('webgl_test_samplerParameterf27', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameterf"); let sampler = gl2.createSampler(); - // gl2.bindSampler(0, sampler); + gl2.samplerParameterf(sampler, gl.TEXTURE_MIN_FILTER, gl.NEAREST); let errorCode = gl.getError(); console.info("webgltest samplerParameterf getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -481,18 +481,18 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameterf. */ it('webgl_test_samplerParameterf28', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameterf"); let sampler = gl2.createSampler(); - // gl2.bindSampler(0, sampler); + gl2.samplerParameterf(sampler, gl.TEXTURE_MIN_LOD, gl.NEAREST); let errorCode = gl.getError(); console.info("webgltest samplerParameterf getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -503,18 +503,18 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameterf. */ it('webgl_test_samplerParameterf29', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameterf"); let sampler = gl2.createSampler(); - // gl2.bindSampler(0, sampler); + gl2.samplerParameterf(sampler, gl.TEXTURE_WRAP_R, gl.NEAREST); let errorCode = gl.getError(); console.info("webgltest samplerParameterf getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -525,18 +525,18 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameterf. */ it('webgl_test_samplerParameterf30', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameterf"); let sampler = gl2.createSampler(); - // gl2.bindSampler(0, sampler); + gl2.samplerParameterf(sampler, gl.TEXTURE_WRAP_S, gl.NEAREST); let errorCode = gl.getError(); console.info("webgltest samplerParameterf getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_ENUM); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -547,18 +547,18 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameterf. */ it('webgl_test_samplerParameterf31', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameterf"); let sampler = gl2.createSampler(); - // gl2.bindSampler(0, sampler); + gl2.samplerParameterf(sampler, gl.TEXTURE_WRAP_T, gl.NEAREST); let errorCode = gl.getError(); console.info("webgltest samplerParameterf getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_ENUM); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -569,7 +569,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameteri. */ it('webgl_test_samplerParameteri24', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameteri"); let sampler = gl2.createSampler(); gl2.samplerParameteri(sampler, gl.TEXTURE_COMPARE_FUNC, gl.NEAREST); @@ -578,7 +578,7 @@ export default function webgl1Test_webgl9() { console.info("webgltest samplerParameteri getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -589,7 +589,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameteri. */ it('webgl_test_samplerParameteri25', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameteri"); let sampler = gl2.createSampler(); gl2.samplerParameteri(sampler, gl.TEXTURE_COMPARE_MODE, gl.NEAREST); @@ -598,7 +598,7 @@ export default function webgl1Test_webgl9() { console.info("webgltest samplerParameteri getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -609,7 +609,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameteri. */ it('webgl_test_samplerParameteri26', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameteri"); let sampler = gl2.createSampler(); gl2.samplerParameteri(sampler, gl.TEXTURE_MAX_LOD, gl.NEAREST); @@ -618,7 +618,7 @@ export default function webgl1Test_webgl9() { console.info("webgltest samplerParameteri getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -629,7 +629,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameteri. */ it('webgl_test_samplerParameteri27', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameteri"); let sampler = gl2.createSampler(); gl2.samplerParameteri(sampler, gl.TEXTURE_MIN_FILTER, gl.NEAREST); @@ -638,7 +638,7 @@ export default function webgl1Test_webgl9() { console.info("webgltest samplerParameteri getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -649,7 +649,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameteri. */ it('webgl_test_samplerParameteri28', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameteri"); let sampler = gl2.createSampler(); gl2.samplerParameteri(sampler, gl.TEXTURE_MIN_LOD, gl.NEAREST); @@ -658,7 +658,7 @@ export default function webgl1Test_webgl9() { console.info("webgltest samplerParameteri getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -669,7 +669,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameteri. */ it('webgl_test_samplerParameteri29', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameteri"); let sampler = gl2.createSampler(); gl2.samplerParameteri(sampler, gl.TEXTURE_WRAP_R, gl.NEAREST); @@ -678,7 +678,7 @@ export default function webgl1Test_webgl9() { console.info("webgltest samplerParameteri getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -688,7 +688,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameteri. */ it('webgl_test_samplerParameteri211', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameteri"); let sampler = gl2.createSampler(); gl2.samplerParameteri(sampler, gl.TEXTURE_WRAP_S, gl.NEAREST); @@ -697,7 +697,7 @@ export default function webgl1Test_webgl9() { console.info("webgltest samplerParameteri getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_ENUM); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -707,7 +707,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test samplerParameteri. */ it('webgl_test_samplerParameteri212', 0, async function (done) { - //initContext(); + console.info("webgltest into samplerParameteri"); let sampler = gl2.createSampler(); gl2.samplerParameteri(sampler, gl.TEXTURE_WRAP_T, gl.NEAREST); @@ -716,7 +716,7 @@ export default function webgl1Test_webgl9() { console.info("webgltest samplerParameteri getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_ENUM); gl2.deleteSampler(sampler); - //deleteContext(); + done(); }); @@ -726,7 +726,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test getShaderPrecisionFormat. */ it('testGetShaderPrecisionFormat', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderPrecisionFormat test start ...' + JSON.stringify(gl)); const shaderPrecisionFormat = gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.HIGH_INT); console.info('shaderPrecisionFormat' + JSON.stringify(shaderPrecisionFormat)); @@ -741,7 +741,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test getActiveUniformBlockParameter. */ it('testGetActiveUniformBlockParameter_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 getActiveUniformBlockParameter test start ...' + JSON.stringify( gl2)); const program = globalFunction(); @@ -765,7 +765,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test getActiveUniformBlockParameter. */ it('testGetActiveUniformBlockParameter_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 getActiveUniformBlockParameter test start ...' + JSON.stringify( gl2)); const program = globalFunction(); @@ -789,7 +789,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test getActiveUniformBlockParameter. */ it('testGetActiveUniformBlockParameter_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 getActiveUniformBlockParameter test start ...' + JSON.stringify( gl2)); const program = globalFunction(); @@ -813,7 +813,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test getActiveUniformBlockParameter. */ it('testGetActiveUniformBlockParameter_4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 getActiveUniformBlockParameter test start ...' + JSON.stringify( gl2)); const program = globalFunction(); @@ -837,14 +837,14 @@ export default function webgl1Test_webgl9() { * @tc.desc Test getIndexedParameter. */ it('testGetIndexedParameter_01_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetIndexedParameter_01_01 test start ...66'); console.info('jsWebGL testGetIndexedParameter_01 test start ...' + JSON.stringify(gl)); const reurGLsizeiptr = gl2.getIndexedParameter(-gl.TRANSFORM_FEEDBACK_BUFFER_SIZE, -0); const typeGLsizeiptr = typeof (reurGLsizeiptr); expect(typeGLsizeiptr == 'String').assertEqual(false); - //deleteContext(); + done(); } catch (e) { console.log("testGetIndexedParameter_01 has failed for " + e) @@ -858,14 +858,14 @@ export default function webgl1Test_webgl9() { * @tc.desc Test getIndexedParameter. */ it('testGetIndexedParameter_02_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetIndexedParameter_02_01 test start ...66'); console.info('jsWebGL testGetIndexedParameter_02 test start ...' + JSON.stringify(gl)); const retuGLintptr = gl2.getIndexedParameter(-gl.TRANSFORM_FEEDBACK_BUFFER_START, -1); const typeGLintptr = typeof (retuGLintptr); expect(typeGLintptr == 'String').assertEqual(false); - //deleteContext(); + done(); } catch (e) { console.log("testGetIndexedParameter_02 has failed for " + e) @@ -879,14 +879,14 @@ export default function webgl1Test_webgl9() { * @tc.desc Test getIndexedParameter. */ it('testGetIndexedParameter_03_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetIndexedParameter_03_01 test start ...66'); console.info('jsWebGL testGetIndexedParameter_03 test start ...' + JSON.stringify(gl)); const WebGLBufferobject = gl2.getIndexedParameter(gl.UNIFORM_BUFFER_BINDING, -0); const isBuffer = gl.isBuffer(WebGLBufferobject); expect(isBuffer).assertEqual(false); - //deleteContext(); + done(); } catch (e) { console.log("testGetIndexedParameter_03 has failed for " + e) @@ -900,14 +900,14 @@ export default function webgl1Test_webgl9() { * @tc.desc Test getIndexedParameter. */ it('testGetIndexedParameter_04_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetIndexedParameter_04_01 test start ...66'); console.info('jsWebGL testGetIndexedParameter_04 test start ...' + JSON.stringify(gl)); const reurGLsizeiptr = gl2.getIndexedParameter(-gl.UNIFORM_BUFFER_SIZE, null); const typeGLsizeiptr = typeof (reurGLsizeiptr); expect(typeGLsizeiptr == 'String').assertEqual(false); - //deleteContext(); + done(); } catch (e) { console.log("testGetIndexedParameter_04 has failed for " + e) @@ -921,14 +921,14 @@ export default function webgl1Test_webgl9() { * @tc.desc Test getIndexedParameter. */ it('testGetIndexedParameter_05_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testGetIndexedParameter_05 test start ...66'); console.info('jsWebGL testGetIndexedParameter_05 test start ...' + JSON.stringify(gl)); const retuGLintptr = gl2.getIndexedParameter(-gl.UNIFORM_BUFFER_START, -0); const typeGLintptr = typeof (retuGLintptr); expect(typeGLintptr == 'String').assertEqual(false); - //deleteContext(); + done(); } catch (e) { console.log("testGetIndexedParameter_05 has failed for " + e) @@ -942,7 +942,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_1_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_1_02 test start ...66'); var tex = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, tex); @@ -961,7 +961,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_1_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_1_03 test start ...66'); var tex = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, tex); @@ -980,7 +980,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_1_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_1_04 test start ...66'); var tex = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, tex); @@ -999,7 +999,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_1_05', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_1_05 test start ...66'); var tex = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, tex); @@ -1025,7 +1025,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_1_06', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_1_06 test start ...66'); var tex = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, tex); @@ -1051,7 +1051,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_1_07', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_1_07 test start ...66'); var tex = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, tex); @@ -1077,7 +1077,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_1_08', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_1_08 test start ...66'); var tex = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, tex); @@ -1103,7 +1103,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_1_09', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_1_09 test start ...66'); var tex = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, tex); @@ -1129,7 +1129,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_1_10', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_1_10 test start ...66'); var tex = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, tex); @@ -1155,7 +1155,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_1_11', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_1_11 test start ...66'); var tex = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, tex); @@ -1181,7 +1181,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test pixelStorei. */ it('testPixelStorei_1_12', 0, async function (done) { - //initContext(); + console.info('jsWebGL testPixelStorei_1_12 test start ...66'); var tex = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, tex); @@ -1208,7 +1208,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_80', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_80 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, buffer); @@ -1225,7 +1225,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_81', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_81 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.COPY_READ_BUFFER, buffer); @@ -1249,7 +1249,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_82', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_82 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.COPY_WRITE_BUFFER, buffer); @@ -1273,7 +1273,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_83', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_83 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.TRANSFORM_FEEDBACK_BUFFER, buffer); @@ -1297,7 +1297,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_84', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_84 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.UNIFORM_BUFFER, buffer); @@ -1321,7 +1321,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_85', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_85 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.PIXEL_PACK_BUFFER, buffer); @@ -1345,7 +1345,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_86', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_86 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.PIXEL_UNPACK_BUFFER, buffer); @@ -1369,7 +1369,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_80_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_80_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, buffer); @@ -1386,7 +1386,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_81_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_81_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.COPY_READ_BUFFER, buffer); @@ -1410,7 +1410,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_82_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_82_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.COPY_WRITE_BUFFER, buffer); @@ -1434,7 +1434,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_83_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_83_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.TRANSFORM_FEEDBACK_BUFFER, buffer); @@ -1458,7 +1458,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_84_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_84_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.UNIFORM_BUFFER, buffer); @@ -1482,7 +1482,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_85_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_85_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.PIXEL_PACK_BUFFER, buffer); @@ -1506,7 +1506,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_86_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_86_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.PIXEL_UNPACK_BUFFER, buffer); @@ -1530,7 +1530,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_87_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_87_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.PIXEL_UNPACK_BUFFER, buffer); @@ -1554,7 +1554,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_80_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_80_1 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, buffer); @@ -1571,7 +1571,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_81_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_81_1 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.COPY_READ_BUFFER, buffer); @@ -1595,7 +1595,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_82_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_82_1 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.COPY_WRITE_BUFFER, buffer); @@ -1619,7 +1619,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_83_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_83_1 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.TRANSFORM_FEEDBACK_BUFFER, buffer); @@ -1643,7 +1643,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_84_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_84_1 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.UNIFORM_BUFFER, buffer); @@ -1667,7 +1667,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_85_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_85_1 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.PIXEL_PACK_BUFFER, buffer); @@ -1691,7 +1691,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_86_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_86_1 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.PIXEL_UNPACK_BUFFER, buffer); @@ -1715,7 +1715,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_80_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_80_1_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, buffer); @@ -1732,7 +1732,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_81_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_81_1_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.COPY_READ_BUFFER, buffer); @@ -1756,7 +1756,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_82_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_82_1_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.COPY_WRITE_BUFFER, buffer); @@ -1780,7 +1780,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_83_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_83_1_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.TRANSFORM_FEEDBACK_BUFFER, buffer); @@ -1804,7 +1804,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_84_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_84_1_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.UNIFORM_BUFFER, buffer); @@ -1828,7 +1828,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_85_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_85_1_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.PIXEL_PACK_BUFFER, buffer); @@ -1852,7 +1852,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_86_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_86_1_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.PIXEL_UNPACK_BUFFER, buffer); @@ -1876,7 +1876,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferData. */ it('testBufferData_87_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferData_87_1_01 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl2.PIXEL_UNPACK_BUFFER, buffer); @@ -1900,7 +1900,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferSubData. */ it('testBufferSubData_1_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferSubData_1_02 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -1918,7 +1918,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferSubData. */ it('testBufferSubData_1_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferSubData_1_03 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -1936,7 +1936,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferSubData. */ it('testBufferSubData_1_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferSubData_1_04 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -1961,7 +1961,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferSubData. */ it('testBufferSubData_1_05', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferSubData_1_05 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -1986,7 +1986,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferSubData. */ it('testBufferSubData_1_06', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferSubData_1_06 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -2011,7 +2011,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferSubData. */ it('testBufferSubData_1_07', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferSubData_1_07 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -2036,7 +2036,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test bufferSubData. */ it('testBufferSubData_1_08', 0, async function (done) { - //initContext(); + console.info('jsWebGL testBufferSubData_1_08 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -2061,7 +2061,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexImage2D_1_01 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -2078,7 +2078,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D_1_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexImage2D_1_02 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -2095,7 +2095,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D_1_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexImage2D_1_03 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -2112,7 +2112,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D_1_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexImage2D_1_04 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -2129,7 +2129,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D_1_05', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexImage2D_1_05 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -2146,7 +2146,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D_1_06', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexImage2D_1_06 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -2163,7 +2163,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2D_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexSubImage2D_1_01 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -2182,7 +2182,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2D_1_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexSubImage2D_1_02 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -2201,7 +2201,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2D_1_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexSubImage2D_1_03 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -2220,7 +2220,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2D_1_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexSubImage2D_1_04 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -2239,7 +2239,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2D_1_05', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexSubImage2D_1_05 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -2258,7 +2258,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2D_1_06', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCompressedTexSubImage2D_1_06 test start ...66'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); @@ -2278,7 +2278,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test texImage2D. */ it('testTexImage2D_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D_1_01 test start ...66'); const buffer = new ArrayBuffer(8); const z = new Uint8Array(buffer, 1, 4); @@ -2296,7 +2296,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test texImage2D. */ it('testTexImage2D_1_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D_1_02 test start ...66'); const buffer = new ArrayBuffer(8); const z = new Uint8Array(buffer, 1, 4); @@ -2314,7 +2314,7 @@ export default function webgl1Test_webgl9() { * @tc.desc Test texImage2D. */ it('testTexImage2D_1_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D_1_03 test start ...66'); const buffer = new ArrayBuffer(8); const z = new Uint8Array(buffer, 1, 4); diff --git a/graphic/webGL/src/main/js/test/WebGL.test10.js b/graphic/webGL/src/main/js/test/WebGL.test10.js index c3c0dee0f..aa08afe8b 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test10.js +++ b/graphic/webGL/src/main/js/test/WebGL.test10.js @@ -290,7 +290,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texImage2D. */ it('testTexImage2D_1_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D_1_04 test start ...66'); const buffer = new ArrayBuffer(8); const z = new Uint8Array(buffer, 1, 4); @@ -308,7 +308,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texImage2D. */ it('testTexImage2D_1_05', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D_1_05 test start ...66'); const buffer = new ArrayBuffer(8); const z = new Uint8Array(buffer, 1, 4); @@ -326,7 +326,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texImage2D. */ it('testTexImage2D_1_06', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D_1_06 test start ...66'); const buffer = new ArrayBuffer(8); const z = new Uint8Array(buffer, 1, 4); @@ -344,7 +344,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texImage2D. */ it('testTexImage2D_1_07', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D_1_07 test start ...66'); const buffer = new ArrayBuffer(8); const z = new Uint8Array(buffer, 1, 4); @@ -361,7 +361,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexSubImage2D_1_01 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -380,7 +380,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_1_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexSubImage2D_1_02 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -399,7 +399,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_1_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexSubImage2D_1_03 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -418,7 +418,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_1_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexSubImage2D_1_04 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -437,7 +437,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_1_05', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexSubImage2D_1_05 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -456,7 +456,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_1_06', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexSubImage2D_1_06 test start ...66'); const buf = new ArrayBuffer(8); const view = new DataView(buf, 0); @@ -475,7 +475,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test copyBufferSubData. */ it('testCopyBufferSubData_1_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCopyBufferSubData_1_02 test start ...66'); const srcBuffer = gl.createBuffer(); const dstBuffer = gl.createBuffer(); @@ -500,7 +500,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test copyBufferSubData. */ it('testCopyBufferSubData_1_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCopyBufferSubData_1_03 test start ...66'); const srcBuffer = gl.createBuffer(); const dstBuffer = gl.createBuffer(); @@ -525,7 +525,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test copyBufferSubData. */ it('testCopyBufferSubData_1_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCopyBufferSubData_1_04 test start ...66'); const srcBuffer = gl.createBuffer(); const dstBuffer = gl.createBuffer(); @@ -550,7 +550,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test copyBufferSubData. */ it('testCopyBufferSubData_1_05', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCopyBufferSubData_1_05 test start ...66'); const srcBuffer = gl.createBuffer(); const dstBuffer = gl.createBuffer(); @@ -575,7 +575,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test copyBufferSubData. */ it('testCopyBufferSubData_1_06', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCopyBufferSubData_1_06 test start ...66'); const srcBuffer = gl.createBuffer(); const dstBuffer = gl.createBuffer(); @@ -600,7 +600,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test copyBufferSubData. */ it('testCopyBufferSubData_1_07', 0, async function (done) { - //initContext(); + console.info('jsWebGL testCopyBufferSubData_1_07 test start ...66'); const srcBuffer = gl.createBuffer(); const dstBuffer = gl.createBuffer(); @@ -625,7 +625,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test getBufferSubData. */ it('testGetBufferSubData_1_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testGetBufferSubData_1_02 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -645,7 +645,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test getBufferSubData. */ it('testGetBufferSubData_1_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testGetBufferSubData_1_03 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -665,7 +665,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test getBufferSubData. */ it('testGetBufferSubData_1_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testGetBufferSubData_1_04 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -685,7 +685,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test getBufferSubData. */ it('testGetBufferSubData_1_05', 0, async function (done) { - //initContext(); + console.info('jsWebGL testGetBufferSubData_1_05 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -705,7 +705,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test getBufferSubData. */ it('testGetBufferSubData_1_06', 0, async function (done) { - //initContext(); + console.info('jsWebGL testGetBufferSubData_1_06 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -725,7 +725,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test getBufferSubData. */ it('testGetBufferSubData_1_07', 0, async function (done) { - //initContext(); + console.info('jsWebGL testGetBufferSubData_1_07 test start ...66'); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -745,7 +745,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test framebufferTextureLayer. */ it('testFramebufferTextureLayer_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testFramebufferTextureLayer_1_01 test start ...66'); const texture = gl.createTexture(); gl.bindTexture(gl2.TEXTURE_2D_ARRAY, texture); @@ -773,7 +773,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test framebufferTextureLayer. */ it('testFramebufferTextureLayer_1_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testFramebufferTextureLayer_1_02 test start ...66'); const texture = gl.createTexture(); gl.bindTexture(gl2.TEXTURE_2D_ARRAY, texture); @@ -801,7 +801,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test framebufferTextureLayer. */ it('testFramebufferTextureLayer_1_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testFramebufferTextureLayer_1_03 test start ...66'); const texture = gl.createTexture(); gl.bindTexture(gl2.TEXTURE_2D_ARRAY, texture); @@ -829,7 +829,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test framebufferTextureLayer. */ it('testFramebufferTextureLayer_1_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testFramebufferTextureLayer_1_04 test start ...66'); const texture = gl.createTexture(); gl.bindTexture(gl2.TEXTURE_2D_ARRAY, texture); @@ -857,7 +857,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test framebufferTextureLayer. */ it('testFramebufferTextureLayer_1_05', 0, async function (done) { - //initContext(); + console.info('jsWebGL testFramebufferTextureLayer_1_05 test start ...66'); const texture = gl.createTexture(); gl.bindTexture(gl2.TEXTURE_2D_ARRAY, texture); @@ -885,7 +885,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test invalidateFramebuffer. */ it('testInvalidateFramebuffer_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateFramebuffer_1_01 test start ...66'); gl2.invalidateFramebuffer(gl.DRAW_FRAMEBUFFER, [gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1]); @@ -901,7 +901,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test invalidateFramebuffer. */ it('testInvalidateFramebuffer_1_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateFramebuffer_1_02 test start ...66'); gl2.invalidateFramebuffer(gl.FRAMEBUFFER, [gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1]); @@ -917,7 +917,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test invalidateFramebuffer. */ it('testInvalidateFramebuffer_1_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateFramebuffer_1_03 test start ...66'); gl2.invalidateFramebuffer(gl.READ_FRAMEBUFFER, [gl.COLOR_ATTACHMENT0, gl.DEPTH_ATTACHMENT]); @@ -933,7 +933,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test invalidateFramebuffer. */ it('testInvalidateFramebuffer_1_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateFramebuffer_1_04 test start ...66'); gl2.invalidateFramebuffer(gl.READ_FRAMEBUFFER, [gl.STENCIL_ATTACHMENT, gl.COLOR_ATTACHMENT1]); @@ -949,7 +949,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test invalidateFramebuffer. */ it('testInvalidateFramebuffer_1_05', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateFramebuffer_1_05 test start ...66'); gl2.invalidateFramebuffer(gl.READ_FRAMEBUFFER, [gl.DEPTH_STENCIL_ATTACHMENT, gl.COLOR_ATTACHMENT1]); @@ -965,7 +965,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test invalidateFramebuffer. */ it('testInvalidateFramebuffer_1_06', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateFramebuffer_1_06 test start ...66'); gl2.invalidateFramebuffer(gl.READ_FRAMEBUFFER, [gl.DEPTH_ATTACHMENT, gl.STENCIL_ATTACHMENT]); @@ -981,7 +981,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test invalidateFramebuffer. */ it('testInvalidateFramebuffer_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateFramebuffer_1_01 test start ...66'); gl2.invalidateFramebuffer(gl.READ_FRAMEBUFFER, [gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1]); @@ -997,7 +997,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test invalidateSubFramebuffer. */ it('testInvalidateSubFramebuffer_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateSubFramebuffer_1_01 test start ...66'); gl2.invalidateSubFramebuffer(gl.FRAMEBUFFER, [gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1], @@ -1014,7 +1014,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test invalidateSubFramebuffer. */ it('testInvalidateSubFramebuffer_1_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateSubFramebuffer_1_02 test start ...66'); gl2.invalidateSubFramebuffer(gl.DRAW_FRAMEBUFFER, [gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1], @@ -1031,7 +1031,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test invalidateSubFramebuffer. */ it('testInvalidateSubFramebuffer_1_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateSubFramebuffer_1_03 test start ...66'); gl2.invalidateSubFramebuffer(gl.READ_FRAMEBUFFER, [gl.DEPTH_ATTACHMENT, gl.COLOR_ATTACHMENT1], @@ -1048,7 +1048,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test invalidateSubFramebuffer. */ it('testInvalidateSubFramebuffer_1_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateSubFramebuffer_1_04 test start ...66'); gl2.invalidateSubFramebuffer(gl.READ_FRAMEBUFFER, [gl.COLOR_ATTACHMENT0, gl.STENCIL_ATTACHMENT], @@ -1065,7 +1065,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test invalidateSubFramebuffer. */ it('testInvalidateSubFramebuffer_1_05', 0, async function (done) { - //initContext(); + console.info('jsWebGL testInvalidateSubFramebuffer_1_05 test start ...66'); gl2.invalidateSubFramebuffer(gl.READ_FRAMEBUFFER, [gl.DEPTH_STENCIL_ATTACHMENT, gl.STENCIL_ATTACHMENT], @@ -1083,7 +1083,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample_1_01 test start ...66'); gl2.renderbufferStorageMultisample(gl.RENDERBUFFER, 4, gl.R8, 256, 256); const renderbufferStorageMultisampleError = gl.getError(); @@ -1098,7 +1098,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample_1_02', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample_1_02 test start ...66'); gl2.renderbufferStorageMultisample(gl.RENDERBUFFER, 4, gl.R8UI, 256, 256); const renderbufferStorageMultisampleError = gl.getError(); @@ -1113,7 +1113,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample_1_03', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample_1_03 test start ...66'); gl2.renderbufferStorageMultisample(gl.RENDERBUFFER, 4, gl.R8I, 256, 256); const renderbufferStorageMultisampleError = gl.getError(); @@ -1128,7 +1128,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample_1_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample_1_04 test start ...66'); gl2.renderbufferStorageMultisample(gl.RENDERBUFFER, 4, gl.R16UI, 256, 256); const renderbufferStorageMultisampleError = gl.getError(); @@ -1143,7 +1143,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample_1_05', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample_1_05 test start ...66'); gl2.renderbufferStorageMultisample(gl.RENDERBUFFER, 4, gl.R16I, 256, 256); const renderbufferStorageMultisampleError = gl.getError(); @@ -1158,7 +1158,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample_1_06', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample_1_06 test start ...66'); gl2.renderbufferStorageMultisample(gl.RENDERBUFFER, 4, gl.R32UI, 256, 256); const renderbufferStorageMultisampleError = gl.getError(); @@ -1173,7 +1173,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample_1_07', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample_1_07 test start ...66'); gl2.renderbufferStorageMultisample(gl.RENDERBUFFER, 4, gl.R32I, 256, 256); const renderbufferStorageMultisampleError = gl.getError(); @@ -1189,7 +1189,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample_1_08', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample_1_08 test start ...66'); gl2.renderbufferStorageMultisample(gl.RENDERBUFFER, 4, gl.RG8, 256, 256); const renderbufferStorageMultisampleError = gl.getError(); @@ -1205,7 +1205,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texStorage2D. */ it('testTexStorage2D_1_01', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexStorage2D_1_01 test start ...66'); gl2.texStorage2D(gl.TEXTURE_CUBE_MAP, 1, gl.RGB8, 256, 256); const texStorage2DError = gl.getError(); @@ -1220,7 +1220,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test bindBufferBase. */ it('testBindBufferBase_1_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testBindBufferBase_1_01 test start ...66'); let buffer = gl.createBuffer(); @@ -1228,7 +1228,7 @@ export default function webgl1Test_webgl10() { const bindBufferBaseError = gl.getError(); console.info("bindBufferBaseError: " + bindBufferBaseError); expect(bindBufferBaseError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("bindBufferBaseError has failed for " + e) @@ -1242,7 +1242,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test bindBufferRange. */ it('bindBufferRange_1_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL bindBufferRange_1_01 test start ...66'); const buffer = gl.createBuffer(); @@ -1250,7 +1250,7 @@ export default function webgl1Test_webgl10() { const bindBufferRangeError = gl.getError(); console.info("bindBufferRangeError: " + bindBufferRangeError); expect(bindBufferRangeError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("bindBufferRange has failed for " + e) @@ -1265,14 +1265,14 @@ export default function webgl1Test_webgl10() { * @tc.desc Test vertexAttrib2f. */ it('testVertexAttrib2f2', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib2f test start ...66'); gl.vertexAttrib2f(1, 10.0, 10.0); const vertexAttrib2fError = gl.getError(); console.info("vertexAttrib2fError: " + vertexAttrib2fError); expect(vertexAttrib2fError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib2f has failed for " + e) @@ -1286,7 +1286,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test vertexAttrib3f. */ it('testVertexAttrib3f2', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testvertexAttrib3f test start ...66'); console.info('jsWebGL testvertexAttrib3f test start ...' + JSON.stringify(gl)); @@ -1294,7 +1294,7 @@ export default function webgl1Test_webgl10() { const vertexAttrib3fError = gl.getError(); console.info("vertexAttrib3fError: " + vertexAttrib3fError); expect(vertexAttrib3fError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib3f has failed for " + e) @@ -1308,7 +1308,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test vertexAttrib4f. */ it('testVertexAttrib4f2', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib4f test start ...66'); console.info('jsWebGL testVertexAttrib4f test start ...' + JSON.stringify(gl)); @@ -1316,7 +1316,7 @@ export default function webgl1Test_webgl10() { const vertexAttrib4fError = gl.getError(); console.info("vertexAttrib4fError: " + vertexAttrib4fError); expect(vertexAttrib4fError).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); } catch (e) { console.log("testvertexAttrib4f has failed for " + e) @@ -1330,7 +1330,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test vertexAttrib1f. */ it('testVertexAttrib1f2', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib1f test start ...66'); console.info('jsWebGL testVertexAttrib1f test start ...' + JSON.stringify(gl)); @@ -1338,7 +1338,7 @@ export default function webgl1Test_webgl10() { const vertexAttrib1fError = gl.getError(); console.info("vertexAttrib1fError: " + vertexAttrib1fError); expect(vertexAttrib1fError).assertEqual(gl.INVALID_VALUE); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib1f has failed for " + e) @@ -1352,14 +1352,14 @@ export default function webgl1Test_webgl10() { * @tc.desc Test vertexAttrib2f. */ it('testVertexAttrib2f3', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib2f test start ...66'); gl.vertexAttrib2f(-1, 10.0, 10.0); const vertexAttrib2fError = gl.getError(); console.info("vertexAttrib2fError: " + vertexAttrib2fError); expect(vertexAttrib2fError).assertEqual(gl.INVALID_VALUE); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib2f has failed for " + e) @@ -1373,7 +1373,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test vertexAttrib3f. */ it('testVertexAttrib3f3', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testvertexAttrib3f test start ...66'); console.info('jsWebGL testvertexAttrib3f test start ...' + JSON.stringify(gl)); @@ -1381,7 +1381,7 @@ export default function webgl1Test_webgl10() { const vertexAttrib3fError = gl.getError(); console.info("vertexAttrib3fError: " + vertexAttrib3fError); expect(vertexAttrib3fError).assertEqual(gl.INVALID_VALUE); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttrib3f has failed for " + e) @@ -1395,7 +1395,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test vertexAttrib4f. */ it('testVertexAttrib4f22', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttrib4f test start ...66'); console.info('jsWebGL testVertexAttrib4f test start ...' + JSON.stringify(gl)); @@ -1403,7 +1403,7 @@ export default function webgl1Test_webgl10() { const vertexAttrib4fError = gl.getError(); console.info("vertexAttrib4fError: " + vertexAttrib4fError); expect(vertexAttrib4fError).assertEqual(gl.INVALID_VALUE); - //deleteContext(); + done(); } catch (e) { console.log("testvertexAttrib4f has failed for " + e) @@ -1417,7 +1417,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test vertexAttribPointer. */ it('testVertexAttribPointer2', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttribPointer test start ...66'); console.info('jsWebGL testVertexAttribPointer test start ...' + JSON.stringify(gl)); @@ -1425,7 +1425,7 @@ export default function webgl1Test_webgl10() { const vertexAttribPointerError = gl.getError(); console.info("vertexAttribPointerError: " + vertexAttribPointerError); expect(vertexAttribPointerError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttribPointer has failed for " + e) @@ -1439,7 +1439,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test vertexAttribPointer. */ it('testVertexAttribPointer3', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttribPointer test start ...66'); console.info('jsWebGL testVertexAttribPointer test start ...' + JSON.stringify(gl)); @@ -1447,7 +1447,7 @@ export default function webgl1Test_webgl10() { const vertexAttribPointerError = gl.getError(); console.info("vertexAttribPointerError: " + vertexAttribPointerError); expect(vertexAttribPointerError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttribPointer has failed for " + e) @@ -1461,7 +1461,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test vertexAttribPointer. */ it('testVertexAttribPointer4', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttribPointer test start ...66'); console.info('jsWebGL testVertexAttribPointer test start ...' + JSON.stringify(gl)); @@ -1501,7 +1501,7 @@ export default function webgl1Test_webgl10() { const vertexAttribPointerError = gl.getError(); console.info("vertexAttribPointerError: " + vertexAttribPointerError); expect(vertexAttribPointerError).assertEqual(gl.INVALID_VALUE); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttribPointer has failed for " + e) @@ -1515,7 +1515,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test vertexAttribPointer. */ it('testVertexAttribPointer5', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttribPointer test start ...66'); console.info('jsWebGL testVertexAttribPointer test start ...' + JSON.stringify(gl)); @@ -1555,7 +1555,7 @@ export default function webgl1Test_webgl10() { const vertexAttribPointerError = gl.getError(); console.info("vertexAttribPointerError: " + vertexAttribPointerError); expect(vertexAttribPointerError).assertEqual(gl.INVALID_VALUE); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttribPointer has failed for " + e) @@ -1569,7 +1569,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test vertexAttribPointer. */ it('testVertexAttribPointer6', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttribPointer test start ...66'); console.info('jsWebGL testVertexAttribPointer test start ...' + JSON.stringify(gl)); @@ -1608,7 +1608,7 @@ export default function webgl1Test_webgl10() { const vertexAttribPointerError = gl.getError(); console.info("vertexAttribPointerError: " + vertexAttribPointerError); expect(vertexAttribPointerError).assertEqual(gl.INVALID_VALUE); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttribPointer has failed for " + e) @@ -1622,7 +1622,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texImage3D. */ it('testTexImage3D2', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D test start ...66'); console.info('jsWebGL testTexImage3D test start ...' + JSON.stringify(gl)); @@ -1630,7 +1630,7 @@ export default function webgl1Test_webgl10() { const texImage3DError = gl.getError(); console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D has failed for " + e) @@ -1644,7 +1644,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texImage3D. */ it('testTexImage3D3', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D test start ...66'); console.info('jsWebGL testTexImage3D test start ...' + JSON.stringify(gl)); @@ -1653,7 +1653,7 @@ export default function webgl1Test_webgl10() { const texImage3DError = gl.getError(); console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D has failed for " + e) @@ -1667,7 +1667,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texImage3D. */ it('testTexImage3D4', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D test start ...66'); console.info('jsWebGL testTexImage3D test start ...' + JSON.stringify(gl)); @@ -1675,7 +1675,7 @@ export default function webgl1Test_webgl10() { const texImage3DError = gl.getError(); console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D has failed for " + e) @@ -1689,7 +1689,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texSubImage3D_01. */ it('testTexSubImage3D_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexSubImage3D_01 test start ...66'); console.info('jsWebGL testTexSubImage3D_01 test start ...' + JSON.stringify(gl)); @@ -1698,7 +1698,7 @@ export default function webgl1Test_webgl10() { const texSubImage3DError = gl.getError(); console.info("texSubImage3D_01Error: " + texSubImage3DError); expect(texSubImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexSubImage3D_01 has failed for " + e) @@ -1712,7 +1712,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texSubImage3D_02. */ it('testTexSubImage3D_02', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexSubImage3D_02 test start ...66'); console.info('jsWebGL testTexSubImage3D_02 test start ...' + JSON.stringify(gl)); @@ -1720,7 +1720,7 @@ export default function webgl1Test_webgl10() { const texSubImage3DError = gl.getError(); console.info("texSubImage3D_02Error: " + texSubImage3DError); expect(texSubImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexSubImage3D_02 has failed for " + e) @@ -1734,7 +1734,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test texSubImage3D_03. */ it('testTexSubImage3D_03', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexSubImage3D_03 test start ...66'); console.info('jsWebGL testTexSubImage3D_03 test start ...' + JSON.stringify(gl)); @@ -1743,7 +1743,7 @@ export default function webgl1Test_webgl10() { const texSubImage3DError = gl.getError(); console.info("texSubImage3D_03Error: " + texSubImage3DError); expect(texSubImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexSubImage3D_03 has failed for " + e) @@ -1757,7 +1757,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test compressedTexImage3D_01. */ it('testCompressedTexImage3D_01', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCompressedTexImage3D_01 test start ...66'); console.info('jsWebGL testCompressedTexImage3D_01 test start ...' + JSON.stringify(gl)); @@ -1766,7 +1766,7 @@ export default function webgl1Test_webgl10() { const compressedTexImage3DError = gl.getError(); console.info("compressedTexImage3D_01Error: " + compressedTexImage3DError); expect(compressedTexImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCompressedTexImage3D_01 has failed for " + e) @@ -1780,7 +1780,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test compressedTexImage3D_02. */ it('testCompressedTexImage3D_02', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCompressedTexImage3D_02 test start ...66'); console.info('jsWebGL testCompressedTexImage3D_02 test start ...' + JSON.stringify(gl)); @@ -1789,7 +1789,7 @@ export default function webgl1Test_webgl10() { const compressedTexImage3DError = gl.getError(); console.info("compressedTexImage3D_02Error: " + compressedTexImage3DError); expect(compressedTexImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCompressedTexImage3D_02 has failed for " + e) @@ -1803,7 +1803,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test compressedTexImage3D_03. */ it('testCompressedTexImage3D_03', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCompressedTexImage3D_03 test start ...66'); console.info('jsWebGL testCompressedTexImage3D_03 test start ...' + JSON.stringify(gl)); @@ -1812,7 +1812,7 @@ export default function webgl1Test_webgl10() { const compressedTexImage3DError = gl.getError(); console.info("compressedTexImage3D_03Error: " + compressedTexImage3DError); expect(compressedTexImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCompressedTexImage3D_03 has failed for " + e) @@ -1826,7 +1826,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test compressedTexImage3D_04. */ it('testCompressedTexImage3D_04', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCompressedTexImage3D_04 test start ...66'); console.info('jsWebGL testCompressedTexImage3D_04 test start ...' + JSON.stringify(gl)); @@ -1835,7 +1835,7 @@ export default function webgl1Test_webgl10() { const compressedTexImage3DError = gl.getError(); console.info("compressedTexImage3D_04Error: " + compressedTexImage3DError); expect(compressedTexImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCompressedTexImage3D_04 has failed for " + e) @@ -1849,7 +1849,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test compressedTexImage3D_05. */ it('testCompressedTexImage3D_05', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCompressedTexImage3D_05 test start ...66'); console.info('jsWebGL testCompressedTexImage3D_05 test start ...' + JSON.stringify(gl)); @@ -1858,7 +1858,7 @@ export default function webgl1Test_webgl10() { const compressedTexImage3DError = gl.getError(); console.info("compressedTexImage3D_05Error: " + compressedTexImage3DError); expect(compressedTexImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCompressedTexImage3D_05 has failed for " + e) @@ -1872,7 +1872,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test compressedTexImage3D_06. */ it('testCompressedTexImage3D_06', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testCompressedTexImage3D_06 test start ...66'); console.info('jsWebGL testCompressedTexImage3D_06 test start ...' + JSON.stringify(gl)); @@ -1881,7 +1881,7 @@ export default function webgl1Test_webgl10() { const compressedTexImage3DError = gl.getError(); console.info("compressedTexImage3D_06Error: " + compressedTexImage3DError); expect(compressedTexImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testCompressedTexImage3D_06 has failed for " + e) @@ -1896,7 +1896,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test frontFace. */ it('testFrontFace2', 0, async function (done) { - //initContext(); + console.info('jsWebGL frontFace test start ...' + JSON.stringify(gl)); gl.enable(gl.CULL_FACE); gl.cullFace(gl.FRONT_AND_BACK); @@ -1915,7 +1915,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test generateMipmap. */ it('testGenerateMipmap2', 0, async function (done) { - //initContext(); + console.info('jsWebGL generateMipmap test start ...' + JSON.stringify(gl)); gl.generateMipmap(gl2.TEXTURE_CUBE_MAP); const error = gl.getError(); @@ -1930,7 +1930,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter2', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -1953,7 +1953,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -1976,7 +1976,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test getShaderPrecisionFormat. */ it('testGetShaderPrecisionFormat1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderPrecisionFormat test start ...' + JSON.stringify(gl)); const shaderPrecisionFormat = gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.LOW_FLOAT); console.info('shaderPrecisionFormat' + JSON.stringify(shaderPrecisionFormat)); @@ -1991,7 +1991,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test getShaderPrecisionFormat. */ it('testGetShaderPrecisionFormat2', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderPrecisionFormat test start ...' + JSON.stringify(gl)); const shaderPrecisionFormat = gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl .HIGH_FLOAT); @@ -2007,7 +2007,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test getShaderPrecisionFormat. */ it('testGetShaderPrecisionFormat3', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderPrecisionFormat test start ...' + JSON.stringify(gl)); const shaderPrecisionFormat = gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.LOW_INT); console.info('shaderPrecisionFormat' + JSON.stringify(shaderPrecisionFormat)); @@ -2022,7 +2022,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test getShaderPrecisionFormat. */ it('testGetShaderPrecisionFormat4', 0, async function (done) { - //initContext(); + console.info('jsWebGL getShaderPrecisionFormat test start ...' + JSON.stringify(gl)); const shaderPrecisionFormat = gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl .MEDIUM_INT); @@ -2038,7 +2038,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test getTexParameter. */ it('testGetTexParameter3', 0, async function (done) { - //initContext(); + console.info('jsWebGL getTexParameter test start ...' + JSON.stringify(gl)); gl.texParameterf(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); const texParameterValue = gl.getTexParameter(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_MAG_FILTER); @@ -2053,7 +2053,7 @@ export default function webgl1Test_webgl10() { * @tc.desc Test getActiveUniformBlockParameter. */ it('testGetActiveUniformBlockParameter1', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 getActiveUniformBlockParameter test start ...' + JSON.stringify( gl2)); const program = globalFunction(); diff --git a/graphic/webGL/src/main/js/test/WebGL.test11.js b/graphic/webGL/src/main/js/test/WebGL.test11.js index 6685be3b7..c38977b55 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test11.js +++ b/graphic/webGL/src/main/js/test/WebGL.test11.js @@ -290,7 +290,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test bufferData. */ it('testBufferDataFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); const buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -307,7 +307,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test bufferData. */ it('testBufferData__2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); const buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -324,7 +324,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test bufferData. */ it('testBufferData__3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); const buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -341,7 +341,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test bufferData. */ it('testBufferData__4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); const buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -358,7 +358,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test bufferData. */ it('testBufferData__3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); const buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -375,7 +375,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test bufferData. */ it('testBufferSubData__1', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); gl2.bufferSubData(gl2.ELEMENT_ARRAY_BUFFER, 512, new ArrayBuffer(8)); const errorCode = gl.getError(); @@ -390,7 +390,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test bufferData. */ it('testBufferSubData__2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); gl2.bufferSubData(gl.ARRAY_BUFFER, 512, new ArrayBuffer(8)); const errorCode = gl.getError(); @@ -405,7 +405,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test bufferData. */ it('testBufferSubData__3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 bufferData test start ...' + JSON.stringify(gl2)); gl2.bufferSubData(gl.COPY_WRITE_BUFFER, 512, new ArrayBuffer(8)); const errorCode = gl.getError(); @@ -420,7 +420,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test texImage2D. */ it('testTexImage2D__1', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -438,7 +438,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test texImage2D. */ it('testTexImage2D__2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -456,7 +456,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test texImage2D. */ it('testTexImage2D__3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -474,7 +474,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D__1', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texSubImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -493,7 +493,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texSubImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -512,7 +512,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texSubImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -531,7 +531,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D__1', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 compressedTexImage2D test start ...' + JSON.stringify(gl2)); gl2.compressedTexImage2D(gl2.TEXTURE_CUBE_MAP_POSITIVE_X, 0, 0x83F3, 512, 512, 0, gl .PIXEL_UNPACK_BUFFER, 0); @@ -547,7 +547,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D__2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 compressedTexImage2D test start ...' + JSON.stringify(gl2)); gl2.compressedTexImage2D(gl2.TEXTURE_CUBE_MAP_POSITIVE_Y, 0, 0x83F3, 512, 512, 0, gl .PIXEL_UNPACK_BUFFER, 0); @@ -563,7 +563,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test compressedTexImage2D. */ it('testCompressedTexImage2D__3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 compressedTexImage2D test start ...' + JSON.stringify(gl2)); gl2.compressedTexImage2D(gl2.TEXTURE_CUBE_MAP_POSITIVE_Z, 0, 0x83F3, 512, 512, 0, gl .PIXEL_UNPACK_BUFFER, 0); @@ -579,7 +579,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2D__1', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 compressedTexSubImage2D test start ...' + JSON.stringify(gl2)); gl2.compressedTexSubImage2D(gl2.TEXTURE_CUBE_MAP_POSITIVE_X, 0, 256, 256, 512, 512, 0x83F3, gl.PIXEL_UNPACK_BUFFER, 0); @@ -595,7 +595,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2D__2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 compressedTexSubImage2D test start ...' + JSON.stringify(gl2)); gl2.compressedTexSubImage2D(gl2.TEXTURE_CUBE_MAP_POSITIVE_Y, 0, 256, 256, 512, 512, 0x83F3, gl.PIXEL_UNPACK_BUFFER, 0); @@ -611,7 +611,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test compressedTexSubImage2D. */ it('testCompressedTexSubImage2D__3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 compressedTexSubImage2D test start ...' + JSON.stringify(gl2)); gl2.compressedTexSubImage2D(gl2.TEXTURE_CUBE_MAP_POSITIVE_Z, 0, 256, 256, 512, 512, 0x83F3, gl.PIXEL_UNPACK_BUFFER, 0); @@ -627,7 +627,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test hint. */ it('testHint1', 0, async function (done) { - //initContext(); + console.info('jsWebGL hint test start ...' + JSON.stringify(gl)); gl.hint(gl.GENERATE_MIPMAP_HINT, gl.NICEST); gl.generateMipmap(gl2.TEXTURE_2D); @@ -643,7 +643,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test hint. */ it('testHint2', 0, async function (done) { - //initContext(); + console.info('jsWebGL hint test start ...' + JSON.stringify(gl)); gl.hint(gl.GENERATE_MIPMAP_HINT, gl.DONT_CARE); gl.generateMipmap(gl2.TEXTURE_2D); @@ -659,7 +659,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test isEnabled. */ it('testIsEnabled1', 0, async function (done) { - //initContext(); + console.info('jsWebGL isEnabled test start ...' + JSON.stringify(gl)); gl.enable(gl.CULL_FACE); @@ -683,7 +683,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test isEnabled. */ it('testIsEnabled2', 0, async function (done) { - //initContext(); + console.info('jsWebGL isEnabled test start ...' + JSON.stringify(gl)); gl.enable(gl.BLEND); @@ -707,7 +707,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test isEnabled. */ it('testIsEnabled3', 0, async function (done) { - //initContext(); + console.info('jsWebGL isEnabled test start ...' + JSON.stringify(gl)); gl.enable(gl.POLYGON_OFFSET_FILL); @@ -731,7 +731,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test isEnabled. */ it('testIsEnabled4', 0, async function (done) { - //initContext(); + console.info('jsWebGL isEnabled test start ...' + JSON.stringify(gl)); gl.enable(gl.SAMPLE_COVERAGE); @@ -755,7 +755,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test renderbufferStorage. */ it('testRenderbufferStorage1', 0, async function (done) { - //initContext(); + console.info('jsWebGL renderbufferStorage test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -774,7 +774,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test renderbufferStorage. */ it('testRenderbufferStorage2', 0, async function (done) { - //initContext(); + console.info('jsWebGL renderbufferStorage test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -793,7 +793,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test renderbufferStorage. */ it('testRenderbufferStorage3', 0, async function (done) { - //initContext(); + console.info('jsWebGL renderbufferStorage test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -810,7 +810,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test stencilFunc. */ it('testStencilFunc1', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilFunc test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); gl.stencilFunc(gl.NEVER, 0, 0b1110011); @@ -826,7 +826,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test stencilFunc. */ it('testStencilFunc2', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilFunc test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); gl.stencilFunc(gl.EQUAL, 0, 0b1110011); @@ -842,7 +842,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test stencilFunc. */ it('testStencilFunc3', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilFunc test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); gl.stencilFunc(gl.GREATER, 0, 0b1110011); @@ -858,7 +858,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test stencilFuncSeparate. */ it('testStencilFuncSeparate1', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilFuncSeparate test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); gl.stencilFuncSeparate(gl.BACK, gl.EQUAL, 0.2, 1110011); @@ -875,7 +875,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test stencilFuncSeparate. */ it('testStencilFuncSeparate2', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilFuncSeparate test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); gl.stencilFuncSeparate(gl.FRONT_AND_BACK, gl.LEQUAL, 0.2, 1110011); @@ -892,7 +892,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test stencilMaskSeparate. */ it('testStencilMaskSeparate2', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilMaskSeparate test start ...' + JSON.stringify(gl)); gl.stencilMaskSeparate(gl.FRONT_AND_BACK, 110101); const stencilMaskSeparateParameter = gl.getParameter(gl.STENCIL_WRITEMASK); @@ -912,7 +912,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test bindFramebuffer. */ it('webgl_test_bindFramebuffer_1', 0, async function (done) { - //initContext(); + console.info("webgltest into bindFramebuffer"); var framebuffer = gl.createFramebuffer(); @@ -935,7 +935,7 @@ export default function webgl1Test_webgl11() { } else { expect(isFrameBuffer2).assertEqual(false); } - //deleteContext(); + done(); }); @@ -945,7 +945,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test bindFramebuffer. */ it('webgl_test_bindFramebuffer_2', 0, async function (done) { - //initContext(); + console.info("webgltest into bindFramebuffer"); var framebuffer = gl.createFramebuffer(); @@ -968,7 +968,7 @@ export default function webgl1Test_webgl11() { } else { expect(isFrameBuffer2).assertEqual(false); } - //deleteContext(); + done(); }); @@ -978,7 +978,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getRenderbufferParameter. */ it('testGetRenderbufferParameter_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getRenderbufferParameter test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -995,7 +995,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getRenderbufferParameter. */ it('testGetRenderbufferParameter_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL getRenderbufferParameter test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -1012,7 +1012,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getRenderbufferParameter. */ it('testGetRenderbufferParameter_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL getRenderbufferParameter test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -1029,7 +1029,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getRenderbufferParameter. */ it('testGetRenderbufferParameter_4', 0, async function (done) { - //initContext(); + console.info('jsWebGL getRenderbufferParameter test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -1046,7 +1046,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getRenderbufferParameter. */ it('testGetRenderbufferParameter_5', 0, async function (done) { - //initContext(); + console.info('jsWebGL getRenderbufferParameter test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -1062,7 +1062,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getRenderbufferParameter. */ it('testGetRenderbufferParameter_6', 0, async function (done) { - //initContext(); + console.info('jsWebGL getRenderbufferParameter test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl2.RENDERBUFFER, renderBuffer); @@ -1078,7 +1078,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getRenderbufferParameter. */ it('testGetRenderbufferParameter_7', 0, async function (done) { - //initContext(); + console.info('jsWebGL getRenderbufferParameter test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -1096,14 +1096,14 @@ export default function webgl1Test_webgl11() { * @tc.desc Test copyTexSubImage2D. */ it('webgl_test_copyTexSubImage2D1', 0, async function (done) { - //initContext(); + console.info("webgltest into copyTexSubImage2D"); gl.copyTexSubImage2D(gl.TEXTURE_CUBE_MAP_NEGATIVE_X, 0, 0, 0, 0, 0, 16, 16); let errorCode = gl.getError(); console.info("webgltest copyTexSubImage2D getError: " + errorCode); expect(errorCode).assertLarger(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1113,14 +1113,14 @@ export default function webgl1Test_webgl11() { * @tc.desc Test copyTexSubImage2D. */ it('webgl_test_copyTexSubImage2D2', 0, async function (done) { - //initContext(); + console.info("webgltest into copyTexSubImage2D"); gl.copyTexSubImage2D(gl.TEXTURE_CUBE_MAP_NEGATIVE_Z, 0, 0, 0, 0, 0, 16, 16); let errorCode = gl.getError(); console.info("webgltest copyTexSubImage2D getError: " + errorCode); expect(errorCode).assertLarger(gl.NO_ERROR); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -1131,7 +1131,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test drawElements. */ it('webgl_test_drawElements_3', 0, async function (done) { - //initContext(); + console.info("webgltest into drawElements"); gl.drawElements(gl.LINE_STRIP, 8, gl.UNSIGNED_BYTE, 0); @@ -1139,7 +1139,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest drawElements getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_FRAMEBUFFER_OPERATION); - //deleteContext(); + done(); }); @@ -1149,7 +1149,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test drawElements. */ it('webgl_test_drawElements_4', 0, async function (done) { - //initContext(); + console.info("webgltest into drawElements"); gl.drawElements(gl.POINTS, 8, gl.UNSIGNED_INT, 0); @@ -1157,7 +1157,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest drawElements getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_FRAMEBUFFER_OPERATION); - //deleteContext(); + done(); }); @@ -1167,7 +1167,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test drawElements. */ it('webgl_test_drawElements_5', 0, async function (done) { - //initContext(); + console.info("webgltest into drawElements"); gl.drawElements(gl.LINE_LOOP, 8, gl.UNSIGNED_INT, 0); @@ -1175,7 +1175,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest drawElements getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_FRAMEBUFFER_OPERATION); - //deleteContext(); + done(); }); @@ -1185,7 +1185,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test drawElements. */ it('webgl_test_drawElements_6', 0, async function (done) { - //initContext(); + console.info("webgltest into drawElements"); gl.drawElements(gl.LINES, 8, gl.UNSIGNED_INT, 0); @@ -1193,7 +1193,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest drawElements getError: " + errorCode); expect(errorCode).assertEqual(gl.INVALID_FRAMEBUFFER_OPERATION); - //deleteContext(); + done(); }); @@ -1203,7 +1203,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer1', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1213,7 +1213,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1223,7 +1223,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer2', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1233,7 +1233,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1243,7 +1243,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer3', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1253,7 +1253,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1263,7 +1263,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer4', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1273,7 +1273,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1283,7 +1283,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer5', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1293,7 +1293,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1303,7 +1303,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer6', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1313,7 +1313,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1323,7 +1323,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer7', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1333,7 +1333,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1343,7 +1343,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer8', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1353,7 +1353,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1363,7 +1363,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer9', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1373,7 +1373,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1383,7 +1383,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer10', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1393,7 +1393,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1403,7 +1403,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer11', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1413,7 +1413,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1423,7 +1423,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer12', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1432,7 +1432,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1442,7 +1442,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer13', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1452,7 +1452,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1462,7 +1462,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer14', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1472,7 +1472,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1482,7 +1482,7 @@ export default function webgl1Test_webgl11() { * @tc.desc Test framebufferRenderbuffer. */ it('webgl_test_framebufferRenderbuffer15', 0, async function (done) { - //initContext(); + console.info("webgltest into framebufferRenderbuffer"); const renderbuffer = gl.createRenderbuffer(); @@ -1492,7 +1492,7 @@ export default function webgl1Test_webgl11() { let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); expect(errorCode).assertEqual(gl.NO_ERROR); - //deleteContext(); + done(); }); @@ -1502,11 +1502,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.BLEND_DST_ALPHA); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1520,11 +1520,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.ALIASED_POINT_SIZE_RANGE); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1538,11 +1538,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.BLUE_BITS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1559,11 +1559,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_4', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.ALPHA_BITS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1580,11 +1580,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_5', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.COMPRESSED_TEXTURE_FORMATS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1598,11 +1598,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_6', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.ELEMENT_ARRAY_BUFFER_BINDING); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1616,11 +1616,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_7', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.FRONT_FACE); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1634,11 +1634,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_8', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.GREEN_BITS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1655,11 +1655,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_9', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.IMPLEMENTATION_COLOR_READ_FORMAT); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1674,11 +1674,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_10', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.IMPLEMENTATION_COLOR_READ_TYPE); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1693,11 +1693,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_11', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1711,11 +1711,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_12', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.MAX_CUBE_MAP_TEXTURE_SIZE); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1729,11 +1729,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_13', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.MAX_FRAGMENT_UNIFORM_VECTORS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1747,11 +1747,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_14', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.MAX_RENDERBUFFER_SIZE); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1765,11 +1765,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_15', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.MAX_TEXTURE_IMAGE_UNITS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1783,11 +1783,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_16', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.MAX_TEXTURE_SIZE); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1801,11 +1801,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_17', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.MAX_VARYING_VECTORS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1819,11 +1819,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_18', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.MAX_VERTEX_ATTRIBS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1837,11 +1837,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_19', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.MAX_VERTEX_TEXTURE_IMAGE_UNITS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1855,11 +1855,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_20', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.MAX_VERTEX_UNIFORM_VECTORS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1873,11 +1873,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_21', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.POLYGON_OFFSET_FACTOR); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1891,11 +1891,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_22', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.POLYGON_OFFSET_UNITS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1909,11 +1909,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_23', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.RED_BITS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1930,11 +1930,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_24', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.RENDERER); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1948,11 +1948,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_25', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.SAMPLE_BUFFERS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1969,11 +1969,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_26', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.STENCIL_BACK_FAIL); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1987,11 +1987,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_27', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.STENCIL_BACK_FUNC); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -2005,11 +2005,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_28', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.STENCIL_BACK_PASS_DEPTH_FAIL); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -2023,11 +2023,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_29', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.STENCIL_BACK_PASS_DEPTH_PASS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -2041,11 +2041,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_30', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.STENCIL_BACK_REF); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -2060,11 +2060,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_31', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.STENCIL_BACK_VALUE_MASK); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -2078,11 +2078,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_32', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.STENCIL_BACK_WRITEMASK); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -2097,11 +2097,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_33', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.STENCIL_BITS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -2118,11 +2118,11 @@ export default function webgl1Test_webgl11() { * @tc.desc Test getParameter. */ it('testGetParameter_34', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.STENCIL_PASS_DEPTH_FAIL); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); diff --git a/graphic/webGL/src/main/js/test/WebGL.test12.js b/graphic/webGL/src/main/js/test/WebGL.test12.js index 85b14b49a..c49885329 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test12.js +++ b/graphic/webGL/src/main/js/test/WebGL.test12.js @@ -289,11 +289,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_35', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.STENCIL_PASS_DEPTH_PASS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -307,11 +307,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_36', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.STENCIL_REF); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -325,11 +325,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_37', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.STENCIL_VALUE_MASK); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -343,11 +343,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_38', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.SUBPIXEL_BITS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -361,11 +361,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_39', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.TEXTURE_BINDING_CUBE_MAP); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -379,11 +379,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_40', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.VENDOR); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -397,11 +397,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_41', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.VERSION); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -415,11 +415,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.COPY_READ_BUFFER_BINDING); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -433,11 +433,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.COPY_WRITE_BUFFER_BINDING); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -451,11 +451,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_FRAMEBUFFER_BINDING); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -469,11 +469,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_4', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.FRAGMENT_SHADER_DERIVATIVE_HINT); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -487,11 +487,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_5', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_3D_TEXTURE_SIZE); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -505,11 +505,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_6', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_ARRAY_TEXTURE_LAYERS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -523,11 +523,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_7', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_CLIENT_WAIT_TIMEOUT_WEBGL); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -541,11 +541,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_8', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_COLOR_ATTACHMENTS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -559,11 +559,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_9', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -577,11 +577,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_10', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_COMBINED_UNIFORM_BLOCKS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -595,11 +595,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_11', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -613,11 +613,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_12', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_DRAW_BUFFERS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -631,11 +631,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_13', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_ELEMENT_INDEX); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -649,11 +649,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_14', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_ELEMENTS_INDICES); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -667,11 +667,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_15', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_ELEMENTS_VERTICES); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -685,11 +685,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_16', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_FRAGMENT_INPUT_COMPONENTS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -703,11 +703,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_17', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_FRAGMENT_UNIFORM_BLOCKS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -721,11 +721,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_18', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_FRAGMENT_UNIFORM_COMPONENTS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -739,11 +739,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_19', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_PROGRAM_TEXEL_OFFSET); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -757,11 +757,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_20', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_SAMPLES); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -775,11 +775,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_21', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_SERVER_WAIT_TIMEOUT); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -793,11 +793,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_22', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_TEXTURE_LOD_BIAS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -811,11 +811,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_23', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -829,11 +829,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_24', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -847,11 +847,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_25', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -865,11 +865,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_26', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_UNIFORM_BLOCK_SIZE); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -883,11 +883,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_27', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_UNIFORM_BUFFER_BINDINGS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -901,11 +901,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_28', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_VARYING_COMPONENTS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -919,11 +919,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_29', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_VERTEX_OUTPUT_COMPONENTS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -937,11 +937,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_30', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_VERTEX_UNIFORM_BLOCKS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -955,11 +955,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_31', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MAX_VERTEX_UNIFORM_COMPONENTS); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -973,11 +973,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_32', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.MIN_PROGRAM_TEXEL_OFFSET); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -991,11 +991,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_33', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.PIXEL_PACK_BUFFER_BINDING); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1009,11 +1009,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_34', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.PIXEL_UNPACK_BUFFER_BINDING); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1027,11 +1027,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_35', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.READ_BUFFER); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1045,11 +1045,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_36', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.READ_FRAMEBUFFER_BINDING); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1063,11 +1063,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_37', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.SAMPLER_BINDING); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1081,11 +1081,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_38', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.TEXTURE_BINDING_2D_ARRAY); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1099,11 +1099,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_39', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.TEXTURE_BINDING_3D); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1117,11 +1117,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_40', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.TRANSFORM_FEEDBACK_ACTIVE); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1135,11 +1135,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_41', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.TRANSFORM_FEEDBACK_BINDING); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1153,11 +1153,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_42', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.TRANSFORM_FEEDBACK_PAUSED); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1171,11 +1171,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_43', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.UNIFORM_BUFFER_OFFSET_ALIGNMENT); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1189,11 +1189,11 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_44', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.VERTEX_ARRAY_BINDING); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1207,7 +1207,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getProgramParameter. */ it('testGetProgramParameter_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getProgramParameter test start ...' + JSON.stringify(gl)); const program = globalFunction(); const attachedShaders = gl.getProgramParameter(program, gl.ACTIVE_UNIFORMS); @@ -1222,7 +1222,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getProgramParameter. */ it('testGetProgramParameter_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL getProgramParameter test start ...' + JSON.stringify(gl)); const program = globalFunction(); const attachedShaders = gl.getProgramParameter(program, gl2.TRANSFORM_FEEDBACK_BUFFER_MODE); @@ -1237,7 +1237,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getProgramParameter. */ it('testGetProgramParameter_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL getProgramParameter test start ...' + JSON.stringify(gl)); const program = globalFunction(); const attachedShaders = gl.getProgramParameter(program, gl2.TRANSFORM_FEEDBACK_VARYINGS); @@ -1252,7 +1252,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test getProgramParameter. */ it('testGetProgramParameter_4', 0, async function (done) { - //initContext(); + console.info('jsWebGL getProgramParameter test start ...' + JSON.stringify(gl)); const program = globalFunction(); const attachedShaders = gl.getProgramParameter(program, gl2.ACTIVE_UNIFORM_BLOCKS); @@ -1267,7 +1267,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test texImage2D. */ it('testTexImage2D_1_5', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1293,7 +1293,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test texImage2D. */ it('testTexImage2D_1_15', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1313,7 +1313,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test texImage2D. */ it('testTexImage2D_1_16', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1332,7 +1332,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test texImage2D. */ it('testTexImage2D_1_16', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1359,7 +1359,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test texImage2D. */ it('testTexImage2D_1_18', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1378,7 +1378,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_1_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texSubImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1396,7 +1396,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_1_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texSubImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1414,7 +1414,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_1_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texSubImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1432,7 +1432,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_1_4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texSubImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1450,7 +1450,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test texSubImage2D. */ it('testTexSubImage2D_1_5', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texSubImage2D test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -1468,7 +1468,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture4_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE4); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1484,7 +1484,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture5_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE5); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1500,7 +1500,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture6_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE6); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1516,7 +1516,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture7_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE7); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1532,7 +1532,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture8_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE8); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1548,7 +1548,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture9_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE9); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1564,7 +1564,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture10_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE10); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1580,7 +1580,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture11_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE11); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1596,7 +1596,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture12_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE12); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1612,7 +1612,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture13_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE13); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1628,7 +1628,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture14_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE14); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1644,7 +1644,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture15_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE15); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1660,7 +1660,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture16_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE16); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1676,7 +1676,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture17_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE17); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1692,7 +1692,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture18_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE18); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1708,7 +1708,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture19_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE19); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1724,7 +1724,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture20_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE20); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1740,7 +1740,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture21_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE21); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1756,7 +1756,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture22_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE22); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1772,7 +1772,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture23_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE23); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1788,7 +1788,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture24_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE24); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); @@ -1804,7 +1804,7 @@ export default function webgl1Test_webgl12() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture25_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE25); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); diff --git a/graphic/webGL/src/main/js/test/WebGL.test13.js b/graphic/webGL/src/main/js/test/WebGL.test13.js index 22abbc2f7..2bc5d70bb 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test13.js +++ b/graphic/webGL/src/main/js/test/WebGL.test13.js @@ -290,13 +290,13 @@ export default function webgl1Test_webgl13() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture26_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE26); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); console.info("webgltest activeTexture --> getParameter: " + activeTextureParameter); expect(activeTextureParameter).assertEqual(34010); - //deleteContext(); + done(); }); @@ -306,13 +306,13 @@ export default function webgl1Test_webgl13() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture27_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE27); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); console.info("webgltest activeTexture --> getParameter: " + activeTextureParameter); expect(activeTextureParameter).assertEqual(34011); - //deleteContext(); + done(); }); @@ -322,13 +322,13 @@ export default function webgl1Test_webgl13() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture28_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE28); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); console.info("webgltest activeTexture --> getParameter: " + activeTextureParameter); expect(activeTextureParameter).assertEqual(34012); - //deleteContext(); + done(); }); @@ -338,13 +338,13 @@ export default function webgl1Test_webgl13() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture29_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE29); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); console.info("webgltest activeTexture --> getParameter: " + activeTextureParameter); expect(activeTextureParameter).assertEqual(34013); - //deleteContext(); + done(); }); @@ -354,13 +354,13 @@ export default function webgl1Test_webgl13() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture30_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE30); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); console.info("webgltest activeTexture --> getParameter: " + activeTextureParameter); expect(activeTextureParameter).assertEqual(34014); - //deleteContext(); + done(); }); @@ -370,13 +370,13 @@ export default function webgl1Test_webgl13() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture31_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE31); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); console.info("webgltest activeTexture --> getParameter: " + activeTextureParameter); expect(activeTextureParameter).assertEqual(34015); - //deleteContext(); + done(); }); @@ -386,7 +386,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test blendEquation. */ it('webgl_test_blendEquation_7', 0, async function (done) { - //initContext(); + console.info("webgltest into blendEquation"); gl.blendEquation(gl2.MIN); @@ -398,7 +398,7 @@ export default function webgl1Test_webgl13() { expect(notCrash).assertTrue(); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -408,7 +408,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test blendEquation. */ it('webgl_test_blendEquation_2', 0, async function (done) { - //initContext(); + console.info("webgltest into blendEquation"); gl.blendEquation(gl2.MAX); @@ -420,7 +420,7 @@ export default function webgl1Test_webgl13() { expect(notCrash).assertTrue(); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -430,7 +430,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test disable. */ it('webgl_test_disable_40', 0, async function (done) { - //initContext(); + console.info("webgltest into disable"); gl.disable(gl2.RASTERIZER_DISCARD); @@ -439,7 +439,7 @@ export default function webgl1Test_webgl13() { // false console.info("webgltest disable isEnabled: " + isEnabled); expect(isEnabled).assertEqual(true); - //deleteContext(); + done(); }); @@ -449,7 +449,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test clientWaitSync. */ it('webgl_test_clientWaitSync_2', 0, async function (done) { - //initContext(); + console.info("webgltest into clientWaitSync"); let sync = gl2.fenceSync(0x9117, 0); let status = gl2.clientWaitSync(sync, gl.SYNC_FLUSH_COMMANDS_BIT, 0); @@ -462,7 +462,7 @@ export default function webgl1Test_webgl13() { expect(status).assertEqual(0); - //deleteContext(); + done(); }); @@ -472,7 +472,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getSyncParameter. */ it('webgl_test_getSyncParameter_1', 0, async function (done) { - //initContext(); + console.info("webgltest into getSyncParameter"); console.info("webgltest into isSync"); @@ -486,7 +486,7 @@ export default function webgl1Test_webgl13() { console.info("webgltest fenceSync getSyncParameter: " + syncParameter); expect(syncParameter).assertEqual(gl2.SYNC_FENCE); - //deleteContext(); + done(); }); @@ -496,7 +496,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test readPixels. */ it('testReadPixelsFirst_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 readPixels test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -514,7 +514,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test readPixels. */ it('testReadPixelsFirst_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 readPixels test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -532,7 +532,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test readPixels. */ it('testReadPixelsFirst_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 readPixels test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -550,7 +550,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test readPixels. */ it('testReadPixelsFirst_4', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 readPixels test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -568,7 +568,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test readPixels. */ it('testReadPixelsFirst_5', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 readPixels test start ...' + JSON.stringify(gl2)); var buffer = new ArrayBuffer(8); var view = new DataView(buffer, 0); @@ -586,7 +586,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_10_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -604,7 +604,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -622,7 +622,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_0', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -640,7 +640,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -658,7 +658,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -676,7 +676,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -694,7 +694,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_4', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -712,7 +712,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_5', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -730,7 +730,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_6', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -748,7 +748,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_7', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -766,7 +766,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_8', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -784,7 +784,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_9', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -802,7 +802,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_10', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -820,7 +820,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_11', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -838,7 +838,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_12', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -856,7 +856,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_13', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -874,7 +874,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_14', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -892,7 +892,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_15', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -910,7 +910,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_16', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -928,7 +928,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_17', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -946,7 +946,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_18', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -964,7 +964,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage2D. */ it('testTexImage2D_11_19', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTexImage2D test start ...66'); console.info('jsWebGL testTexImage2D test start ...' + JSON.stringify(gl)); const buffer = new ArrayBuffer(8); @@ -983,7 +983,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample test start ...66'); gl2.renderbufferStorageMultisample(gl.RENDERBUFFER, 4, gl.DEPTH_COMPONENT24, 256, 256); const renderbufferStorageMultisampleError = gl.getError(); @@ -998,7 +998,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample test start ...66'); gl2.renderbufferStorageMultisample(gl.RENDERBUFFER, 4, gl.DEPTH_COMPONENT32F, 256, 256); const renderbufferStorageMultisampleError = gl.getError(); @@ -1013,7 +1013,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample_4', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample test start ...66'); gl2.renderbufferStorageMultisample(gl.RENDERBUFFER, 4, gl.DEPTH24_STENCIL8, 256, 256); const renderbufferStorageMultisampleError = gl.getError(); @@ -1028,7 +1028,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test renderbufferStorageMultisample. */ it('testRenderbufferStorageMultisample_5', 0, async function (done) { - //initContext(); + console.info('jsWebGL testRenderbufferStorageMultisample test start ...66'); gl2.renderbufferStorageMultisample(gl.RENDERBUFFER, 4, gl.DEPTH32F_STENCIL8, 256, 256); const renderbufferStorageMultisampleError = gl.getError(); @@ -1043,7 +1043,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test transformFeedbackVaryings. */ it('testTransformFeedbackVaryings_7', 0, async function (done) { - //initContext(); + console.info('jsWebGL testTransformFeedbackVaryings test start ...66'); console.info('jsWebGL testTransformFeedbackVaryings test start ...' + JSON.stringify(gl)); const program = gl.createProgram(); @@ -1061,7 +1061,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getVertexAttrib. */ it('testGetVertexAttrib_EnumSize', 0, async function (done) { - //initContext(); + console.info('jsWebGL getVertexAttrib test start ...' + JSON.stringify(gl)); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -1078,7 +1078,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getVertexAttrib. */ it('testGetVertexAttrib_EnumStride', 0, async function (done) { - //initContext(); + console.info('jsWebGL getVertexAttrib test start ...' + JSON.stringify(gl)); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -1096,7 +1096,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getVertexAttrib. */ it('testGetVertexAttrib_EnumType', 0, async function (done) { - //initContext(); + console.info('jsWebGL getVertexAttrib test start ...' + JSON.stringify(gl)); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -1113,7 +1113,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getVertexAttrib. */ it('testGetVertexAttrib_EnumNormalized', 0, async function (done) { - //initContext(); + console.info('jsWebGL getVertexAttrib test start ...' + JSON.stringify(gl)); var buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -1131,7 +1131,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test renderbufferStorage. */ it('testRenderbufferStorage_DepthComponent16', 0, async function (done) { - //initContext(); + console.info('jsWebGL renderbufferStorage test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -1148,7 +1148,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test renderbufferStorage */ it('testRenderbufferStorage_StencilIndex8', 0, async function (done) { - //initContext(); + console.info('jsWebGL renderbufferStorage test start ...' + JSON.stringify(gl)); const renderBuffer = gl.createRenderbuffer(); gl.bindRenderbuffer(gl.RENDERBUFFER, renderBuffer); @@ -1166,7 +1166,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test stencilOp */ it('testStencilOp_KeepReplaceIncrWrap', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilOp test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); gl.stencilOp(gl.KEEP, gl.REPLACE, gl.INCR_WRAP); @@ -1183,7 +1183,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test stencilOp */ it('testStencilOp_KeepReplaceDecrWrap', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilOp test start ...' + JSON.stringify(gl)); gl.enable(gl.STENCIL_TEST); gl.stencilOp(gl.KEEP, gl.REPLACE, gl.DECR_WRAP); @@ -1199,7 +1199,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texParameterf. */ it('testTexParameterf_TextureBaseLevel', 0, async function (done) { - //initContext(); + console.info('jsWebGL texParameterf test start ...' + JSON.stringify(gl)); gl.texParameterf(gl.TEXTURE_2D, gl2.TEXTURE_BASE_LEVEL, gl.LINEAR); const texParameterValue = gl.getTexParameter(gl.TEXTURE_2D, gl2.TEXTURE_BASE_LEVEL); @@ -1214,7 +1214,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texParameterf. */ it('testTexParameterf_TextureMaxLevel', 0, async function (done) { - //initContext(); + console.info('jsWebGL texParameterf test start ...' + JSON.stringify(gl)); gl.texParameterf(gl.TEXTURE_2D, gl2.TEXTURE_MAX_LEVEL, gl.LINEAR); const texParameterValue = gl.getTexParameter(gl.TEXTURE_2D, gl2.TEXTURE_MAX_LEVEL); @@ -1229,7 +1229,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test vertexAttribPointer. */ it('testVertexAttribPointer_Short', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testVertexAttribPointer test start ...66'); console.info('jsWebGL testVertexAttribPointer test start ...' + JSON.stringify(gl)); @@ -1238,7 +1238,7 @@ export default function webgl1Test_webgl13() { const vertexAttribPointerError = gl.getError(); console.info("vertexAttribPointerError: " + vertexAttribPointerError); expect(vertexAttribPointerError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testVertexAttribPointer has failed for " + e) @@ -1252,7 +1252,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texStorage3D. */ it('testTexStorage3D_Srgb8', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexStorage3D test start ...66'); console.info('jsWebGL testTexStorage3D test start ...' + JSON.stringify(gl)); @@ -1260,7 +1260,7 @@ export default function webgl1Test_webgl13() { const texStorage3DError = gl.getError(); console.info("texStorage3DError: " + texStorage3DError); expect(texStorage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexStorage3D has failed for " + e) @@ -1274,7 +1274,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texStorage3D. */ it('testTexStorage3D_Rgba32f', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexStorage3D test start ...66'); console.info('jsWebGL testTexStorage3D test start ...' + JSON.stringify(gl)); @@ -1282,7 +1282,7 @@ export default function webgl1Test_webgl13() { const texStorage3DError = gl.getError(); console.info("texStorage3DError: " + texStorage3DError); expect(texStorage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexStorage3D has failed for " + e) @@ -1296,7 +1296,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texStorage3D. */ it('testTexStorage3D_Rgb32f', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexStorage3D test start ...66'); console.info('jsWebGL testTexStorage3D test start ...' + JSON.stringify(gl)); @@ -1304,7 +1304,7 @@ export default function webgl1Test_webgl13() { const texStorage3DError = gl.getError(); console.info("texStorage3DError: " + texStorage3DError); expect(texStorage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexStorage3D has failed for " + e) @@ -1318,7 +1318,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texStorage3D. */ it('testTexStorage3D_Rgba16f', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexStorage3D test start ...66'); console.info('jsWebGL testTexStorage3D test start ...' + JSON.stringify(gl)); @@ -1326,7 +1326,7 @@ export default function webgl1Test_webgl13() { const texStorage3DError = gl.getError(); console.info("texStorage3DError: " + texStorage3DError); expect(texStorage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexStorage3D has failed for " + e) @@ -1340,7 +1340,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texStorage3D. */ it('testTexStorage3D_Rgb16f', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexStorage3D test start ...66'); console.info('jsWebGL testTexStorage3D test start ...' + JSON.stringify(gl)); @@ -1348,7 +1348,7 @@ export default function webgl1Test_webgl13() { const texStorage3DError = gl.getError(); console.info("texStorage3DError: " + texStorage3DError); expect(texStorage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexStorage3D has failed for " + e) @@ -1362,7 +1362,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texStorage3D. */ it('testTexStorage3D_R11FG11FB10F', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexStorage3D test start ...66'); console.info('jsWebGL testTexStorage3D test start ...' + JSON.stringify(gl)); @@ -1370,7 +1370,7 @@ export default function webgl1Test_webgl13() { const texStorage3DError = gl.getError(); console.info("texStorage3DError: " + texStorage3DError); expect(texStorage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexStorage3D has failed for " + e) @@ -1384,7 +1384,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texStorage3D. */ it('testTexStorage3D_RGB9E5', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexStorage3D test start ...66'); console.info('jsWebGL testTexStorage3D test start ...' + JSON.stringify(gl)); @@ -1392,7 +1392,7 @@ export default function webgl1Test_webgl13() { const texStorage3DError = gl.getError(); console.info("texStorage3DError: " + texStorage3DError); expect(texStorage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexStorage3D has failed for " + e) @@ -1406,7 +1406,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texStorage3D. */ it('testTexStorage3D_RGBA8UI', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexStorage3D test start ...66'); console.info('jsWebGL testTexStorage3D test start ...' + JSON.stringify(gl)); @@ -1414,7 +1414,7 @@ export default function webgl1Test_webgl13() { const texStorage3DError = gl.getError(); console.info("texStorage3DError: " + texStorage3DError); expect(texStorage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexStorage3D has failed for " + e) @@ -1428,7 +1428,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texStorage3D. */ it('testTexStorage3D_R32F', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexStorage3D test start ...66'); console.info('jsWebGL testTexStorage3D test start ...' + JSON.stringify(gl)); @@ -1436,7 +1436,7 @@ export default function webgl1Test_webgl13() { const texStorage3DError = gl.getError(); console.info("texStorage3DError: " + texStorage3DError); expect(texStorage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexStorage3D has failed for " + e) @@ -1450,7 +1450,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texStorage3D. */ it('testTexStorage3D_RG16F', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexStorage3D test start ...66'); console.info('jsWebGL testTexStorage3D test start ...' + JSON.stringify(gl)); @@ -1458,7 +1458,7 @@ export default function webgl1Test_webgl13() { const texStorage3DError = gl.getError(); console.info("texStorage3DError: " + texStorage3DError); expect(texStorage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexStorage3D has failed for " + e) @@ -1472,7 +1472,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texStorage3D. */ it('testTexStorage3D_RG32F', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexStorage3D test start ...66'); console.info('jsWebGL testTexStorage3D test start ...' + JSON.stringify(gl)); @@ -1480,7 +1480,7 @@ export default function webgl1Test_webgl13() { const texStorage3DError = gl.getError(); console.info("texStorage3DError: " + texStorage3DError); expect(texStorage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexStorage3D has failed for " + e) @@ -1494,7 +1494,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage3D. */ it('testTexImage3D_SRGB8ALPHA8', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D test start ...66'); console.info('jsWebGL testTexImage3D test start ...' + JSON.stringify(gl)); @@ -1503,7 +1503,7 @@ export default function webgl1Test_webgl13() { const texImage3DError = gl.getError(); console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertEqual(0); - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D has failed for " + e) @@ -1517,7 +1517,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage3D. */ it('testTexImage3D_HALFFLOAT', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D test start ...66'); console.info('jsWebGL testTexImage3D test start ...' + JSON.stringify(gl)); @@ -1526,7 +1526,7 @@ export default function webgl1Test_webgl13() { const texImage3DError = gl.getError(); console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D has failed for " + e) @@ -1540,7 +1540,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage3D. */ it('testTexImage3D_UNSIGNED_INT_2_10_10_10_REV', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D test start ...66'); console.info('jsWebGL testTexImage3D test start ...' + JSON.stringify(gl)); @@ -1556,7 +1556,7 @@ export default function webgl1Test_webgl13() { } else { expect(texImage3DError).assertEqual(gl.INVALID_ENUM); } - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D has failed for " + e) @@ -1570,7 +1570,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage3D. */ it('testTexImage3D_UNSIGNED_INT_10F_11F_11F_REV', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D test start ...66'); console.info('jsWebGL testTexImage3D test start ...' + JSON.stringify(gl)); @@ -1579,7 +1579,7 @@ export default function webgl1Test_webgl13() { const texImage3DError = gl.getError(); console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D has failed for " + e) @@ -1593,7 +1593,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage3D. */ it('testTexImage3D_UNSIGNED_INT_5_9_9_9_REV', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D test start ...66'); console.info('jsWebGL testTexImage3D test start ...' + JSON.stringify(gl)); @@ -1603,7 +1603,7 @@ export default function webgl1Test_webgl13() { console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertLarger(gl.NO_ERROR); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D has failed for " + e) @@ -1617,7 +1617,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test texImage3D. */ it('testTexImage3D_UNSIGNED_INT_24_8', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D test start ...66'); console.info('jsWebGL testTexImage3D test start ...' + JSON.stringify(gl)); @@ -1626,7 +1626,7 @@ export default function webgl1Test_webgl13() { const texImage3DError = gl.getError(); console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertEqual(gl.INVALID_OPERATION); - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D has failed for " + e) @@ -1640,11 +1640,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_45', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER0); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1658,11 +1658,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_46', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER1); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1676,11 +1676,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_47', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER2); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1694,11 +1694,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_48', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER3); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1712,11 +1712,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_49', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER4); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1730,11 +1730,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_50', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER5); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1748,11 +1748,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_51', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER6); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1766,11 +1766,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_52', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER8); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1784,11 +1784,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_53', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER9); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1802,11 +1802,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_54', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER10); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1820,11 +1820,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_55', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER11); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1838,11 +1838,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_56', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER12); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1856,11 +1856,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_57', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER13); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1874,11 +1874,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_58', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER14); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1892,11 +1892,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_59', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER15); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1910,11 +1910,11 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl2_60', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl2.DRAW_BUFFER7); - // returns "33984" (0x84C0, gl.TEXTURE0 enum value) + console.info("activeTexture --> getParameter: " + textureParameter); let errorCode = gl.getError(); console.info("webgltest framebufferRenderbuffer getError: " + errorCode); @@ -1928,7 +1928,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -1951,7 +1951,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -1974,7 +1974,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -1997,7 +1997,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3_4', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -2020,7 +2020,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3_5', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -2043,7 +2043,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3_6', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -2066,7 +2066,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3_8', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -2089,7 +2089,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3_9', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -2112,7 +2112,7 @@ export default function webgl1Test_webgl13() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3_10', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); diff --git a/graphic/webGL/src/main/js/test/WebGL.test14.js b/graphic/webGL/src/main/js/test/WebGL.test14.js index 3bbf12f59..b53a397b4 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test14.js +++ b/graphic/webGL/src/main/js/test/WebGL.test14.js @@ -290,7 +290,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3_11', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -313,7 +313,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3_12', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -336,7 +336,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3_13', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -359,7 +359,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3_14', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -382,7 +382,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test checkFramebufferStatus. */ it('webgl_test_checkFramebufferStatus2_1', 0, async function (done) { - //initContext(); + console.info("webgltest into checkFramebufferStatus"); var framebuffer = gl.createFramebuffer(); @@ -396,7 +396,7 @@ export default function webgl1Test_webgl14() { const notCrash = true; expect(notCrash).assertTrue(); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -406,7 +406,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test checkFramebufferStatus. */ it('webgl_test_checkFramebufferStatus2_2', 0, async function (done) { - //initContext(); + console.info("webgltest into checkFramebufferStatus"); var framebuffer = gl.createFramebuffer(); @@ -420,7 +420,7 @@ export default function webgl1Test_webgl14() { const notCrash = true; expect(notCrash).assertTrue(); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -430,7 +430,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test checkFramebufferStatus. */ it('webgl_test_checkFramebufferStatus2_3', 0, async function (done) { - //initContext(); + console.info("webgltest into checkFramebufferStatus"); var framebuffer = gl.createFramebuffer(); @@ -444,7 +444,7 @@ export default function webgl1Test_webgl14() { const notCrash = true; expect(notCrash).assertTrue(); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -454,7 +454,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test checkFramebufferStatus. */ it('webgl_test_checkFramebufferStatus2_4', 0, async function (done) { - //initContext(); + console.info("webgltest into checkFramebufferStatus"); var framebuffer = gl.createFramebuffer(); @@ -467,7 +467,7 @@ export default function webgl1Test_webgl14() { const notCrash = true; expect(notCrash).assertTrue(); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -477,7 +477,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getVertexAttrib. */ it('testGetVertexAttribFirst_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getVertexAttrib test start ...' + JSON.stringify(gl)); const vertexBuffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer); @@ -501,7 +501,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.BLEND_EQUATION); @@ -522,7 +522,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getParameter. */ it('testGetParameter_webgl_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.DEPTH_BITS); @@ -543,7 +543,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getVertexAttrib. */ it('testGetVertexAttribFirst_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL getVertexAttrib test start ...' + JSON.stringify(gl)); const vertexBuffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer); @@ -567,7 +567,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getVertexAttrib. */ it('testGetVertexAttribFirst_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL getVertexAttrib test start ...' + JSON.stringify(gl)); const vertexBuffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer); @@ -594,7 +594,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getTexParameter. */ it('testGetTexParameterFirst_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getTexParameter test start ...' + JSON.stringify(gl)); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST_MIPMAP_NEAREST); const texParameterValue = gl.getTexParameter(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER); @@ -609,7 +609,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getTexParameter. */ it('testGetTexParameterFirst_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL getTexParameter test start ...' + JSON.stringify(gl)); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST_MIPMAP_LINEAR); const texParameterValue = gl.getTexParameter(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER); @@ -624,7 +624,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getTexParameter. */ it('testGetTexParameterFirst_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL getTexParameter test start ...' + JSON.stringify(gl)); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR_MIPMAP_LINEAR); const texParameterValue = gl.getTexParameter(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER); @@ -639,13 +639,13 @@ export default function webgl1Test_webgl14() { * @tc.desc Test activeTexture. */ it('webgl_test_activeTexture_webgl_1', 0, async function (done) { - //initContext(); + console.info("webgltest into activeTexture"); gl.activeTexture(gl.TEXTURE); const activeTextureParameter = gl.getParameter(gl.ACTIVE_TEXTURE); console.info("webgltest activeTexture --> getParameter: " + activeTextureParameter); expect(activeTextureParameter).assertEqual(33984); - //deleteContext(); + done(); }); @@ -656,7 +656,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getUniform. */ it('testGetUniform_11', 0, async function (done) { - //initContext(); + console.info('jsWebGL getUniform test start ...' + JSON.stringify(gl)); const programObj = globalFunction(); @@ -684,7 +684,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getTexParameter. */ it('testGetTexParameterError_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getTexParameter test start ...' + JSON.stringify(gl)); const texParameterValue = gl.getTexParameter(gl.TEXTURE_2D, gl2.TEXTURE_IMMUTABLE_FORMAT); console.info('texParameterfValue' + texParameterValue); @@ -699,7 +699,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getTexParameter. */ it('testGetTexParameterError_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL getTexParameter test start ...' + JSON.stringify(gl)); const texParameterValue = gl.getTexParameter(gl.TEXTURE_2D, gl2.TEXTURE_IMMUTABLE_LEVELS); console.info('texParameterfValue' + texParameterValue); @@ -714,7 +714,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getUniform. */ it('testGetUniform_11_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getUniform test start ...' + JSON.stringify(gl)); const programObj = globalFunction(); @@ -745,7 +745,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test testTexImage3D. */ it('testTexImage3D_INT_2_10_10_10_REV', 0, async function (done) { - //initContext(); + try { console.info('jsWebGL testTexImage3D test start ...66'); console.info('jsWebGL testTexImage3D test start ...' + JSON.stringify(gl)); @@ -754,7 +754,7 @@ export default function webgl1Test_webgl14() { const texImage3DError = gl.getError(); console.info("texImage3DError: " + texImage3DError); expect(texImage3DError).assertEqual(gl.INVALID_ENUM); - //deleteContext(); + done(); } catch (e) { console.log("testTexImage3D has failed for " + e) @@ -768,7 +768,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test texImage2D. */ it('testTexImage2D2_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL2 texImage2D test start ...' + JSON.stringify(gl2)); gl2.texImage2D(gl2.TEXTURE_2D, 0, gl2.SRGB, 512, 512, 0, gl.RGB, gl.UNSIGNED_BYTE, 0); const errorCode = gl.getError(); @@ -783,7 +783,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getTexParameter. */ it('testGetTexParameter3_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getTexParameter test start ...' + JSON.stringify(gl)); gl.texParameterf(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.REPEAT); const texParameterValue = gl.getTexParameter(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_WRAP_S); @@ -798,7 +798,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getTexParameter. */ it('testGetTexParameter3_2', 0, async function (done) { - //initContext(); + console.info('jsWebGL getTexParameter test start ...' + JSON.stringify(gl)); gl.texParameterf(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); const texParameterValue = gl.getTexParameter(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_WRAP_S); @@ -813,7 +813,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getTexParameter. */ it('testGetTexParameter3_3', 0, async function (done) { - //initContext(); + console.info('jsWebGL getTexParameter test start ...' + JSON.stringify(gl)); gl.texParameterf(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.MIRRORED_REPEAT); const texParameterValue = gl.getTexParameter(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_WRAP_S); @@ -828,7 +828,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test clearBufferfv. */ it('webgl_test_clearBufferfv_22', 0, async function (done) { - //initContext(); + console.info("webgltest into clearBufferfv"); gl2.clearBufferfv(gl2.INVALID_INDEX, 0, [0.0, 0.0, 0.0, 0.0]); @@ -837,7 +837,7 @@ export default function webgl1Test_webgl14() { console.info("webgltest webgl_test_clearBufferfv getError: " + errorCode); expect(errorCode).assertLarger(gl.NO_ERROR); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -847,7 +847,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getFramebufferAttachmentParameter. */ it('testGetFramebufferAttachmentParameter3_10_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getFramebufferAttachmentParameter test start ...' + JSON.stringify( gl)); const renderBuffer = gl.createRenderbuffer(); @@ -871,7 +871,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getParameter. */ it('testGetParameter_20_1', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); gl.activeTexture(gl.TEXTURE0); var textureParameter = gl.getParameter(gl.BROWSER_DEFAULT_WEBGL); @@ -889,7 +889,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test clearBufferfv. */ it('webgl_test_clearBufferfv_22', 0, async function (done) { - //initContext(); + console.info("webgltest into clearBufferfv"); gl2.clearBufferfv(gl2.INVALID_INDEX, 0, [0.0, 0.0, 0.0, 0.0]); @@ -898,7 +898,7 @@ export default function webgl1Test_webgl14() { console.info("webgltest webgl_test_clearBufferfv getError: " + errorCode); expect(errorCode).assertLarger(gl.NO_ERROR); for(let err; (err = gl.getError()) != gl.NO_ERROR;) {} - //deleteContext(); + done(); }); @@ -908,7 +908,7 @@ export default function webgl1Test_webgl14() { * @tc.desc Test getTexParameter. */ it('testGetTexParameter3_4', 0, async function (done) { - //initContext(); + console.info('jsWebGL getTexParameter test start ...' + JSON.stringify(gl)); gl.texParameterf(gl.TEXTURE_2D, gl2.TEXTURE_COMPARE_MODE, gl.COMPARE_REF_TO_TEXTURE); const texParameterValue = gl.getTexParameter(gl.TEXTURE_CUBE_MAP, gl2.TEXTURE_COMPARE_MODE); diff --git a/graphic/webGL/src/main/js/test/WebGL.test15.js b/graphic/webGL/src/main/js/test/WebGL.test15.js index bb059b267..332c79085 100644 --- a/graphic/webGL/src/main/js/test/WebGL.test15.js +++ b/graphic/webGL/src/main/js/test/WebGL.test15.js @@ -289,7 +289,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test getParameter. */ it('testGetParameter3', 0, async function (done) { - //initContext(); + console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl)); const buffer = gl.getParameter(gl.ARRAY_BUFFER_BINDING); console.info("buffer: " + buffer); @@ -307,7 +307,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test getVertexAttrib. */ it('testGetVertexAttribFirst', 0, async function (done) { - //initContext(); + console.info('jsWebGL getVertexAttrib test start ...' + JSON.stringify(gl)); const vertexBuffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer); @@ -331,7 +331,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test isRenderbuffer. */ it('testIsRenderbuffer_04', 0, async function (done) { - //initContext(); + console.info('jsWebGL testIsRenderbuffer_04 test start ...66'); var texture = gl.createTexture(); const isrenderbuffer = gl.isRenderbuffer(texture); @@ -349,7 +349,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test getBufferParameter. */ it('testGetBufferParameter3', 0, async function (done) { - //initContext(); + console.info('jsWebGL getBufferParameter test start ...' + JSON.stringify(gl)); const buffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, buffer); @@ -366,7 +366,7 @@ export default function webgl1Test_webgl5() { * @tc.desc Test stencilMaskSeparate. */ it('testStencilMaskSeparate1', 0, async function (done) { - //initContext(); + console.info('jsWebGL stencilMaskSeparate test start ...' + JSON.stringify(gl)); gl.stencilMaskSeparate(gl.BACK, 110101); const stencilMaskSeparateParameter = gl.getParameter(gl.STENCIL_WRITEMASK); @@ -524,7 +524,6 @@ export default function webgl1Test_webgl5() { let errorCode = gl.getError(); console.info("webgltest endTransformFeedback getError: " + errorCode); expect(errorCode).assertLarger(gl.NO_ERROR); - //deleteContext(); done(); }); }) diff --git a/multimedia/media/media_js_standard/AVPlayerTestBase.js b/multimedia/media/media_js_standard/AVPlayerTestBase.js index 31aaeef74..6caf3451c 100644 --- a/multimedia/media/media_js_standard/AVPlayerTestBase.js +++ b/multimedia/media/media_js_standard/AVPlayerTestBase.js @@ -2135,7 +2135,6 @@ function setAVPlayerPlay(src, avPlayer, done) { break; case AV_PLAYER_STATE.ERROR: console.info(`case error called, AV_PLAYER_STATE.ERROR, ignore`); - // expect().assertFail(); avPlayer.release().then(() => { }, mediaTestBase.failureCallback).catch(mediaTestBase.catchCallback); break; @@ -2224,7 +2223,6 @@ export function setAVPlayerSeekCb(src, avPlayer, playTest, playTime, done) { // step 4: seek + pause expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING); avPlayer.seek(avPlayer.duration / 2, media.SeekMode.SEEK_PREV_SYNC); - // avPlayer.pause(); avPlayer.pause((err) => { if (err != null) { mediaTestBase.assertErr('pause', err, done); diff --git a/multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerStabilityTest.test.js b/multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerStabilityTest.test.js index 1094d9262..03d610dcd 100644 --- a/multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerStabilityTest.test.js +++ b/multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerStabilityTest.test.js @@ -803,20 +803,6 @@ export default function AVPlayerStabilityTest() { console.info(TAG + 'SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0200 end') }) -// /* * -// * @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0300 -// * @tc.name : 001.test complete->play->seek duration (1000 times) -// * @tc.desc : Local Video complete->play->seek duration (1000 times) -// * @tc.size : MediumTest -// * @tc.type : Function test -// * @tc.level : Level3 -// */ -// it('SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0300', 0, async function (done) { -// console.info(TAG + 'SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0300 start') -// AVPlayerTestBase.playToCompleted(videos[0], avPlayer, done); -// console.info(TAG + 'SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0300 end') -// }) - /* * * @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0400 * @tc.name : 001.test play->seek (1000 times wait callBack) @@ -887,20 +873,6 @@ export default function AVPlayerStabilityTest() { console.info(TAG + 'SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0800 end') }) -// /* * -// * @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0100 -// * @tc.name : 001.test create time (wait callback) -// * @tc.desc : Local Video test create time (wait callback) -// * @tc.size : MediumTest -// * @tc.type : Function test -// * @tc.level : Level3 -// */ -// it('SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0100', 0, async function (done) { -// console.info(TAG + 'SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0100 start') -// AVPlayerTestBase.createTimeWithCallback(videos[0], avPlayer, done); -// console.info(TAG + 'SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0100 end') -// }) - /* * * @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0110 * @tc.name : 001.test create time (not wait callback) diff --git a/multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/MainAbility/MainAbility.ts b/multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/MainAbility/MainAbility.ts index 14bc9e002..742808240 100644 --- a/multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/MainAbility/MainAbility.ts +++ b/multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/MainAbility/MainAbility.ts @@ -33,33 +33,6 @@ export default class MainAbility extends Ability { // let array: Array = ["ohos.permission.MEDIA_LOCATION", "ohos.permission.READ_MEDIA", "ohos.permission.WRITE_MEDIA"]; // //requestPermissionsFromUser会判断权限的授权状态来决定是否唤起弹窗 - // context.requestPermissionsFromUser(array).then(async function (data) { - // console.log("data type:" + JSON.stringify(data)); - // console.log("data:" + data); - // console.log("data permissions:" + data.permissions); - // console.log("data result:" + data.authResults); - // }, (err) => { - // console.error('Failed to start ability', err.code); - // }); - // console.info("getPermission 1"); - // await new Promise((res) => setTimeout(res, 200)); - - - // let driver = Driver.create(); - // console.info("getPermission 2"); - // console.info(`driver is ${JSON.stringify(driver)}`); - // await new Promise((res) => setTimeout(res, 200)); - - // let button = await driver.findComponent(ON.text("允许")); - - // while (button) { - // console.info(`button is ${JSON.stringify(button)}`); - // await new Promise((res) => setTimeout(res, 200)); - // await button.click(); - // button = await driver.findComponent(ON.text("允许")); - // } - // console.info("getPermission 3"); - console.log("[Demo] MainAbility onWindowStageCreate windowStage=" + windowStage) globalThis.windowStage = windowStage globalThis.abilityContext = this.context diff --git a/validator/acts_validator/src/main/ets/pages/model/AudioRenderer.ts b/validator/acts_validator/src/main/ets/pages/model/AudioRenderer.ts index c0a920388..6ff61dc9f 100644 --- a/validator/acts_validator/src/main/ets/pages/model/AudioRenderer.ts +++ b/validator/acts_validator/src/main/ets/pages/model/AudioRenderer.ts @@ -17,7 +17,6 @@ class AudioRenderer { let audioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_2, -// channels: audio.AudioChannel.CHANNEL_1, sampleFormat: audio.AudioSampleFormat.SAMPLE_FORMAT_S16LE, encodingType: audio.AudioEncodingType.ENCODING_TYPE_RAW } @@ -36,14 +35,6 @@ class AudioRenderer { async startRenderer(){ try{ await this.audioRenderer.start() -// await globalThis.abilityContext.resourceManager.getRawFileDescriptor('test_44100_2.wav').then(value => { -// this.fd = value.fd -// Logger.info(this.tag, `fd : ${this.fd}`) -// let fileDescriptor = {fd: value.fd, offset: value.offset, length: value.length}; -// Logger.info(this.tag, `getRawFileDescriptor success fileDescriptor:` + JSON.stringify(fileDescriptor) ) -// }).catch(error => { -// console.log('case getRawFileDescriptor err: ' + error); -// }); globalThis.abilityContext.resourceManager.getRawFd("test_44100_2.wav").then(value => { this.fd = value.fd this.offset = value.offset @@ -55,8 +46,6 @@ class AudioRenderer { let bufferSize = await this.audioRenderer.getBufferSize() Logger.info(this.tag, `audioRenderer bufferSize:` + JSON.stringify(bufferSize)) -// let stat = await fs.stat(this.fd); -// let len = stat.size % bufferSize == 0 ? Math.floor(stat.size / bufferSize) : Math.floor(stat.size / bufferSize + 1); let len = this.length % bufferSize == 0 ? Math.floor(this.length / bufferSize) : Math.floor(this.length / bufferSize + 1); let buf = new ArrayBuffer(bufferSize); while (true) { @@ -90,11 +79,6 @@ class AudioRenderer { try{ if (this.audioRenderer){ await this.audioRenderer.release() -// await globalThis.abilityContext.resourceManager.closeRawFileDescriptor('test_44100_2.wav').then(()=> { -// Logger.info(this.tag, `closeRawFileDescriptor success`) -// }).catch(err => { -// Logger.info(this.tag, `closeRawFileDescriptor fail err: ${err}, message: ${err.message}, code: ${err.code}`) -// }); await globalThis.abilityContext.resourceManager.closeRawFd('test_44100_2.wav').then(()=> { Logger.info(this.tag, `closeRawFileDescriptor success`) }).catch(err => { diff --git a/validator/acts_validator/src/main/ets/pages/model/CameraService.ts b/validator/acts_validator/src/main/ets/pages/model/CameraService.ts index 3168b2a9d..2bd83293b 100644 --- a/validator/acts_validator/src/main/ets/pages/model/CameraService.ts +++ b/validator/acts_validator/src/main/ets/pages/model/CameraService.ts @@ -150,7 +150,6 @@ class CameraService { Logger.info(this.tag, `previewObj format: ${previewObj.format}`) } await this.createPreviewOutputFn(previewObj ? previewObj : this.cameraOutputCapability.previewProfiles[0], surfaceId) - // await this.createPhotoOutputFn(this.photoProfileObj) await this.createPhotoOutputFn(obj ? obj : this.cameraOutputCapability.photoProfiles[photoIndex?photoIndex:0]) await this.createCameraInputFn(this.cameras[cameraDeviceIndex]) await this.cameraInputOpenFn() @@ -395,15 +394,6 @@ class CameraService { await this.captureSession.addOutput(this.videoOutput) await this.captureSession.commitConfig() await this.captureSession.start() - // await this.videoOutput.on('frameStart', async () => { - // Logger.info(this.tag, `frameStart start`) - // try { - // await this.videoRecorder.start() - // Logger.info(this.tag, `frameStart end`) - // } catch (err) { - // Logger.info(this.tag, `videoRecorder start fail err: ${err}`) - // } - // }) await this.videoOutput.start() await this.videoRecorder.start().then(() => { setTimeout(async () => { -- GitLab