From 939fd77fee76adfa75878487146d29fb7f2abc87 Mon Sep 17 00:00:00 2001 From: guoyoujing Date: Thu, 3 Mar 2022 14:15:50 +0800 Subject: [PATCH] add test cases Signed-off-by: guoyoujing --- .../js/default/pages/textarea/prop/index.js | 29 +------------------ .../src/main/js/default/test/List.test.js | 1 - .../src/main/js/default/test/divProps.test.js | 6 ++-- .../main/js/default/test/marqueeProps.test.js | 6 ++-- .../main/js/default/test/popupProps.test.js | 6 ++-- .../main/js/default/test/searchProps.test.js | 6 ++-- .../js/default/test/stepperItemProps.test.js | 6 ++-- .../main/js/default/test/stepperProps.test.js | 6 ++-- .../js/default/test/textareaProps.test.js | 12 ++++---- 9 files changed, 25 insertions(+), 53 deletions(-) diff --git a/ace/ace_standard/src/main/js/default/pages/textarea/prop/index.js b/ace/ace_standard/src/main/js/default/pages/textarea/prop/index.js index 0982c40eb..d8d9c4c91 100644 --- a/ace/ace_standard/src/main/js/default/pages/textarea/prop/index.js +++ b/ace/ace_standard/src/main/js/default/pages/textarea/prop/index.js @@ -77,6 +77,7 @@ export default { softkeyboardenabledFalse : null, softkeyboardenabledTrue : null, }, + onShow(){ this.getCommonPropValues(); this.getSpecificPropValues(); @@ -182,31 +183,3 @@ export default { this.softkeyboardenabledTrue = this.$element("softkeyboardenabledTrue").getInspector() } } -/* - * placeholderNone : null, - placeholder : null, - maxlength20 : null, - headericon : null, - headericonNone : null, - extendNone : null, - extendFalse : null, - extendTrue : null, - valueNone : null, - value : null, - showcounterNone : null, - showcounterFalse : null, - showcounterTrue : null, - menuoptionsNone : null, - menuoptions : null, - autofocusNone : null, - autofocusFalse : null, - autofocusTrue : null, - selectedstartNone : null, - selectedstart5: null, - selectedendNone : null, - selectedend5 : null, - softkeyboardenabledNone : null, - softkeyboardenabledFalse : null, - softkeyboardenabledTrue : null, - - */ \ No newline at end of file diff --git a/ace/ace_standard/src/main/js/default/test/List.test.js b/ace/ace_standard/src/main/js/default/test/List.test.js index e027c8b5c..7b085e618 100755 --- a/ace/ace_standard/src/main/js/default/test/List.test.js +++ b/ace/ace_standard/src/main/js/default/test/List.test.js @@ -53,6 +53,5 @@ require('./selectProps.test.js') require('./sliderProps.test.js') require('./ratingProps.test.js') require('./inputProps.test.js') -require('./marqueeProps.test.js') require('./imageAnimatorProps.test.js') require('./textareaProps.test.js') diff --git a/ace/ace_standard/src/main/js/default/test/divProps.test.js b/ace/ace_standard/src/main/js/default/test/divProps.test.js index 2c9a720e0..4feb100df 100644 --- a/ace/ace_standard/src/main/js/default/test/divProps.test.js +++ b/ace/ace_standard/src/main/js/default/test/divProps.test.js @@ -1,10 +1,10 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/ace/ace_standard/src/main/js/default/test/marqueeProps.test.js b/ace/ace_standard/src/main/js/default/test/marqueeProps.test.js index f1eef2488..1a0c2de0f 100644 --- a/ace/ace_standard/src/main/js/default/test/marqueeProps.test.js +++ b/ace/ace_standard/src/main/js/default/test/marqueeProps.test.js @@ -1,10 +1,10 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/ace/ace_standard/src/main/js/default/test/popupProps.test.js b/ace/ace_standard/src/main/js/default/test/popupProps.test.js index 500eb4eae..ff1a37f99 100644 --- a/ace/ace_standard/src/main/js/default/test/popupProps.test.js +++ b/ace/ace_standard/src/main/js/default/test/popupProps.test.js @@ -1,10 +1,10 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/ace/ace_standard/src/main/js/default/test/searchProps.test.js b/ace/ace_standard/src/main/js/default/test/searchProps.test.js index f7c3c28ac..e3ab002f7 100644 --- a/ace/ace_standard/src/main/js/default/test/searchProps.test.js +++ b/ace/ace_standard/src/main/js/default/test/searchProps.test.js @@ -1,10 +1,10 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/ace/ace_standard/src/main/js/default/test/stepperItemProps.test.js b/ace/ace_standard/src/main/js/default/test/stepperItemProps.test.js index 08666c43c..9c820fde1 100644 --- a/ace/ace_standard/src/main/js/default/test/stepperItemProps.test.js +++ b/ace/ace_standard/src/main/js/default/test/stepperItemProps.test.js @@ -1,10 +1,10 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/ace/ace_standard/src/main/js/default/test/stepperProps.test.js b/ace/ace_standard/src/main/js/default/test/stepperProps.test.js index b1461d155..11415f33e 100644 --- a/ace/ace_standard/src/main/js/default/test/stepperProps.test.js +++ b/ace/ace_standard/src/main/js/default/test/stepperProps.test.js @@ -1,10 +1,10 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, diff --git a/ace/ace_standard/src/main/js/default/test/textareaProps.test.js b/ace/ace_standard/src/main/js/default/test/textareaProps.test.js index 5d340415a..4026638e2 100644 --- a/ace/ace_standard/src/main/js/default/test/textareaProps.test.js +++ b/ace/ace_standard/src/main/js/default/test/textareaProps.test.js @@ -1,10 +1,10 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -957,7 +957,7 @@ it('testtextAreaHeadericonPropNull', 0, async function (done) { expect(obj.$type).assertEqual('textarea') expect(obj.$attrs.id).assertEqual('softkeyboardenabledNone') expect(obj.$attrs.softkeyboardenabled).assertEqual("true") - console.info("[textAreaProps] get softkeyboardenabled value is: " + JSON.stringify(obj.$attrs.softkeyboardenabled)); + console.info("[textAreaProps] get softkey value is: " + JSON.stringify(obj.$attrs.softkey)); done(); }); @@ -977,7 +977,7 @@ it('testtextAreaHeadericonPropNull', 0, async function (done) { expect(obj.$type).assertEqual('textarea') expect(obj.$attrs.id).assertEqual('softkeyboardenabledFalse') expect(obj.$attrs.softkeyboardenabled).assertEqual("false") - console.info("[textAreaProps] get softkeyboardenabled value is: " + JSON.stringify(obj.$attrs.softkeyboardenabled)); + console.info("[textAreaProps] get softkey value is: " + JSON.stringify(obj.$attrs.softkey)); done(); }); @@ -997,7 +997,7 @@ it('testtextAreaHeadericonPropNull', 0, async function (done) { expect(obj.$type).assertEqual('textarea') expect(obj.$attrs.id).assertEqual('softkeyboardenabledTrue') expect(obj.$attrs.softkeyboardenabled).assertEqual("true") - console.info("[textAreaProps] get softkeyboardenabled value is: " + JSON.stringify(obj.$attrs.softkeyboardenabled)); + console.info("[textAreaProps] get softkey value is: " + JSON.stringify(obj.$attrs.softkey)); done(); }); -- GitLab