1/** 2 * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import router from '@system.router'; 17import { describe, beforeAll, afterAll, it, expect, Level } from '@ohos/hypium'; 18 19 20export default function undo() { 21 describe('textAreaPropsJsTest', function() { 22 23 async function sleep(time) { 24 return new Promise((resolve, reject) => { 25 setTimeout(() => { 26 resolve() 27 }, time) 28 }).then(() => { 29 console.info(`sleep ${time} over...`) 30 }) 31 } 32 33 async function backToIndex() { 34 let backToIndexPromise = new Promise((resolve, reject) => { 35 setTimeout(() => { 36 router.back({ 37 uri: 'pages/index/index' 38 }); 39 resolve(); 40 }, 500); 41 }); 42 let clearPromise = new Promise((resolve, reject) => { 43 setTimeout(() => { 44 router.clear(); 45 resolve(); 46 }, 500); 47 }); 48 await backToIndexPromise.then(() => { 49 return clearPromise; 50 }); 51 } 52 53 /** 54 * run before testcase 55 */ 56 beforeAll(async function(done) { 57 console.info('[textAreaPropsJsTest] before each called') 58 59 let result; 60 let options = { 61 uri: 'pages/textArea/prop/index' 62 } 63 try { 64 result = router.push(options) 65 console.info("push textAreaProps page success " + JSON.stringify(result)); 66 } catch (err) { 67 console.error("push textAreaProps page error " + JSON.stringify(result)); 68 } 69 await sleep(4000) 70 done() 71 }); 72 73 /** 74 * run after testcase 75 */ 76 afterAll(async function() { 77 console.info('[textAreaPropsJsTest] after each called') 78 await backToIndex() 79 await sleep(1000) 80 }); 81 82 /** 83 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 84 * @tc.name testtextAreaIdProp 85 * @tc.desc ACE 86 */ 87 it('testtextAreaIdProp', Level.LEVEL0, async function(done) { 88 console.info('testtextAreaIdProp START'); 89 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 90 91 let obj = JSON.parse(globalThis.value.idProp); 92 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 93 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 94 95 expect(obj.$type).assertEqual('textarea') 96 expect(obj.$attrs.id).assertEqual('idProp') 97 done(); 98 }); 99 100 /** 101 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 102 * @tc.name testtextAreaClassProp 103 * @tc.desc ACE 104 */ 105 it('testtextAreaClassProp', Level.LEVEL0, async function(done) { 106 console.info('testtextAreaClassProp START'); 107 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 108 109 let obj = JSON.parse(globalThis.value.classProp); 110 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 111 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 112 113 expect(obj.$type).assertEqual('textarea') 114 expect(obj.$attrs.id).assertEqual('classProp') 115 done(); 116 }); 117 118 /** 119 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 120 * @tc.name testtextAreaClassPropNone 121 * @tc.desc ACE 122 */ 123 it('testtextAreaClassPropNone', Level.LEVEL0, async function(done) { 124 console.info('testtextAreaClassPropNone START'); 125 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 126 127 let obj = JSON.parse(globalThis.value.classPropNone); 128 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 129 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 130 131 expect(obj.$type).assertEqual('textarea') 132 expect(obj.$attrs.id).assertEqual('classPropNone') 133 expect(obj.$attrs.className).assertEqual(undefined) 134 console.info("[textAreaProps] get className value is: " + JSON.stringify(obj.$attrs.className)); 135 done(); 136 }); 137 138 /** 139 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 140 * @tc.name testtextAreaRefProp 141 * @tc.desc ACE 142 */ 143 it('testtextAreaRefProp', Level.LEVEL0, async function(done) { 144 console.info('testtextAreaRefProp START'); 145 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 146 147 let obj = JSON.parse(globalThis.value.refProp); 148 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 149 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 150 151 expect(obj.$type).assertEqual('textarea') 152 expect(obj.$attrs.id).assertEqual('refProp') 153 expect(obj.$attrs.ref).assertEqual('refProp') 154 done(); 155 }); 156 157 /** 158 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 159 * @tc.name testtextAreaRefPropNone 160 * @tc.desc ACE 161 */ 162 it('testtextAreaRefPropNone', Level.LEVEL0, async function(done) { 163 console.info('testtextAreaRefPropNone START'); 164 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 165 166 let obj = JSON.parse(globalThis.value.refPropNone); 167 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 168 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 169 170 expect(obj.$type).assertEqual('textarea') 171 expect(obj.$attrs.id).assertEqual('refPropNone') 172 expect(obj.$attrs.ref).assertEqual(undefined) 173 console.info("[textAreaProps] get ref value is: " + JSON.stringify(obj.$attrs.ref)); 174 done(); 175 }); 176 177 /** 178 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 179 * @tc.name testtextAreaDisabledPropTrue 180 * @tc.desc ACE 181 */ 182 it('testtextAreaDisabledPropTrue', Level.LEVEL0, async function(done) { 183 console.info('testtextAreaDisabledPropTrue START'); 184 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 185 186 let obj = JSON.parse(globalThis.value.disabledPropTrue); 187 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 188 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 189 190 expect(obj.$type).assertEqual('textarea') 191 expect(obj.$attrs.id).assertEqual('disabledPropTrue') 192 expect(obj.$attrs.disabled).assertEqual('true') 193 done(); 194 }); 195 196 /** 197 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 198 * @tc.name testtextAreaDisabledPropFalse 199 * @tc.desc ACE 200 */ 201 it('testtextAreaDisabledPropFalse', Level.LEVEL0, async function(done) { 202 console.info('testtextAreaDisabledPropFalse START'); 203 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 204 205 let obj = JSON.parse(globalThis.value.disabledPropFalse); 206 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 207 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 208 209 expect(obj.$type).assertEqual('textarea') 210 expect(obj.$attrs.id).assertEqual('disabledPropFalse') 211 expect(obj.$attrs.disabled).assertEqual('false') 212 done(); 213 }); 214 215 /** 216 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 217 * @tc.name testtextAreaDisabledPropNone 218 * @tc.desc ACE 219 */ 220 it('testtextAreaDisabledPropNone', Level.LEVEL0, async function(done) { 221 console.info('testtextAreaDisabledPropNone START'); 222 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 223 224 let obj = JSON.parse(globalThis.value.disabledPropNone); 225 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 226 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 227 228 expect(obj.$type).assertEqual('textarea') 229 expect(obj.$attrs.id).assertEqual('disabledPropNone') 230 expect(obj.$attrs.disabled).assertEqual('false') 231 done(); 232 }); 233 234 /** 235 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 236 * @tc.name testtextAreaFocusablePropTrue 237 * @tc.desc ACE 238 */ 239 it('testtextAreaFocusablePropTrue', Level.LEVEL0, async function(done) { 240 console.info('testtextAreaFocusablePropTrue START'); 241 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 242 243 let obj = JSON.parse(globalThis.value.focusablePropTrue); 244 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 245 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 246 247 expect(obj.$type).assertEqual('textarea') 248 expect(obj.$attrs.id).assertEqual('focusablePropTrue') 249 expect(obj.$attrs.focusable).assertEqual('true') 250 done(); 251 }); 252 253 /** 254 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 255 * @tc.name testtextAreaFocusablePropFalse 256 * @tc.desc ACE 257 */ 258 it('testtextAreaFocusablePropFalse', Level.LEVEL0, async function(done) { 259 console.info('testtextAreaFocusablePropFalse START'); 260 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 261 262 let obj = JSON.parse(globalThis.value.focusablePropFalse); 263 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 264 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 265 266 expect(obj.$type).assertEqual('textarea') 267 expect(obj.$attrs.id).assertEqual('focusablePropFalse') 268 expect(obj.$attrs.focusable).assertEqual('false') 269 done(); 270 }); 271 272 /** 273 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 274 * @tc.name testtextAreaFocusablePropNone 275 * @tc.desc ACE 276 */ 277 it('testtextAreaFocusablePropNone', Level.LEVEL0, async function(done) { 278 console.info('testtextAreaFocusablePropNone START'); 279 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 280 281 let obj = JSON.parse(globalThis.value.focusablePropNone); 282 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 283 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 284 285 expect(obj.$type).assertEqual('textarea') 286 expect(obj.$attrs.id).assertEqual('focusablePropNone') 287 expect(obj.$attrs.focusable).assertEqual('false') 288 done(); 289 }); 290 291 /** 292 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 293 * @tc.name testtextAreaDataProp 294 * @tc.desc ACE 295 */ 296 it('testtextAreaDataProp', Level.LEVEL0, async function(done) { 297 console.info('testtextAreaDataProp START'); 298 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 299 300 let obj = JSON.parse(globalThis.value.dataProp); 301 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 302 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 303 304 expect(obj.$type).assertEqual('textarea') 305 expect(obj.$attrs.id).assertEqual('dataProp') 306 expect(obj.$attrs.datatextArea).assertEqual(undefined); 307 console.info("[textAreaProps] get datatextArea value is: " + JSON.stringify(obj.$attrs.datatextArea)); 308 done(); 309 }); 310 311 /** 312 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 313 * @tc.name testtextAreaDataPropNone 314 * @tc.desc ACE 315 */ 316 it('testtextAreaDataPropNone', Level.LEVEL0, async function(done) { 317 console.info('testtextAreaDataPropNone START'); 318 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 319 320 let obj = JSON.parse(globalThis.value.dataPropNone); 321 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 322 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 323 324 expect(obj.$type).assertEqual('textarea') 325 expect(obj.$attrs.id).assertEqual('dataPropNone') 326 expect(obj.$attrs.datatextArea).assertEqual(undefined) 327 console.info("[textAreaProps] get datatextArea value is: " + JSON.stringify(obj.$attrs.datatextArea)); 328 done(); 329 }); 330 331 /** 332 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 333 * @tc.name testtextAreaClickEffectPropSmall 334 * @tc.desc ACE 335 */ 336 it('testtextAreaClickEffectPropSmall', Level.LEVEL0, async function(done) { 337 console.info('testtextAreaClickEffectPropSmall START'); 338 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 339 340 let obj = JSON.parse(globalThis.value.clickEffectPropSmall); 341 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 342 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 343 344 expect(obj.$type).assertEqual('textarea') 345 expect(obj.$attrs.id).assertEqual('clickEffectPropSmall') 346 expect(obj.$attrs.clickEffect).assertEqual('spring-small') 347 done(); 348 }); 349 350 /** 351 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 352 * @tc.name testtextAreaClickEffectPropMedium 353 * @tc.desc ACE 354 */ 355 it('testtextAreaClickEffectPropMedium', Level.LEVEL0, async function(done) { 356 console.info('testtextAreaClickEffectPropMedium START'); 357 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 358 359 let obj = JSON.parse(globalThis.value.clickEffectPropMedium); 360 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 361 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 362 363 expect(obj.$type).assertEqual('textarea') 364 expect(obj.$attrs.id).assertEqual('clickEffectPropMedium') 365 expect(obj.$attrs.clickEffect).assertEqual('spring-medium') 366 done(); 367 }); 368 369 /** 370 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 371 * @tc.name testtextAreaClickEffectPropLarge 372 * @tc.desc ACE 373 */ 374 it('testtextAreaClickEffectPropLarge', Level.LEVEL0, async function(done) { 375 console.info('testtextAreaClickEffectPropLarge START'); 376 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 377 378 let obj = JSON.parse(globalThis.value.clickEffectPropLarge); 379 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 380 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 381 382 expect(obj.$type).assertEqual('textarea') 383 expect(obj.$attrs.id).assertEqual('clickEffectPropLarge') 384 expect(obj.$attrs.clickEffect).assertEqual('spring-large') 385 done(); 386 }); 387 388 /** 389 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 390 * @tc.name testtextAreaClickEffectPropNone 391 * @tc.desc ACE 392 */ 393 it('testtextAreaClickEffectPropNone', Level.LEVEL0, async function(done) { 394 console.info('testtextAreaClickEffectPropNone START'); 395 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 396 397 let obj = JSON.parse(globalThis.value.clickEffectPropNone); 398 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 399 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 400 401 expect(obj.$type).assertEqual('textarea') 402 expect(obj.$attrs.id).assertEqual('clickEffectPropNone') 403 expect(obj.$attrs.clickEffect).assertEqual(undefined) 404 console.info("[textAreaProps] get clickEffect value is: " + JSON.stringify(obj.$attrs.clickEffect)); 405 done(); 406 }); 407 408 /** 409 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 410 * @tc.name testtextAreaDirPropRtl 411 * @tc.desc ACE 412 */ 413 it('testtextAreaDirPropRtl', Level.LEVEL0, async function(done) { 414 console.info('testtextAreaDirPropRtl START'); 415 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 416 417 let obj = JSON.parse(globalThis.value.dirPropRtl); 418 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 419 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 420 421 expect(obj.$type).assertEqual('textarea') 422 expect(obj.$attrs.id).assertEqual('dirPropRtl') 423 expect(obj.$attrs.dir).assertEqual('rtl') 424 done(); 425 }); 426 427 /** 428 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 429 * @tc.name testtextAreaDirPropLtr 430 * @tc.desc ACE 431 */ 432 it('testtextAreaDirPropLtr', Level.LEVEL0, async function(done) { 433 console.info('testtextAreaDirPropLtr START'); 434 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 435 436 let obj = JSON.parse(globalThis.value.dirPropLtr); 437 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 438 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 439 440 expect(obj.$type).assertEqual('textarea') 441 expect(obj.$attrs.id).assertEqual('dirPropLtr') 442 expect(obj.$attrs.dir).assertEqual('ltr') 443 done(); 444 }); 445 446 /** 447 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 448 * @tc.name testtextAreaDirPropAuto 449 * @tc.desc ACE 450 */ 451 it('testtextAreaDirPropAuto', Level.LEVEL0, async function(done) { 452 console.info('testtextAreaDirPropAuto START'); 453 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 454 455 let obj = JSON.parse(globalThis.value.dirPropAuto); 456 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 457 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 458 459 expect(obj.$type).assertEqual('textarea') 460 expect(obj.$attrs.id).assertEqual('dirPropAuto') 461 expect(obj.$attrs.dir).assertEqual('auto') 462 done(); 463 }); 464 465 /** 466 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 467 * @tc.name testtextAreaDirPropNone 468 * @tc.desc ACE 469 */ 470 it('testtextAreaDirPropNone', Level.LEVEL0, async function(done) { 471 console.info('testtextAreaDirPropNone START'); 472 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 473 474 let obj = JSON.parse(globalThis.value.dirPropNone); 475 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 476 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 477 478 expect(obj.$type).assertEqual('textarea') 479 expect(obj.$attrs.id).assertEqual('dirPropNone') 480 expect(obj.$attrs.dir).assertEqual('auto') 481 done(); 482 }); 483 484 /** 485 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 486 * @tc.name testtextAreaForPropNull 487 * @tc.desc ACE 488 */ 489 it('testtextAreaForPropNull', Level.LEVEL0, async function(done) { 490 console.info('testtextAreaForPropNull START'); 491 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 492 493 let obj = JSON.parse(globalThis.value.forPropNull); 494 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 495 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 496 497 expect(obj.$type).assertEqual('textarea') 498 expect(obj.$attrs.id).assertEqual('forPropNull') 499 expect(obj.$attrs.for).assertEqual(undefined) 500 console.info("[textAreaProps] get for value is: " + JSON.stringify(obj.$attrs.for)); 501 done(); 502 }); 503 504 /** 505 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 506 * @tc.name testtextAreaForPropOne 507 * @tc.desc ACE 508 */ 509 it('testtextAreaForPropOne', Level.LEVEL0, async function(done) { 510 console.info('testtextAreaForPropOne START'); 511 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 512 513 let obj = JSON.parse(globalThis.value.forPropOne); 514 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 515 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 516 517 expect(obj.$type).assertEqual('textarea') 518 expect(obj.$attrs.id).assertEqual('forPropOne') 519 expect(obj.$attrs.for).assertEqual(undefined) 520 console.info("[textAreaProps] get for value is: " + JSON.stringify(obj.$attrs.for)); 521 done(); 522 }); 523 524 /** 525 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 526 * @tc.name testtextAreaForPropThree 527 * @tc.desc ACE 528 */ 529 it('testtextAreaForPropThree', Level.LEVEL0, async function(done) { 530 console.info('testtextAreaForPropThree START'); 531 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 532 533 let obj = JSON.parse(globalThis.value.forPropThree); 534 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 535 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 536 537 expect(obj.$type).assertEqual('textarea') 538 expect(obj.$attrs.id).assertEqual('forPropThree') 539 expect(obj.$attrs.for).assertEqual(undefined) 540 console.info("[textAreaProps] get for value is: " + JSON.stringify(obj.$attrs.for)); 541 done(); 542 }); 543 544 /** 545 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 546 * @tc.name testtextAreaIfPropTrue 547 * @tc.desc ACE 548 */ 549 it('testtextAreaIfPropTrue', Level.LEVEL0, async function(done) { 550 console.info('testtextAreaIfPropTrue START'); 551 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 552 553 let obj = JSON.parse(globalThis.value.ifPropTrue); 554 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 555 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 556 557 expect(obj.$type).assertEqual('textarea') 558 expect(obj.$attrs.id).assertEqual('ifPropTrue') 559 expect(obj.$attrs.if).assertEqual(undefined) 560 console.info("[textAreaProps] get for value is: " + JSON.stringify(obj.$attrs.if)); 561 done(); 562 }); 563 564 /** 565 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 566 * @tc.name testtextAreaShowPropTrue 567 * @tc.desc ACE 568 */ 569 it('testtextAreaShowPropTrue', Level.LEVEL0, async function(done) { 570 console.info('testtextAreaShowPropTrue START'); 571 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 572 573 let obj = JSON.parse(globalThis.value.showPropTrue); 574 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 575 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 576 577 expect(obj.$type).assertEqual('textarea') 578 expect(obj.$attrs.id).assertEqual('showPropTrue') 579 expect(obj.$attrs.show).assertEqual('true') 580 console.info("[textAreaProps] get show value is: " + JSON.stringify(obj.$attrs.show)); 581 done(); 582 }); 583 584 /** 585 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 586 * @tc.name testtextAreaShowPropFalse 587 * @tc.desc ACE 588 */ 589 it('testtextAreaShowPropFalse', Level.LEVEL0, async function(done) { 590 console.info('testtextAreaShowPropFalse START'); 591 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 592 593 let obj = JSON.parse(globalThis.value.showPropFalse); 594 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 595 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 596 597 expect(obj.$type).assertEqual('textarea') 598 expect(obj.$attrs.id).assertEqual('showPropFalse') 599 expect(obj.$attrs.show).assertEqual('false') 600 console.info("[textAreaProps] get show value is: " + JSON.stringify(obj.$attrs.show)); 601 done(); 602 }); 603 604 /** 605 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 606 * @tc.name testtextAreaShowPropNone 607 * @tc.desc ACE 608 */ 609 it('testtextAreaShowPropNone', Level.LEVEL0, async function(done) { 610 console.info('testtextAreaShowPropNone START'); 611 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 612 613 let obj = JSON.parse(globalThis.value.showPropNone); 614 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 615 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 616 617 expect(obj.$type).assertEqual('textarea') 618 expect(obj.$attrs.id).assertEqual('showPropNone') 619 expect(obj.$attrs.show).assertEqual("true") 620 console.info("[textAreaProps] get show value is: " + JSON.stringify(obj.$attrs.show)); 621 done(); 622 }); 623 624 /** 625 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 626 * @tc.name testtextAreaShowPropNone 627 * @tc.desc ACE 628 */ 629 it('testtextAreaPlaceholderPropNone', Level.LEVEL0, async function(done) { 630 console.info('testtextAreaXsPropNone START'); 631 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 632 633 let obj = JSON.parse(globalThis.value.placeholderNone); 634 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 635 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 636 637 expect(obj.$type).assertEqual('textarea') 638 expect(obj.$attrs.id).assertEqual('placeholderNone') 639 expect(obj.$attrs.placeholder).assertEqual(undefined) 640 console.info("[textAreaProps] get placeholder value is: " + JSON.stringify(obj.$attrs.placeholder)); 641 done(); 642 }); 643 644 /** 645 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 646 * @tc.name testtextAreaShowPropNone 647 * @tc.desc ACE 648 */ 649 it('testtextAreaPlaceholderProp', Level.LEVEL0, async function(done) { 650 console.info('testtextAreaXsPropNone START'); 651 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 652 653 let obj = JSON.parse(globalThis.value.placeholder); 654 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 655 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 656 657 expect(obj.$type).assertEqual('textarea') 658 expect(obj.$attrs.id).assertEqual('placeholder') 659 expect(obj.$attrs.placeholder).assertEqual('please--input') 660 console.info("[textAreaProps] get placeholder value is: " + JSON.stringify(obj.$attrs.placeholder)); 661 done(); 662 }); 663 664 /** 665 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 666 * @tc.name testtextAreaShowPropNone 667 * @tc.desc ACE 668 */ 669 it('testtextAreaMaxlengthProp20', Level.LEVEL0, async function(done) { 670 console.info('testtextAreaXsPropNone START'); 671 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 672 673 let obj = JSON.parse(globalThis.value.maxlength20); 674 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 675 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 676 677 expect(obj.$type).assertEqual('textarea') 678 expect(obj.$attrs.id).assertEqual('maxlength20') 679 expect(obj.$attrs.maxlength).assertEqual('20') 680 console.info("[textAreaProps] get maxlength value is: " + JSON.stringify(obj.$attrs.maxlength)); 681 done(); 682 }); 683 684 /** 685 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 686 * @tc.name testtextAreaShowPropNone 687 * @tc.desc ACE 688 */ 689 it('testtextAreaHeadericonPropNull', Level.LEVEL0, async function(done) { 690 console.info('testtextAreaXsPropObject START'); 691 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 692 693 let obj = JSON.parse(globalThis.value.headericonNone); 694 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 695 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 696 697 expect(obj.$type).assertEqual('textarea') 698 expect(obj.$attrs.id).assertEqual('headericonNone') 699 expect(obj.$attrs.headericon).assertEqual(undefined) 700 console.info("[textAreaProps] get headericon value is: " + JSON.stringify(obj.$attrs.headericon)); 701 done(); 702 }); 703 704 /** 705 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 706 * @tc.name testtextAreaShowPropNone 707 * @tc.desc ACE 708 */ 709 it('testtextAreaHeadericonProp', Level.LEVEL0, async function(done) { 710 console.info('testtextAreaXsPropObject START'); 711 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 712 713 let obj = JSON.parse(globalThis.value.headericon); 714 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 715 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 716 717 expect(obj.$type).assertEqual('textarea') 718 expect(obj.$attrs.id).assertEqual('headericon') 719 expect(obj.$attrs.headericon).assertEqual("common/images/icon.png") 720 console.info("[textAreaProps] get headericon value is: " + JSON.stringify(obj.$attrs.headericon)); 721 done(); 722 }); 723 724 /** 725 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 726 * @tc.name testtextAreaShowPropNone 727 * @tc.desc ACE 728 */ 729 it('testtextAreaExtendPropNone', Level.LEVEL0, async function(done) { 730 console.info('testtextAreaXsPropObject START'); 731 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 732 733 let obj = JSON.parse(globalThis.value.extendNone); 734 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 735 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 736 737 expect(obj.$type).assertEqual('textarea') 738 expect(obj.$attrs.id).assertEqual('extendNone') 739 expect(obj.$attrs.extend).assertEqual("false") 740 console.info("[textAreaProps] get extend value is: " + JSON.stringify(obj.$attrs.extend)); 741 done(); 742 }); 743 744 /** 745 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 746 * @tc.name testtextAreaShowPropNone 747 * @tc.desc ACE 748 */ 749 it('testtextAreaExtendPropFalse', Level.LEVEL0, async function(done) { 750 console.info('testtextAreaXsPropObject START'); 751 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 752 753 let obj = JSON.parse(globalThis.value.extendFalse); 754 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 755 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 756 757 expect(obj.$type).assertEqual('textarea') 758 expect(obj.$attrs.id).assertEqual('extendFalse') 759 expect(obj.$attrs.extend).assertEqual("false") 760 console.info("[textAreaProps] get extend value is: " + JSON.stringify(obj.$attrs.extend)); 761 done(); 762 }); 763 764 /** 765 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 766 * @tc.name testtextAreaShowPropNone 767 * @tc.desc ACE 768 */ 769 it('testtextAreaExtendProptTrue', Level.LEVEL0, async function(done) { 770 console.info('testtextAreaXsPropObject START'); 771 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 772 773 let obj = JSON.parse(globalThis.value.extendTrue); 774 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 775 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 776 777 expect(obj.$type).assertEqual('textarea') 778 expect(obj.$attrs.id).assertEqual('extendTrue') 779 expect(obj.$attrs.extend).assertEqual("true") 780 console.info("[textAreaProps] get extend value is: " + JSON.stringify(obj.$attrs.extend)); 781 done(); 782 }); 783 784 /** 785 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 786 * @tc.name testtextAreaShowPropNone 787 * @tc.desc ACE 788 */ 789 it('testtextAreaValuePropNull', Level.LEVEL0, async function(done) { 790 console.info('testtextAreaXsPropObject START'); 791 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 792 793 let obj = JSON.parse(globalThis.value.valueNone); 794 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 795 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 796 797 expect(obj.$type).assertEqual('textarea') 798 expect(obj.$attrs.id).assertEqual('valueNone') 799 expect(obj.$attrs.value).assertEqual(undefined) 800 console.info("[textAreaProps] get value value is: " + JSON.stringify(obj.$attrs.value)); 801 done(); 802 }); 803 804 /** 805 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 806 * @tc.name testtextAreaShowPropNone 807 * @tc.desc ACE 808 */ 809 it('testtextAreaValueProp', Level.LEVEL0, async function(done) { 810 console.info('testtextAreaXsPropObject START'); 811 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 812 813 let obj = JSON.parse(globalThis.value.value); 814 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 815 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 816 817 expect(obj.$type).assertEqual('textarea') 818 expect(obj.$attrs.id).assertEqual('value') 819 expect(obj.$attrs.value).assertEqual("text") 820 console.info("[textAreaProps] get value value is: " + JSON.stringify(obj.$attrs.value)); 821 done(); 822 }); 823 824 /** 825 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 826 * @tc.name testtextAreaShowPropNone 827 * @tc.desc ACE 828 */ 829 it('testtextAreaShowcounterPropNone', Level.LEVEL0, async function(done) { 830 console.info('testtextAreaXsPropObject START'); 831 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 832 833 let obj = JSON.parse(globalThis.value.showcounterNone); 834 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 835 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 836 837 expect(obj.$type).assertEqual('textarea') 838 expect(obj.$attrs.id).assertEqual('showcounterNone') 839 expect(obj.$attrs.showcounter).assertEqual("false") 840 console.info("[textAreaProps] get showcounter value is: " + JSON.stringify(obj.$attrs.showcounter)); 841 done(); 842 }); 843 844 /** 845 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 846 * @tc.name testtextAreaShowPropNone 847 * @tc.desc ACE 848 */ 849 it('testtextAreaShowcounterPropFalse', Level.LEVEL0, async function(done) { 850 console.info('testtextAreaXsPropObject START'); 851 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 852 853 let obj = JSON.parse(globalThis.value.showcounterFalse); 854 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 855 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 856 857 expect(obj.$type).assertEqual('textarea') 858 expect(obj.$attrs.id).assertEqual('showcounterFalse') 859 expect(obj.$attrs.showcounter).assertEqual("false") 860 console.info("[textAreaProps] get showcounter value is: " + JSON.stringify(obj.$attrs.showcounter)); 861 done(); 862 }); 863 864 /** 865 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 866 * @tc.name testtextAreaShowPropNone 867 * @tc.desc ACE 868 */ 869 it('testtextAreaShowcounterProptTrue', Level.LEVEL0, async function(done) { 870 console.info('testtextAreaXsPropObject START'); 871 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 872 873 let obj = JSON.parse(globalThis.value.showcounterTrue); 874 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 875 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 876 877 expect(obj.$type).assertEqual('textarea') 878 expect(obj.$attrs.id).assertEqual('showcounterTrue') 879 expect(obj.$attrs.showcounter).assertEqual("true") 880 console.info("[textAreaProps] get showcounter value is: " + JSON.stringify(obj.$attrs.showcounter)); 881 done(); 882 }); 883 884 /** 885 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 886 * @tc.name testtextAreaShowPropNone 887 * @tc.desc ACE 888 */ 889 it('testtextAreaAutofocusPropNone', Level.LEVEL0, async function(done) { 890 console.info('testtextAreaXsPropObject START'); 891 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 892 893 let obj = JSON.parse(globalThis.value.autofocusNone); 894 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 895 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 896 897 expect(obj.$type).assertEqual('textarea') 898 expect(obj.$attrs.id).assertEqual('autofocusNone') 899 expect(obj.$attrs.autofocus).assertEqual("false") 900 console.info("[textAreaProps] get autofocus value is: " + JSON.stringify(obj.$attrs.autofocus)); 901 done(); 902 }); 903 904 /** 905 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 906 * @tc.name testtextAreaShowPropNone 907 * @tc.desc ACE 908 */ 909 it('testtextAreaAutofocusPropFalse', Level.LEVEL0, async function(done) { 910 console.info('testtextAreaXsPropObject START'); 911 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 912 913 let obj = JSON.parse(globalThis.value.autofocusFalse); 914 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 915 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 916 917 expect(obj.$type).assertEqual('textarea') 918 expect(obj.$attrs.id).assertEqual('autofocusFalse') 919 expect(obj.$attrs.autofocus).assertEqual("false") 920 console.info("[textAreaProps] get autofocus value is: " + JSON.stringify(obj.$attrs.autofocus)); 921 done(); 922 }); 923 924 /** 925 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 926 * @tc.name testtextAreaShowPropNone 927 * @tc.desc ACE 928 */ 929 it('testtextAreaAutofocusProptTrue', Level.LEVEL0, async function(done) { 930 console.info('testtextAreaXsPropObject START'); 931 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 932 933 let obj = JSON.parse(globalThis.value.autofocusTrue); 934 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 935 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 936 937 expect(obj.$type).assertEqual('textarea') 938 expect(obj.$attrs.id).assertEqual('autofocusTrue') 939 expect(obj.$attrs.autofocus).assertEqual("true") 940 console.info("[textAreaProps] get autofocus value is: " + JSON.stringify(obj.$attrs.autofocus)); 941 done(); 942 }); 943 944 /** 945 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 946 * @tc.name testtextAreaShowPropNone 947 * @tc.desc ACE 948 */ 949 it('testtextAreaSoftkeyboardenabledPropNone', Level.LEVEL0, async function(done) { 950 console.info('testtextAreaXsPropObject START'); 951 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 952 953 let obj = JSON.parse(globalThis.value.softkeyboardenabledNone); 954 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 955 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 956 957 expect(obj.$type).assertEqual('textarea') 958 expect(obj.$attrs.id).assertEqual('softkeyboardenabledNone') 959 expect(obj.$attrs.softkeyboardenabled).assertEqual("true") 960 console.info("[textAreaProps] get softkey value is: " + JSON.stringify(obj.$attrs.softkey)); 961 done(); 962 }); 963 964 /** 965 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 966 * @tc.name testtextAreaShowPropNone 967 * @tc.desc ACE 968 */ 969 it('testtextAreaSoftkeyboardenabledPropFalse', Level.LEVEL0, async function(done) { 970 console.info('testtextAreaXsPropObject START'); 971 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 972 973 let obj = JSON.parse(globalThis.value.softkeyboardenabledFalse); 974 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 975 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 976 977 expect(obj.$type).assertEqual('textarea') 978 expect(obj.$attrs.id).assertEqual('softkeyboardenabledFalse') 979 expect(obj.$attrs.softkeyboardenabled).assertEqual("false") 980 console.info("[textAreaProps] get softkey value is: " + JSON.stringify(obj.$attrs.softkey)); 981 done(); 982 }); 983 984 /** 985 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 986 * @tc.name testtextAreaShowPropNone 987 * @tc.desc ACE 988 */ 989 it('testtextAreaSoftkeyboardenabledProptTrue', Level.LEVEL0, async function(done) { 990 console.info('testtextAreaXsPropObject START'); 991 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 992 993 let obj = JSON.parse(globalThis.value.softkeyboardenabledTrue); 994 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 995 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 996 997 expect(obj.$type).assertEqual('textarea') 998 expect(obj.$attrs.id).assertEqual('softkeyboardenabledTrue') 999 expect(obj.$attrs.softkeyboardenabled).assertEqual("true") 1000 console.info("[textAreaProps] get softkey value is: " + JSON.stringify(obj.$attrs.softkey)); 1001 done(); 1002 }); 1003 1004 /** 1005 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 1006 * @tc.name testtextAreaShowPropNone 1007 * @tc.desc ACE 1008 */ 1009 it('testtextAreaMenuoptionsPropNone', Level.LEVEL0, async function(done) { 1010 console.info('testtextAreaXsPropObject START'); 1011 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 1012 1013 let obj = JSON.parse(globalThis.value.menuoptionsNone); 1014 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 1015 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 1016 1017 expect(obj.$type).assertEqual('textarea') 1018 expect(obj.$attrs.id).assertEqual('menuoptionsNone') 1019 expect(obj.$attrs.menuoptions).assertEqual(undefined) 1020 console.info("[textAreaProps] get menuoptions value is: " + JSON.stringify(obj.$attrs.menuoptions)); 1021 done(); 1022 }); 1023 1024 /** 1025 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 1026 * @tc.name testtextAreaShowPropNone 1027 * @tc.desc ACE 1028 */ 1029 it('testtextAreaMenuoptionsProp', Level.LEVEL0, async function(done) { 1030 console.info('testtextAreaXsPropObject START'); 1031 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 1032 1033 let obj = JSON.parse(globalThis.value.menuoptions); 1034 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 1035 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 1036 1037 expect(obj.$type).assertEqual('textarea') 1038 expect(obj.$attrs.id).assertEqual('menuoptions') 1039 expect(obj.$attrs.menuoptions).assertEqual(undefined) 1040 console.info("[textAreaProps] get menuoptions value is: " + JSON.stringify(obj.$attrs.menuoptions)); 1041 done(); 1042 }); 1043 1044 /** 1045 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 1046 * @tc.name testtextAreaShowPropNone 1047 * @tc.desc ACE 1048 */ 1049 it('testtextAreaSelectedstartPropNone', Level.LEVEL0, async function(done) { 1050 console.info('testtextAreaXsPropObject START'); 1051 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 1052 1053 let obj = JSON.parse(globalThis.value.selectedstartNone); 1054 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 1055 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 1056 1057 expect(obj.$type).assertEqual('textarea') 1058 expect(obj.$attrs.id).assertEqual('selectedstartNone') 1059 expect(obj.$attrs.selectedstart).assertEqual("-1") 1060 console.info("[textAreaProps] get selectedstart value is: " + JSON.stringify(obj.$attrs.selectedstart)); 1061 done(); 1062 }); 1063 1064 /** 1065 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 1066 * @tc.name testtextAreaShowPropNone 1067 * @tc.desc ACE 1068 */ 1069 it('testtextAreaSelectedstartProp', Level.LEVEL0, async function(done) { 1070 console.info('testtextAreaXsPropObject START'); 1071 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 1072 1073 let obj = JSON.parse(globalThis.value.selectedstart5); 1074 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 1075 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 1076 1077 expect(obj.$type).assertEqual('textarea') 1078 expect(obj.$attrs.id).assertEqual('selectedstart5') 1079 expect(obj.$attrs.selectedstart).assertEqual("5") 1080 console.info("[textAreaProps] get selectedstart value is: " + JSON.stringify(obj.$attrs.selectedstart)); 1081 done(); 1082 }); 1083 1084 /** 1085 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 1086 * @tc.name testtextAreaShowPropNone 1087 * @tc.desc ACE 1088 */ 1089 it('testtextAreaSelectedEndtPropNone', Level.LEVEL0, async function(done) { 1090 console.info('testtextAreaXsPropObject START'); 1091 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 1092 1093 let obj = JSON.parse(globalThis.value.selectedendNone); 1094 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 1095 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 1096 1097 expect(obj.$type).assertEqual('textarea') 1098 expect(obj.$attrs.id).assertEqual('selectedendNone') 1099 expect(obj.$attrs.selectedend).assertEqual("-1") 1100 console.info("[textAreaProps] get selectedend value is: " + JSON.stringify(obj.$attrs.selectedend)); 1101 done(); 1102 }); 1103 1104 /** 1105 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 1106 * @tc.name testtextAreaShowPropNone 1107 * @tc.desc ACE 1108 */ 1109 it('testtextAreaSelectedEndProp', Level.LEVEL0, async function(done) { 1110 console.info('testtextAreaXsPropObject START'); 1111 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); 1112 1113 let obj = JSON.parse(globalThis.value.selectedend5); 1114 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj)); 1115 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs)); 1116 1117 expect(obj.$type).assertEqual('textarea') 1118 expect(obj.$attrs.id).assertEqual('selectedend5') 1119 expect(obj.$attrs.selectedend).assertEqual("5") 1120 console.info("[textAreaProps] get selectedend value is: " + JSON.stringify(obj.$attrs.selectedend)); 1121 done(); 1122 }); 1123 }); 1124}