PK !:d-$$assets/entry/resources.indexRestool 2.009$KEYSIDSS)V~)  descriptionMainAbility_desc$ labelMainAbility_label)  descriptionTestAbility_desc$ labelTestAbility_label0 entry_MainAbilityentry_MainAbility5 JS_Empty Abilitymainability_description5$entry/resources/base/media/icon.pngiconPK !:.І*assets/entry/resources/base/media/icon.pngPNG  IHDRrr݅}KiTXtXML:com.adobe.xmp -CDIDATxyp\ŝ?$- CH VH6ne7GmŁ$$E6TͲTb 0a;6^la[u?4Q?Io$VM4{ݯ׿_@)F1߁2 x  Yw!hl o솠u뾆Y4# $ %m<{ORuddbNx8R[O屃yЄHsW$:KPD@ |}PsvԱfnïہ(:H*j}-pԷycZF6&֢8E *ߌ"(J)Oxx <cȿ!(qT \կ?&c4T/'PxD03 OQI`܍.ӋLku^oq=OچԽA fNPT >6Zon,#|"l0w3$@[2hhP; ml>E㢻S<.>q\q, })vuj{/b@P@ٛ5?*ƴFG)L=$7抄*\& a@>%)<1WZeHN 6i[] =P|QX"W-Ȍl@/CCoJűeޭ=K+˄+|&Н ,2>4eB[6R bYN0t`Z6ď_]h^nUsjZJC* \unY%8(&e限2` EvR ¢K9zVm9|GZD`wk̕,ܡ'WqU'?syXBKuv Ku!OM#Eç0|V"O"f ma%*K : 6!}FœK(EÅ5҇tnOr)aP9&E~'L-6!%XB!+!>5)WTxMk̥p)!0K/Oj:4S\亊$ڇ*O`SH# +"ɔh chņT\2"LDAq9ΎTmӅbZ'[)g|Th)P /Q,lY0N(,5Z(6!m w-Հ#гq8JH 2_u{S.e)#܏ X&|mW~R2@EHo+e+ eOQPhtB-@ \ Y= VqBoU&7חNCw U $4hG4gf\Bw"z2)}u 4*CFFtmˆ\ádђ B Kggœ<хc%"=>B]1%(8Z #@s2`Yy\V{S{ڑ2է-eW#dFppp|X9ښ*Q!U:a<3>h+w\#AUKzش JO^oj0#7,vfg;<ٮe$auY3==(D>,jo]&K$VH(E+{*ֵuv}jMqGcւ3%Ǿ6}9fWH}$$cB+Wͤq3>:.=>5wrHՐ,V/5ÿ"N2_&Pq#UCB/Hx7f`p oί,- $1@G AWQpB85B Ek#\(VSԿ9pB.诒>ϳ/i]32!oS7]4AApIuVvqݯ4] EB78јk>32 #}W91!9>=d yڏtl㔁HyLc u<ʡ^iacrznXtz^pXHHow3(\4Nɴ2Jvb _[J EHz~`ۨvš 5B?&`YE$ܧ}=)ͨzO-=)MZ:íUkm4qHnT ZF/tr @/)k:7e`~xP,'6vL!lx4YNl< জnZ~?5B@65+t;]i2<Ȧ>BCqH9\hpq#\e`Hxn| 35oi2+Y6$HXBB|װ`:|t8$6ĞhJ:Ob. #UOFzb<(ش5FߨP@gz~ '5]ҋT*|@?@īRl.81@@D@o+j9{װ#|IRB(PFDXJsM?W|t`b뫊\~l>vtxuO*lGH @JvdQ_b ;Q͕GVǀwga>[΄_/1)o?zz6~}1g8 ن r S}m':e xdc/t,X5N70CCRj#9ڥ0Έb1G]YX~ >"k_`30s&]k)+FW`R׎ٲG@nx#V?Nh.nh<6 nwm0I;C$ [a~(|Кt8d:hkႈG@ /FiГ8c9i"d4 g`-:7L09SpX52pOs oشvO\(VFli>NRz|Ch%Fqgg]RVFزMe@e#d ɦv1c1障Jk 4^εTAk'֫ .l] mw_irMu 9wd prx e[ ^Y{PÛ$uapn$限ճ"2`SV8 {BefE],ܤQ|vK7fJб: f7HDДhQ'FIx`-V.l+.#E8| l3rx!|JfE}ڜ9ՙl҃f Y;9E]g+r̓dDB;~M^T%Rg-;)\B/=V cW xc_>QI߰ 'eUԳ#iK]ʔx!kS.j|p)p٩@)NlJNx}ҙpaSO$y4/eZR5dO,frbٰjvЧT 0;3ipm'5UC^67c0ّhɑfvv^yx20ّh=ᇄc)FK'&ʤ>=(e =e*rVVus\0HHZ S RV+|4>>4ϨwP'x栍BvM "xU:4Y4 reUq8k^<Eo-,Ր[5?qR:fWgn6CT:L>L^pugHwU:9U\{[TG^íy}X_pN׀ۺ_L{F^T4xi=wga6mAN2%:e`lX$~\=ZjsBє7?L?y~r!ܳ hS"aXA)5M}>х?쮟_TiǶ쩏,?yMs PqfDܱ:GW QO6/GgQ.*E$Ĺ{ߗ&⋿x4^EcDd?ҔEu~HD+@y"=n}'<]k)/~ b:H8#u]#dMOͿT4jaE;_?N[t뜩IT=VF+0.}pn*&ǻpjKBY\+g~]sqgWeZ_y}kEA":EO)5l^}>3Szsu,KkzY;s|Xw@=p^X{8gvpMJ~ t4)!-82VR|ԑ§;F8gcIN/+@.S_35Q|;`s`̀   otì#{{vg2UUk0*s#mڊ/ [׌֓y ^g[%25-\pW*)y'«~;@f>y~DfGfiP B | [)Gvk;hT0 9}f)Q@Vₓ p3֦pEFXpϙe>#A`V&4J5A2N Fԅ@to7ٚޙH0e[<k0wSEpI[/jדf r\B%'6:H ̚q):kZ ly-V˳h?TcADʨ7P]qK+^W$!82)!5 tM e [\wh;>NN om?~K<]C$H8Z6\о"|.۳hg=IВ 8Y !0RX^!E_rb|֥»H!w l_f6| sCڏ g6vud~}^x7JBq hmy3iuE%(WԒ u8ʗ2;dհL;rE{7Ix|B6͉k)l(XBDXJ%Bs3Mg$sŻ X\u6 A}Ӫl3Mo`N:"L:`oFnVs5k=e:Ar7568(¶]7`s=8DBmnw46dBJ9 ؄*a[4P jZ<4 cX4uW?4Vл4.Uh4T4P ݅<4#AS4; Rf4n ƨ4R64)p 4<Q4yPƹ4C4H4IO\4NxN4ORJ_4 4mXI4TH4_}4Gw4{484[>P4<|4 ;#4&:46;Ӳ4|;4l4 M6ݱ4 d_4J454/44t r44°4p%5X4 4^44cf4tv4apA4Xd<4`4)e{4M44trf4A e4%  M4 !4!4ae4_y@4 ^U4  4fv4;4 d 4 }^4Yc4ޕ4uv4q4i4qn4 x4,ޛ64 Ge4I d4\ 44 T4’4>2y41݄ 4 {4ć 4z~=44m4hԭo4v4Y4] kF4t4A4K `4 Eo4s4 ?q4:4YB4h|4F@4iY4v}4,f4e:}4\4 pX4 v4a 4i4V n4lz4~t4X[4z4( `ֿ4AK4|{4g4o9*4o |d4 #4f4 ER4,>4J֮4Ms>4/home/redjie/ohos_/out/rk3568/obj/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/module_video_player_js_hap/assets/MainAbility/app_.jsfunc_main_0  } 0 fM2\2h2w2222222system.routersystem.appsystem.prompt)system.configurationsystem.imagesystem.device#system.mediaqueryohos.animatorsystem.gridsystem.resourceM2\2h2w2222222t~a3 ./app( 3vendorsx x M2\2h2w2222222M2\2h2w2222222callTypeu47u47u47u47u4 7dj!G'djL4-dj!`x dmm_m i``I`/(`A` `mmj jx`O;`;`;j wf`` \j w\mdmmj~.- "j w  # -"~-nj  L Q  # -"~-;j  j   L M  /  #j    jS S S  M  j w ! .j  L  w J w 3- w "mJ w 3- w "J w 3- w " 4- ">  >  m j j w ! .  4 -"( - $ -"" ~-vsFw$  j"w\ w `B \ ~-3j w j / m  \ " ! -j . m #~-Bj w  /   \  ;  3 - .  #o d_w[~-w[L ~- w~jL 3- w~jiy~M w[~-?sG w4  \!- "~-G ~-w[M jL w~j!   \w~ w,~.w,w 3-3-$"kw,QQLw,QQL-#w,QQL1 skwg\x~dm_^x~, s; w\ djwfjW jwfw;\jwfw<\s; wP\j"w wMj2wf \ d mm@m mpm`m0mP_,m_v_|_nkGkGmsFwai     \xfkGGm@kGGm k GGmpGGm`kGGm0kGmP+djQw_}Wdn m0nnnnnnnnnnn n nnnnmPm`mpmm mn _m@_Un _=n_nn m0nnn2'n nmnnnnYnb  n  n  n n F n d n G n  mP  m` mp B m G m m k  G w_   Z n jR w jr wf jBwfw _\G  G jR w jr wf jBwfw _m\G  G jR w jr wf jBwfw _#\G  G jR w jr wf jBwfw _ \G  G k w8 k_<w\  \k w8 _w\  \k w8  k _Cw\  \k w8  k _;w\  \k w8  k _w\  \k w8  _2 w  \   \k w8 k _ w  \   \k w8 _ w   \  \k w8 _!w  \\k w8 _Lw\\k w8 k_Xw\\k w8 _[w\\k w8 _w\\k w8 _w\\k w8 _w\ \k w8 _ w\ \jRws_x;XJdmmm jDwfw _\d~.w xV 3-3. 3."ms=kkkkkkk     Z mk wjQjjj!    \w \Ydj#wfk Ww\s; ww\ dj$wfjW  .~jTw jGw \s; w  \k j!j1jAX# -"~-Xj1Qk -~-8j1w\k j!j1jAX"&j4wI jA \ dmm m m0 m j#wfk W j Qj w\j w\jw- _&w \\7 sFwvwww\ dmmm m0 m@m j#wfk W j0Qmj0w\j0w\j wbjjcwfw w_w \  \d  fG w w k G \ \~-9jAU wT  \ Gw}  \sHG =3-"~-(}(w \~- w;  =3-"~.}(w \~.s;  w % \ w \ < w -ow    L  ~-"~-w3 - \ < "$" 3-w3 -\  =3- w4 =3.s4 w % \ w \ < w -ow    L  ~-"~-w3 - \ < "$" 3-w3 -\  =3- JJ dj$wfjW  .kjdwfw wjX s; w \k j!j1jAX# -"~-Xj1Qk -~-8j1w\k j!j1jAX"&j4wI jA \ dmm m m0 m j#wfk W j Qj w\j w\jwb_3w \\ dj$wfjW  -Fs; w5\k jj!j1X# -"~-Xj!Qk -~-8j!w\k jj!j1X"&j4wI j1 \dmmm m0 mj#wfk Wj w\jw_w\\dmmm m0 mj#wfk Wj w\jw_.w\\dmmm m0 mj#wfk Wj w\jw_Mw\\ dj$wfjW  .jTw jwGw\s; w\k jj!j1X# -"~-Xj!Qk -~-8j!w\k jj!j1X"&j4wI j1 \ dj$wfjW  .jTw jwGw\s; w\j4wtk\k jj!j1X# -"~-Xj!Qk -~-8j!w\k jj!j1X"&j4wI j1 \dmmm m0 mj#wfk Wj w\jw_w\\ dj$wfjW  -bw !-1j4wL \."k jj!j1X# -"~-Xj!Qk -~-8j!w\k jj!j1X"&j4wI j1 \dmm m m0 mj#wfk Wj w\kjj j0Xjw_:w\\ dj$wfjW  .DjTw jwGwD\jTw jwGwk\jTw jwh Gwk\jTw jw^Gwk\s; w\k jj!j1X# -"~-Xj!Qk -~-8j!w\k jj!j1X"&j4wI j1 \ dmm m m0 m j#wfk W j w\jwk_pw \\ dj$wfjW  .jTw jwGw\s; w\k jj!j1X# -"~-Xj!Qk -~-8j!w\k jj!j1X"&j4wI j1 \dmmm m0 mj#wfk Wj w\jcwfw_nw\\ dmm m m0 m jw8 g_w \ \jw8 _tw \ \jw8 _w \ \jw8 8_w \ \jw8 _uw \ \)d k w5 \ d~.Lw xV 3-03.3. 3. 3."G mj- j!m" j1mijy0 mAxV x kwfw7jA \ x #xV wz  \x  s; w \w  \ td j1wfj!wfw _\Gn k w5  \d  f G w w k G \ \~-9j$U wT  \ Gw}  \sHG =3-"~-(}(w \~- w;  =3-"~.}(w \~.s;  w % \ w \ < w -ow    L  ~-"~-w3 - \ < "$" 3-w3 -\  =3- w4 =3.s4 w % \ w \ < w -ow    L  ~-"~-w3 - \ < "$" 3-w3 -\  =3- JJMdmm m j%wfw _ \djwf;/djwfjWs jW>dmj"wfw _K\-dmmj!`xxdjaw ;wH\s; www \\; ]d-Rjaw ;wH\s; w \;d~.w xV 3-3-F 3-<"Ȥx k wfwZj\w\Ldj#wfk Ww\sx k X(d jqw5 \)d k w5 \d  w J w 3- w "J w 3- w "J w 3- w " 4- ">  >  : 3-O j" w \ ~-*j"w  LM "~- j" G ~-  G   w ! .  L j" w j  \ ~-0j  L ~-j L  Q \ j L M  .  #aj" w  \ AidjwfjWiw y w}y}w y ms; wL  j\udjaw ;wH\s; www \\ d  ~.w  xV 3 -Q3 .3 .@ 3 .73 .N3 .R3 .m 3 .b"x kwfwOjd\w m! k wf w   \ m1 j1 - "  ~- " ~-x #j! wV mA s; w 1jA  \ mQ jQ ja w ! - "  ~- " ~-x #K x j1wjAjajQL\wD _ w\\wz _ w\\jQ . mQ x #hx #Ys; w \w\7dj#wLjjL\Idj#wfk Ww\j!xk X dj$wfjW  .m jTw jwGw\s; w\k jj!j1X# -"~-Xj!Qk -~-8j!w\k jj!j1X"&j4wI j1 \ rd j1wfj!wfw _R\Gmqjqw5  \d~.w xV 3-3. 3."jwfjWx jwnj\wD _iw\\wz _w\\w  \)d kw5 \ td j1wfj!wfw _N\Gn k w5  \5djXwa~-wf~-wfx~ d~.\w xV 3-03.3.3.  3."x k w\wD _zw \ \x k wfw j \wD _*w \ \w j1  \w  \LdjwfjWs; wL j\DdjwfjWs; w\djwfjWs; wskw \\} jms; w{j\d~.w xV 3-3.~ 3-s"Ǥx jCwfw \wD _;w\\w  \ d~.w xV 3-%3.3. 3."mx jCwfw \wD _;w \ \w j  \w  \^dmj4wfj$wfw _ \Gm_ ^dmj4wfj$wfw _\Gm_* s; w\djcwfw w3-)jcwfw wu3.# -HjSw k Gwkk\#Uk -?jSw G wkk\#jSw G wkk\# -HjSw k Gwkk\#k ->jSw G wkk\"w,-x,w w \\ww7w\ \x7:djCwfw _\)d k w5 \Mdmm m j%wfw _a \ rd j1wfj!wfw _\GmQjQw5  \dmmm m0 mj#wfk Wj w\jwY_\w\\d~-ww xV 3-3-> 3-4"ɤx kwfwN\w\ dj$wfjW  -Fs; wv\k jj!j1X# -"~-Xj!Qk -~-8j!w\k jj!j1X"&j4wI j1 \:dj"wfw _%\d~.w xV 3-"3->3-Z 3-P"x j4w>\s; wI\w\  d ~.uw  xV 3 -\3 . 3 .Y3 .*3 .T3 .3 .3 . 3 ."imjm!kwfw*  \ m1kwfw3mAkwfwBw mQx j1w< kwfw w \ wma x j1wjQj!ja \ w mq jq - " ~- " ~-x #/jqw_ w \ nijAw~ DykSyn x j1wk k  \ wn x k w) \ jwxx jwQw U \ jwxx s; wz jwx  \ w j \ w \ dm mm0m@m`nnnnn n __Sm_F_WmP_Jn_q_omp_s_Yn _Q_ _n _P_r_6 _ _c _8 _ n _e _n__Vn_D_]n_b_n__wn_4GsFwai\x x xl x>xx,xo xx,xxx|kx xtx  xxI  x GGm GGm GGm0GGm@Gm`GGnGGn/GGnGGn GGn WGGwfw\n  td j1wfj!wfw _E\Gnkw5  \ dmmm m0_m@jGsFwai    \xfjGGmGGmjGm j(GGm0i__yt_yxfwf- w~ jGxrdmms; w\s _@w\dW td j1wfj!wfw _'\Gnkw5  \Mdmm m j"wfw _f \)d kw5 \  d ~.uw  xV 3 -\3 . 3 .Y3 .*3 .T3 .3 .3 . 3 ."imjm!kwfw*  \ m1kwfw3mAkwfwBw?mQx j1w< kwfw w \ wma x j1wjQj!ja \ w mq jq - " ~- " ~-x #/jqw_ w \ nijAw~ DykSyn x j1wk k  \ wn x k w) \ jwxx jwQw U \ jwxx s; wz jwx  \ w j \ w \ vdmmw .3-sZmsZm_mGmd mm m0m@mPm`mpnn n mj"wfw _+\dmmm wU w wwwwmwmwm w#wvw_$wG rdQ k --s; w\; "1k wQ    \ td j1wfj!wfw _-\Gnkw5  \)d kw5 \md mm m0m@mPm`mpnn n mj"wfw _H\(d jQw5 \DdjwfjWs; w<\ td j1wfj!wfw _"\Gnkw5  \=dj%wfjWmjG jm#Idmm jCwfw _k \KdjwfjWs; we\d~-"~-~-wa~-4-"-CjGh3-"~- .3-"~-i yfjG~-5w  \ ~-w(  \ sFw~-sFw:3.f3- " ~-sF wv ww w \ ~-~-(sF w \ "  ~-Fw( - w ~-*sF w  \ #/LM#$xf~-w \  td j1wfj!wfw _0\Gnkw5  \^dmjswfjCwfw _~\Gm_g dj$wfjW  -Ms; w \k jj!j1X# -"~-Xj!Qk -~-8j!w\k jj!j1X"&j4wI j1 \d  fG w w k G \ \~-9j$U wT  \ Gw}  \sHG =3-"~-(}(w \~- w;  =3-"~.}(w \~.s;  w % \ w \ < w -ow    L  ~-"~-w3 - \ < "$" 3-w3 -\  =3- w4 =3.s4 w % \ w \ < w -ow    L  ~-"~-w3 - \ < "$" 3-w3 -\  =3- JJd  f G w w k G \ \~-9j$U wT  \ Gw}  \sHG =3-"~-(}(w \~- w;  =3-"~.}(w \~.s;  w % \ w \ < w -ow    L  ~-"~-w3 - \ < "$" 3-w3 -\  =3- w4 =3.s4 w % \ w \ < w -ow    L  ~-"~-w3 - \ < "$" 3-w3 -\  =3- JJ dj$wfjW  .jTw jwGw\s; w\k jj!j1X# -"~-Xj!Qk -~-8j!w\k jj!j1X"&j4wI j1 \ dm_(_5G sFwai   \xf G Gmadmm m0m@mPm m` m j"wfw _7 \ d~.w xV 3-%3.3. 3."x j4wj2jB \wD _w \\s; w\w  \ d~.w xV 3-/3-c3.3.q 3.f"x j4w jRjbjr   \jrmrx j4w  \wD _w  \j4w  \wz j4w \wns; w"k \s; w  \w \Idmm jCwfw _l \Qdmm m m j"wfw _d \:djCwfw _G\dm`;d~-j"jdj%wfjWDdj$wfjWs; w \_dj$wfjWs; w\k jj!j1Xxdj$wfjWs; w\s; w \dj$wfjWs; www \\j!Qk - j1; b r     b   b s  p             z   z Rb*&  t )  7   rJ {MMMkb< 5$1{(rK   k m g          0b#   "     ?    -    b  % ! @    b  s  N  b tCb  t     {   {   ]   (b     % tD  `     ^      +bNy& b#y  ] z z z z z z z z z z                           a      a                                                                              b < < < < ?  k  {  {  m  i  k  l   m    m    m    n    l 3   k    l    k     0uLb             /b  { *  & u -b    u?b  "         1b      t ub # s  N     \   \      2b     < s ub! 80$9@T"T"      \  >       \      ;b  1         ,  N    \   \      1b      t v   z   \  >       \      8b          (b     s v(b     s v(b     s v?b  2              \   \   \  >       \      Fb2           H(b  qw   z    Z   n  >           ?b I  N    \       +b  pw!     \   \   \   \   \  >       \      Tb2 1 1 1    "  N    \      (b   sw     \   \  >       \      ?b2      N    ]      (b   rw1  N     `     `     _     _      Ub      yw2b       {   ] z K ^      \ |      _ Yb e  $0b.  b! 80$9@T"T" b~   by    b)b    b s*    \     \ b*  }'  \   \   \  b ~8    *      &b }9     \ b  w:b b*  }b  z3b0 (1"{M   k Q   b ~N    \     b*  }          m           \                  X " X  F      _   n b  T%  "  "    Ob $ s     \ b  w.   M   \   \  >       \      Ab2    /b. #              v       Gb u "  z~b b.       ba3b             '            Xbk " { " { }Ab ~b {       \    "b)   ~B                9b !_'  c~=      M             n 9b xyz 'V{|}}' " ^}% >b.      b~. ~ b x        >    ?     ^           Zb # $v 2  )  ) v $     (b. % b            -bz* };          \      1b   # {<  M O    bstw wE     b !_F  M   b      b ~     b"]+ bno ob ~,by   2b       s ub   {      \  9 !b        ]      > ^          ^  X     _    jb h"     {b w                    Ib p " x u~ ?b  2               bb brs. s8  b6    M   b }7b b z(b  rwb           \     ,b         G b b b  b. . (b     t v    *      &b|#8b           b            n ,by   b  L* ( # %       ^              =b0/11456789:;<=>?@ABCDEGIKMOQSUWY[kk b. >   N    ^     k  ,b#          N   \      b   v tb.    M N   b  b        l         m          \   }  M    \   \ k    \    \   m   b  L* ( # %   b   N   b7   z z z z z z z z   b r s$     \  0   b %  M      b. > b b7 b b {b. #    M bx4b b z                                Sb0  K)  3 5b. : b .  8b          iNz{{+|+|b!80$9@T"T" b!80$9@T"T" ?b  2             ^ bzP  O   b             W    n 7bu "                { Y   h         ab p "    xb   N   b  b bp b    bxb w     \ b x     \   b  x       ]   b*  w,PXlհ&P/g1A*I :Vrs|St-S|?xBuXbDzݺ³}PK !:zgGppassets/js/MainAbility/app.jsvar _cdc709c54327d7ba73517c4d0d8a5a7b; /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/app.js?entry": /*!***************************************************************************************************************************!*\ !*** ../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/app.js?entry ***! \***************************************************************************************************************************/ /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { var $app_script$ = __webpack_require__(/*! !!../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/script.js!../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/babel-loader?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/resource-reference-script.js!../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/manifest-loader.js?path=/home/redjie/ohos_/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/app.js!./app.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=/home/redjie/ohos_/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/app.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/app.js") $app_define$('@app-application/app', [], function($app_require$, $app_exports$, $app_module$) { $app_script$($app_module$, $app_exports$, $app_require$) if ($app_exports$.__esModule && $app_exports$.default) { $app_module$.exports = $app_exports$.default } }) $app_bootstrap$('@app-application/app',undefined,undefined) /***/ }), /***/ "../../../../../../test/xts/acts/multimedia/media/media_js_standard/MediaTestBase.js": /*!*******************************************************************************************!*\ !*** ../../../../../../test/xts/acts/multimedia/media/media_js_standard/MediaTestBase.js ***! \*******************************************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.applyPermission = applyPermission; exports.catchCallback = catchCallback; exports.checkDescription = checkDescription; exports.clearRouter = clearRouter; exports.closeFd = closeFd; exports.closeFdNumber = closeFdNumber; exports.closeFileDescriptor = closeFileDescriptor; exports.failureCallback = failureCallback; exports.getAudioFd = getAudioFd; exports.getFd = getFd; exports.getFdRead = getFdRead; exports.getFileDescriptor = getFileDescriptor; exports.isFileOpen = isFileOpen; exports.msleep = msleep; exports.msleepAsync = msleepAsync; exports.printDescription = printDescription; exports.printError = printError; exports.toNewPage = toNewPage; var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js")); var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js")); var _ohos = _interopRequireDefault(requireModule("@ohos.resourceManager")); var _index = __webpack_require__(/*! deccjsunit/index */ "./node_modules/deccjsunit/index.js"); var _system = _interopRequireDefault(requireModule("@system.router")); var _ohos2 = _interopRequireDefault(requireModule("@ohos.abilityAccessCtrl")); var _ohos3 = _interopRequireDefault(requireModule("@ohos.bundle")); var _ohosMultimedia = _interopRequireDefault(requireModule("@ohos.multimedia.mediaLibrary")); var _ohos4 = _interopRequireDefault(requireModule("@ohos.fileio")); var _ohosAbility = _interopRequireDefault(requireModule("@ohos.ability.featureAbility")); /* * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var context = _ohosAbility["default"].getContext(); // File operation function getFileDescriptor(_x) { return _getFileDescriptor.apply(this, arguments); } function _getFileDescriptor() { _getFileDescriptor = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(fileName) { var _this = this; var fileDescriptor; return _regenerator["default"].wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: fileDescriptor = undefined; _context2.next = 3; return _ohos["default"].getResourceManager().then( /*#__PURE__*/function () { var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(mgr) { var _this2 = this; return _regenerator["default"].wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: (0, _newArrowCheck2["default"])(this, _this); _context.next = 3; return mgr.getRawFileDescriptor(fileName).then(function (value) { (0, _newArrowCheck2["default"])(this, _this2); fileDescriptor = { fd: value.fd, offset: value.offset, length: value.length }; console.log('case getRawFileDescriptor success fileName: ' + fileName); }.bind(this))["catch"](function (error) { (0, _newArrowCheck2["default"])(this, _this2); console.log('case getRawFileDescriptor err: ' + error); }.bind(this)); case 3: case "end": return _context.stop(); } } }, _callee, this); })); return function (_x16) { return _ref.apply(this, arguments); }; }().bind(this)); case 3: return _context2.abrupt("return", fileDescriptor); case 4: case "end": return _context2.stop(); } } }, _callee2, this); })); return _getFileDescriptor.apply(this, arguments); } function closeFileDescriptor(_x2) { return _closeFileDescriptor.apply(this, arguments); } function _closeFileDescriptor() { _closeFileDescriptor = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(fileName) { var _this3 = this; return _regenerator["default"].wrap(function _callee4$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: _context4.next = 2; return _ohos["default"].getResourceManager().then( /*#__PURE__*/function () { var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(mgr) { var _this4 = this; return _regenerator["default"].wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: (0, _newArrowCheck2["default"])(this, _this3); _context3.next = 3; return mgr.closeRawFileDescriptor(fileName).then(function () { (0, _newArrowCheck2["default"])(this, _this4); console.log('case closeRawFileDescriptor ' + fileName); }.bind(this))["catch"](function (error) { (0, _newArrowCheck2["default"])(this, _this4); console.log('case closeRawFileDescriptor err: ' + error); }.bind(this)); case 3: case "end": return _context3.stop(); } } }, _callee3, this); })); return function (_x17) { return _ref2.apply(this, arguments); }; }().bind(this)); case 2: case "end": return _context4.stop(); } } }, _callee4, this); })); return _closeFileDescriptor.apply(this, arguments); } function isFileOpen(fileDescriptor, done) { if (fileDescriptor == undefined) { (0, _index.expect)().assertFail(); console.info('case error fileDescriptor undefined, open file fail'); done(); } } function getFdRead(_x3, _x4) { return _getFdRead.apply(this, arguments); } function _getFdRead() { _getFdRead = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(pathName, done) { var _this5 = this; var fdReturn; return _regenerator["default"].wrap(function _callee5$(_context5) { while (1) { switch (_context5.prev = _context5.next) { case 0: _context5.next = 2; return context.getFilesDir().then(function (fileDir) { (0, _newArrowCheck2["default"])(this, _this5); console.info("case file dir is" + JSON.stringify(fileDir)); pathName = fileDir + '/' + pathName; console.info("case pathName is" + pathName); }.bind(this)); case 2: _context5.next = 4; return _ohos4["default"].open(pathName).then(function (fdNumber) { (0, _newArrowCheck2["default"])(this, _this5); isFileOpen(fdNumber, done); fdReturn = fdNumber; console.info('[fileio]case open fd success, fd is ' + fdReturn); }.bind(this)); case 4: return _context5.abrupt("return", fdReturn); case 5: case "end": return _context5.stop(); } } }, _callee5, this); })); return _getFdRead.apply(this, arguments); } function closeFdNumber(_x5) { return _closeFdNumber.apply(this, arguments); } // wait synchronously function _closeFdNumber() { _closeFdNumber = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(fdNumber) { return _regenerator["default"].wrap(function _callee6$(_context6) { while (1) { switch (_context6.prev = _context6.next) { case 0: _context6.next = 2; return _ohos4["default"].close(fdNumber); case 2: case "end": return _context6.stop(); } } }, _callee6); })); return _closeFdNumber.apply(this, arguments); } function msleep(time) { for (var t = Date.now(); Date.now() - t <= time;) { ; } } // wait asynchronously function msleepAsync(_x6) { return _msleepAsync.apply(this, arguments); } function _msleepAsync() { _msleepAsync = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(ms) { var _this6 = this; return _regenerator["default"].wrap(function _callee7$(_context7) { while (1) { switch (_context7.prev = _context7.next) { case 0: return _context7.abrupt("return", new Promise(function (resolve) { (0, _newArrowCheck2["default"])(this, _this6); return setTimeout(resolve, ms); }.bind(this))); case 1: case "end": return _context7.stop(); } } }, _callee7, this); })); return _msleepAsync.apply(this, arguments); } function printError(error, done) { (0, _index.expect)().assertFail(); console.info("case error called,errMessage is ".concat(error.message)); done(); } // callback function for promise call back error function failureCallback(error) { (0, _index.expect)().assertFail(); console.info("case error called,errMessage is ".concat(error.message)); } // callback function for promise catch error function catchCallback(error) { (0, _index.expect)().assertFail(); console.info("case error called,errMessage is ".concat(error.message)); } function checkDescription(actualDescription, descriptionKey, descriptionValue) { for (var i = 0; i < descriptionKey.length; i++) { var property = actualDescription[descriptionKey[i]]; console.info('case key is ' + descriptionKey[i]); console.info('case actual value is ' + property); console.info('case hope value is ' + descriptionValue[i]); (0, _index.expect)(property).assertEqual(descriptionValue[i]); } } function printDescription(obj) { var description = ""; for (var i in obj) { var property = obj[i]; console.info('case key is ' + i); console.info('case value is ' + property); description += i + " = " + property + "\n"; } } function toNewPage(_x7, _x8, _x9) { return _toNewPage.apply(this, arguments); } function _toNewPage() { _toNewPage = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(pagePath1, pagePath2, page) { var path, options; return _regenerator["default"].wrap(function _callee8$(_context8) { while (1) { switch (_context8.prev = _context8.next) { case 0: path = ''; if (page == 0) { path = pagePath1; } else { path = pagePath2; } options = { uri: path }; _context8.prev = 3; _context8.next = 6; return _system["default"].push(options); case 6: _context8.next = 11; break; case 8: _context8.prev = 8; _context8.t0 = _context8["catch"](3); console.info('case route failed'); case 11: case "end": return _context8.stop(); } } }, _callee8, null, [[3, 8]]); })); return _toNewPage.apply(this, arguments); } function clearRouter() { return _clearRouter.apply(this, arguments); } function _clearRouter() { _clearRouter = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9() { return _regenerator["default"].wrap(function _callee9$(_context9) { while (1) { switch (_context9.prev = _context9.next) { case 0: _context9.next = 2; return _system["default"].clear(); case 2: case "end": return _context9.stop(); } } }, _callee9); })); return _clearRouter.apply(this, arguments); } function getFd(_x10) { return _getFd.apply(this, arguments); } function _getFd() { _getFd = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10(pathName) { var fdObject, displayName, mediaTest, fileKeyObj, mediaType, publicPath, dataUri, args, fetchOp, fetchFileResult; return _regenerator["default"].wrap(function _callee10$(_context10) { while (1) { switch (_context10.prev = _context10.next) { case 0: fdObject = { fileAsset: null, fdNumber: null }; displayName = pathName; mediaTest = _ohosMultimedia["default"].getMediaLibrary(); fileKeyObj = _ohosMultimedia["default"].FileKey; mediaType = _ohosMultimedia["default"].MediaType.VIDEO; _context10.next = 7; return mediaTest.getPublicDirectory(_ohosMultimedia["default"].DirectoryType.DIR_VIDEO); case 7: publicPath = _context10.sent; _context10.next = 10; return mediaTest.createAsset(mediaType, displayName, publicPath); case 10: dataUri = _context10.sent; if (!(dataUri != undefined)) { _context10.next = 24; break; } args = dataUri.id.toString(); fetchOp = { selections: fileKeyObj.ID + "=?", selectionArgs: [args] }; _context10.next = 16; return mediaTest.getFileAssets(fetchOp); case 16: fetchFileResult = _context10.sent; _context10.next = 19; return fetchFileResult.getAllObject(); case 19: fdObject.fileAsset = _context10.sent; _context10.next = 22; return fdObject.fileAsset[0].open('rw'); case 22: fdObject.fdNumber = _context10.sent; console.info('case getFd number is: ' + fdObject.fdNumber); case 24: return _context10.abrupt("return", fdObject); case 25: case "end": return _context10.stop(); } } }, _callee10); })); return _getFd.apply(this, arguments); } function getAudioFd(_x11) { return _getAudioFd.apply(this, arguments); } function _getAudioFd() { _getAudioFd = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11(pathName) { var fdObject, displayName, mediaTest, fileKeyObj, mediaType, publicPath, dataUri, args, fetchOp, fetchFileResult; return _regenerator["default"].wrap(function _callee11$(_context11) { while (1) { switch (_context11.prev = _context11.next) { case 0: fdObject = { fileAsset: null, fdNumber: null }; displayName = pathName; mediaTest = _ohosMultimedia["default"].getMediaLibrary(); fileKeyObj = _ohosMultimedia["default"].FileKey; mediaType = _ohosMultimedia["default"].MediaType.AUDIO; _context11.next = 7; return mediaTest.getPublicDirectory(_ohosMultimedia["default"].DirectoryType.DIR_AUDIO); case 7: publicPath = _context11.sent; _context11.next = 10; return mediaTest.createAsset(mediaType, displayName, publicPath); case 10: dataUri = _context11.sent; if (!(dataUri != undefined)) { _context11.next = 24; break; } args = dataUri.id.toString(); fetchOp = { selections: fileKeyObj.ID + "=?", selectionArgs: [args] }; _context11.next = 16; return mediaTest.getFileAssets(fetchOp); case 16: fetchFileResult = _context11.sent; _context11.next = 19; return fetchFileResult.getAllObject(); case 19: fdObject.fileAsset = _context11.sent; _context11.next = 22; return fdObject.fileAsset[0].open('rw'); case 22: fdObject.fdNumber = _context11.sent; console.info('case getFd number is: ' + fdObject.fdNumber); case 24: return _context11.abrupt("return", fdObject); case 25: case "end": return _context11.stop(); } } }, _callee11); })); return _getAudioFd.apply(this, arguments); } function closeFd(_x12, _x13) { return _closeFd.apply(this, arguments); } // apply permission for test hap function _closeFd() { _closeFd = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee12(fileAsset, fdNumber) { var _this7 = this; return _regenerator["default"].wrap(function _callee12$(_context12) { while (1) { switch (_context12.prev = _context12.next) { case 0: if (!(fileAsset != null)) { _context12.next = 5; break; } _context12.next = 3; return fileAsset[0].close(fdNumber).then(function () { (0, _newArrowCheck2["default"])(this, _this7); console.info('[mediaLibrary] case close fd success'); }.bind(this))["catch"](function (err) { (0, _newArrowCheck2["default"])(this, _this7); console.info('[mediaLibrary] case close fd failed'); }.bind(this)); case 3: _context12.next = 6; break; case 5: console.info('[mediaLibrary] case fileAsset is null'); case 6: case "end": return _context12.stop(); } } }, _callee12, this); })); return _closeFd.apply(this, arguments); } function applyPermission(_x14, _x15) { return _applyPermission.apply(this, arguments); } function _applyPermission() { _applyPermission = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13(applictionName, permissionNames) { var _this8 = this; var appInfo, atManager, tokenID, i; return _regenerator["default"].wrap(function _callee13$(_context13) { while (1) { switch (_context13.prev = _context13.next) { case 0: _context13.next = 2; return _ohos3["default"].getApplicationInfo(applictionName, 0, 100); case 2: appInfo = _context13.sent; atManager = _ohos2["default"].createAtManager(); if (!(atManager != null)) { _context13.next = 16; break; } tokenID = appInfo.accessTokenId; console.info('[permission] case accessTokenID is ' + tokenID); i = 0; case 8: if (!(i < permissionNames.length)) { _context13.next = 14; break; } _context13.next = 11; return atManager.grantUserGrantedPermission(tokenID, permissionNames[i], 1).then(function (result) { (0, _newArrowCheck2["default"])(this, _this8); console.info('[permission] case grantUserGrantedPermission success :' + result); }.bind(this))["catch"](function (err) { (0, _newArrowCheck2["default"])(this, _this8); console.info('[permission] case grantUserGrantedPermission failed :' + err); }.bind(this)); case 11: i++; _context13.next = 8; break; case 14: _context13.next = 17; break; case 16: console.info('[permission] case apply permission failed, createAtManager failed'); case 17: case "end": return _context13.stop(); } } }, _callee13, this); })); return _applyPermission.apply(this, arguments); } function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/List.test.js": /*!********************************************************************************************************************!*\ !*** ../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/List.test.js ***! \********************************************************************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = testsuite; var _VideoPlayerAPICallbackTestTest = _interopRequireDefault(__webpack_require__(/*! ./VideoPlayerAPICallbackTest.test.js */ "../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js")); /* * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function testsuite() { (0, _VideoPlayerAPICallbackTestTest["default"])(); } function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js": /*!******************************************************************************************************************************************!*\ !*** ../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js ***! \******************************************************************************************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = VideoPlayerAPICallbackTest; var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js")); var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js")); var _ohosMultimedia = _interopRequireDefault(requireModule("@ohos.multimedia.media")); var mediaTestBase = _interopRequireWildcard(__webpack_require__(/*! ../../../../../MediaTestBase.js */ "../../../../../../test/xts/acts/multimedia/media/media_js_standard/MediaTestBase.js")); var _hypium = __webpack_require__(/*! @ohos/hypium */ "./node_modules/@ohos/hypium/index.js"); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } /* * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function VideoPlayerAPICallbackTest() { (0, _hypium.describe)('VideoPlayerAPICallbackTest', function () { var _this4 = this; var VIDEO_SOURCE = 'H264_AAC.mp4'; var PLAY_TIME = 1000; var SEEK_TIME = 5000; var WIDTH_VALUE = 720; var HEIGHT_VALUE = 480; var DURATION_TIME = 10034; var CREATE_EVENT = 'create'; var SETURL_EVENT = 'setUrl'; var SETFDSRC_EVENT = 'setfdSrc'; var SETSURFACE_EVENT = 'setDisplaySurface'; var GETDESCRIPTION = 'getTrackDescription'; var PREPARE_EVENT = 'prepare'; var PLAY_EVENT = 'play'; var PAUSE_EVENT = 'pause'; var STOP_EVENT = 'stop'; var RESET_EVENT = 'reset'; var RELEASE_EVENT = 'release'; var SEEK_EVENT = 'seek'; var SEEK_MODE_EVENT = 'seekMode'; var SETVOLUME_EVENT = 'volume'; var SETSPEED_EVENT = 'speed'; var FINISH_EVENT = 'finish'; var ERROR_EVENT = 'error'; var END_EVENT = 'end'; var VOLUME_VALUE = 1; var SPEED_VALUE = 1; var NEXT_FRAME_TIME = 8333; var PREV_FRAME_TIME = 4166; var DELTA_TIME = 100; var surfaceID = ''; var pagePath1 = 'pages/surfaceTest/surfaceTest'; var pagePath2 = 'pages/surfaceTest2/surfaceTest2'; var pageId = 0; var fdHead = 'fd://'; var fdPath = ''; var fdNumber = 0; var events = __webpack_require__(/*! events */ "./node_modules/events/events.js"); var eventEmitter = new events.EventEmitter(); (0, _hypium.beforeAll)( /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() { var _this = this; return _regenerator["default"].wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: _context.next = 2; return mediaTestBase.getFdRead(VIDEO_SOURCE, openFileFailed).then(function (testNumber) { (0, _newArrowCheck2["default"])(this, _this); fdNumber = testNumber; fdPath = fdHead + '' + fdNumber; }.bind(this)); case 2: console.info('beforeAll case'); case 3: case "end": return _context.stop(); } } }, _callee, this); }))); (0, _hypium.beforeEach)( /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() { var _this2 = this; return _regenerator["default"].wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: _context2.next = 2; return mediaTestBase.toNewPage(pagePath1, pagePath2, pageId); case 2: pageId = (pageId + 1) % 2; _context2.next = 5; return mediaTestBase.msleepAsync(1000).then(function () { (0, _newArrowCheck2["default"])(this, _this2); }.bind(this), mediaTestBase.failureCallback)["catch"](mediaTestBase.catchCallback); case 5: surfaceID = globalThis.value; console.info('case new surfaceID is ' + surfaceID); console.info('beforeEach case'); case 8: case "end": return _context2.stop(); } } }, _callee2, this); }))); (0, _hypium.afterEach)( /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() { return _regenerator["default"].wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: _context3.next = 2; return mediaTestBase.clearRouter(); case 2: console.info('afterEach case'); case 3: case "end": return _context3.stop(); } } }, _callee3); }))); (0, _hypium.afterAll)( /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() { return _regenerator["default"].wrap(function _callee4$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: _context4.next = 2; return mediaTestBase.closeFdNumber(fdNumber); case 2: console.info('afterAll case'); case 3: case "end": return _context4.stop(); } } }, _callee4); }))); function openFileFailed() { console.info('case file fail'); } function toNextStep(videoPlayer, steps, done) { if (steps[0] == END_EVENT) { console.info('case success!!'); done(); } else { eventEmitter.emit(steps[0], videoPlayer, steps, done); } } function setOnCallback(videoPlayer, steps, done) { var _this3 = this; videoPlayer.on('playbackCompleted', function () { (0, _newArrowCheck2["default"])(this, _this3); console.info('case playbackCompleted success'); toNextStep(videoPlayer, steps, done); }.bind(this)); videoPlayer.on('bufferingUpdate', function (infoType, value) { (0, _newArrowCheck2["default"])(this, _this3); console.info('case bufferingUpdate success infoType is ' + infoType); console.info('case bufferingUpdate success value is ' + value); }.bind(this)); videoPlayer.on('startRenderFrame', function () { (0, _newArrowCheck2["default"])(this, _this3); console.info('case startRenderFrame success'); }.bind(this)); videoPlayer.on('videoSizeChanged', function (width, height) { (0, _newArrowCheck2["default"])(this, _this3); console.info('case videoSizeChanged success'); }.bind(this)); videoPlayer.on('error', function (error) { (0, _newArrowCheck2["default"])(this, _this3); console.info("case error called, errMessage is ".concat(error.message)); if (steps[0] == ERROR_EVENT) { done(); } }.bind(this)); } eventEmitter.on(CREATE_EVENT, function (videoPlayer, steps, done) { var _this5 = this; (0, _newArrowCheck2["default"])(this, _this4); steps.shift(); _ohosMultimedia["default"].createVideoPlayer(function (err, video) { (0, _newArrowCheck2["default"])(this, _this5); if (video != null) { videoPlayer = video; (0, _hypium.expect)(videoPlayer.state).assertEqual('idle'); console.info('case createVideoPlayer success!!'); toNextStep(videoPlayer, steps, done); } else if (err != null && steps[0] == ERROR_EVENT) { steps.shift(); toNextStep(videoPlayer, steps, done); } else { mediaTestBase.printError(err, done); } }.bind(this)); }.bind(this)); eventEmitter.on(SETFDSRC_EVENT, function (videoPlayer, steps, done) { (0, _newArrowCheck2["default"])(this, _this4); steps.shift(); videoPlayer.fdSrc = fileDescriptor; toNextStep(videoPlayer, steps, done); }.bind(this)); eventEmitter.on(SETURL_EVENT, function (videoPlayer, steps, done) { (0, _newArrowCheck2["default"])(this, _this4); steps.shift(); videoPlayer.url = fdPath; toNextStep(videoPlayer, steps, done); }.bind(this)); eventEmitter.on(SETSURFACE_EVENT, function (videoPlayer, steps, done) { var _this6 = this; (0, _newArrowCheck2["default"])(this, _this4); steps.shift(); videoPlayer.setDisplaySurface(surfaceID, function (err) { (0, _newArrowCheck2["default"])(this, _this6); if (err == null) { (0, _hypium.expect)(videoPlayer.state).assertEqual('idle'); console.info('case setDisplaySurface success!!'); toNextStep(videoPlayer, steps, done); } else if (err != null && steps[0] == ERROR_EVENT) { steps.shift(); toNextStep(videoPlayer, steps, done); } else { mediaTestBase.printError(err, done); } }.bind(this)); }.bind(this)); eventEmitter.on(PREPARE_EVENT, function (videoPlayer, steps, done) { var _this7 = this; (0, _newArrowCheck2["default"])(this, _this4); steps.shift(); setOnCallback(videoPlayer, steps, done); videoPlayer.prepare(function (err) { (0, _newArrowCheck2["default"])(this, _this7); if (err == null) { (0, _hypium.expect)(videoPlayer.state).assertEqual('prepared'); (0, _hypium.expect)(videoPlayer.duration).assertEqual(DURATION_TIME); (0, _hypium.expect)(videoPlayer.width).assertEqual(WIDTH_VALUE); (0, _hypium.expect)(videoPlayer.height).assertEqual(HEIGHT_VALUE); console.info('case prepare success!!'); toNextStep(videoPlayer, steps, done); } else if (err != null && steps[0] == ERROR_EVENT) { steps.shift(); toNextStep(videoPlayer, steps, done); } else { mediaTestBase.printError(err, done); } }.bind(this)); }.bind(this)); eventEmitter.on(GETDESCRIPTION, function (videoPlayer, steps, done) { var _this8 = this; (0, _newArrowCheck2["default"])(this, _this4); steps.shift(); videoPlayer.getTrackDescription(function (err, arrlist) { (0, _newArrowCheck2["default"])(this, _this8); if (err == null) { for (var i = 0; i < arrlist.length; i++) { mediaTestBase.printDescription(arrlist[i]); } toNextStep(videoPlayer, steps, done); } else if (err != null && steps[0] == ERROR_EVENT) { steps.shift(); toNextStep(videoPlayer, steps, done); } else { mediaTestBase.printError(err, done); } }.bind(this)); }.bind(this)); eventEmitter.on(PLAY_EVENT, function (videoPlayer, steps, done) { var _this9 = this; (0, _newArrowCheck2["default"])(this, _this4); steps.shift(); videoPlayer.play(function (err) { (0, _newArrowCheck2["default"])(this, _this9); if (err == null) { (0, _hypium.expect)(videoPlayer.state).assertEqual('playing'); console.info('case play success!!'); mediaTestBase.msleep(PLAY_TIME); toNextStep(videoPlayer, steps, done); } else if (err != null && steps[0] == ERROR_EVENT) { steps.shift(); toNextStep(videoPlayer, steps, done); } else { mediaTestBase.printError(err, done); } }.bind(this)); }.bind(this)); eventEmitter.on(PAUSE_EVENT, function (videoPlayer, steps, done) { var _this10 = this; (0, _newArrowCheck2["default"])(this, _this4); steps.shift(); videoPlayer.pause(function (err) { (0, _newArrowCheck2["default"])(this, _this10); if (err == null) { (0, _hypium.expect)(videoPlayer.state).assertEqual('paused'); console.info('case pause success!!'); toNextStep(videoPlayer, steps, done); } else if (err != null && steps[0] == ERROR_EVENT) { steps.shift(); toNextStep(videoPlayer, steps, done); } else { mediaTestBase.printError(err, done); } }.bind(this)); }.bind(this)); eventEmitter.on(STOP_EVENT, function (videoPlayer, steps, done) { var _this11 = this; (0, _newArrowCheck2["default"])(this, _this4); steps.shift(); videoPlayer.stop(function (err) { (0, _newArrowCheck2["default"])(this, _this11); if (err == null) { (0, _hypium.expect)(videoPlayer.state).assertEqual('stopped'); console.info('case stop success!!'); toNextStep(videoPlayer, steps, done); } else if (err != null && steps[0] == ERROR_EVENT) { steps.shift(); toNextStep(videoPlayer, steps, done); } else { mediaTestBase.printError(err, done); } }.bind(this)); }.bind(this)); eventEmitter.on(RESET_EVENT, function (videoPlayer, steps, done) { var _this12 = this; (0, _newArrowCheck2["default"])(this, _this4); steps.shift(); videoPlayer.reset(function (err) { (0, _newArrowCheck2["default"])(this, _this12); if (err == null) { (0, _hypium.expect)(videoPlayer.state).assertEqual('idle'); console.info('case reset success!!'); toNextStep(videoPlayer, steps, done); } else if (err != null && steps[0] == ERROR_EVENT) { steps.shift(); toNextStep(videoPlayer, steps, done); } else { mediaTestBase.printError(err, done); } }.bind(this)); }.bind(this)); eventEmitter.on(RELEASE_EVENT, function (videoPlayer, steps, done) { var _this13 = this; (0, _newArrowCheck2["default"])(this, _this4); steps.shift(); videoPlayer.release(function (err) { (0, _newArrowCheck2["default"])(this, _this13); if (err == null) { console.info('case release success!!'); toNextStep(videoPlayer, steps, done); } else if (err != null && steps[0] == ERROR_EVENT) { steps.shift(); toNextStep(videoPlayer, steps, done); } else { mediaTestBase.printError(err, done); } }.bind(this)); }.bind(this)); eventEmitter.on(SEEK_EVENT, function (videoPlayer, steps, done) { var _this14 = this; (0, _newArrowCheck2["default"])(this, _this4); var seekTime = steps[1]; steps.shift(); steps.shift(); videoPlayer.seek(seekTime, function (err, seekDoneTime) { (0, _newArrowCheck2["default"])(this, _this14); if (err == null) { console.info('case seek success and seekDoneTime is ' + seekDoneTime); toNextStep(videoPlayer, steps, done); } else if (err != null && steps[0] == ERROR_EVENT) { steps.shift(); toNextStep(videoPlayer, steps, done); } else { mediaTestBase.printError(err, done); } }.bind(this)); }.bind(this)); function checkSeekTime(seekMode, seekTime, seekDoneTime) { switch (seekMode) { case _ohosMultimedia["default"].SeekMode.SEEK_NEXT_SYNC: if (seekTime == 0) { (0, _hypium.expect)(seekDoneTime + DELTA_TIME).assertClose(DELTA_TIME, DELTA_TIME); } else if (seekTime == DURATION_TIME) { (0, _hypium.expect)(seekDoneTime).assertClose(DURATION_TIME, DELTA_TIME); } else { (0, _hypium.expect)(seekDoneTime).assertClose(NEXT_FRAME_TIME, DELTA_TIME); } break; case _ohosMultimedia["default"].SeekMode.SEEK_PREV_SYNC: if (seekTime == 0) { (0, _hypium.expect)(seekDoneTime + DELTA_TIME).assertClose(DELTA_TIME, DELTA_TIME); } else if (seekTime == DURATION_TIME) { (0, _hypium.expect)(seekDoneTime).assertClose(NEXT_FRAME_TIME, DELTA_TIME); } else { (0, _hypium.expect)(seekDoneTime).assertClose(PREV_FRAME_TIME, DELTA_TIME); } break; default: break; } } eventEmitter.on(SEEK_MODE_EVENT, function (videoPlayer, steps, done) { var _this15 = this; (0, _newArrowCheck2["default"])(this, _this4); var seekTime = steps[1]; steps.shift(); steps.shift(); videoPlayer.seek(seekTime, _ohosMultimedia["default"].SeekMode.SEEK_NEXT_SYNC, function (err, seekDoneTime) { (0, _newArrowCheck2["default"])(this, _this15); if (err == null) { checkSeekTime(_ohosMultimedia["default"].SeekMode.SEEK_NEXT_SYNC, seekTime, seekDoneTime); console.info('case seek success and seekDoneTime is ' + seekDoneTime); toNextStep(videoPlayer, steps, done); } else if (err != null && steps[0] == ERROR_EVENT) { steps.shift(); toNextStep(videoPlayer, steps, done); } else { mediaTestBase.printError(err, done); } }.bind(this)); }.bind(this)); eventEmitter.on(SETVOLUME_EVENT, function (videoPlayer, steps, done) { var _this16 = this; (0, _newArrowCheck2["default"])(this, _this4); var volumeValue = steps[1]; steps.shift(); steps.shift(); videoPlayer.setVolume(volumeValue, function (err) { (0, _newArrowCheck2["default"])(this, _this16); if (err == null) { console.info('case setVolume success'); toNextStep(videoPlayer, steps, done); } else if (err != null && steps[0] == ERROR_EVENT) { steps.shift(); toNextStep(videoPlayer, steps, done); } else { mediaTestBase.printError(err, done); } }.bind(this)); }.bind(this)); eventEmitter.on(SETSPEED_EVENT, function (videoPlayer, steps, done) { var _this17 = this; (0, _newArrowCheck2["default"])(this, _this4); var speedValue = steps[1]; steps.shift(); steps.shift(); videoPlayer.setSpeed(speedValue, function (err, speedMode) { (0, _newArrowCheck2["default"])(this, _this17); if (err == null) { (0, _hypium.expect)(speedValue).assertEqual(speedMode); console.info('case setSpeed success and speedMode is ' + speedMode); toNextStep(videoPlayer, steps, done); } else if (err != null && steps[0] == ERROR_EVENT) { steps.shift(); toNextStep(videoPlayer, steps, done); } else { mediaTestBase.printError(err, done); } }.bind(this)); }.bind(this)); eventEmitter.on(FINISH_EVENT, function (videoPlayer, steps, done) { (0, _newArrowCheck2["default"])(this, _this4); steps.shift(); console.info('case wait for playbackCompleted'); }.bind(this)); /* * * @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_0200 * @tc.name : 02.prepare->play * @tc.desc : Video playback control test * @tc.size : MediumTest * @tc.type : Function * @tc.level : Level2 */ (0, _hypium.it)('SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_0200', 0, /*#__PURE__*/function () { var _ref5 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(done) { var videoPlayer, mySteps; return _regenerator["default"].wrap(function _callee5$(_context5) { while (1) { switch (_context5.prev = _context5.next) { case 0: videoPlayer = null; mySteps = new Array(CREATE_EVENT, SETURL_EVENT, SETSURFACE_EVENT, PREPARE_EVENT, PLAY_EVENT, RELEASE_EVENT, END_EVENT); eventEmitter.emit(mySteps[0], videoPlayer, mySteps, done); case 3: case "end": return _context5.stop(); } } }, _callee5); })); return function (_x) { return _ref5.apply(this, arguments); }; }()); }); } function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=/home/redjie/ohos_/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/app.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/app.js": /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=/home/redjie/ohos_/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/app.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/app.js ***! \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { module.exports = function(module, exports, $app_require$){"use strict"; var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _ohosApplication = _interopRequireDefault(requireModule("@ohos.application.abilityDelegatorRegistry")); var _hypium = __webpack_require__(/*! @ohos/hypium */ "./node_modules/@ohos/hypium/index.js"); var _List = _interopRequireDefault(__webpack_require__(/*! ../test/List.test */ "../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/List.test.js")); var _default = { onCreate: function onCreate() { var _this = this; console.info('TestApplication onCreate'); setTimeout(function () { (0, _newArrowCheck2["default"])(this, _this); var abilityDelegator = _ohosApplication["default"].getAbilityDelegator(); var abilityDelegatorArguments = _ohosApplication["default"].getArguments(); console.info('start run testcase!!!'); _hypium.Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, _List["default"]); }.bind(this), 100); }, onDestroy: function onDestroy() { console.info("TestApplication onDestroy"); } }; exports["default"] = _default; ; (exports["default"] || module.exports).manifest = __webpack_require__(/*! !!../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/manifest-plugin.js!../../../../../../../../../../../../../../tmp/tmpayaxur91/manifest.json */ "./lib/manifest-plugin.js!../../../../../../../../../tmp/tmpayaxur91/manifest.json"); function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } } /* generated by ace-loader */ /***/ }), /***/ "./lib/manifest-plugin.js!../../../../../../../../../tmp/tmpayaxur91/manifest.json": /*!*****************************************************************************************!*\ !*** ./lib/manifest-plugin.js!../../../../../../../../../tmp/tmpayaxur91/manifest.json ***! \*****************************************************************************************/ /***/ ((module) => { "use strict"; module.exports = JSON.parse('{"appID":"ohos.acts.multimedia.video.videoplayer","appName":"$string:MainAbility_label","deviceType":["default","tablet","tv","wearable"],"pages":["pages/index/index","pages/surfaceTest/surfaceTest","pages/surfaceTest2/surfaceTest2"],"versionCode":1000000,"versionName":"1.0.0","window":{"autoDesignWidth":true,"designWidth":720}}'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"] ? globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"]) { /******/ const length = globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"][0][1][moduleId] || /******/ globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = __webpack_modules__; /******/ /************************************************************************/ /******/ /* webpack/runtime/chunk loaded */ /******/ (() => { /******/ var deferred = []; /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { /******/ if(chunkIds) { /******/ priority = priority || 0; /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; /******/ deferred[i] = [chunkIds, fn, priority]; /******/ return; /******/ } /******/ var notFulfilled = Infinity; /******/ for (var i = 0; i < deferred.length; i++) { /******/ var [chunkIds, fn, priority] = deferred[i]; /******/ var fulfilled = true; /******/ for (var j = 0; j < chunkIds.length; j++) { /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { /******/ chunkIds.splice(j--, 1); /******/ } else { /******/ fulfilled = false; /******/ if(priority < notFulfilled) notFulfilled = priority; /******/ } /******/ } /******/ if(fulfilled) { /******/ deferred.splice(i--, 1) /******/ var r = fn(); /******/ if (r !== undefined) result = r; /******/ } /******/ } /******/ return result; /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /******/ /* webpack/runtime/jsonp chunk loading */ /******/ (() => { /******/ // no baseURI /******/ /******/ // object to store loaded and loading chunks /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { /******/ "./app": 0 /******/ }; /******/ /******/ // no chunk on demand loading /******/ /******/ // no prefetching /******/ /******/ // no preloaded /******/ /******/ // no HMR /******/ /******/ // no HMR manifest /******/ /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); /******/ /******/ // install a JSONP callback for chunk loading /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback /******/ var moduleId, chunkId, i = 0; /******/ for(moduleId in moreModules) { /******/ if(__webpack_require__.o(moreModules, moduleId)) { /******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; /******/ } /******/ } /******/ if(runtime) var result = runtime(__webpack_require__); /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ installedChunks[chunkId][0](); /******/ } /******/ installedChunks[chunkIds[i]] = 0; /******/ } /******/ return __webpack_require__.O(result); /******/ } /******/ /******/ var chunkLoadingGlobal = globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"] = globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"] || []; /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); /******/ })(); /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module depends on other loaded chunks and execution need to be delayed /******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["vendors"], () => (__webpack_require__("../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/app.js?entry"))) /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); /******/ _cdc709c54327d7ba73517c4d0d8a5a7b = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=app.js.mapPK !:38k00%assets/js/MainAbility/i18n/en-US.json{"strings": {"hello": "Hello","world": "World"}}PK !:鼞22%assets/js/MainAbility/i18n/zh-CN.json{"strings": {"hello": "您好","world": "世界"}}PK !:kSS#assets/js/MainAbility/manifest.json{"appID": "ohos.acts.multimedia.video.videoplayer","appName": "$string:MainAbility_label","deviceType": ["default","tablet","tv","wearable"],"pages": ["pages/index/index","pages/surfaceTest/surfaceTest","pages/surfaceTest2/surfaceTest2"],"versionCode": 1000000,"versionName": "1.0.0","window": {"autoDesignWidth": true,"designWidth": 720}}PK !:$[3!!+assets/js/MainAbility/pages/index/index.abcPANDA; !H.<!LHa q 2 K 6K / M { *3VaH!88 q H ^ C L 1 ( y g 0 . , /L_ESCallTypeAnnotation;'L_ESTypeAnnotation; global__appProto__OffscreenCanvas Image$app_define$ renderbootstrap define#2#)@app-component/index./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/index/index.js./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/index/index.hml styletemplateindexOf Stringq__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7bisCommonModue length#5##4#forEachFor VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.$app_require$ some onShow#1# onInit'__webpack_require__default__esModuledefinePropertyonReady@app-module/ Object#7#strings.worldsystemplugin info ?name=strings.hello valueincludes$t#9#substringconsole#3#requireNapi@ titleexports @MEDIA$app_bootstrap$ datareplace$1@[^.]+.([^.]+) splitrequireuse strictdecodeURI___mainEntry___ ErrorchildrenonShow finish .title%20 donehistory.containerohosplugin access attrundefined @ohos#6# return#8#_descriptor test. #11# next objectclassList assign./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/index/index.css warn5For VM objects, attribute #10#register{ value must not be a function. Change the value to an object.[webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7bfunctionrequireModule'L_ESTypeInfoRecord;H R typeFlag!typeSummaryIndexfunc_main_0L_GLOBAL;Cq ^_t tC a!mez WElz00 j d   !#/home/redjie/ohos_/out/rk3568/obj/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/module_video_player_js_hap/assets/MainAbility/pages/index/index_.js 5          flexDirection columnjustifyContent centeralignItems width 100% height  conditionyscreen and (device-type: phone) and (orientation: landscape)= G fontSize 60pxUp v  typediv    debugLine)pages/index/index:16classNamecontainer Up   text   s0)pages/index/index:17sixsystem.routersystem.appsystem.prompt)system.configurationsystem.imagesystem.device#system.mediaqueryohos.animatorsystem.gridsystem.resourceM = 7=DM? 40px color#000000opacity0s publicprotectedprivatez  {screen and (device-type: tablet) and (orientation: landscape)= D 100px `Escreen and (device-type: wearable)= = 28px#FFFFFF  59screen and (device-type: tv)"@PWit backgroundImage9/common/images/Wallpaper.pngbackgroundSize cover!backgroundRepeatno-repeat%backgroundPosition= D=callType77 sv_xdmmwwwwwwmwmwnw,ww_ w~Gydmm_m i``` mm`;mdm`;dmm mj!Gmj!Gm j!Gmj_ XjX[djXw~-w~-wxzwzjxxwzj!xq w~.ww3-3-$"kwQQLwQQL-#wQQL, sUw \ d_w~-wL ~- wzjL 3- wzjiyzM w~-?sG w  \!- "~-G ~-wM jL wzj!   \wz _xz+ wA\xs iiy5iyiiySiiySiiy5i ySi i ySyxzu wA!\sGs!GsGws  djL 4.jswjwjL  \xjL :3-hjwi yMM"4-9sUwX^ \djLo i i yUfyii_ y0yUfySyxzd  fw7 w p  \ \~-9j wJ  \ Gw} \scG [3-"~-(}fw\~- wA [3-"~.}fw\~.sA w  \ w\ < w& -ow0    L  ~-"~-wr3 - \ < "$" 3-wr3 -\  [3- w [3.s w  \ w\ < w& -ow0    L  ~-"~-wr3 - \ < "$" 3-wr3 -\  [3- JJ d_mmswi    \xiiy_ y_y_yxw- wz mfjw~-Gw}_  \~-#s Z "Wjw~/~->jxjxw_  \  z z z z z z z z z     } s  p      N  &=OK$ok)} p       }        -       %!    k m g          0# "    q    | |   k l l   l   ! &(&,.,35; x3 @B@ e% s g     _ _       0    "/      k K } m K   QRXW[\_\cby[Z wQ  iNz{{+|+|!80$9@T"T"  N   ^ k   \        \    ?qssvwx{~ *    [w $ m !@wPK !:ҺZj3j3*assets/js/MainAbility/pages/index/index.jsvar _cdc709c54327d7ba73517c4d0d8a5a7b; /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/index/index.css": /*!*****************************************************************************************************************************************************************!*\ !*** ./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/index/index.css ***! \*****************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = { ".container": { "flexDirection": "column", "justifyContent": "center", "alignItems": "center", "width": "100%", "height": "100%" }, ".title": { "fontSize": "40px", "color": "#000000", "opacity": 0.9 }, "@MEDIA": [ { "condition": "screen and (device-type: tablet) and (orientation: landscape)", ".title": { "fontSize": "100px" } }, { "condition": "screen and (device-type: wearable)", ".title": { "fontSize": "28px", "color": "#FFFFFF" } }, { "condition": "screen and (device-type: tv)", ".container": { "backgroundImage": "/common/images/Wallpaper.png", "backgroundSize": "cover", "backgroundRepeat": "no-repeat", "backgroundPosition": "center" }, ".title": { "fontSize": "100px", "color": "#FFFFFF" } }, { "condition": "screen and (device-type: phone) and (orientation: landscape)", ".title": { "fontSize": "60px" } } ] } /***/ }), /***/ "./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/index/index.hml": /*!********************************************************************************************************************************************************************!*\ !*** ./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/index/index.hml ***! \********************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = { "attr": { "debugLine": "pages/index/index:16", "className": "container" }, "type": "div", "classList": [ "container" ], "children": [ { "attr": { "debugLine": "pages/index/index:17", "className": "title", "value": function () {return (this.$t('strings.hello'))+ decodeURI('') +decodeURI('%20')+ decodeURI('') +(this.title)} }, "type": "text", "classList": [ "title" ] } ] } /***/ }), /***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/index/index.js": /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/index/index.js ***! \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = function(module, exports, $app_require$){"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _default = { data: { title: "" }, onInit: function onInit() { this.title = this.$t('strings.world'); }, onShow: function onShow() { console.info('onShow finish'); }, onReady: function onReady() {} }; exports["default"] = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } var moduleOwn = exports.default || module.exports; var accessors = ['public', 'protected', 'private']; if (moduleOwn.data && accessors.some(function (acc) { return moduleOwn[acc]; })) { throw new Error('For VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.'); } else if (!moduleOwn.data) { moduleOwn.data = {}; moduleOwn._descriptor = {}; accessors.forEach(function(acc) { var accType = typeof moduleOwn[acc]; if (accType === 'object') { moduleOwn.data = Object.assign(moduleOwn.data, moduleOwn[acc]); for (var name in moduleOwn[acc]) { moduleOwn._descriptor[name] = {access : acc}; } } else if (accType === 'function') { console.warn('For VM objects, attribute ' + acc + ' value must not be a function. Change the value to an object.'); } }); }} /* generated by ace-loader */ /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"] ? globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"]) { /******/ const length = globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"][0][1][moduleId] || /******/ globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { /*!******************************************************************************************************************************************!*\ !*** ../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/index/index.hml?entry ***! \******************************************************************************************************************************************/ var $app_template$ = __webpack_require__(/*! !!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/json.js!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/template.js!./index.hml */ "./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/index/index.hml") var $app_style$ = __webpack_require__(/*! !!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/json.js!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/style.js!./index.css */ "./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/index/index.css") var $app_script$ = __webpack_require__(/*! !!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/script.js!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/babel-loader?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/resource-reference-script.js!./index.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/index/index.js") $app_define$('@app-component/index', [], function($app_require$, $app_exports$, $app_module$) { $app_script$($app_module$, $app_exports$, $app_require$) if ($app_exports$.__esModule && $app_exports$.default) { $app_module$.exports = $app_exports$.default } $app_module$.exports.template = $app_template$ $app_module$.exports.style = $app_style$ }) $app_bootstrap$('@app-component/index',undefined,undefined) })(); _cdc709c54327d7ba73517c4d0d8a5a7b = __webpack_exports__; /******/ })() ; //# sourceMappingURL=index.js.mapPK !:JV 1 17assets/js/MainAbility/pages/surfaceTest/surfaceTest.abcPANDA*-3 1.<0 L( Lez)IgqzI]m@KV}Hh 1tt ( $ 2  q ? Z M h u  V; DBFH/L_ESCallTypeAnnotation;'L_ESTypeAnnotation;___mainEntry___OffscreenCanvas Imagehistory$app_require$$app_bootstrap$$app_define$ renderregisterbootstrap define #17# #16# #15##8##2# #11#classList done next.require test#6# @ohosundefined splitj@exports$1replace titleincludes valuesubstring attrdefault assign'__webpack_require__$t__esModule5@app-component/surfaceTest Object object@app-module/onReadyo../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.hml?entry access./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.css somerequireNapi #18#@[^.]+.([^.]+)template Error./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.hmlforEach style#4# @MEDIA #13#ohosplugin onInit .title eventschildren returnsystempluginstrings.world#7# splice$element./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.jsXcomponentId2function-getXComponentSurfaceIdrequireModule[webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7bconsole warn#1#5For VM objects, attribute every{ value must not be a function. Change the value to an object._descriptor #10#use strict}./node_modules/@babel/runtime/helpers/interopRequireDefault.jsdefinePropertyE./node_modules/deccjsunit/index.js String#9# #12#@ohos.fileio onShow bindLoadXcomponent2 call#5##3#)webpackJsonpCallbackFor VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public. data lengthisCommonModue.containerq__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b keys ?name=Oprototypem #19# #14# globalindexOfhasOwnProperty__appProto__ push'L_ESTypeInfoRecord;_ i typeFlag!typeSummaryIndexfunc_main_0L_GLOBAL;,R<2, ,/B- +-!.M"/ j) 0 "@/W9)/ K,, )C0G)0A+;U++ (*&/ f,Yf,{ f,s E&|/A+  1.- #'//home/redjie/ohos_/out/rk3568/obj/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/module_video_player_js_hap/assets/MainAbility/pages/surfaceTest/surfaceTest_.js  flexDirection columnjustifyContent centeralignItems width 100% height conditionyscreen and (device-type: phone) and (orientation: landscape)WafontSize 60px] typedivdebugLineApages/surfaceTest/surfaceTest:16classNamecontainer ] text =_Apages/surfaceTest/surfaceTest:17!VideoPlayer Testxcomponentid Apages/surfaceTest/surfaceTest:21surface W*07@? 40px color#000000opacityW load("272I2\2 720px 480pxborderTopColor#FF0000!borderRightColor#borderBottomColorborderLeftColorborderTopWidth5px!borderRightWidth#borderBottomWidthborderLeftWidth"/system.routersystem.appsystem.prompt)system.configurationsystem.imagesystem.device#system.mediaqueryohos.animatorsystem.gridsystem.resourcee  Y  publicprotectedprivate?./pages/surfaceTest/surfaceTest {screen and (device-type: tablet) and (orientation: landscape)eqvendorsW 100pxEscreen and (device-type: wearable)W0 28px#FFFFFF   9screen and (device-type: tv)UfbackgroundImage9/common/images/Wallpaper.pngbackgroundSize cover!backgroundRepeatno-repeat%backgroundPositionW0callType77 s _xdmmw3www(wwwmwmwwww_w Gdm`; dmm_m i` e```mmj jx `;` ;`;j w f` \j w \mdj!eGdjLd  fw w   \ \~-9jK w  \ Gw} \sG 3-"~-(}w\~- w 3-"~.}w\~.s w t \ wn\ < wh -ow    L  ~-"~-w3 - \ < "$" 3-w3 -\  3- w 3.s w t \ wn\ < wh -ow    L  ~-"~-w3 - \ < "$" 3-w3 -\  3- JJ|dmm mGmGm Gmj_XjX7 s;w w w \  iiy iyiiySiiySiiy i ySi i ySyxdj!`xb[djXw~-w~-wxwjxwj!x i i yfy]iiyfy]SiiyiyiySyx djL C4.js;wjwe jL  \xe jL :3-hjwi yM"4-9sw \ d_ w ~-w L ~- wjL 3- wjiyM w ~-?s G w    \!- "~-G ~-w M jL wj!   \wE w\w)\xd_mmj Gs;wT i     \ xjd G GGiiye _y_y _ yY_y xw- wmfjwe ~-Gw_   \ ~-#s  Z "Wjwe ~/~->jxe jxw_  \ dm_xdmmj~.- "j wk  # -"~-nj  L Q  # -"~-;j  j   L M  /  #j    jS S S  M  j wk ! .j  L  wn J wh 3- w "mJ wh 3- w "J wh 3- w " 4- ">  >  m j j wk ! .  4 -"( - $ -"" ~-vs;w  j"w \ w ` \ ~-3j w j / m  \ " ! -j . m #~-Bj w  /   \  ;  3 - .  #o wP~.wPwk 3-3-$"kwPQQLwPQQL-#wPQQL+ w\xd  wn J wh 3- w "J wh 3- w "J wh 3- w " 4- ">  >  : 3-O j" wb \ ~-*j"w   LM "~- j" G ~-  G   wk ! .  L j" wb j  \ ~-0j  L ~-j L  Q \ j L M  .  #aj" w  \ Ai-dmmj!` x 7dj#w LjjL\'djL4- dmimj!w `x`wP-xPww  \\w w" w \ \x"   z z z z z z z z z     | sp  p           z   z @0,=ie<~) 7 | |   iNz{{+|+|!80$9@T"T"       (W # }   k l l   l   !323:@B@FHFMOU xM Z\Z e? s2 M   }      #%  k K } K   k    (klrquv}|yu  u tt wk       0    "/     k m g          0# "         ~  N    ^   k   \        \    R *      N  ~ {MMMk<5$1{(r    -       %!  ~ z30(1"{   }    $ }                \     ,      0,/a/++c,.N..+,-r--//80X0q,,*PK !:zŐ!!J!J6assets/js/MainAbility/pages/surfaceTest/surfaceTest.jsvar _cdc709c54327d7ba73517c4d0d8a5a7b; /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.hml?entry": /*!******************************************************************************************************************************************************!*\ !*** ../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.hml?entry ***! \******************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { var $app_template$ = __webpack_require__(/*! !!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/json.js!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/template.js!./surfaceTest.hml */ "./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.hml") var $app_style$ = __webpack_require__(/*! !!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/json.js!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/style.js!./surfaceTest.css */ "./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.css") var $app_script$ = __webpack_require__(/*! !!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/script.js!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/babel-loader?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/resource-reference-script.js!./surfaceTest.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.js") $app_define$('@app-component/surfaceTest', [], function($app_require$, $app_exports$, $app_module$) { $app_script$($app_module$, $app_exports$, $app_require$) if ($app_exports$.__esModule && $app_exports$.default) { $app_module$.exports = $app_exports$.default } $app_module$.exports.template = $app_template$ $app_module$.exports.style = $app_style$ }) $app_bootstrap$('@app-component/surfaceTest',undefined,undefined) /***/ }), /***/ "./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.css": /*!*****************************************************************************************************************************************************************************!*\ !*** ./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.css ***! \*****************************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = { ".container": { "flexDirection": "column", "justifyContent": "center", "alignItems": "center", "width": "100%", "height": "100%" }, ".title": { "fontSize": "40px", "color": "#000000", "opacity": 0.9 }, "@MEDIA": [ { "condition": "screen and (device-type: tablet) and (orientation: landscape)", ".title": { "fontSize": "100px" } }, { "condition": "screen and (device-type: wearable)", ".title": { "fontSize": "28px", "color": "#FFFFFF" } }, { "condition": "screen and (device-type: tv)", ".container": { "backgroundImage": "/common/images/Wallpaper.png", "backgroundSize": "cover", "backgroundRepeat": "no-repeat", "backgroundPosition": "center" }, ".title": { "fontSize": "100px", "color": "#FFFFFF" } }, { "condition": "screen and (device-type: phone) and (orientation: landscape)", ".title": { "fontSize": "60px" } } ] } /***/ }), /***/ "./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.hml": /*!********************************************************************************************************************************************************************************!*\ !*** ./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.hml ***! \********************************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = { "attr": { "debugLine": "pages/surfaceTest/surfaceTest:16", "className": "container" }, "type": "div", "classList": [ "container" ], "children": [ { "attr": { "debugLine": "pages/surfaceTest/surfaceTest:17", "className": "title", "value": "VideoPlayer Test" }, "type": "text", "classList": [ "title" ] }, { "attr": { "debugLine": "pages/surfaceTest/surfaceTest:21", "id": "XcomponentId2", "type": "surface" }, "type": "xcomponent", "id": "XcomponentId2", "events": { "load": "LoadXcomponent2" }, "style": { "width": "720px", "height": "480px", "borderTopColor": "#FF0000", "borderRightColor": "#FF0000", "borderBottomColor": "#FF0000", "borderLeftColor": "#FF0000", "borderTopWidth": "5px", "borderRightWidth": "5px", "borderBottomWidth": "5px", "borderLeftWidth": "5px" } } ] } /***/ }), /***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.js": /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.js ***! \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { module.exports = function(module, exports, $app_require$){"use strict"; var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _index = __webpack_require__(/*! deccjsunit/index */ "./node_modules/deccjsunit/index.js"); var _ohos = _interopRequireDefault(requireModule("@ohos.fileio")); var _default = { data: { title: "" }, onInit: function onInit() { this.title = this.$t('strings.world'); }, onShow: function onShow() {}, onReady: function onReady() {}, LoadXcomponent2: function LoadXcomponent2() { globalThis.value = this.$element('XcomponentId2').getXComponentSurfaceId(); } }; exports["default"] = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } var moduleOwn = exports.default || module.exports; var accessors = ['public', 'protected', 'private']; if (moduleOwn.data && accessors.some(function (acc) { return moduleOwn[acc]; })) { throw new Error('For VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.'); } else if (!moduleOwn.data) { moduleOwn.data = {}; moduleOwn._descriptor = {}; accessors.forEach(function(acc) { var accType = typeof moduleOwn[acc]; if (accType === 'object') { moduleOwn.data = Object.assign(moduleOwn.data, moduleOwn[acc]); for (var name in moduleOwn[acc]) { moduleOwn._descriptor[name] = {access : acc}; } } else if (accType === 'function') { console.warn('For VM objects, attribute ' + acc + ' value must not be a function. Change the value to an object.'); } }); }} /* generated by ace-loader */ /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"] ? globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"]) { /******/ const length = globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"][0][1][moduleId] || /******/ globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = __webpack_modules__; /******/ /************************************************************************/ /******/ /* webpack/runtime/chunk loaded */ /******/ (() => { /******/ var deferred = []; /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { /******/ if(chunkIds) { /******/ priority = priority || 0; /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; /******/ deferred[i] = [chunkIds, fn, priority]; /******/ return; /******/ } /******/ var notFulfilled = Infinity; /******/ for (var i = 0; i < deferred.length; i++) { /******/ var [chunkIds, fn, priority] = deferred[i]; /******/ var fulfilled = true; /******/ for (var j = 0; j < chunkIds.length; j++) { /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { /******/ chunkIds.splice(j--, 1); /******/ } else { /******/ fulfilled = false; /******/ if(priority < notFulfilled) notFulfilled = priority; /******/ } /******/ } /******/ if(fulfilled) { /******/ deferred.splice(i--, 1) /******/ var r = fn(); /******/ if (r !== undefined) result = r; /******/ } /******/ } /******/ return result; /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /******/ /* webpack/runtime/jsonp chunk loading */ /******/ (() => { /******/ // no baseURI /******/ /******/ // object to store loaded and loading chunks /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { /******/ "./pages/surfaceTest/surfaceTest": 0 /******/ }; /******/ /******/ // no chunk on demand loading /******/ /******/ // no prefetching /******/ /******/ // no preloaded /******/ /******/ // no HMR /******/ /******/ // no HMR manifest /******/ /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); /******/ /******/ // install a JSONP callback for chunk loading /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback /******/ var moduleId, chunkId, i = 0; /******/ for(moduleId in moreModules) { /******/ if(__webpack_require__.o(moreModules, moduleId)) { /******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; /******/ } /******/ } /******/ if(runtime) var result = runtime(__webpack_require__); /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ installedChunks[chunkId][0](); /******/ } /******/ installedChunks[chunkIds[i]] = 0; /******/ } /******/ return __webpack_require__.O(result); /******/ } /******/ /******/ var chunkLoadingGlobal = globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"] = globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"] || []; /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); /******/ })(); /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module depends on other loaded chunks and execution need to be delayed /******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["vendors"], () => (__webpack_require__("../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest/surfaceTest.hml?entry"))) /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); /******/ _cdc709c54327d7ba73517c4d0d8a5a7b = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=surfaceTest.js.mapPK !:^x 1 19assets/js/MainAbility/pages/surfaceTest2/surfaceTest2.abcPANDAhg) 1.<0 L1 Xq=Us)[oR]h\| 1tt1 -  q c V  ~  z D; _H ) TPNR/L_ESCallTypeAnnotation;'L_ESTypeAnnotation;___mainEntry___OffscreenCanvas Imagehistory$app_require$$app_bootstrap$$app_define$ renderregisterbootstrap define #17# #16# #15##2# #11#classList done next.#8#./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.cssrequire test#6# @ohosundefined ObjectonReadyo splitj@exports titleincludes Error value$1replace../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.hml?entry./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.js@app-module/ objectdefault assign'__webpack_require__$tsubstring attr./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.hml access__esModulerequireNapi #18#@[^.]+.([^.]+)template .title#4# @MEDIA #13#ohosplugin onInit7@app-component/surfaceTest2 eventschildren returnsystempluginstrings.world#7# splice$elementfunction-getXComponentSurfaceIdrequireModule[webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7bXcomponentId3console warn#1#5For VM objects, attribute every{ value must not be a function. Change the value to an object.LoadXcomponent3_descriptor #10#use strict}./node_modules/@babel/runtime/helpers/interopRequireDefault.jsdefinePropertyE./node_modules/deccjsunit/index.js String#9# #12#@ohos.fileio onShow bind some#5##3#)webpackJsonpCallbackFor VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public. styleforEach data lengthisCommonModue.containerq__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b keys ?name=Oprototypem #19# #14# globalindexOfhasOwnProperty call__appProto__ push'L_ESTypeInfoRecord;h r typeFlag!typeSummaryIndexfunc_main_0L_GLOBAL;-M+ EC-os- +0 /." /r#o/ e*0 #/R4*l0 H,|v- *0GT,Afg+;^+G<* T,'0 ;-O;- -v @'/%+ ,O . (F0/home/redjie/ohos_/out/rk3568/obj/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/module_video_player_js_hap/assets/MainAbility/pages/surfaceTest2/surfaceTest2_.js  gtflexDirection columnjustifyContent centeralignItems width 100% height gconditionyscreen and (device-type: phone) and (orientation: landscape)cmfontSize 60pxsX typedivdebugLineEpages/surfaceTest2/surfaceTest2:16classNamecontainer s#X text KqoEpages/surfaceTest2/surfaceTest2:17!VideoPlayer TestqscX xcomponentid c Epages/surfaceTest2/surfaceTest2:21surface c<BIR? 40px color#000000opacityi load(#4DID[DnD 720px 480pxborderTopColor#FF0000!borderRightColor#borderBottomColorborderLeftColorborderTopWidth5px!borderRightWidth#borderBottomWidthborderLeftWidth%4Asystem.routersystem.appsystem.prompt)system.configurationsystem.imagesystem.device#system.mediaqueryohos.animatorsystem.gridsystem.resource&h  Oq publicprotectedprivatehC./pages/surfaceTest2/surfaceTest2 g{screen and (device-type: tablet) and (orientation: landscape)wy0vendorsc 100px gEscreen and (device-type: wearable)cB 28px#FFFFFF   g9screen and (device-type: tv)izbackgroundImage9/common/images/Wallpaper.pngbackgroundSize cover!backgroundRepeatno-repeat%backgroundPositioncBcallType77 s _ xdm`; dmm_m i``w` y`0mmj jx `;`;` ;j w f` \j w \mdj!GdjLd  fwx w e  \ \~-9j( wh  \ Gw}M \s:G <3-"~-(}5w*\~- w <3-"~.}5w*\~.s w[ o \ wi\ < wc -ow    L  ~-"~-w3 - \ < "$" 3-w3 -\  <3- w <3.s w[ o \ wi\ < wc -ow    L  ~-"~-w3 - \ < "$" 3-w3 -\  <3- JJ|dmm myGmwGm 0Gmj_XjX7 sGw w w \dmmw3w!w(wwwmwmwwww_w GE wc\w \x dmimj!w `xb`w4-x4w_ w  \\w w+ w \ \x+   iiy iygiiygSiiygSiiy i ygSi i ygSytxhdj!`xX[djXw.~-w>~-w>xhwhjx]whj!xX  i i ysfyXiiysfyXSiiysiyiyX Syxh djL 64.jsGwGjwh jL  \xh jL :3-hjwi y&M"4-9srw{ \ d_ w ~-w L ~- whjL 3- whjiyhM w ~-?s G w    \!- "~-G ~-w M jL whj!   \whd_mmj GsGwX .i     \ x>jh G GGiiyh _ y_y _yO_yx>w>- whmfjwh ~-Gw _   \ ~-#s  Z "Wjwh ~/~->jxh jxw_ _  \ dm_xhdmmj~.- "j wn  # -"~-nj  L Q  # -"~-;j  j   L M  /  #j    jS S S  M  j wn ! .j  L  wi J wc 3- w "mJ wc 3- w "J wc 3- w " 4- ">  >  m j j wn ! .  4 -"( - $ -"" ~-vsGw  j"w \ w ` \ ~-3j w j / m  \ " ! -j . m #~-Bj w  /   \  ;  3 - .  #o w4~.w4wn 3-3-$"kw4QQLw4QQL-#w4QQL+ wd\xqd  wi J wc 3- w "J wc 3- w "J wc 3- w " 4- ">  >  : 3-O j" wX \ ~-*j"w   LM "~- j" G ~-  G   wn ! .  L j" wX j  \ ~-0j  L ~-j L  Q \ j L M  .  #aj" w  \ Ai-dmmj!`x 7dj#w LjjL\'djL4-p  p           z   z @0,=ie<~) 7 | |   iNz{{+|+|!80$9@T"T"       (W # }  z z z z z z z z z     | s        ~          \     ,         k l l   l   !323:@B@FHFMOU xM Z\Z e? s2 M   }      #%  k K } K   k    (klrquv}|yu  u tt wk       0    "/     k m g          0# "   N    ^   k   \        \    R *      N  ~ {MMMk<5$1{(r    -       %!  ~ z30(1"{   }    $ }      l-0c///z++0*--+-,w,,--'0`0.Y..PK !:nWJWJ8assets/js/MainAbility/pages/surfaceTest2/surfaceTest2.jsvar _cdc709c54327d7ba73517c4d0d8a5a7b; /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.hml?entry": /*!********************************************************************************************************************************************************!*\ !*** ../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.hml?entry ***! \********************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { var $app_template$ = __webpack_require__(/*! !!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/json.js!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/template.js!./surfaceTest2.hml */ "./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.hml") var $app_style$ = __webpack_require__(/*! !!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/json.js!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/style.js!./surfaceTest2.css */ "./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.css") var $app_script$ = __webpack_require__(/*! !!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/script.js!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/babel-loader?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/resource-reference-script.js!./surfaceTest2.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.js") $app_define$('@app-component/surfaceTest2', [], function($app_require$, $app_exports$, $app_module$) { $app_script$($app_module$, $app_exports$, $app_require$) if ($app_exports$.__esModule && $app_exports$.default) { $app_module$.exports = $app_exports$.default } $app_module$.exports.template = $app_template$ $app_module$.exports.style = $app_style$ }) $app_bootstrap$('@app-component/surfaceTest2',undefined,undefined) /***/ }), /***/ "./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.css": /*!*******************************************************************************************************************************************************************************!*\ !*** ./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.css ***! \*******************************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = { ".container": { "flexDirection": "column", "justifyContent": "center", "alignItems": "center", "width": "100%", "height": "100%" }, ".title": { "fontSize": "40px", "color": "#000000", "opacity": 0.9 }, "@MEDIA": [ { "condition": "screen and (device-type: tablet) and (orientation: landscape)", ".title": { "fontSize": "100px" } }, { "condition": "screen and (device-type: wearable)", ".title": { "fontSize": "28px", "color": "#FFFFFF" } }, { "condition": "screen and (device-type: tv)", ".container": { "backgroundImage": "/common/images/Wallpaper.png", "backgroundSize": "cover", "backgroundRepeat": "no-repeat", "backgroundPosition": "center" }, ".title": { "fontSize": "100px", "color": "#FFFFFF" } }, { "condition": "screen and (device-type: phone) and (orientation: landscape)", ".title": { "fontSize": "60px" } } ] } /***/ }), /***/ "./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.hml": /*!**********************************************************************************************************************************************************************************!*\ !*** ./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.hml ***! \**********************************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = { "attr": { "debugLine": "pages/surfaceTest2/surfaceTest2:16", "className": "container" }, "type": "div", "classList": [ "container" ], "children": [ { "attr": { "debugLine": "pages/surfaceTest2/surfaceTest2:17", "className": "title", "value": "VideoPlayer Test" }, "type": "text", "classList": [ "title" ] }, { "attr": { "debugLine": "pages/surfaceTest2/surfaceTest2:21", "id": "XcomponentId3", "type": "surface" }, "type": "xcomponent", "id": "XcomponentId3", "events": { "load": "LoadXcomponent3" }, "style": { "width": "720px", "height": "480px", "borderTopColor": "#FF0000", "borderRightColor": "#FF0000", "borderBottomColor": "#FF0000", "borderLeftColor": "#FF0000", "borderTopWidth": "5px", "borderRightWidth": "5px", "borderBottomWidth": "5px", "borderLeftWidth": "5px" } } ] } /***/ }), /***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.js": /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.js ***! \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { module.exports = function(module, exports, $app_require$){"use strict"; var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _index = __webpack_require__(/*! deccjsunit/index */ "./node_modules/deccjsunit/index.js"); var _ohos = _interopRequireDefault(requireModule("@ohos.fileio")); var _default = { data: { title: "" }, onInit: function onInit() { this.title = this.$t('strings.world'); }, onShow: function onShow() {}, onReady: function onReady() {}, LoadXcomponent3: function LoadXcomponent3() { globalThis.value = this.$element('XcomponentId3').getXComponentSurfaceId(); } }; exports["default"] = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } var moduleOwn = exports.default || module.exports; var accessors = ['public', 'protected', 'private']; if (moduleOwn.data && accessors.some(function (acc) { return moduleOwn[acc]; })) { throw new Error('For VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.'); } else if (!moduleOwn.data) { moduleOwn.data = {}; moduleOwn._descriptor = {}; accessors.forEach(function(acc) { var accType = typeof moduleOwn[acc]; if (accType === 'object') { moduleOwn.data = Object.assign(moduleOwn.data, moduleOwn[acc]); for (var name in moduleOwn[acc]) { moduleOwn._descriptor[name] = {access : acc}; } } else if (accType === 'function') { console.warn('For VM objects, attribute ' + acc + ' value must not be a function. Change the value to an object.'); } }); }} /* generated by ace-loader */ /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"] ? globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"]) { /******/ const length = globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"][0][1][moduleId] || /******/ globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = __webpack_modules__; /******/ /************************************************************************/ /******/ /* webpack/runtime/chunk loaded */ /******/ (() => { /******/ var deferred = []; /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { /******/ if(chunkIds) { /******/ priority = priority || 0; /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; /******/ deferred[i] = [chunkIds, fn, priority]; /******/ return; /******/ } /******/ var notFulfilled = Infinity; /******/ for (var i = 0; i < deferred.length; i++) { /******/ var [chunkIds, fn, priority] = deferred[i]; /******/ var fulfilled = true; /******/ for (var j = 0; j < chunkIds.length; j++) { /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { /******/ chunkIds.splice(j--, 1); /******/ } else { /******/ fulfilled = false; /******/ if(priority < notFulfilled) notFulfilled = priority; /******/ } /******/ } /******/ if(fulfilled) { /******/ deferred.splice(i--, 1) /******/ var r = fn(); /******/ if (r !== undefined) result = r; /******/ } /******/ } /******/ return result; /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /******/ /* webpack/runtime/jsonp chunk loading */ /******/ (() => { /******/ // no baseURI /******/ /******/ // object to store loaded and loading chunks /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { /******/ "./pages/surfaceTest2/surfaceTest2": 0 /******/ }; /******/ /******/ // no chunk on demand loading /******/ /******/ // no prefetching /******/ /******/ // no preloaded /******/ /******/ // no HMR /******/ /******/ // no HMR manifest /******/ /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); /******/ /******/ // install a JSONP callback for chunk loading /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback /******/ var moduleId, chunkId, i = 0; /******/ for(moduleId in moreModules) { /******/ if(__webpack_require__.o(moreModules, moduleId)) { /******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; /******/ } /******/ } /******/ if(runtime) var result = runtime(__webpack_require__); /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ installedChunks[chunkId][0](); /******/ } /******/ installedChunks[chunkIds[i]] = 0; /******/ } /******/ return __webpack_require__.O(result); /******/ } /******/ /******/ var chunkLoadingGlobal = globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"] = globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"] || []; /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); /******/ })(); /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module depends on other loaded chunks and execution need to be delayed /******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["vendors"], () => (__webpack_require__("../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/MainAbility/pages/surfaceTest2/surfaceTest2.hml?entry"))) /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); /******/ _cdc709c54327d7ba73517c4d0d8a5a7b = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=surfaceTest2.js.mapPK !:r%? 44!assets/js/MainAbility/vendors.abcPANDA+`4.<RL_{{KTytviI>7`/ C\izD+0.4 w g % ">Sh}>ITi~.9K<GRd R]o :Od 5J_#Ccgh,AVk%[f{ "7Lav2G\q-BWl&;q|8CXm3>I[{$9Ncx2@Uv *?T{)>)I^sI%Pbt2n|+@U{=H]rIT.@v&1X ?JqI[!Aav ?J_t(3>Pp~Mbw?R]h-BWl "7Lav*8Pe/Yn@UjEZo#d&\? E {     H S l     9 o    G |          : }   U7I4 dd_{{ŬSu5Lȼ9$ܤhQ0M}E K Y5*ӭ|Q6,&əWEp°OѳךЧB~FgJPVR̄a6Zfej`rS܉g 6Ԕ؜^$8VkJieőȗw+gOu]~}4 \/W`\3r N<ލLMF бkҵc\u~ ^??BR"Έ}2׿Uy+òLAIH{lP^~#"5(Q]Jٞ ?)x~z&|!E@4}{j}ďZ}_zYӒ]x|¦Ґ ݰ-#f"CXzl(tyvYԹs|7;A4-ߪC W_(~ɾ%ʀ!Ix[>'@H~P?(reB8baĴ؁wD݋̟m|˂hO.NV ~xiè\|-5G6=X=~3ӷ~T`|Ƹn)e> Ֆ0D0pϥ юި<8mw|&*.H'~Ī |Z>  ߏo<˝;vҫsVѩy}Kd#ZЌdϊ}!=}Xڅ֘ۢΣQY14_ջۇhƓM2Gd2͡wGكacq:;%~]|{k@Inb7UƮ=q3u/I9i,X[9tʛyn}P2lADߴ'mLpb;FKO}#NCs*,}[" %1BqǺvsog+.jֽf rCA|TU|ݦtKfS/.: ޲&)qǕ>~~͆j0$Í1{t$l|kcJWڠ^ !o {‹<7Rdc 1Ŷ:/ϯ' T/L_ESCallTypeAnnotation;'L_ESTypeAnnotation;q__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b #780# #778# #765# #727# #725# #719# #717# #715# #713# #709# #705# #534# #691# #471# #462# #459# #450# #447# #436# #427# #410# #395# #224# #213# #104# #92# #89# #86# #69# #42#[webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b-regeneratorRuntime = rs./node_modules/@babel/runtime/helpers/isNativeFunction.js+#775#_wrapNativeSuper #768# #497#/@babel/helpers - typeof./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.jsq./node_modules/@babel/runtime/helpers/iterableToArray.jsu./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js%#779#requireModule%_toConsumableArray%#764#requireModule)#762#_setPrototypeOf%#760#requireModule1#759#_regeneratorRuntimedelegateYield#757#reset #465# #756# #754# #444# #753# #752# awrap #748##734#define@@toStringTagWrappertoStringTag@@asyncIteratorasyncIterator #769#doneResultpushTryEntry #60#'maybeInvokeDelegate%regeneratorRuntimeAsyncIterator+defineIteratorMethodsGeneratortryCatch#733#define #701#+illegal catch attempt handletMtry statement without catch or finally#755#nextreverse%[object Generator] #751##GeneratorFunctioncompletion valuesafterLocfinallyLoccatchLoc tryLoc #678# #468#nextLocresultName #742# #741# #740#__await #739# #738#_invokesuspendedYield#dispatchExceptiondelegatearg5_possibleConstructorReturnqDerived constructors may only return object or undefinedInvalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.%#726#requireModuleICannot instantiate an arrow function=#721#_isNativeReflectConstruct #720#%#718#requireModule#_isNativeFunction%#716#requireModule-_interopRequireDefault%#712#requireModulesetPrototypeOf _sent_createClasskeywritableconfigurableenumerable_defineProperty#703#_construct_classCallCheckCCannot call a class as a function%#698#requireModuleE./node_modules/deccjsunit/index.js _throw-_assertThisInitializedsthis hasn't been initialised - super() hasn't been calledReferenceError%_arrayWithoutHoles%#690#requireModulelistenersaddListenersetMaxListeners#681#getNumberIsNaN'#680#ReflectOwnKeys'#679#ReflectOwnKeys%#687#requireModule;addErrorHandlerIfEventEmitterspliceOnearrayClone!_getMaxListeners%ProcessEmitWarningThe "emitter" argument must be of type EventEmitter. Received type once #685#resolver%removeAllListenersprependListeneron symbol wrapFn fired countQadded. Use emitter.setMaxListeners() to YPossible EventEmitter memory leak detected. warnedunshift emitnewListener #77# (!Unhandled error.getPrototypeOf #516#RangeError_onceWrapThe "listener" argument must be of type Function. Received type warn #761# #676# #649# #610# #745# #602#/#555#secureRandomNumber?#542#_createForOfIteratorHelper#675#execute'#674#isSupportAsync!#670#filterSuite'#669#isCurrentSuite!#668#parseParams#665#initisCurrentSuiterun suite:#662#sleep#659#suiteDone_maxListeners#656#specStart#654#taskStart%#650#ReportService,error S##646#wrapMatchers!#639#addMatchers#638#init#637#expect#645#_loop!#641#assertEqual3#634#addExpectationResult#632#asyncRun#615#run #631##629#_callee4 break #620# #617# #614##_defineProperties#607#itunwrapListeners#604#init #83#+#601#runAsyncHookFunc!#596#runHookFunc#594#asyncRun#588#run#581#pushSpec#580#_class #600# #599# #595# #593#!addEventListener #592#Aiterator result is not an object#590#_callee2$ #688#%#714#requireModule #589# #587# #586# #585#, total cases: #582##578#apis method#565#getSummary7#563#setCurrentRunningSuite#702#_construct7#562#getCurrentRunningSuitecontinue#561#afterEach#558#beforeAll##556#SuiteService #619##576#afterAll#573#describe #571# #80##568#_calleeuites info]%#547#processedFunc #546# #552##548#done #545# #26# #541#f #539#n)#763#_setPrototypeOf #538#s #537#e #532#%#533#requireModulejson2xml5#605#setCurrentRunningSpec/>="#528#taskStart#527#initcompletesuccess textwriteText #529# errorsclassname #206#childrentimestamptoDateString#613#setResult=call complete callback successO 7call fail callback success: #95#eventNamesfileModule #523#f #521#n #519#e #695# #518#n #514##506#suiteDone #697##505#suiteStart#502#taskDone _catch #747##499#taskStartincrease limit#498#init #511#?INSTRUMENTATION_STATUS_CODE: -1=INSTRUMENTATION_STATUS: stack= #508#=INSTRUMENTATION_STATUS_CODE: 1CINSTRUMENTATION_STATUS: numtests=;INSTRUMENTATION_STATUS: id=JS #510#AINSTRUMENTATION_STATUS: current= #504# #503#=INSTRUMENTATION_STATUS: class= #736# #501# #500#FeatureAbility'call ability data: syncOption charAtEdecc.testkit.runner.MessageAbilitymessageCode 1.0.3bundleNameUINSTRUMENTATION_RESULT: stream=Tests run: \/call ability resolved: unity!#584#getSpecsNum #495#-#484#_arrayLikeToArrayA#483#_unsupportedIterableToArrayThe value of "n" is out of range. It must be a non-negative number. Received ##569#asyncExecute?#482#_createForOfIteratorHelper'#494#getSuiteStress%#491#getSpecParams%#773#requireModule!#485#ObjectUtils #481#f #479#n;call success callback success #478#s #477#e #476#n #622#%#473#requireModule)#472#assertUndefinedexports%#470#requireModule+#469#assertThrowError%#467#requireModulelistener#466#assertNull%#464#requireModule #130#abilityType%#461#requireModule #774#%#455#requireModule!#454#assertFalse%#452#requireModule#451#assertFail#609#apis%#449#requireModule!#445#assertClose isNaNu./node_modules/deccjsunit/src/module/assert/assertFalse.jsu./node_modules/@babel/runtime/helpers/nonIterableSpread.jss./node_modules/deccjsunit/src/module/assert/assertFail.jsw./node_modules/deccjsunit/src/module/assert/assertLarger.jss./node_modules/deccjsunit/src/module/assert/assertNull.js%#443#requireModule#439#init#434#expect#433#afterAll#432#beforeAll#431#afterEach#430#beforeEach#428#describew./node_modules/@babel/runtime/helpers/regeneratorRuntime.js_eventsCount #415# async#419#suiteDoneoff#418#suiteStart#416#SuiteEventeSuper expression must either be null or a function#414#specDone#413#specStart'#412#subscribeEvent#411#SpecEvent #611# #408#M./node_modules/deccjsunit/src/event.jsQ./node_modules/deccjsunit/src/service.js#406#execute #623#version#405#init#403#fireEvents'#402#subscribeEvent-#398#getDefaultService#397#addService%#553#processedFunc#396#CoreU./node_modules/deccjsunit/src/interface.jsw./node_modules/deccjsunit/src/module/assert/ExpectExtend.jsy./node_modules/deccjsunit/src/module/report/InstrumentLog.jsS./node_modules/deccjsunit/src/Constant.js#390#get shift#389#getReportExtend#381#get)#438#extendsMatchersConstant%#392#requireModule!#642#assertThrow #348##628#_callee4$ #329# #321# #298##640#assertTrue%#550#processedFunc #260#o./node_modules/@babel/runtime/helpers/getPrototypeOf.js#380#get./node_modules/@babel/runtime/helpers/possibleConstructorReturn.jsc./node_modules/@babel/runtime/helpers/inherits.js%#377#requireModule #663#/#273#secureRandomNumber!#272#processFunc_createSuper-#257#_arrayLikeToArray#597#_callee3$A#256#_unsupportedIterableToArray?#255#_createForOfIteratorHelper)#373#incorrectFormat#371#taskDone!#407#getInstance#370#suiteDone#367#specStart#366#suiteStart #625##365#taskStart%#363#ReportService [fail] [pass]; consuming #699# ,pass ;failure  consuming #368##671#filterDescerrorDetail ; consuming failDetail')start running case ' #474#uite start]%#515#requireModule sleep #98#u./node_modules/deccjsunit/src/module/assert/assertClose.js#361#apis##359#wrapMatchers%#356#basicMatchers!#352#addMatchers#350#expect#358#_loop #357#%#426#requireModule)addExpectationResult #693#assertThrow!#355#assertThrow!#354#assertEqual!expect to throw KtoThrow's Actual should be a FunctionwrapMatchers3#347#addExpectationResult"!#346#filterCheck#334#run#379#get#332#setResult #344# #343# failt1 finish #340# #339# #338##564#dryRun race_timeoutPromise #336# #335#mssetResult apis#423#taskStartfilterParamA#543#_unsupportedIterableToArray size:u./node_modules/deccjsunit/src/module/execute/DataDriver.js#196#_callee$!#633#filterCheck class#660#taskDone5#325#getCurrentRunningSpec random'isGeneratorFunction #165#f #164#e #243#1[start] start run suites #163#ntotal cases: #162#s%#770#requireModule#567#_callee$ keys#583#removeSpec #194# #147#includes #456# #199#!#150#filterSuitetestType:%#708#requireModule #152#/translateParamsToString #570#s #540#eMOHOS_REPORT_RESULT: stream=Tests run: #269#!#399#getServices#19#getincorrectFormatuse strict!#134#filterSuite#244#specDone #137# #136# #135# reduceassertNullremoveListenermFunctions #192# #131##146#filterIt, small itName when#327#itsuiteName #128###85#requireModule-#168#_arrayLikeToArray items #731#container%#435#requireModule#294#beforeEachA#116#_unsupportedIterableToArray #749#}./node_modules/deccjsunit/src/module/assert/assertUndefined.js%#126#getSpecStressExpectService medium #247#testType%#636#ExpectServicesystemplugin #743# Number5GeneratorFunctionPrototypem./node_modules/@babel/runtime/helpers/newArrowCheck.jsq./node_modules/@babel/runtime/helpers/wrapNativeSuper.jsexistKeyword%#664#ConfigService#241#specStartdescriptionspecDone#391#getsuiteService%#100#requireModule #245##28#addService level#230#taskStartQ^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$[object RegExp] is invalidArguments,values:Map%#677#requireModule+#29#getDefaultService #113#e #630#extendsMatchersbeforeEachGfunction did not throw an exceptionTypeError#278#afterAllexpected: bindsuiteDone#277#beforeEach #109#n+getOwnPropertySymbolsy./node_modules/deccjsunit/src/module/assert/assertContain.js%#349#ExpectService number+#102#assertThrowError!#145#filterSuite#99#assertNull9expect null, actualValue is ##97#requireModuleisSupportAsync #372#isInteger##91#requireModulefailed not currentSetKey#647#expect##746#nextabilityName #111#s #618##78#assertCloseReflectApply #652#% is not less than hasANY_STRINGw./node_modules/@ohos/hypium/src/module/assert/assertLess.jsparseParams{./node_modules/@ohos/hypium/src/module/assert/ExpectExtend.js #248#F Suite #101# Math-#689#_arrayLikeToArray#683#onceundefined#170#initprototypeaactualValue and expected can not be both null!!!#55#taskStartw./node_modules/deccjsunit/src/module/report/ReportExtend.js USER Error%#446#requireModule#13#get #216# #234#?#115#_createForOfIteratorHelpery./node_modules/@ohos/hypium/src/module/assert/assertFalse.js./node_modules/@ohos/hypium/src/module/assert/assertUndefined.js##460#assertLarger{./node_modules/@ohos/hypium/src/module/assert/assertLarger.jsactualValue#557#describe%#124#getSpecParamsw./node_modules/@ohos/hypium/src/module/assert/assertNull.jsonceWrapper##76#requireModules./node_modules/@babel/runtime/helpers/asyncToGenerator.js#74#apisresilience%#728#requireModule #143# slice#295#afterAll#63#beforeEach+originalFromPrototype!#70#ExpectExtendw./node_modules/@ohos/hypium/src/module/config/DataDriver.js#30#getServices #621#addMatchers) is not larger than toString;existKeyword CallBack: err : !assertInstanceOf<%#44#subscribeEvent%#169#ConfigService #24#I./node_modules/@ohos/hypium/index.js#509#specStart'#417#subscribeEventConfigService+#776#_wrapNativeSuper #667##53#TaskEvent;actualValue is not a functionassertUndefined #154# class:getName!ifMockedFunctionA#525#_unsupportedIterableToArray floorassertLess rval #112#n##41#requireModule SAFETY#87#assertFalse sortmatchers#67#expect##79#requireModulesupportAsync%#49#subscribeEvent #696# #536#nReflect%#777#requireModule;except false, actualValue is ./node_modules/@ohos/hypium/src/module/mock/ArgumentMatchers.jsgetReturnInfo#382#get#119#get!_iterableToArray key:#61#describe #767#[object String]resolve7MaxListenersExceededWarning #58#| #47#'#57#incorrectFormat! , actual throw #7#get CoresetDataduration concatdefineProperty#11#getTaskEventohosplugindisplayNameTestTypesFilter #729# invoke#36#init#287#_callee?INSTRUMENTATION_STATUS_CODE: -2abscontextownKeys##68#requireModule_addListenerw./node_modules/@ohos/hypium/src/module/assert/assertFail.js #142##293#beforeAll #9#get #771# target never _nextactionStart#96#assertLess#10#getANY_FUNCTIONSet#282#getSummary#300#pushSpec #635# split.=#getDefaultService9OHOS_REPORT_STATUS: current=#383#get#285#dryRun-#117#_arrayLikeToArray#_asyncToGenerator#672#isRandomparameters:%#33#subscribeEvent./node_modules/@ohos/hypium/src/module/assert/assertThrowError.js assignignoreMock%#106#requireModule!assertThrowError stub@@iterator#360#expect#84#assertFail@[^.]+.([^.]+)_newArrowCheck #20# #75# tests!#118#ObjectUtilsQ./node_modules/@ohos/hypium/src/event.jsany#296#afterEachsubstring Hypium}./node_modules/@ohos/hypium/src/module/assert/assertContain.js #420##421#TaskEvent'currentRunningSuite is not #284#@NotClassFilter)dryRun print successspecService$1 is The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received performanceassertContain #107##27#Core?./node_modules/events/events.js LEVEL3replace%#496#requireModule #151#hypiumTest join POWER #208#'#32#unRegisterEvent#34#fireEventsclearAlls./node_modules/@ohos/hypium/src/module/report/OhReport.jsqUiTestKit:: no need to setup uitest, start run testcases catch#341#_callee4$##88#requireModule'#492#getSuiteParamsSECURITY #735# reset String%#694#requireModuleerrorListener[suite end]e#64#afterEach #22#Boolean|/assertLargernInstrumentLog done%#103#requireModule#559#beforeEach #480#eaddServicesetTimeout)#401#unRegisterEvent7OHOS_REPORT_STATUS_CODE: -2fireEvents#153#filterItmessage$app_require$filterValid#575#beforeEachformatPrint%#157#requireModuleMockKitexecute#310#_callee2getInstance #3#get!#374#formatPrint)SuiteAndItNameFilter=#259#_isNativeReflectConstruct#66#afterAllexcept false, beforeAll#51#suiteDoneO./node_modules/@ohos/hypium/src/core.jse./node_modules/@babel/runtime/helpers/construct.jsSpecEvent#328#apis#566#init size value'decc.testkit.runnermUiTestKit::after run uitest setup, start run testcases'removeEventListener #522#eSuiteService filter%asyncGeneratorStepClassFilterY./node_modules/@ohos/hypium/src/interface.js-setupUiTestEnvironment #512# #62#itfi #158#constructorconstruct##82#requireModule%#271#processedFunc#531#taskDonedescribe #626#aUiTestKit:: call setupUiTestEnvironment failure:rrorDetail] call#758#complete abrupt #535#F #160#n #644#fexecutePromise'#179#isCurrentSuite_eventse greater than the actual execution times of methodPromise clear verify=OHOS_REPORT_STATUS: consuming=doTimes throw}./node_modules/@babel/runtime/helpers/interopRequireDefault.js'#127#getSuiteStresso./node_modules/@babel/runtime/helpers/classCallCheck.js Array]The iterator does not provide a 'throw' methodparameterscompatibilityANY_BOOLEANgetServices #110#e LEVEL0setConfig #266# expect specs init7#281#setCurrentRunningSuiteisRandom)#90#assertInstanceOf #140#get#513#specDone% end print success)#711#_getPrototypeOf#286#_callee$ then#229#init #138#this param passExpectsContextiteratorsubscribeEvent%#730#requireModule task+filterParamValidCheck suite #657###25#requireModule#39#getInstance,filter %#191#requireModule!#315#runHookFunc_inherits #520#s #253#e#43#SpecEvent5OHOS_REPORT_STATUS_CODE: 0suiteContext#331#_class2delegatorisArrayDEFAULT)report print success #453#taskStartit#658#specDone%#394#requireModule spec #144# #744#=INSTRUMENTATION_STATUS_CODE: 0 #108#F#123#init#46#specDone./node_modules/@ohos/hypium/src/module/assert/assertInstanceOf.jsMEDIUMTEST #184##351#initvalueOfOhReportrunExpectExtend #362#!#93#assertLargerDataDriver%#692#requireModule return #737#stringify1#732#_regeneratorRuntime%afterReturnNothing#14#getconsole true!#404#addToGlobal #21#)#710#_getPrototypeOfEventEmitter#323#init##23#requireModulestartTime #2#get stress#50#suiteStart LEVEL2 string#577#afterEach)basicParamValidCheck#65#beforeAll%OHOS_REPORT_CODE: #424#taskDone)#105#assertUndefined #262# #121#Cexpect Undefined, actualValue is #37# error #40##15#get}./node_modules/@babel/runtime/helpers/assertThisInitialized.js#16#getindexOf #6#get #707#[failDetail]PERFORMANCE user #195#5callInvokeWithMethodAndArg?#524#_createForOfIteratorHelperi./node_modules/@babel/runtime/helpers/createClass.jsW./node_modules/@ohos/hypium/src/Constant.jsafterAll #250#e #261#filter params:suiteStartfilter it : #507##141#filterIt #330##369#specDone #133#default #174##292#describetranslateParams%#400#registerEventFUNCTION times error !ArgumentMatchersRELIABILITYgetSummary##274#SuiteService #114#fassertFalse #52#assertClose root GLOBALresetTryEntryRESILIENCEcheckListenerEOHOS_REPORT_STATUS: taskconsuming= paramsr_listeners - #38#executeA#167#_unsupportedIterableToArray data globalmapSTANDARD#486#get #290# #139# sent #319# SizeSMALLTESTLARGETEST!#661#formatPrint #159#F#237#suiteStarts./node_modules/deccjsunit/src/module/assert/assertLess.js@app-module/ length#651#initregisterEvent LEVEL4-getCurrentRunningSuite1expected throw failed , ,precision: object events!#303#getSpecsNum #750# #240# #161#e#375#sleep%#129#requireModule,returnInfo:>%#223#requireModulecoreContextemitter#155#filterIt #149#afterEach push%#493#getSpecStressSuiteEvent#72#init#572#execute configfunction%#212#requireModulem./node_modules/@ohos/hypium/src/module/mock/MockKit.jsexecuting-#544#_arrayLikeToArray suites##31#registerEvent #378# dryRunpushSpec#122#DataDrivert0SysTestKit from#35#addToGlobal @ohosU./node_modules/@ohos/hypium/src/service.js level: Object__esModuleK./node_modules/deccjsunit/src/core.js#45#specStart_./node_modules/@babel/runtime/helpers/typeof.jseventMonitors}./node_modules/@ohos/hypium/src/module/config/configService.jsspecStart LEVEL1##94#requireModule#12#get Level%#724#requireModuletaskDone  do not have %#54#subscribeEventassertTrue#56#taskDoneisNormalInteger'prependOnceListener#574#beforeAll jsapp'executeShellCommand nameq./node_modules/@ohos/hypium/src/module/kit/SysTestKit.js falsedryRun: match #442#notClass:;INSTRUMENTATION_STATUS: test= #425# power!execute timeout security[object 3OHOS_REPORT_STATUS: id=JS #579#standardTestType large #682#-INSTRUMENTATION_CODE: Symbol#setConfig error: #172#[error] #175#./node_modules/deccjsunit/src/module/assert/assertThrowError.js result:%#700#requireModule #176#getSuiteParamss./node_modules/@babel/runtime/helpers/arrayLikeToArray.js #177#-setCurrentRunningSuite+#457#assertInstanceOftimeoutfilterSuite normalgetMaxListeners trimKdecc.testkit.runner.js.MessageAbility #180##612#_class2reliability #181##17#get apply!#554#processFunc #183# #8#get'not a function namemockObj-s #317#_callee3#463#assertLess test#171#setConfig!#178#parseParams##81#assertContain#185#filterDesc#186#isRandom%#409#requireModule)#187#setSupportAsync#217#clear next#275#describe #1#get'#188#isSupportAsyncwrapListener%recordMockedMethod%#205#requireModule#489#DataDriver#189#executetoFixed?#166#_createForOfIteratorHelpero./node_modules/@ohos/hypium/src/module/config/Filter.js #190###59#requireModule!recordMethodCall#441#apissysTestKit indexO[start] start run suites, total cases: 5 actionStart print success flag3OHOS_REPORT_ACTIONSTART: printsuspendedStart #193#1 actionEnd print success prevo./node_modules/@babel/runtime/helpers/setPrototypeOf.jsassertFail#316#_callee3$end)hilog -x | grep -i ' #376#expect ' | wc -lCOMPATIBILITY+^[A-Za-z]{1}[\w#,.]*$anyFunctionative code] marko./node_modules/@babel/runtime/helpers/defineProperty.js#197#_calleecallAbilityrequireNapiactionEndcheckFunc #232##608#it/call ability rejected: #198#=existKeyword CallBack: data : #616#parseIntstdResult #201##309#_callee2$%#202#requireModule./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js+getCurrentRunningSpec #226#e./node_modules/@babel/runtime/regenerator/index.js #156#ANY create#388#get'getOwnPropertyNames pass stop#648#apisANY_NUMBER#655#suiteStart #684#childSuites'defaultMaxListeners #308##345#asyncRunMATCH_REGEXS#551#done/OHOS_REPORT_ACTIONEND: , Failure: 3OHOS_REPORT_STATUS: test=booleananyBoolean] stubs #236#anyNumber anyObj #723#isRegExpnot a regexmatcheReturnKey%#246#requireModulematcheStubKey; #228# #204# mockerstubApplystubMockedCallu./node_modules/@babel/runtime/helpers/toConsumableArray.js#440#expect #207# #209#ExtendInterface#598#_callee3afterReturn)[end] run suites endafterAction #517#F#210#clear #304#%#766#requireModule #211#recordCalls9Generator is already runningIPlease enter an object to be cleaned_typeofforEach#120#hasNot a function%_nonIterableSpread #653#propNamesetset stub:instancegetReruntInfo:,params:A#772#_unsupportedIterableToArray%#704#requireModule#299#_classtryEntries #337#detail:findPropertiespop #219# safety #221#f__proto__)function\s*([^(]*)\(Function5OHOS_REPORT_STATUS: stack=#364#initReportService+#320#runAsyncHookFuncmockFunc #220#anyString()originalMethod listeners originalfindNamefilterIt/isFunctionFromPrototyperootSuitelistenerCount extend5#606#getCurrentRunningSpec #148##214#init#215#reset#[object Function] #624#not a function'not a mock functionafterThrow}./node_modules/@ohos/hypium/src/module/mock/ExtendInterface.js #5#get./node_modules/@ohos/hypium/src/module/mock/VerificationMode.js #222#assertEqual!VerificationMode #393##591#_callee2#225#oncelog #173#atLeast#385#get #4#get) start print success!#182#filterSuite atMost#386#get%#227#requireModuleendsWith#268#done DategetTimefailures#353#assertTrueSpecServicetaskStartTimefinishTest+your test finished!!!#387#get #249#n #231#taskDoneTime#487#hasfailure total, Error: %#706#requireModule, Pass: #627#?INSTRUMENTATION_STATUS: stream=%#267#processedFunc'dry run finished!!! print success)_createSuperInternal#429#it#OHOS_REPORT_SUM: getSpecsNum5OHOS_REPORT_STATUS: class=./node_modules/deccjsunit/src/module/assert/assertInstanceOf.js#73#expectGOHOS_REPORT_STATUS: suiteconsuming= JSONaddToGlobal #238##560#afterAll%currentRunningSpec;OHOS_REPORT_STATUS: numtests=7OHOS_REPORT_STATUS: stream=##437#ExpectExtenddataDriver5OHOS_REPORT_STATUS_CODE: 1matchRegexsexpectValue7OHOS_REPORT_STATUS_CODE: -1)#673#setSupportAsync result[suite params] _ less than the actual execution times of method #242##233#taskDone#326#it%#458#requireModulegetProperty)#235#incorrectFormattestcase #239#suiteDone-[object AsyncFunction] #251#s #475#F #252#n#530#complete #132# #254#f%#722#requireModule sham'#422#subscribeEvent Proxy #258#AssertException'#71#extendsMatchers'^\s*(_?)(.+?)\1\s*$completednotClass #265##342#_callee4Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method. #270#%#448#assertContain=((\/\/.*$)|(\/\*[\s\S]*?\*\/))timeout:I^(function)?\s*[^\(]*\(\s*([^\)]*)\)rawListenersANY_OBJECTsetSupportAsync'#125#getSuiteParams%#263#processedFunc cryptobasicMatchersrandomBytesreadUInt32LEidfailExpectsfilter suite :#264#donegetSuiteStress#18#get #218#filterDesc#686#once#490#initasyncRun=eventTargetAgnosticAddListenerNot a object##288#asyncExecute #549# #289##276#beforeAll#279#afterEach #488##283#init#291#executetagy./node_modules/@ohos/hypium/src/module/assert/assertClose.js#297#apis #301# #203#hasOwnPropertyrunHookFunc #305# info7#280#getCurrentRunningSuite #306#!#603#SpecService#384#get!runAsyncHookFunc #311# #314# #318# wrapError in #302#removeSpec #312##307#run#666#setConfig#313#asyncRunservices Spec#48#SuiteEventfngetSpecStress report!#322#SpecService type5#324#setCurrentRunningSpec #200#+setCurrentRunningSpec-#526#_arrayLikeToArraygetSpecParams%#643#basicMatchers[spec params] #333#'L_ESTypeInfoRecord;{{typeFlag!typeSummaryIndexfunc_main_0L_GLOBAL;]LZm{ "fn8"L|!<kYN1<O[VL"EH!<"{'|,"Z<Z1A"u"H$9"\_EG"HR0"w2"k."Ldm "T"v,"$'y˟"2%7|"k"%"M a;"( y"6+>"]]+IA"&p;8'%"kj:<KYp;q".zLs"A0l"sW"Mi'Z"cZ]";:"-;4_";B!-<vW<@\(R{<C;m`<<;[<5;(l<>V`<]i<U(3a<I"Dt<W(O<+:"QpЦ<_(,O<NoM<{:(E'<F=%"je"R-"co<qDsG<P\cP<dD3<tdv s<dDLs<Xe *<zeŨ<e<Xzv<sgY"z;B,":hW%<$:<+[w4<ih"C:-"zO?"<jo'<yY"l#/"Y(c\"0mG]N"7N 2"7m17A"m"MY"B}"x4"oRs"oK/M@<Cq"s"jc"le"rDW<i$<B<Gl̗<(t̗N<_b<`u]<9̓< ><3F"<S]N"Uv{ "3D"[<<\Z3+B<vq~ <U|< <:q~ <Iw6} <Lq:<xZcl"]BՎ<{3KZ"ylI <m]l "y lS<y^gO<kMCJ"zpԃpPz}MI" z0'[<'zp!4p]i"t3h"m3LSo"*\{ "X{b<8WgM<8  7<n*<[8<T8%<M8<48p;p-8^f"V3_i")7-xcX#y"66{<R@|"h+~"z`f #"iq"{9"1\"t! "W0r#"L$e"ScI,>"m\($"f=)""c s"m "__,"Xq"W@| "<:.-"Q3"J8"<B"sÙ"Cs+g"Y6Aԍ"!yy "+{J"UT"*PW<*QX<*PW̓<*QXp<\PW<)QXn<g*Vc%<)PW!<RQX;]<>)6""dE"?(gjO<'r"5z"t'<['Jn<x¿l<b'׃<:D"'$<cE"E&<-&o0 "&&ˣ<&@s<&/"%p p%ߥ"%<%p8p%Q" #/@""Tǧ"1{ "$o<iتĩ<$<@<&ت<$A1A<AE2< -ت<1 <pP<5ت<BS<rbS<>p$?p$c-"Joz"S-1c"$"@մ<UnkkR<V<}4c"HF5<"B"s+"czB<qk"B+"!a"%/"<հJg"Z7+"/)ds"xG:"U)kkp5_O"@N".s["[ 94"'?Ծ" έ"|^L"Z" V"}{ "al &"fN"J"8I81D";F."+O-C="* X͒"YB<B<mBq"B-"A"A"<vA"W_P"#/y@")VW"=x"U<B_"_Bb<g=I"<"B <<"r<""ҳ"'J"MH""N""Vs>"J."- @v"r"ee"b]CI*JdՄ"#J\<\:<foNJ"XZm{ "_?M[c"eU:["@Q["Fʑ\"> "\EH"!^Zm{ "SPk"_b"9Q>"9ʑk"9"9E,\"YJH"oӧ:/AZm{ "re"[Z"uQ"uʑ*"(Wn"vEW"PJ5"q^N"uZm{ "-9B", ",Q51",ʑ"O5",E`"p5&C"mZm{ "6)-e"')" WQn")ʑZ"KR")EO"SZm{ "GI&:"'&"'Qr"'ʑ":"'E"Z2,>"RRk]"H%23"e%1" JK I"}LORL<|)U<"S*6<YlZm{ "qt<-p̵"E84< 9"?I6C"8?("3T4B<NJCz "H3MB" b6C"B"AY0!;"ZRK"Zl"e,?"vx5":N!C"vuc<;"^sRK" %߽<ii"_V@k<P?< !mpn""q#EG<H7W=M"%(jc"Hڀ"'n^46"MʌY<Wz3K~I< 8M<GIb8D<8oN"3J"3"H^"J5"y"q.^N"qBz"}r.v"jrR,L"2eaQ"2E"=s"]"r*C "p%b<$קx< *j"_zF=H<sDoR "X i<c]8IcN=7<o<hl!&"'Yu"o-?<! 4cB"X_@P<AGOl<Xp<q<3V_`<[x~" r~"(yG <yNJ<YG;<Qy<X v<6+><loX__<28<1 </zF(<g.RL"x_<)_\<(&j3<i'~;"k~4"QGp<L&/T<'%G<..FfH<^$[<,ky<^X<#G><Aa<x"@h[V?J<V{ "WVn""JH"i;$<NlZm{ "oZm{ "Z xj< "l]6j<m6<cp[.<}f<7x"$_T}"v$BY"#Tn"7G0"sY5<:O<`d&Q<q]f-"pW<1lZm{ "!ٹ"]>"(r)y<NM<KI<J%4<nE#<7qG<KQy"]e</ZZ"#mN<b8<%W<i$qI<@Dc"E"E"}RZ<  S"1J\<e 4l<m]AG<^m1n-<iZm{ "{}Iu.b"tcDkpgZm{ "mi;"IQI<EI3ywP <iWc6<t1YGz<*X D;<kb 3<*'ۉI_b<?HR=L"_eƦ<$Q+"K#Zm{ "Y:<@"2i <I0" #"4o"=2pi@<wz1<fV\0[C<;:-<@PSgb<_La<Df1k<+9"<gufy<&;f<f<#?{ <Vɟ"<W\cP"Dxd+"{Jz <PIqz'=<evfIv} Ik[e<1\T{<>5|<0 <7Z ɇ</R%"0Wn</ g"Ua3]B<m)X]<MQ6<Une"R<OF6<vՂW")SWm<3Br<C'^</t̝<97`<'c|"&x"z%z S<pqAƥIa%5<OmP-I$ ٪I$-<tOerQ"Z"WS<S9ֳ<K1<S05U<?A<Op0<3]%"*4<UOO,"HΫ <p1<lm!p]{@"em<*>?<u3B<=ʯ<yNYJ<yoS<>=F<I?s "bL3mb "j(<hIjf<8 <SN/X8<NsU<5=n<o5{<_5e!݅<1J<03Q<e0v?<LJ<8</e["/{"zDXG<)Zm{ "YSJH<E)Zm{ "EN7K<(Zm{ "&o*Q<&l. <b?s"Y3mТ"%jv<4+f<( ~<]3q<Dz+" $ֱǫ<#NH<#t<azY(N><K@y">J0@"@VL"Mla<KN "S!<ns"^;:<l <`dKQ<3fkXh<)^¿<N?$%<jJZzd <"<c`bP"0E^EO<?zs<`q_O<-r&x"5wz<V]lN<1=O4<1/<0DM<z0SJ-</~".RAF"e"-B=a"fd`s<\)ιj<OB<_&T<tPc`":t?<3Z]"Rk"ֆ<6\ <&"Jjc@IY"G"*"\vZ<>mF0<'IS<E<[-"9Ҽ"u8b"e<yb֯f"l|p!q<r ;<f\'"%F"!LˍFZ<;ƒ<?X 3<J:,=?<f/d<q6/u<4l <^l <Ww&<zg<7Z<6w<7Qx"n7v "P%a":^T<YYq_q1<M5]<M.*"-j-",ˍ<e<+l<O%X<y@<:9<L$E^ O<$"D3˶i"^%;"#1<n#L`<D*.<Xgy"\PXM<WqkR<!>"'HQ""F"gwFX<Y@"Vݵl"\VM<x;pg`<6g<FR]L"t<YCZe"&~<B,+pzg?W"9$ pT<Ifs "%D3ީ"CGQ1" f%g"SU*";7:"N|OW"d@)"a~A8G"/@lS"n{ "Jk"$c"[Z"%7t<=>F"O;oW"K~Y"Cɖ^<<ZO`<0_l}"P~p"E;1<VJ<&".j!"f"_p5T"U_J"q y"lDw"wӛ_"sk?S<S7*<-K2dP<?1v<6~x"5g&<i4.~"03"WT"w\e<Sf@ }"07$%"<`xP"E1</o"B"Pw["9.G~H" .l"-xZv"u0"-5"-:9܌"q-="F-^ 4"-"dGB7<,JCh<_{Iŏ<NPa"o6`%"'w"Kb*J<G'ӛ "3<1,8<<r<4{XM"$@<=c!<>" Y8N"F "Xf"AO"-"`d>r"n#"r"g:$'"pg "&."["#W"vRH"bN"#.K"Drt"VGL"*"Y~'d"m"9\Δ",K_"G:"1#" !""2 V˻"AnDkR"E&8"-Y<iRZ"!/kpw_<T<S5VC<f_NrJ<>N $8<12d&<0k< FK<9v+< O!G<v,"<H3<#5F<Y#_N< 6" "mvCt<}O2"b<FZ$"gf-|<u/<(5xD}<P <3<'- "u-<qY;"Vtj"m*"',O"Ua"P!b<Hs)pY8<?<_3">n<o_<d"Z-@"8%GV|<7r "1F!5"7BH"V41m<Jx";W:"4n"1n9<+" {Ė"G`ܜ"AC""P^2"4ިd"#ި]"o ;":&"YӼ".T"7v<$aYN<zg<b9Ƴ<'g*<5pƳ< ={ "GOJ"2[|+"y^VO<U^&<&^d<p&^?*< FϺ"Q*"]U}"x3"B]v7"gl"5>"U,"N[,"*#"3<\"]G"4e"+r"F"8"nh#"/home/redjie/ohos_/out/rk3568/obj/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/module_video_player_js_hap/assets/MainAbility/vendors_.js]:x-p-UkOP5DP_usystem.routersystem.appsystem.prompt)system.configurationsystem.imagesystem.device#system.mediaqueryohos.animatorsystem.gridsystem.resourceQOOQ:OqOS:OqOSUQAQUQ-U%{Q{dQzQfxQ5DP_uQeQoQeQoQ-UeQoQoQ5DP_uQOOQ:OqOS:OqOS;<c-U 01234_MZcmesc]Q,_MZcmesc]<Qd`-s class-s notClass-s suite-s itName-s level-s testType-s size-s timeout-s dryRun$&1;HQ]L9vV;#><Qd`UQ-UybQYQVQuUQUAQ#QeQxQUQwQ-UB@Qf\Q:QPQ5DP_uQ1JQiQ=Q5DP_u-UQlQlQ]LQoQ1lQNlQYlQiQtQ-UhlQ5DP_uQKQlQ^mQ-YQmQpQ,TQ-U5DP_uQUQ2OQcNQ,TQKQ-pQlQHQ-UoQoQnQgQoQ3TQ5DP_uQ\Q#JQwW-Uz!QqQqQ5DP_uQUQWQ.bQ:Q[Q-UC?QaQ=Q5DP_uQOOQ:OqOS:OqOSIRIRIR-U=rrZkH;8SBQ>[_8SQBQQ>Q[Q_Q^Q-UdQ\QUQ`QPQ8Q`QjQremoveSpeczsQ-UXQxQyQzQ =RzWUQzQjQWQ-U8Q>xRV/'*-8QXQxQQfilterCheckD7Qk5DP_uktk _bJqa7UUQUQHEQxQ7Q8QQUQWQ[QaQ=QC?Q.bQ:QPQ6QVW_Uqz5DP_uQ5DP_uQ-U-U-U-U-U-U VWV-U-U-U-U-U-U-U5DP_uVW_Uqz VWVHQ:xG\:xG\:xG\:xG\:xG\:xG\:xG\i_:xG\i_:xG\i_OQJQ:xG\XUQ^QjQunRegisterEventrVQ4PQtQUQPQPQ5DP_u:xG\QrVQaQ=QrVQ[QC?QrVQWQ.bQ:xG\5DP_uQ5DP_uQU>QUQ8Q5DP_uQ:xG\kOP5DP_uQkOP5DP_uQkOP fail 5DP_uQkOP:xG\i_5DP_uQkkOP5DP_uQkOP5DP_uQkOP:xG\i_5DP_uQkOP5DP_uQkOP[ An error is not thrown while it is expected!kOP5DP_uQkOP:xG\i_5DP_uQOOQ:OqOS:OqOSUQAQUQ%{QOQ{dQzQfxQ5DP_uQUQWQ.bQ[QC?QJQaQ=Q5DP_uQOOQ:OqOS:OqOS Aybj(F(#rL`(testsuitessummary_report timeAyDbF(L#rO`(testsuite0.1NQXUQAybXN(testcase status0.0 AyZzIROP AyrzIROP-2.(%(;8(uri3internal://app/report.xmlUQWQ.bQ5DP_uQO^QOQ:OqOS:OqOSIRIRIR=;rrZk8SBQ>[_8SQBQQjQ>Q[Q_Q^QdQ`Q\QUQPQ8QrVQ`QjQzsQXQxQyQzQ =RzW4PQUQzQjQWQ8Q>xRV/'*-8QXQtQxQQD7Qkktk _bJqa7UUQUQUQHEQxQ7Q8QUQWQ[QaQ=QC?QPQ.bQPQ6Qh <#>Q_Mmesc ;<cUQuUQPQUAQ#QeQxQUQwQB@QPQ5DP_uQ5DP_u!!Jz-z!z!5DP_u -Ufn5DP_u5DP_u5DP_u5DP_u5DP_u5DP_uQ5DP_u5DP_uQ-5DP_u5DP_uR QrVQ5DP_uG\5DP_u5DP_u5DP_u5DP_u5DP_u5DP_u5DP_uQ-aQQOzeBzdTBfdTX ]fQO hV=Q$R2Ok%S(E8N5DP_u5DP_u5DP_u5DP_u5DP_uRQ-5DP_u5DP_urVQ@vendorsE[\Q3LRbAFyLIB8XlCACAKCD:gabGp`qmN`2.a"1 2726~?.f.s/:^V/d\<8t2BBJ1MdZ8DTQo[4i364kTBj%=.3 0ahldau]=j[QC?QrVQWQ.bQQ:Q5DP_uQ5DP_uQU>QUQ8Q5DP_u-UQkOP5DP_uQkOP5DP_uQkOP5DP_uQ-UkOP5DP_uQkkOP5DP_uQkOP5DP_uQ-UkOP5DP_uQkOP5DP_uQkOPkOP5DP_uQcallType7 77 7777  w-xw_fSi`E`[`\Q`3L`R`bA`BFy`ZL`(I`B`8X`lC`AA`+C`AK`C`~D`:g`|a`b`G`p`z``q`)mN`S``,`i2`3.a`"1`l 2`72`r6` ~?`.`yf.`}s`/`:^`MV/`d`p\<`8`t2`BB` J1`M`d`|`Z`18D`kT`lQ`Ho[`{4i`3`64`kT`a`Bj`:`8%=`.`!3` 0`ah`l`eda`u`]=`jS\w-x    _ kT G  da G G   0 G ;  x=-t#{ A4 - A"  wG\  G ^4-  x"'sFo n]  W  G |dmm0m m_QmP_m@3GmahGm0Gm QGmj@jPx=-j@w=-x"aj@w=-j@w=-xG\   fIRw2: wM M IR \ \~-xyRVxuxZxHxY dwi_ wJ_\wi_ wJV\w^\w=wxwi_   \~-2sJYwy\ \#wk wi_ Wjwzi y=yRyzZwi_ wJV\wi_ wXUt\ A3.wi_ wXUt\wtwz \!-t,djRwG\jWw:xx:xdm0mm@m m m0mm@jwi_wJW\wj\m _w-G:3-G"j@d_mkwG\ji_yQSi_yQSi_tyQSi_yQSi_=yQSi_yQSi_yQSWj`dmk wG\k wG\w.i_\Gm_GLdjwG\jWw;@w;-  d~.wf x[h3 -P3 -j3 .3 . 3 .33 .J3 .Gh3 .<"k wG\ j W  m j j L w^ ! - " ~- " ~-xf#&x[hxfjLjL\ xf#x[hwN    \x`sJY wZ w`    \j . m xf#bj;wk\dkw8S%dk  [/dk;?#-," wUw^FdwLw_w_jBwi_W\<dk wG\jWw=j3-#djw_\ d_mk wG\jiB_yQSiC_UyQSiD_?yQSWj d mn mm m0m@mPm`mpnn n _0kTGsawH"aiS  \xG\ TGGmo[GGn V/GGm6GGm ~?GGm0:^GGm@/GGmP.GGm`\<GGmpf.GGnsGGn dGGn _;xG\ /dk ;?#-," iA_PyU   fIRw2: wM M IR \ \~-xOP#~-;wOPQ4-"~-  xk"V  7 wH QH\ wH  wOP \ xOP^g dmm wi_ wJ_\wgPw^3-6wi_ w4PV:\wi_ w4PVW\wi_ wJ_\wB@\~-i_-;w=? \;w-V_w=? \\"\wp wXwi_ \wi_ w4PV.b\rd_fmj1wG\jix_yQSiy_yQSXj& wUw_\djqwG\ wi_wJV  \ wp~.wxk~.wxk w^ !.wxk L  wH wU w^ ! .. L wZ~-."Xwu w>x w^ # -."&wuwk4- ..   #i.  #iyryryZykyHGdwLw[w_k wi_W\ ^ __RsawH"ai\  \xG\ xG\ dm_mm mk wG\jWjGs#T2~-;wN_w=?\\dm_+mm mk wG\jWjjWs#T2~-;wN_w=?\\ d mmm m0m@mPm`mpnn n n n m k wG\w.z_fSfS  \(dk wG\jWj!Gdj;adj2wG\jWw:xx:xjwAZxpwpxL[dk wG\jWwJJ\Qw+e\djawW sawAwkEwS\}cQ=l-i`iatwZ~.8bPow+M w>twZ8bqt8b4zw+M w>tw=8bw+M w>twZ8b lw+M w>tw=8bt8b#w+M w>twu~.w+M w>twuw>xw^#.&w+M w>twuw>xwn_ w=? \\8bPoj8bqt8b4zw+M w>tw=8bj8b lw+M w>tw=8bP8b"r8bqt8b lw+M w>tw=8b?W8b" 8b;Tw+M w>twH8bwwW w#h\w-V_w=? \\ dmm wf] wJ; \w]_}w=? \ \w]_w=? \ \wJ;_Xw=? \  \~/bdjwG\jWsJYwyw+Mw>tw=U\(d jwe\ xLdk wG\jW   fRIRw2: wM M IR \ \~-njQ   \ ~-"~-jQm w@w@~- j ~-m j"wG\  Z mjwljQ     \ ~-VjwljQ     \  -~-jQm wn_L  \ sJYwynwUj    \   \ wUj   \    fIRw2: wM M IR \ \~-yQSi_yQSXjLdmmmsO_Kw=?\jWOd Qjwhl\~-sBrlG  ^ _Z_sawH"aiR  \xG\ xG\ dmAmQ dmm m j- IRwkE\wM}dwIR \wc}w\-fQwJ;\w]_w=? \\waRs9O\jw^wJ _ \ww\3-3- ",j".Q]4- _"_" _]* 3-!s?7Z fdk wG\jWsJYwyQ\jwPj!\d Qjw]L4- wjjwo4- w Ajw1l4- wKUjwNl4- wFkjwYl4- wwjwi4- wWJjwhl\~-   fIRw2: wM M IR \ \~-4-"-eJ4-"~-"sTw` \>4--&}:>we\~- jW }djRwG\jWw=- IRx=xxkxUxBQx[x>x_xH   fIRw2: wM M IR \ \~-w_k wi_W\md_Xmj!wG\jix_kyQSiy_YyQSWj}djwG\jWwOP-PhwCewiewt- IRmLd _3-8s?"jwG\GZ , sJYwy(\LdjwG\jWsJYwyjg\L ___^x=-w=-x"aw=-w=-xG\O sawAwkEwS\d>4-   fIRw2: wM M IR \ \~-\ xfwUjLwxj\xfwz_\j.mxf#wxkw^#-" ~- "~-xf#m!j!wxkw^!-" ~- "~-xf#~j#wdwxkj!L\xfwxkj!Lwxj\j!.m!xf#xfwz[\w=IR3-/jw4PVC?\j1;wk\   fUIRw2: wM M IR \ \~-\jw>\gdm_g_DdGmx=-w=-x"aw=-w=-xG\djwG\W#dj"_5Z dm mm0m@mPm wc A3-"~-jscwhVL-jwKm j ~-"~.sTwWj\-jjGm -; ~-j ~-$jw^ ?4- " ~-]j ~- j mm_iy:_.yO_/yqOySs?vZ m0m@i_Xy:_3yO_1yqO_3yS d mn mm m0m@mPm`mpnn n _kTGsawH"aiF  \xG\ TGGmo[GGn CGGmFyGGm LGGm0AGGm@lCGGmPIGGm`CGGmpBGGn8XGGn AKGGn _;xG\  dm@m m`mP_*m0_Rm_m_kTGsawH"ai  \x"F %=GGm@TGGm o[GGm`:gGmP_;x"F DdjwG\jWwJ@\QD wf]w2:w;@w;\ [dmm jdwG\w.z_fS  \.dmwl_'\^dmjswG\jcwG\w.i_\Gm_E dmmm _kTGsawH"ai|  \x}R xM xP x'I %=GGmTGGmo[GGm _;x}R _;xM _<;xP _;x'I 5djwG\jWw:xx:xx-GQ xn;x@lxmx@xes>Zxf dm_kTGsawH"ai@  \x[ x_ xBQ x> x8S xU xW \QGGwG\wP\m_:x8S _xW _zx> _x_ _&xBQ _x[ _xU    fIRw2: wM M IR \ \~-xz!jwA_xbjwA_x^;jwAjwAw^;xu0jwA_Jx!jwA_xxZ jwA_yxwj_xxpjwAkxpjwA_x(TdjwG\jWw:xx:xxgw1x1w+x+d_SmjwG\ji9_yQSi:_yQSi;_7yQSi<_2yQSWjOd A3-wU\jwU\   fHIRw2: wM M IR \ \~-xQxL9xvxd  dwhV wW& L4.x8 dTwW& 4-"~.whV wX~-AXxW& xB j!W dTwW& 4-~-j1dTxW& s?U ZxB j1jAwhV wB XdTwz4-)dTxW& wBxB x8 j1wB~-qwO~.w wQM w xf XwW& 3-~-fxW& xB x8 j1"@dTxW& s?% ZxB x8 j1 dmm_kTGsawH"ai>  \xQ x_ xI TGGmo[GGm_h;xQ _S;x_ _;xI  D wa:3-'waLw:\"djQwP    _3-sB^FZ ;i`yk"sB2~-FsJYwqwOP\wOPQ-iayk^  wOP  LQyOPKj dmm wf] wJ;\w]_w=? \\wJ;_4w=? \ \D wa:3-'waLw.b\"   foIRw2: wM M IR \ \~- _4-s>ZmjA_mQx=-jAw=-x"ajAw=-jAw=-xG\jQG dj#wG\jW jwZ @ \,3-OwrL wZ @ \  \;" ; mj!wZ @ \,3-[wrL wZ @ \w^   \;"IRm!CdjwG\jWw:xx:xwi_xi_xa9 sawAwywS\d_mj!wG\ji_yQSi_yQSi_yQSi_yyQSi_yQSi_yQSi_ yQSWj# wlw,T\D wa:3-'waLwC?\"LdmmmsO_w=?\jW dm mm0m@mPm wc A3-"~-jscwhVL-jwKm j ~-"~.sTwWj\-jjGm -; ~-j ~-$jw^ ?4- " ~-]j ~- j mm_6iiy:_yO_yqOySs?vZ m0m@ij_y:_yO_yqO_TyS w2O\saw :\w^!-LA."sawj\w^!-LA."ߢ:3-A" w^L~-AZ w^L~/~-:3-LL \"djwG\jWxvni*yVyWy_yUyqyzxzi+yVyWyVx^Qdmmms#T_w=?\Zd_mjwG\ji3_yQSi4_yQSi5_yQSWj _ A3.xWx\%x[%x0N%x\%x!O%x]%xh%xB%x] %xG %x']%x]%x|X%x^%xmU%xa%xY%xM%x^ jdm_m0_im@m m jwejj\mj0GOdjjw^$-iijj.mLyQ   fNIRw2: wM M IR \ \~-i_yU  \sawH8Si_yU  \sawHUi_DyU  \sawHWi_MyU  \sawH;i_yU  \%=GGn TGGn o[GGn \QGGm[Gm DGGm0bAGGm@mNGGm`bGGmpRGn`GmPGGGm_;x}L dmm mmjwJV\m j wd\s#T_;w=?\Z    wL9xL9wvxvwh- i"xhwV- "xVw;- "x;waR- "xaRw<x<w#>x#>wQxQwdxdii%yM%yme%yscy<i%S%S%S%S%Sy#>i%y;%y<%ycyQx8wUA\#xaR xh xV x; x< x#> xQ xL9 xv xd+dmmi_yU ^ _q_sawH"ai\  \xG\ xG\ dj!wbd_;mjwG\jiG_{yQSiH_yQSiI_yQSWjdkwU dmm wf] wJ; \w]_}w=? \ \wJ;_-w=? \  \~/ dmm m jxo _`- x<j/xo ~.j~.j _ -!sB1nZ wo j  \M wf wfnj\x\nwo wow\n  \xD xlwn; w_\w-p jBwG\ Z \S wb-CwkE\wc}0o\QMd_mmj1~-%j1w-V\";m1d_mkwG\ji_$yQSi_yQSi_yQSi_+yQSi_NyQSi_&yQSi_[yQSWjF iZQ!-yk@QyOPLdmmmsO_w=?\jW dj d_mjQwG\ji&_yQSi'_yQSi(_.yQSi)_KyQSi*_cyQSi+_yQSi,_dyQSi-_2yQSi._yQSi/_1yQS i0_&yQSXjqdmmk wG\jWwM }v_Bw=?\ \dj!wcD wa:3-'waLwa\"dmm8bsw=w^\w=8bsw=w^\wH8bwwWw#h\w-V_/w=?\\d~/~-sBeG wmwUowkE  \o\jRwG\~/ ZdjAwG\ wV3-"~-wVIR3-"~-wwV3-"~-YwVwJ;\wZ \,3-dkw[ dm m m jBjL jX dTwz3.wBm j wQ~-^jG- "~.kwS \~-Wj!weHw\w-V__ \"Lj!weH\w-V__ \jwBGL _!_x=-w=-x"aw=-w=-xG\ dwO VjwSRiZ  \wO Wjw>riZ  \wO Ujw<i Z  \wO zjwwoi!Z  \wO _j"w"Fi"Z  \w^ Vj2wIi# yi_Z  \w^ Vj2w_i$ yi_Z  \w^ Wj2wQi% yi_Z  \wrV WwJ z \  \wrV VwJ z \  \wrV VwJ z \  \wz :3.wz L:3-LwU \w8 _3/w8\~-wt  \">dk wG\w.z_ \BdjwG\jWx;x;xf]xRd_vmj!wG\ji_yQSi_cyQSi_/yQSi_{yQSi_yQSi_yQSi_yQSi_syQSWj] wzL~/~-wzM"wzLw:xM   f^IRw2: wM M IR \ \~-\wi_wJU\wHEw-G\+dmmi_syW   fXIRw2: wM M IR \ \~-_yy[_wy_dmmwi_wJV   \ |+*w^  \ w=x]w]|+n*wg  x]w]|+H*x]w]|+%*w\ \ wrx]w]|+rx]w]|+4cw+Mw>tw=x]w]|+*|+x]x]wgxgQxD+w1=+4-"-w+SY-~-1ex@" +x@x0+x-x*sJYwy*stwY   \   \ s*w{i  \ w-V_w=?   \ _w=?   \    \ dkw> iN_(yUdk wG\jWdjaw>Ud A3-w8S\jw8S\   f1IRw2: wM M IR \ \~-xw_\   fIRw2: wM M IR \ \~-\   fLIRw2: wM M IR \ \~-L- L w^L ~-1:3-!LwrV \"6djwG\jWgx:xxgDdj"wG\jWtx:xw]-x]djaw8SOd A3-w_\jw_\ dmmm|+*w=w^  \ w=x]w]|+n*wgx]w]|+H*x]w]|+%*w=w\ \ wrx]IRmw+Mw>twZ~..w]|+)w+Mw>twZx]w]|+r|+4zw+Mw>tw=|+w+Mw>twZx]w]|+4cw+Mw>tw=x]w]|+)|+x]#]w+Mw>twu~.'w+Mw>twuw>xw^#._w+Mw>twuw>xwn_w=?  \    \ w]|+)jx]w]|+r|+4zw+Mw>tw=|+jx]w]|+4cw+Mw>tw=x]w]|+_I|+x]#w]|+rx]w]|+4cw+Mw>tw=x]w]|+W|+x]"w]|+x]x]QxD+w1=+4-"-w+SY4-~-1ex@x0+" +x@x0+x-x*s*w{i  \ w-V_w=?   \ _w=?   \    \ # s?Z "dj#wG\jW'djwG\jWx[TMdmms#T_w=?\Zwdk wG\jWwy>\wXj\wy_\   f[IRw2: wM M IR \ \~-4-"-eJ4-"~-"sTw` \>4--&}:>we\~- jW [d A3- wW \jwW \rd_mj1wG\jik_gyQSil_TyQSXjdwi_wJ_\we \~-jwAi y=Zwi_wXUt\ A3.wi_wXUt\wtwfx \!-8wLwxkw_\."wLwLwxkw_\xLwS  \xL d     w=w^\w=w+Mwj\w=jBwUw]jR\jbGw:\wO\wO~-"~.<wQjBwUjrIR\jBwAjr\~-4kwG\G^4-""~-"wRsT4-""~.w2:\~.ijBwUk \ jb G w:\ wO\ wO~-"~. wQ jBwA k \~.}jBwU k \4-"~-LjBwU k \ wS\wS\#)" wqO\ wS\" wS\ #"wqO\wS\"wS\  OidmmmjL~-gjLw^#-~-@s#T_;w=?\Zw xi_wi_wJW\x+Mwi_wJV\x=xHdjGd w= w^ \ w= jB wU w] jR \ jb  G  w: \ wO\ wO ~-"~. wQ jB wU  jr\ jBwA jr\ ~-4kwG\G ^4 -"" ~-" wR sT4 -"" ~-a w2:  \ ~-Gsa wK  jBwUk \\ #"  wqO \  wS \ "  wS \   iy d     w=w^\w=jBwUw]jR\jbGw:\wO\wO~-"~.{wQjBwUjrIR\jBwAjr\~-4kwG\G^4-""~-"wRsT4-""~.w2:\~.jBwUk \ jb G w:\ wO\ wO~-"~. wQ jBwA k \~.jBwU k \4-"~.jBwU k \ s=wY@ \~- $-"~- " wS\wS\#" wqO\ wS\" wS\ #]"wqO\wS\"wS\  OiLdjwG\jWw2:@\~/;djwG\jWw2:@\ sawAwkEwS\}cQ=l-iSiTtw=q\d_#mj!wG\ji_AyQSi_=yQSi_"yQSi_QyQSi_yQSWjOdjjw^$-igihjj.mLyQd_=mkwG\ji_ yQSi_yQSi_7yQSi_ yQSi_yQSi_yQSi_ yQSi_yQSi_5yQSWjM sxwx\w,x\A dmm waR  -w<  .w< wJ;   \ w]_w=?   \    \ wJ;_Pw=?   \     \ w#>  .w#> wJ;   \ w]_w=?   \    \ wJ;_6w=?   \     \ wQ  .wQ wJ;   \ w]_w=?   \    \ wJ;_w=?  \    \ ))xaR sJYwy[waR   \ dmmm mj wJW\wz\srZwr\xYj wJ_\wd4- " wd+ms#T_c;w=?\ZPd_mj!wG\jiz_yQSWjF idQ#-ykUEQyOP  d~.wf x[h3 -P3 -i3 .3 . 3 .23 .I3 .Fh3 .;"j% wG\ j W  m j j L w^ ! - " ~- " ~-xf#'x[hxfjLjL\ xf#x[hwN    \x`sJY wZ w`    \j . m xf#cj;wk\ \dmm k wG\w.z_fS  \  sAwFs=G \3-"~-)s9OGs9OG 4-"~-$- " ^ __FsawH"aip  \xG\ xG\ L _?_Fx=-w=-x"aw=-w=-xG\  sawAwkEwS \wZT\~-1 :3-L Q -""sawAwkEwS \TH4-3wZ Q  \$- "iJyk2Q ;bQ yOPdmmw;3-"~-w;IR3-"~-dw;3-"~-Fw_jRwPw;     Z    \ wL93-"~-wL9IR3-"~-dwL93-"~-Fw_jRw}RwL9     Z    \ wv3-"~-wvIR3-"~-dwv3-"~-Fw_jRwMwv     Z    \ waR A3-"~-waR3-"~-j3/~-Ww_jRw'IIRIRwaR     Z    \ w]_iw=?   \    \ wJ;_w=?   \     \ bdm_jBwG\j2wG\w.i_\Gmd_-mkwG\ji_TyQSi_yQSi_yQSi_yQSi_yQSWj i _3-  7xOP#;" ~-"~-  >xOP#~-;wOPQ4-"~-  xk"V  7 wH QH\ wH  wOP \ xOP^gPdjwG\jWwwWxwWzx:xxgxH dw@l wU \~/~-s>ZQ j"wG\Zwl\~-(wl\~- x@ wfn \sJYwykn l9HD_ \w@l wfn \dkX dmm wi_ wJV   \ w\  \ wrx]w]|+*w^  \ w=x]QxD+w1 =+4-"-w+ SY4-~-1ex@x0+" +x@x0+x]x-x*sJYwy*stwY   \   \ s*w{i  \ w-V_w=?   \ _Hw=?   \    \ >d mmmms#T_Z w~9/Odjjw^$-i}i~jj.mLyQ ^ __sawH"aiO  \xG\ xG\  dm mm0m@mPm wc A3-"~-jscwhVL-jwKm j ~-"~.sTwWj\-jjGm -; ~-j ~-$jw^ ?4- " ~-]j ~- j mm_iy:_'yO_[yqOySs?vZ m0m@i_?y:_)yO_yqO_yS ^ _<_sawH"ai_  \xG\ xG\  xi_ddm_ek wG\k wG\w.i_\Gm6d_mj#wG\jWjG   f[IRw2: wM M IR \ \~-x#>wQxQwdxdw`x`ii%yM%yZc%yme%ysc%y]%yi%y;%y<%ycyQx8wUA\"1sJYwycwOP\>pdmmj"wG\jWwM }v_w=?\ \ d _3-"~-13 -~-!s?0Z sawj ~- wA " ii yQyR\xA sawHAi  \ ~- jW CdjwG\jWw:xx:xwIxi_xaBdjCwG\jWw8w<L- d_mkwG\ji_yQSi_yQSi_ yQSi_.yQSi_dyQSWj!d~.wf"x[h"3. 3.H 3.L3.+3./3.$3.(3.X#3.%3.'3.*3.-3./3.23.R63.h3.#+j%wG\jW!j#w4PWa !\srZwr\mx[h"j#wXUt\m!j! A4-"~-"~- xf"#Cs#Two8wz!!\Ss#T_=ZS\m1 xf"j1w-V_lw=?!\\-xf"#j!wtw{d\mAj!wtw%{\mQsJYwyustwYjA\\sJYwyH{stwYjQ\\wz!w^4-"~-"~-xf"#Js#Two8wz!!\Ss#T_rZS\maxf"jaw-V_0w=?!\\-xf"#jQw^4-"~-"~-xf"#Cs#Two8wz!jA!\Ss#T_VZS\mqxf"jqw-V_w=?!\\-xf"#wjUjQGnx[h"kw:\kwO\n wO~-%xf"#k wQn s#Two8wz!sawKk jA \!\Ss#T_ZS\n #xf"k w-V_w=?!\\xf"#*xf"#'x[h"wN""\x`"kwqOw`"\*x[h"kwS\wE8"*"\2xf"#4/x[h"wN""\xA8"wA8"xZ!srZwr\n k jwg\xH!j#w4PW= !\k ;wk""\D wa:3-'waLwW\"   fIRw2: wM M IR \ \~-xw_\kZ 5djRwG\jWw:xx:xx-G  d~.wfx[h3.3.3. 3.  3.R3.r3.3.3.w3.3.3.h3.#Wj%wG\jWw=IR3-2jw4PV[\xfwzBQ\wUw^#-" ~- "~-xf#jwJ_\mjwU\~-+wUw'G_\mjwUw^!-" ~- "~-xf# xfwz>\ xfwUjLwxj\xfwz_\j.mxf#wxkw^#-" ~- "~-xf#m!j!wxkw^!-" ~- "~-xf#j#wdwxkj!L\xfwxkj!Lwxj\j!.m!xf#xfwz[\w=IR3-/jw4PVC?\j1;wk\ e  :3-MsawAwywS \~-w-G L M"( i4-yk; iQ4-ykQyt9 i_y_b_yJq_ya7md jw-GjLj\jxCjxij"wD7\ ndm sawAwywSj1w-Gj\~-jAj_M ^ __sawH"aiY  \xG\ xG\ 1dwI0#-kwSG" iM#djwU\F iWQ#-ykUEQyOPd_mkwG\ji_ yQSi _yQSi _yQSi _yQSi _yQSi _@yQSWj   fIRw2: wM M IR \ \~-tw=@6\wgxgdk wG\jWwOP-PhwCewiewt- IRmwP46j\(djwG\jW- dmmm w6 2 \IRmw+M w>tsrZwr\wYxHw= wLwHwHxHwZ~-ywP Zw=%6wH8 \wP 6wZ \#wu~. wuw>xw^#.wP ;8w=%6wH8 \wuw>xwn_w=? \\"LwP kw=%6wH8 \wP w+M w>twZj \ ^ __\sawH"aiL  \xG\ xG\ dmmmjL~-gjLw^#-~-@s#T_(;w=?\Z w62\w=w\\9wr5wr;\wZ5wk5wH8sJYwy\sJYwykm\; sJYwyEVu>\ xVG   f?IRw2: wM M IR \ \~-r xSR jGGn 8DGGn %=GGn o[GGnTGGmP64GGm`3GGm03GGm ]=GG_wG\sBGGn_\;xSR _;xA_;x>r _t;xz_;x< _P;xwo  wuw>xw^#-wuxk"wuxksJYwyuw=Vdwuwk\LdmmmsO_w=?\jW dwO VjwSRi,Z  \wO Wjw>ri-Z  \wO Ujw<i.Z  \wO zjwwoi/Z  \wO _jw"Fi0Z  \w^ Vj"wIi1 yi_Z  \w^ Vj"w_i2 yi_Z  \w^ Wj"wQi3 yi_Z  \wrV WwJ z \  \wrV VwJ z \  \wrV VwJ z \  \wz :3.wz L:3-LwU \w8 _3/w8\~-wt  \"' :3-4-L1djCwG\jWwo\ dmm m j- IRwkE\wM}dwIR \wc}w\-fQwJ;\w]_Uw=? \\waRs9O\jw^3-3.#sawAwkEwSj\u4-9wJ _ \ww\j#Q]4- _#wJ _ \ww\_"@wJ _ \ww\_f  sJYwq2?Q ^Q \4 -"~-?Q 4-"~-!sBBZ sAwIQ  \sAwI \4-4-"Q !-iGykH }]Q O @Q yOP2dj&wG\jWw8\()('&d%$#$m$$$$$$$$ $ $ $ $ $$$$$$$#mwi_wJ_\w`SY3- 'k wpwxkGw:\wO\wO~-'"&~.wQw= k wUG w:\ wO\ wO~-'"&~. wQ w= wRwx  !wi_! \~-'"&~-0w_i w=y;\#B" wqO\ wS\" wS\ we \~-'"&~-Sw^#-&"'~-2 Mw_\# "wqO\wS\"wS\ x_`stwY\w^sAwF\"-Vw#hwrL!!  \\."sJYwyM\wZr#s_.%w=?\\& -"-w^#-~- w^sTZ!-LM.",dj2wG\jWw:xx:x(d jwe\djQwG\LdjwG\jWsJYwyjAh\md_Vmj!wG\jiv_5yQSiw_~yQSWjcdmmmwUwaR_)w=?\\xUOdjjw^$-iijj.mLyQdjawBQdjawU dmm m sJYwystwYj\\8bhstwYj\8bjwwWw#h\w-V_w=? \\Hdjjjj!j1jAf     [   fIRw2: wM M IR \ \~- x8S xU xW .aGGwG\wP\m_x8S _xW _Rx> _x_ _xBQ _x[ _xU FdwLwBQw_jBwi_W\  sJYwq2?Q ^Q \4 -"~-?Q 4-"~-!sBBZ sAwIQ  \sAwI \4-4-"Q !-iTykH }]Q O @Q yOP ^ _q_YsawH"aiV  \xG\ xG\ djsaw~-+saww=?\" _mx=-jw=-x"ajw=-jw=-xG\jW9 i]4-ykGyOP= 2~/~-!s?lZ d_mjQwG\ji_yQSi_7yQSi_;yQSXj ^ _v_sawH"ai_  \xG\ xG\  dw%o 4-sawj \wHj3wG\Gj3wG\jw%o GG \ dmm wi_ wJ_\wgPw^3.wi_ wJ_\wgPEVw*N;\u>8bwwW wZr_Xw=? \ \   fbIRw2: wM M IR \ \~-w_jBwi_W\Pdk wG\jWwi_w4PV.b\ wy\ d     w=w^\w=w+Mwj\w=jBwUw]jR\jbGw:\wO\wO~-"~.wQjBwUjrIR\jBwAjr\~-4-""~- Y4-""~.wRs9O4-"~.ijBwUk\ jb G w:\ wO\ wO~-"~. wQ jBwA k \~.}jBwU k \4-"~-LjBwU k \ wS\wS\#)" wqO\ wS\" wS\ #"wqO\wS\"wS\  Oid w= w^ \ w= jB wU w] jR \ jb  G  w: \ wO\ wO ~-"~. wQ jB wU  jr\ jBwA jr\ ~-4k wG\G ^4 -"" ~-" wR sT4 -"" ~-a w2:  \ ~-Gsa wK  jBwUk \\ #"  wqO \  wS \ "  wS \   d     w=w^\w=jBwUw]jR\jbGw:\wO\wO~-"~.\wQjBwUjrIR\jBwAjr\~-4-""~- Y4-""~.wRs9O4-"~.jBwUk\ jb G w:\ wO\ wO~-"~. wQ jBwA k \~.jBwU k \4-"~.jBwU k \ s=wY@ \~- $-"~- " wS\wS\#" wqO\ wS\" wS\ #|"wqO\wS\"wS\  Oi6djwG\jWw;- dmmm m jwG\wP  \ mjBwG\i   Z jwOU    \ jbwG\ij ywW   Z jrwG\j xwWjwOz    \ jwU  \ jwrVW    \ jwrVV    \ jwrVV    \ jwJ_   \ wf\w0U   \ sJYwy KstwY   \    \ wuU   \ ;sawAwywSR    \ ~.wR  \ w-V_"w=?   \    \ wN_w=?  \   \ "IsJYwyN  \ jwPj   \    fIRw2: wM M IR \ \~-_$y[_'y_ d n m m0_m`_wm_xmmPnmpn n n m@_kTGsawH"ai  \xG\ daGGn TGGm o[GGm0_`mP;n8SmpWn f]n Yn _;m@_;xG\ dwnw^$-ZwnLw 4-4wdTwz4-wBkG/"sBZ d_ -"~- wR~-"~-"~-Gk 4-"-+nwI- wb4-" "KdjwG\jWsJYwy+\}dj2wG\jWw=- IRx=xxkxUxBQx[x>x_xH-dmm m0m*hm_KdjwG\jWsJYwZi\dmmw=w\  \ |+P+wrkwrx]w]r wZ x]w]r wk x]w]|+ c wr wZ #-," |+x]QxD+w1=+4-"-w+SY4-~-1ex@x0+" +x@x0+x]x-x*sJYwy*stwY   \   \ s*w{i  \ w-V_w=?   \ _w=?   \   \  dmm wf] wJ;  \-waR_w=?  \  \w]_w=?  \  \wJ;_Qw=?  \   \waR_w=?  \  \w]_w=?  \  \wJ;_w=?  \   \-~/   fIRw2: wM M IR \ \~-w=?\ WdwS4-L4- _4-7~-!w-/S"S~-k G"jaw^W   fIRw2: wM M IR \ \~-xw^#. xuIRm wuw>xwn_Gw=?\\ ijyOPSx`(w#r.x#rw#r.x#r" xuw`(w_ \#"wqO\wS\"wS\ w`(w_\#"wqO\wS\"wS\ (jRG w )w4(i y.(_Hy%(_y;8_y(\ d_EmjawG\ji_FyQSi_9yQSi_KyQSWj ^ __sawH"ail  \xG\ xG\  d m`mpm0nm _mP_m_m_jm@_n _kTGsawH"ai  \x"F x< xwo x>r xSR jGGm`8DGGmpTGGm0o[GGn%=GGm _(;xSR _p;xA_C;x>r _;xz_9;x< _;xwo _;x"F d IRIR : 3.q Ay4-L#K`(4.Lw^#.jALGw:\wO\wO~-"~-'wQjQG"" wqO \wS\"wS\ "PewH'\wHL7\#EwH\ wH  \ ~-?R_wH`\ wH R_\ "' d~   fIRw2: wM M IR \ \~-x w^ # -."&wuwk4- ..   #i.#&iyryryZyk ^ _k_sawH"aiI  \xG\ xG\ =djdwG\w.z_ \ dm mm0m@mPm wc A3-"~-jscwhVL-jwKm j ~-"~.sTwWj\-jjGm -; ~-j ~-$jw^ ?4- " ~-]j ~- j mm_ivy:_qyO__yqOySs?vZ m0m@iw_y:_ryO_tyqO_vySbdm_jswG\jcwG\w.i_C\Gm dmm wi_ w4PVW\wi_ wJ_\wB@\~-i_;w=? \;w-V_w=? \\"\wp wXwi_ \wi_ w4PV.b\:djqGw!k X\djwG\jWxn;s>Zx@ls>Zxmx@xes>Zxf   f{IRw2: wM M IR \ \~- 3-"~-IR3-"~-s3-"~-^fwZ   \ ,4-0wgP w_a   \ w< 3-"~-IR3-"~-n3-~-^fwZ  \ ,4-0wgP w_\:  \ Od A3-wBQ\jwBQ\d_AmkwG\ji_yQSi_pyQSi_syQSi_<yQSi_uyQSi_hyQSi_[yQSi_@yQSi_AyQSi_4yQS i_yQS i_yQS Wj;dj#wG\jWw=j3-vdj#wG\jWwy>\wXj\wy_\ dmm m m jwJV\m j wd \w= IR3-2jw4PV[  \wy BQ \wU w^#.jwJ_\wU\~-+wU w'G_\wU wn_*w=? \\wxk w^#-Dwxk wn_w=? \\wy [ \w= IR3-/jw4PVC? \ dmmm@mPm0m m`_kTG sawH"ai  \sawH&3i_UyU  \sawHHi_fyU  \sawHXi_]yU  \sawHXi_hyU  \sawHOi _yU  \sawH2i!_yU  \sawH[i"_+yU  \sawH_i#_yU  \sawHBQi$_yU  \sawH>i%_9yU  \sawH8Si&_yU  \sawHUi'_yU  \sawHWi(_EyU  \.aG Gm2G Gmt2G Gm@BBG GmP72G Gm08G Gm  2G m`CdjwUGwJqw[T\Qdmmm m0 jdwG\w.z_ \^dmjswG\jcwG\w.i_#\Gm_V dj#wG\jW;"sJYwZ\/8dmmL~-cLw^#-~-ALwn_%w=?\\^dmjswG\jcwG\w.i_\Gm_'a sTw^Zw^!-(Lw--LM."Т w2O\d~.wfx[h3-3-]h3-S"k wG\jWxfwpwxwi_\wk\djsaw~-+sawp"w=?\" _mx=-jw=-x"ajw=-jw=-xG\jG   frIRw2: wM M IR \ \~-_2yQSXj(djCwG\jW-dj2wG\jWw=- IRx=wRxRwz- _Exziy>xyRVxuxZxH ddj#wG\jW wz sawKj \ \d m  m  m  wJ W \  wz \  w4P W a \ sr Z wr \  wXU t \  A4 - wz \ #O wt w{d \ m  wt w%{ \ sJY wy u stwY j\  \ sJY wy H{ stwY \  \ wz w^ 4 - wz \ "a w^ 4 - wz j \ "1 wn _H w=? \ \ w8 \ " xZ sr Z wr \   wg  \ xH  w4P W = \ Wdj'wG\jWjsBacj8ZG   fEIRw2: wM M IR \ \~-t w6\srZwr\xrwrwKrwg\xHw=w\\9wr5wr-$wZ5wk5wH6$sJYwy\sJYwykm\ w6\sJYwyC6w+Mw>tw=@6\wgxg   fIRw2: wM M IR \ \~-twZ~-YwP Zw= \wP 6wZ \#wu~.wuw>xw^#-ywP ;8w= \wuw>xwn_w=? \\"LwP kw=%6wH6$ \wP w+M w>twZj \J w6\sJYwydO\dmm8bgsw=w^\wzs\8bsw=w^\w=8bwwWw#h\w-V_aw=?\\dmm8bsw=w^\w=8bJwg.xg8bc8bRtw=w\\wr8bqt8b lw+Mw>tw=8bt8bwwWw#h\w-V_\w=?\\Bdj2wG\jWw:xx:xxVGx~9 dmmm mwL9 .wZ;   \ ,4.wZ@   \ ,3-GwrLwZ@   \     \ "xVwZ@   \ ,3-SwrLwZ@   \ w^    \ "x;#TwJ;   \ IRmIRm wn_Rw=?   \    \ jwq;   \ ~-BjwrLjw^    \ "jxVj wq;   \ ~-Bj wrLj w^    \ "j x;waR -w< .w<wZ;   \ ,3-Tw<wJ;   \ :3-@w8w<L"w8w<w<Lw#> .w#>wZ;   \ ,3-qw#>wJ;   \ :3-[wy  \ ~-w8 w#> L "w8w#>w#>LwQ .wQwZ;   \ ,3-qwQwJ;  \ :3-[wy  \ ~-w8wQL"w8wQwQL))xaRsJYwy[waR  \  wV3-"~-wVIR3-"~.wV3-"~.wVwJ;\wZ \,4-CsJYwy#V \  w; 3-"~-w; IR3-"~.w; 3-"~.w; wJ; \w^sT Zwi_ wJ_ \w# \~-4wZ \,3-" "~-"~-waR A4-"-waR 4-"-4 -"~-( waR (3-"~-3-" "~-3-"~-%( waR %(3-"~-3-"~-3-"~-%( waR %(3-"~-3-" "~-3-~-dm_zdm_^m _mdaGwG\mjj x=-jw=-x"ajw=-jw=-xG\d_mkwG\ji_yQSi_>yQSi_yQSi_yQSi_yQSi_yQSi_yQSi_yQSi_0yQSi_yQS Wj wzLwG\   fIRw2: wM M IR \ \~-~-SS"SSM ">~-w8" \"w_ \jAG #-"~-w^#-"~.w0"~/~.x0"sB"w^es9OG o!) ZnHxb xv_ xzw^x!kG %dk  [djqGwS4-L4-4-"-!w-4-"~.wI0/xI04-+sawj  \ xS#zAw^;~.jwA"^;w-/   \ #3 _3.",w^$-bL 4 - " -&L w- 4 - " ~-Lw-"/  "!-4-w2  \ " k Ww^4- QMw^;3-/wA"^;/    \ < sTZ!-LM."   fIRw2: wM M IR \ \~-   W Q ( XXX XXXX XXX    &WW W283$9@T"T"      z   z #WWWWW WW qV283$9@T"T"V283$9@T"T"VV$VV V83$9@T"T" w1/E#WrU283$9@T"T" U U UUT283$9@T"T"    < TT T"TT2ګ'&0 &( ''' 'X83$9@T"T" 99F'' ' !!^&&&#& &     z  &&&&&%&&&&&&    z           ?   ~   {        z     Z    o   s&& && &&&&& &&&&&& && && && & &&& & &&& & &  N       z              D3.  " xp %% Z%%%Z  M N N   {      - A ,(((((( () )) ))))$   l l l  l  l  l   C#######$$$$$$ -$$$ %%% %%% ~#%%%%0 %,%  "           >     @   \       \ " g%%%%%%%%%%%a% %%%%%%%%%%% %%! %%% %% %%%&| LL    $$#$ $$A0 A ###### #     l l   $  j H Y@E111111111111111111 ,1NcB#B  k  I83$9@T"T"CC C ## #83$9@T"T" Px0/MO*(-T  N      \ @   ]        {    3   \   P### ### ### ## ### ## ### ## #9999 999 s99 "" ]## #\X  z z z z z       l  \             _ """"""" """"""""""""*"""""] """{"$""""1 "]3333 4 K!!! ^  N       $!!!!!!!! !!^  N        %!!!!!!!! !!^  \ P    @'&''!(~'j!!! ^  !!^@@@ @@F!!! !!  _      ++55# 5'555- 5%5_ v1/8&.$#=< i$Y    ^         > 5:g"*  A  P p      _   NNNN N  _  <;-@$#>zzD;D;b     z    !!l 83$9@T"T"  M   k         m      O      m     \ " b   '  m `  N                >     _      0     ^     X w# #22(28?2D2 = "  n  N       |     |        A    zo  6 _  l   "" ] ##\# ``183$9@T"T"  ==B       # ``       `  N k &&&&& \\G    \    - aa     {''' 'X z<8/<-@$#>zznnb& a  N    ^         4C b    z M   `   83$9@T"T" iNz{{+|+|83$9@T"T"      b&&&              * # ) J    l l  l  l  l  l  l  l  l l  l  l  l   z          $ ~ 99F  N   { z   ^ k   "       c 83$9@T"T"  M   z   ]   k  {  m                 \ Z K %   <<< <C83$9@T"T"   l l l l l l   : [+    z   z   /   ' -      M          2          \ @   }        z   Z        \ ^ !! ! !! !!!! !! !! ! !!! !!!"" "" """  k   d `283$9@T"T"j888888    l l l l l l l  l l  l  l   c!!!! """"""""""""""""""""" '"""""" ### /### ~!# **  O   $$$!$M6???G ?# ??-?? ?? ?    ^    " 5e  M    e" 666 666 X ee e (( (  3333 23 L    ^     % )a    l  l l l l l l  l   T % #  EEEE EE  M   @     t  p  M N                    z  4  * `    /  a!!!!! ! !* !! ! !x!!!! ! !!!!!!! !!!  z    VV V     \     ~  M     m  m   / 83$9@T"T"=== =B  N        v       \     \   ) )  )  &  O          ]       g       K  p"  h                    ?\\\&\ \# \\\-\\ \\\ \    ##########W83$9@T"T"  M N     \          5'  '   hX  N    \     $ ) `;GGGGGGGGGGGG 0GGG GGG GH8''' 'X""1 "]  s =<=      KK& KY 000 00 0    >> >A hU2 # 83$9@T"T"  N   k     %%%!%%!% %x%h)))V ----- --A    z {     2   %  $ 83$9@T"T"    z N      z  2 '     M N       !* {g          ^          \   }     \          \ "  k        O     M   M 1  @       >      \ ^  k $$$$$ $$$$$$%%%%%$$$$$$ $$$$$$ $$$$ $$$ $$$$ $$$$"$$ $$$ $$ $$$$%$$$$$ $" $$$% % %%% %%% %i 83$9@T"T" R      A  83$9@T"T"  M N      !!!!! ! o!''' 'X  D   _        l   NN NN N## #   // /P   "OO2   }Y Y"*===A= =P=p =    ^              @E +wc    ^      (H i      1 DD 'DYD) e"E. EF    ^      {  {  {  8$ 8  & l    w!     d    ^     { { { { { { =?xd83$9@T"T"C#C                /   U          |                 KKKK4KKKK KKKKKKK$KKKKKKKK&KK {K K LLLLL/MMMM#M/M8NNN   ;;;;;;D   l l l   ( m    83$9@T"T"L99 9 F  ~  ----R----@ z   )  k    k   z              <YYYYYFYY YY-Y4YY5Y)Y Y    ^     {  {  /   &y0FF F F Ozkw4/OPk #61  N       |     X ,      883$9@T"T"%%% % 'R2-------  M    ^   NNN NN N   h        % c -CCC CC CCC C C/.-         ]]]]8]                    8II I6 I III I/ I II y#    l l  l  l l  l   B;;;;;;;<<< "<<< <<<<<< %<<< ;=e  M N    ''''' ''X z            "*A Pp     \   {          :      M  |Q    k       R+,,,,,,,,,, z,,,--, Se  M N      @@@@ @ x@ }   l l   " t                     G,,,,,,,,,,,,,,,,,,,,,,S --    (PQ QQ  ?? 83$9@T"T"    l  l  l  l   6 -  - .K K %% ZS S      -     s((( (         @ӿp    ^   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   b              E $&$*,*020686<=?=CECIKIOQOUWU[][acagigmomsusy{y <~  M N     \      ,$$$$ $$ $$% % $/ l kk /3+%%%{ r _"  l)))))    r@"////////// t// FF F 1   (/////  M M             z            V                    YY YYDBBBBBBBBBBBB -CCC CCC DDD ~BD%  k       FFFF FF e    l l l  l l  l  l  l  l    b      6  ~  N      !!!!! !!J^  N             /##   `           $%  :9           z   ( Kd }             0 Y    ]   CXXXXXYY Y Y" YYY Y" YYzY YW2      ^     ^     ^     ^     ^     _     _     _     \     \     ^  k   ]        $  $  $  $  $  $  $  $           L##!#    l   l l  l  l  l  l  l   L         N   k  0 83$9@T"T" 44)JJJJJ JJJK e 83$9@T"T" z  &a>6G # -  " t  ep    \   z   !   wSDDDD 383$9@T"T" ('  l   z MMMMMM MMMMR  M N     ]    ^   ]    {     `    ^     W      n$$$$ $$ $$$$$ $$"$ $$ $$ $$$$ $$%$ $$$$ $$$ $T$$0 $% ..... Q y$$#$""1 "] "!  N k  ########s#U  N M M   z                           z      ^ z<<<<< <<<<8<"<#<<"<@<,<<<<<<<<<<<<< < < << < <<<// /P 000 000v 1111I ~ ++   83$9@T"T"  k          l    v4     !!!! !!^F    {   |   !  ~'''& 'GGGGtG5///// P         !"""""""g     0   GG GG G83$9@T"T"    k    G   11 1 1&  _43 ++GG GGG2  ""$$$ $$ $['Q2          {@ =eBYY         o## #083$9@T"T"FF Fع## #   M     -  A    hB   C ++     N M M              >     _     ?    1         /    z      ^ <<<<<#<<.<"<,<<<<@<|<@<,<<8          ^    a   }                     ^      \ m              k  >     n   ?   m            >  @ X     _  k   ]  @   / |  /    '''' '' '' ''' ''''''(((~'' ''''' '' '''' ' ''' ''' '''''')' ' '.' ' '!'''' ''' '7' ''''' '''# '''7 ' '' '(' ''' ''&'''' '' '9 ' ''' '''' ''' '' '''''''*(( ( 83$9@T"T"83$9@T"T" 1 q  e_>> >A  83$9@T"T"     z        z   ]      =        l l  l  l  l  l l  l  l l l l  l  l   } !  4 .     }83$9@T"T"  / z     k  k + z |e  p o 000 00 0 1/| %2    m#    z   \  (( (( ((f   x0/  %$Zg p          Y%Y Y'YYY Y  pB33# 3 33333L 33 333 33333*GGG G? el    ^      )! fZ                    6G # -  ;;; ;; ; D@ @@=== =B     m         l     s      @   }        z   Z        \ X @ @ @@@@ @@ @@ @ @@@ @@@@@ @@ @@@ k9<6/</1M&&-@%%@R#soooo  M N        #%%%%+%% 0% %P%[      ))) )) )) V\ !! ^ k<7/9&-@$E{oo]  k YYY z<7/</3P&-@%%@S#>s{nnnn^             `      _ l     # ' - % _ ! m#       >                N****** q* *** *** **** *** *' m#  N       |     X   1   ( Y l6 `   l l l l   . isG G    l  l l l  l l  l  l   QHHHHHH HHHHHHHHH HHHHHH HHH HHH HIt!! !!  N  @ |        v  |       v    |       v  |      z "  "   " $ u  M N   z   \       z         G&&&& && &&&&& &&&& ( (~&v   w 666 6666  G #  -     hDDDDDDDDDDaDDDDDDDDDDDD DD! DDD DD DDD&  N    %%%!'%Y%)    z        %x 000 00 07777 78 GO2                 z B #    u    *  N N                                            z       &  & 4     y     . ! DD    l  l  l l   7&&&& &&& (&&& (((((( ~&(O Px0/MO*-T    `    {    k |  k        9 3   N  N M M   z            /         z      ^ g<<<<< << <<#<<<<<<<<<<<<< < < << < <<<   M M    PPPP P .. .Q    u"*A Pp    r  k##0 ##  M  @@@ пP483$9@T"T" ԙ<7/<7/1TH&)f2J?&){kkJ?&){kk lkk /5+u { k W*-j@@@@ @@J          \    3TT TTTTTTTTTTT  _== = B    z<<< <C       l l l  l   0%%%%%%%%&%&&& &&& U%7&;             k            >            ^    a   }                            \ m          ^       r  >     n   ?   m              >  @ X     _  k   ]  @      n         EEE EE FF FFF FFFFFFFFF~EEE EEEE EE EEEE E E EEE EEE EEEEEE)E E E.E E E!EEEF FFF F F7F FFFFF FFF# FFFF F7 F FF F'F FFF FF&FFFF FF F F9 F FFF FFFF FFF FF FFFFFFF!F FFFF F 83$9@T"T"  $1111 111111 j1!1H  9999C         !X&X XX X)X XX  M N     ##### ## \<BB BB B           'w=83$9@T"T"     &a>  N N                                      q -  -   "     ^        /) {      (((( (W?"\ \2483$9@T"T"     0    ((( (( ( ((((( W!CCCC CCCCCCCCCCCCCCCCC CCCCCC CCCC CCC CCCC CCCC"CC CCC CC CCCC%CCCCC C" CCCC C CCC CCC Ci      , ((( (((2  k    (((((3  k    ((( (((4  k  (((((t(5  M   {   ))) )))) )V6  M    )))6 ))V7   sN&N  )) )      l l l  l  l   :((((((((((((( .((( ))) ()883$9@T"T" ++    z   \   .. .. .. .Q8EEE EEE *EEE FFFGGG ~EGO    \     )) ))*) )V    \   \ )) ))@ ))V9      )))h) ):  N   \           \    >    \    4       g))) ))))))))))9 )) )))&)9 ))-)))9 )V )) )  ( u$DDD+DD 0D DPD[    ]   z     \   ,)) ))))I)6) )) )V))) )V  i.83$9@T"T"          )) )#) )" )V83$9@T"T"    z    k {   9 & **** **** ***+   l l l l  l l  l l  l   T)))))))))))))))) )))))) )))*** *** )**83$9@T"T" 000 00 0    ^               {   {   {  f  $          !q !##%&&( )) *U    0     &&%&&&; &, **FFFF FF --$ - --$ - --$ - --$ - --$ - --$- - --$- - --$- - -- - -- - -- - ------ -.. .. ..L **   z _ - **   M N                z  G        @ B     }        @@@@ @ @* @@ @ @x@@@@@@x@ @!@ @@@@ @@ @@ @ @@@ @    ]             ^ {   k   \ z L :           v EE E |klk</k</zw0|;v"$"@@; z ]"]"Gc!\#\##F$  ++DD  M   %%% %  ++ h  sBBBB BB <   ++ ++5'  '   hXQ%Q+83$9@T"T"      ^ RRRRR  -------------RQ ------- --R    \    )) )))8 )V.. ....G)!,,,,,,,,,, .QZ///// ' HHH HHII IIH+/////    \       $H HH*H/H Hշ"......./// t.////// ///// P"////////// t/////// ///// BB B/83$9@T"T"/........ // // /P0 000 00 0 000 00 0=00000?00000000000000000Od1111 N!'11111111111N=!111 11 11 1NS@0 @    ]            ^ {   k   \ z M22: 2222222 2222 22 222M22222222 .2 M ??@         [2[[[8[?? ? @ 444444       Q QQ Q    l  l    '   h?4444 4 K   @       E   N               3 $  " `583$9@T"T"5555 %5 J    ^      6e nN683$9@T"T"6666 6 I683$9@T"T"  M     - _   !YYYY YYY Y6666 6 I777777 E%EEE; E,783$9@T"T" 8#618888 9 F 99999@0 @  99FG G 9eF6999G 9# 99-99 99 99999 99### #\99999-99 9 k9<6/</0M:&&-@%%@R#sE:E:E:E:9:&-@$E{E:E:]2P:&-@%%@S#>s{E:E:E:E:^    M N     |   \   |    \   \   \   \   \   z   z     \   \ ?         }      4              )   *      ;83$9@T"T"BBBBBBBsBU6e9999999999999999 ;DN     O     , Z&ZZZZZZZZ Z           "YYYYY* Y<<< <CBBBBBBBBBW  XXX<<< <C  N   z M M             /             ^ f<<<<<<<8<$<$>>> AB    >>> > A >>> >> >AB B  N      /          z   \     a   k   /    \    MMMMMM MM MM0 M MMM MMMMM MMMM MM MMMMM MMMM MMM mVlUlT v1}</</Pa>' x@ y@{ *(Y*A>A>@A>A>w A   l l   #>>>>>>>>>> w>>7777 7 H    ^        {   {   {  {  Uh?????-?????@BBDEEG HH II J Mz{N-3/ 9?"?@?@?Nj/Q?83$9@T"T"&Q========= ?@@6::::::: .::: ::: -::: :;. B???  ??@    ^     \ z  z             z     z     k$''''''''''''''''''} ?e@"*???A? ?P?p ????? ??@@ @@@ ߿       ! GGGG3  N      @@@ @ x@@@@PA0 AHH    \ MM MMV        Z OOOOOO klk-5/k</z>]!@?ооiƾƾ#T  z z z z       l  \           f  Z AAAAA AAAAAAAAAAA*AAAAA AAA$A    ^    . vA A"*999A9 9P9p 9BB B A. AB  N   ]        {      3   \   FAA AA AAAB BBB BBB BB BMM MMVB B         ( d83$9@T"T"B BFF& FB B         {      N                    o ( k     k  6   B B    l l l l l l l  l  l l  l   c@@@ @@@@@@@A@AAAAAAAAAAAA 5AAA $AAAAAA *BBB ~@B BBB$BB BB BB BDoBBB BB BBBBB BB"B BB BB BB$B BB%B BBBC CCC CT    ^   a   a   a   a   a   a   a   a   a   a   a   a   b       -*******************+++++++++++++++++++++++++++++++T- aCC CMC. CC   #g CC!CC!D DxChDD D D. D,D    {   - N NNN$ND  d   D          +######{### #\##E         S2SSS8S983$9@T"T"FF& F1DDDDDDDDDDDD DDD TD8D;    l l l  l l  l  l  l  l   `---- --------- ------ --- --- --- 6...... ~-.     z  EEEE%EEEEEEE#E E v1/#@$"#=< i"8$ F FF FFfEE& E83$9@T"T"  M   z   \   k   ( MM MM$ MMM. MM M    \       $)) ))))) )VFF& FFFFF FFEEEE F~Ej  M N   z   \   z         <EEE EE EE EEEE F F~EGGG !  N       \     |     X   DHHHHH HHEH HHHH HHH H GG GGG4 GG GGGG G6GG GG7GGGG HH HH HH \ &&    \         z     \   AH HHHHH/ HHHH?H6H HH HH HH@ HHη983$9@T"T"HHhH H:K K   S SG,83$9@T"T"  N   \    \    >    \    4       WHH HHHHH HH HHH%H HH-HHH9 H H HzH HH Ha  N              3##   `{OHHHHH qH HHH HHH HHHH HHH H'  N                  >#0#2  `|   IIII }I   N                         M                          /         {            /      IIII II I6 I III I/ I II II IIII I II I6 III I6 IIIIIIII II! IIII!I* II II III II!IJ JJJJJJJJJ J~           {    .JJJJ J JJ.J JJ          \    {        n      m      k  k   l    m   k JJJJ JJJJ JJ J JJJJJJ-JJ JJJDJJ JJJJ>JJJJJ PPkJ J  P  &WXZG   l  l  l l  l  l l l l   XIIIIII 2III JJJJJJ JJJ 'JJJJJJJJJJJJ ~IJ 83$9@T"T" HH K#KK K! K KK. K  LL  KK K         KKK"K K    z l k z NNNNNNNN             (KK KKK KK K          LLL"L LL L  M N    Z  _   z         l   _      > m   \    oLLLL LLL LLLLL LLLLLLL L!LLLLLLLLLL  p-  z    _    0   0       \     ]   l          M |LLLL LL LL$LLLLL LLLLLLL LLLLLLL=LL L%LLL MM  k          M          k      \      r     \ MMMMMMMMM" M MMMMMMMM MMMMMMMòM MMMMMMMM    {  2 N NNNNN83$9@T"T"    \ N NN      _   NNNNN::: :: : E    NN NNN NY83$9@T"T"     ^ NN NN### #        ?     ]        <NNNN NN NNN#N NNN# NO O  \   | PP PPQ%Q83$9@T"T"Q2 A  k   \    k z  !RR RR RRRR     5 m SSS SSS  M    0   b    (RRRRLR RyRR!R R  P   *QQRRG    z          \ ?   ~   {        z     Z    o   t D DD DDDDD DDDDDDD DD DD DD D DDD D DDD D D   k          * RRR RRR#R R {RR83$9@T"T"S2߬ N+%-|W]2;ohǃ4>@Hn}L[7\e 79]`*P@F! .ZLa\^G__``H9,.YZ[\&' dHk[=miblc,deefgԮT:³|*}}~̂;;=?ƅ12t3o44Y|"sƶķ̸ĹJSv-zzk{ovstu<’Q(SءnlUC`el:؊L MMNx  h@KAzBBCEE:L(yviijjUklkm*ne#wět55J678N99HJ6x*j_"q""4#x$ި=PȬ  @!!]z^_$]+,-C.5/]00UTXXYzZN[(&^''u*.+   i M3)!vH{\PK !:!zz assets/js/MainAbility/vendors.js"use strict"; (globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"] = globalThis["webpackChunk_cdc709c54327d7ba73517c4d0d8a5a7b"] || []).push([["vendors"],{ /***/ "./node_modules/@ohos/hypium/index.js": /*!********************************************!*\ !*** ./node_modules/@ohos/hypium/index.js ***! \********************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "ArgumentMatchers", ({ enumerable: true, get: function get() { return _ArgumentMatchers["default"]; } })); Object.defineProperty(exports, "Core", ({ enumerable: true, get: function get() { return _core["default"]; } })); Object.defineProperty(exports, "DEFAULT", ({ enumerable: true, get: function get() { return _Constant.DEFAULT; } })); Object.defineProperty(exports, "DataDriver", ({ enumerable: true, get: function get() { return _DataDriver["default"]; } })); Object.defineProperty(exports, "ExpectExtend", ({ enumerable: true, get: function get() { return _ExpectExtend["default"]; } })); exports.Hypium = void 0; Object.defineProperty(exports, "Level", ({ enumerable: true, get: function get() { return _Constant.Level; } })); Object.defineProperty(exports, "MockKit", ({ enumerable: true, get: function get() { return _MockKit.MockKit; } })); Object.defineProperty(exports, "OhReport", ({ enumerable: true, get: function get() { return _OhReport["default"]; } })); Object.defineProperty(exports, "Size", ({ enumerable: true, get: function get() { return _Constant.Size; } })); Object.defineProperty(exports, "SysTestKit", ({ enumerable: true, get: function get() { return _SysTestKit["default"]; } })); Object.defineProperty(exports, "TestType", ({ enumerable: true, get: function get() { return _Constant.TestType; } })); Object.defineProperty(exports, "afterAll", ({ enumerable: true, get: function get() { return _interface.afterAll; } })); Object.defineProperty(exports, "afterEach", ({ enumerable: true, get: function get() { return _interface.afterEach; } })); Object.defineProperty(exports, "beforeAll", ({ enumerable: true, get: function get() { return _interface.beforeAll; } })); Object.defineProperty(exports, "beforeEach", ({ enumerable: true, get: function get() { return _interface.beforeEach; } })); Object.defineProperty(exports, "describe", ({ enumerable: true, get: function get() { return _interface.describe; } })); Object.defineProperty(exports, "expect", ({ enumerable: true, get: function get() { return _interface.expect; } })); Object.defineProperty(exports, "it", ({ enumerable: true, get: function get() { return _interface.it; } })); Object.defineProperty(exports, "when", ({ enumerable: true, get: function get() { return _MockKit.when; } })); var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); var _core = _interopRequireDefault(__webpack_require__(/*! ./src/core */ "./node_modules/@ohos/hypium/src/core.js")); var _Constant = __webpack_require__(/*! ./src/Constant */ "./node_modules/@ohos/hypium/src/Constant.js"); var _DataDriver = _interopRequireDefault(__webpack_require__(/*! ./src/module/config/DataDriver */ "./node_modules/@ohos/hypium/src/module/config/DataDriver.js")); var _ExpectExtend = _interopRequireDefault(__webpack_require__(/*! ./src/module/assert/ExpectExtend */ "./node_modules/@ohos/hypium/src/module/assert/ExpectExtend.js")); var _OhReport = _interopRequireDefault(__webpack_require__(/*! ./src/module/report/OhReport */ "./node_modules/@ohos/hypium/src/module/report/OhReport.js")); var _SysTestKit = _interopRequireDefault(__webpack_require__(/*! ./src/module/kit/SysTestKit */ "./node_modules/@ohos/hypium/src/module/kit/SysTestKit.js")); var _interface = __webpack_require__(/*! ./src/interface */ "./node_modules/@ohos/hypium/src/interface.js"); var _MockKit = __webpack_require__(/*! ./src/module/mock/MockKit */ "./node_modules/@ohos/hypium/src/module/mock/MockKit.js"); var _ArgumentMatchers = _interopRequireDefault(__webpack_require__(/*! ./src/module/mock/ArgumentMatchers */ "./node_modules/@ohos/hypium/src/module/mock/ArgumentMatchers.js")); /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var Hypium = /*#__PURE__*/function () { function Hypium() { (0, _classCallCheck2["default"])(this, Hypium); } (0, _createClass2["default"])(Hypium, null, [{ key: "setData", value: function setData(data) { var core = _core["default"].getInstance(); var dataDriver = new _DataDriver["default"]({ data: data }); core.addService('dataDriver', dataDriver); } }, { key: "hypiumTest", value: function hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) { var _this = this; var core = _core["default"].getInstance(); var expectExtend = new _ExpectExtend["default"]({ 'id': 'extend' }); core.addService('expect', expectExtend); var ohReport = new _OhReport["default"]({ 'delegator': abilityDelegator }); _SysTestKit["default"].delegator = abilityDelegator; core.addService('report', ohReport); core.init(); core.subscribeEvent('spec', ohReport); core.subscribeEvent('suite', ohReport); core.subscribeEvent('task', ohReport); var configService = core.getDefaultService('config'); var testParameters = configService.translateParams(abilityDelegatorArguments.parameters); console.info('parameters:' + JSON.stringify(testParameters)); configService.setConfig(testParameters); testsuite(); if (Object.prototype.hasOwnProperty.call(globalThis, 'setupUiTestEnvironment')) { globalThis.setupUiTestEnvironment().then(function () { (0, _newArrowCheck2["default"])(this, _this); console.info('UiTestKit::after run uitest setup, start run testcases'); core.execute(abilityDelegator); }.bind(this))["catch"](function (error) { (0, _newArrowCheck2["default"])(this, _this); console.error('UiTestKit:: call setupUiTestEnvironment failure:' + error); core.execute(abilityDelegator); }.bind(this)); } else { console.info('UiTestKit:: no need to setup uitest, start run testcases'); core.execute(abilityDelegator); } } }]); return Hypium; }(); exports.Hypium = Hypium; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/Constant.js": /*!***************************************************!*\ !*** ./node_modules/@ohos/hypium/src/Constant.js ***! \***************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TestType = exports.Size = exports.Level = exports.DEFAULT = void 0; var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js")); /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * define the testcase type : TestType, Size , Level */ var DEFAULT = 0; exports.DEFAULT = DEFAULT; var TestType = /*#__PURE__*/(0, _createClass2["default"])(function TestType() { (0, _classCallCheck2["default"])(this, TestType); }); exports.TestType = TestType; (0, _defineProperty2["default"])(TestType, "FUNCTION", 1); (0, _defineProperty2["default"])(TestType, "PERFORMANCE", 1 << 1); (0, _defineProperty2["default"])(TestType, "POWER", 1 << 2); (0, _defineProperty2["default"])(TestType, "RELIABILITY", 1 << 3); (0, _defineProperty2["default"])(TestType, "SECURITY", 1 << 4); (0, _defineProperty2["default"])(TestType, "GLOBAL", 1 << 5); (0, _defineProperty2["default"])(TestType, "COMPATIBILITY", 1 << 6); (0, _defineProperty2["default"])(TestType, "USER", 1 << 7); (0, _defineProperty2["default"])(TestType, "STANDARD", 1 << 8); (0, _defineProperty2["default"])(TestType, "SAFETY", 1 << 9); (0, _defineProperty2["default"])(TestType, "RESILIENCE", 1 << 10); var Size = /*#__PURE__*/(0, _createClass2["default"])(function Size() { (0, _classCallCheck2["default"])(this, Size); }); exports.Size = Size; (0, _defineProperty2["default"])(Size, "SMALLTEST", 1 << 16); (0, _defineProperty2["default"])(Size, "MEDIUMTEST", 1 << 17); (0, _defineProperty2["default"])(Size, "LARGETEST", 1 << 18); var Level = /*#__PURE__*/(0, _createClass2["default"])(function Level() { (0, _classCallCheck2["default"])(this, Level); }); exports.Level = Level; (0, _defineProperty2["default"])(Level, "LEVEL0", 1 << 24); (0, _defineProperty2["default"])(Level, "LEVEL1", 1 << 25); (0, _defineProperty2["default"])(Level, "LEVEL2", 1 << 26); (0, _defineProperty2["default"])(Level, "LEVEL3", 1 << 27); (0, _defineProperty2["default"])(Level, "LEVEL4", 1 << 28); function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/core.js": /*!***********************************************!*\ !*** ./node_modules/@ohos/hypium/src/core.js ***! \***********************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); var _service = __webpack_require__(/*! ./service */ "./node_modules/@ohos/hypium/src/service.js"); var _configService = __webpack_require__(/*! ./module/config/configService */ "./node_modules/@ohos/hypium/src/module/config/configService.js"); var _event = __webpack_require__(/*! ./event */ "./node_modules/@ohos/hypium/src/event.js"); /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * core service for execute testcase. */ var Core = /*#__PURE__*/function () { function Core() { (0, _classCallCheck2["default"])(this, Core); this.instance = null; this.services = { suite: {}, spec: {}, config: {}, expect: {}, log: {}, report: {} }; this.events = { suite: {}, spec: {}, task: {} }; } (0, _createClass2["default"])(Core, [{ key: "addService", value: function addService(name, service) { var serviceObj = {}; if (!this.services[name]) { this.services[name] = serviceObj; } else { serviceObj = this.services[name]; } serviceObj[service.id] = service; } }, { key: "getDefaultService", value: function getDefaultService(name) { return this.services[name]["default"]; } }, { key: "getServices", value: function getServices(name) { return this.services[name]; } }, { key: "registerEvent", value: function registerEvent(serviceName, event) { var eventObj = {}; if (!this.events[serviceName]) { this.events[serviceName] = eventObj; } else { eventObj = this.events[serviceName]; } eventObj[event.id] = event; } }, { key: "unRegisterEvent", value: function unRegisterEvent(serviceName, eventID) { var eventObj = this.events[serviceName]; if (eventObj) { delete eventObj[eventID]; } } }, { key: "subscribeEvent", value: function subscribeEvent(serviceName, serviceObj) { var eventObj = this.events[serviceName]; if (eventObj) { for (var attr in eventObj) { eventObj[attr]['subscribeEvent'](serviceObj); } } } }, { key: "fireEvents", value: function fireEvents(serviceName, eventName) { var eventObj = this.events[serviceName]; if (!eventObj) { return; } for (var attr in eventObj) { eventObj[attr][eventName](); } } }, { key: "addToGlobal", value: function addToGlobal(apis) { if (typeof globalThis !== 'undefined') { for (var api in apis) { globalThis[api] = apis[api]; } } for (var _api in apis) { this[_api] = apis[_api]; } } }, { key: "init", value: function init() { this.addService('suite', new _service.SuiteService({ id: 'default' })); this.addService('spec', new _service.SpecService({ id: 'default' })); this.addService('expect', new _service.ExpectService({ id: 'default' })); this.addService('report', new _service.ReportService({ id: 'default' })); this.addService('config', new _configService.ConfigService({ id: 'default' })); this.registerEvent('task', new _event.TaskEvent({ id: 'default', coreContext: this })); this.registerEvent('suite', new _event.SuiteEvent({ id: 'default', coreContext: this })); this.registerEvent('spec', new _event.SpecEvent({ id: 'default', coreContext: this })); this.subscribeEvent('spec', this.getDefaultService('report')); this.subscribeEvent('suite', this.getDefaultService('report')); this.subscribeEvent('task', this.getDefaultService('report')); var context = this; for (var key in this.services) { var serviceObj = this.services[key]; for (var serviceID in serviceObj) { var service = serviceObj[serviceID]; service.init(context); if (typeof service.apis !== 'function') { continue; } var apis = service.apis(); if (apis) { this.addToGlobal(apis); } } } } }, { key: "execute", value: function execute(abilityDelegator) { var _this = this; var suiteService = this.getDefaultService('suite'); if (suiteService.dryRun(abilityDelegator)) { return; } setTimeout(function () { (0, _newArrowCheck2["default"])(this, _this); suiteService.execute(); }.bind(this), 10); } }], [{ key: "getInstance", value: function getInstance() { if (!this.instance) { this.instance = new Core(); } return this.instance; } }]); return Core; }(); var _default = Core; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/event.js": /*!************************************************!*\ !*** ./node_modules/@ohos/hypium/src/event.js ***! \************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TaskEvent = exports.SuiteEvent = exports.SpecEvent = void 0; var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var SpecEvent = /*#__PURE__*/function () { function SpecEvent(attr) { (0, _classCallCheck2["default"])(this, SpecEvent); this.id = attr.id; this.coreContext = attr.context; this.eventMonitors = []; } (0, _createClass2["default"])(SpecEvent, [{ key: "subscribeEvent", value: function subscribeEvent(service) { this.eventMonitors.push(service); } }, { key: "specStart", value: function specStart() { for (var monitor in this.eventMonitors) { this.eventMonitors[monitor]['specStart'](); } } }, { key: "specDone", value: function specDone() { for (var monitor in this.eventMonitors) { this.eventMonitors[monitor]['specDone'](); } } }]); return SpecEvent; }(); exports.SpecEvent = SpecEvent; var SuiteEvent = /*#__PURE__*/function () { function SuiteEvent(attr) { (0, _classCallCheck2["default"])(this, SuiteEvent); this.id = attr.id; this.suiteContext = attr.coreContext; this.eventMonitors = []; } (0, _createClass2["default"])(SuiteEvent, [{ key: "subscribeEvent", value: function subscribeEvent(service) { this.eventMonitors.push(service); } }, { key: "suiteStart", value: function suiteStart() { for (var monitor in this.eventMonitors) { this.eventMonitors[monitor]['suiteStart'](); } } }, { key: "suiteDone", value: function suiteDone() { for (var monitor in this.eventMonitors) { this.eventMonitors[monitor]['suiteDone'](); } } }]); return SuiteEvent; }(); exports.SuiteEvent = SuiteEvent; var TaskEvent = /*#__PURE__*/function () { function TaskEvent(attr) { (0, _classCallCheck2["default"])(this, TaskEvent); this.id = attr.id; this.coreContext = attr.coreContext; this.eventMonitors = []; } (0, _createClass2["default"])(TaskEvent, [{ key: "subscribeEvent", value: function subscribeEvent(service) { this.eventMonitors.push(service); } }, { key: "taskStart", value: function taskStart() { for (var monitor in this.eventMonitors) { this.eventMonitors[monitor]['taskStart'](); } } }, { key: "taskDone", value: function taskDone() { for (var monitor in this.eventMonitors) { this.eventMonitors[monitor]['taskDone'](); } } }, { key: "incorrectFormat", value: function incorrectFormat() { for (var monitor in this.eventMonitors) { this.eventMonitors[monitor]['incorrectFormat'](); } } }]); return TaskEvent; }(); exports.TaskEvent = TaskEvent; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/interface.js": /*!****************************************************!*\ !*** ./node_modules/@ohos/hypium/src/interface.js ***! \****************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.it = exports.expect = exports.describe = exports.beforeEach = exports.beforeAll = exports.afterEach = exports.afterAll = void 0; var _core = _interopRequireDefault(__webpack_require__(/*! ./core */ "./node_modules/@ohos/hypium/src/core.js")); /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var core = _core["default"].getInstance(); var describe = function describe(desc, func) { if (typeof globalThis !== 'undefined') { return globalThis.describe(desc, func); } return core.describe(desc, func); }; exports.describe = describe; var it = function it(desc, filter, func) { if (typeof globalThis !== 'undefined') { return globalThis.it(desc, filter, func); } return core.it(desc, filter, func); }; exports.it = it; var beforeEach = function beforeEach(func) { if (typeof globalThis !== 'undefined') { return globalThis.beforeEach(func); } return core.beforeEach(func); }; exports.beforeEach = beforeEach; var afterEach = function afterEach(func) { if (typeof globalThis !== 'undefined') { return globalThis.afterEach(func); } return core.afterEach(func); }; exports.afterEach = afterEach; var beforeAll = function beforeAll(func) { if (typeof globalThis !== 'undefined') { return globalThis.beforeAll(func); } return core.beforeAll(func); }; exports.beforeAll = beforeAll; var afterAll = function afterAll(func) { if (typeof globalThis !== 'undefined') { return globalThis.afterAll(func); } return core.afterAll(func); }; exports.afterAll = afterAll; var expect = function expect(actualValue) { if (typeof globalThis !== 'undefined') { return globalThis.expect(actualValue); } return core.expect(actualValue); }; exports.expect = expect; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/assert/ExpectExtend.js": /*!*********************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/assert/ExpectExtend.js ***! \*********************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); var _assertNull = _interopRequireDefault(__webpack_require__(/*! ./assertNull */ "./node_modules/@ohos/hypium/src/module/assert/assertNull.js")); var _assertClose = _interopRequireDefault(__webpack_require__(/*! ./assertClose */ "./node_modules/@ohos/hypium/src/module/assert/assertClose.js")); var _assertContain = _interopRequireDefault(__webpack_require__(/*! ./assertContain */ "./node_modules/@ohos/hypium/src/module/assert/assertContain.js")); var _assertLess = _interopRequireDefault(__webpack_require__(/*! ./assertLess */ "./node_modules/@ohos/hypium/src/module/assert/assertLess.js")); var _assertLarger = _interopRequireDefault(__webpack_require__(/*! ./assertLarger */ "./node_modules/@ohos/hypium/src/module/assert/assertLarger.js")); var _assertFail = _interopRequireDefault(__webpack_require__(/*! ./assertFail */ "./node_modules/@ohos/hypium/src/module/assert/assertFail.js")); var _assertUndefined = _interopRequireDefault(__webpack_require__(/*! ./assertUndefined */ "./node_modules/@ohos/hypium/src/module/assert/assertUndefined.js")); var _assertFalse = _interopRequireDefault(__webpack_require__(/*! ./assertFalse */ "./node_modules/@ohos/hypium/src/module/assert/assertFalse.js")); var _assertInstanceOf = _interopRequireDefault(__webpack_require__(/*! ./assertInstanceOf */ "./node_modules/@ohos/hypium/src/module/assert/assertInstanceOf.js")); var _assertThrowError = _interopRequireDefault(__webpack_require__(/*! ./assertThrowError */ "./node_modules/@ohos/hypium/src/module/assert/assertThrowError.js")); /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var ExpectExtend = /*#__PURE__*/function () { function ExpectExtend(attr) { (0, _classCallCheck2["default"])(this, ExpectExtend); this.id = attr.id; this.matchers = {}; } (0, _createClass2["default"])(ExpectExtend, [{ key: "extendsMatchers", value: function extendsMatchers() { this.matchers.assertNull = _assertNull["default"]; this.matchers.assertClose = _assertClose["default"]; this.matchers.assertContain = _assertContain["default"]; this.matchers.assertLess = _assertLess["default"]; this.matchers.assertLarger = _assertLarger["default"]; this.matchers.assertFail = _assertFail["default"]; this.matchers.assertUndefined = _assertUndefined["default"]; this.matchers.assertFalse = _assertFalse["default"]; this.matchers.assertInstanceOf = _assertInstanceOf["default"]; this.matchers.assertThrowError = _assertThrowError["default"]; } }, { key: "init", value: function init(coreContext) { this.coreContext = coreContext; this.extendsMatchers(); var expectService = this.coreContext.getDefaultService('expect'); expectService.addMatchers(this.matchers); } }, { key: "apis", value: function apis() { return { 'expect': function expect(actualValue) { return this.coreContext.getDefaultService('expect').expect(actualValue); } }; } }]); return ExpectExtend; }(); var _default = ExpectExtend; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/assert/assertClose.js": /*!********************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/assert/assertClose.js ***! \********************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function assertClose(actualValue, expected) { console.log('expected:' + expected[0] + ',precision:' + expected[1]); if (actualValue === null && expected[0] === null) { throw new Error('actualValue and expected can not be both null!!!'); } var result; var diff = Math.abs(expected[0] - actualValue); var actualAbs = Math.abs(actualValue); if (actualAbs - 0 === 0) { if (diff - 0 === 0) { result = true; } else { result = false; } } else if (diff / actualAbs < expected[1]) { result = true; } else { result = false; } return { pass: result, message: '|' + actualValue + ' - ' + expected[0] + '|/' + actualValue + ' is not less than ' + expected[1] }; } var _default = assertClose; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/assert/assertContain.js": /*!**********************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/assert/assertContain.js ***! \**********************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function assertContain(actualValue, expect) { var result = false; if (Object.prototype.toString.call(actualValue).indexOf('Array')) { for (var i in actualValue) { if (actualValue[i] == expect[0]) { result = true; } } } var type = Object.prototype.toString.call(actualValue); if (type === '[object String]') { result = actualValue.indexOf(expect[0]) >= 0; } return { pass: result, message: 'except false, ' + actualValue + ' do not have ' + expect[0] }; } var _default = assertContain; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/assert/assertFail.js": /*!*******************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/assert/assertFail.js ***! \*******************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function assertFail() { return { pass: false, message: 'fail ' }; } var _default = assertFail; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/assert/assertFalse.js": /*!********************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/assert/assertFalse.js ***! \********************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function assertFalse(actualValue) { return { pass: actualValue === false, message: 'except false, actualValue is ' + actualValue }; } var _default = assertFalse; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/assert/assertInstanceOf.js": /*!*************************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/assert/assertInstanceOf.js ***! \*************************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function assertInstanceOf(actualValue, expected) { if (Object.prototype.toString.call(actualValue) == '[object ' + expected[0] + ']') { return { pass: true }; } else { return { pass: false, message: actualValue + ' is ' + Object.prototype.toString.call(actualValue) + 'not ' + expected[0] }; } } var _default = assertInstanceOf; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/assert/assertLarger.js": /*!*********************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/assert/assertLarger.js ***! \*********************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function assertLarger(actualValue, expected) { return { pass: actualValue > expected[0], message: actualValue + ' is not larger than ' + expected[0] }; } var _default = assertLarger; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/assert/assertLess.js": /*!*******************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/assert/assertLess.js ***! \*******************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function assertLess(actualValue, expected) { return { pass: actualValue < expected[0], message: actualValue + ' is not less than ' + expected[0] }; } var _default = assertLess; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/assert/assertNull.js": /*!*******************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/assert/assertNull.js ***! \*******************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function assertNull(actualValue) { return { pass: actualValue === null, message: 'expect null, actualValue is ' + actualValue }; } var _default = assertNull; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/assert/assertThrowError.js": /*!*************************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/assert/assertThrowError.js ***! \*************************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function assertThrowError(actualValue, expected) { var result = false; var err; if (typeof actualValue !== 'function') { throw new Error('actualValue is not a function'); } try { actualValue(); return { pass: result, message: ' An error is not thrown while it is expected!' }; } catch (e) { err = e; } if (err instanceof Error) { console.log(err.message); if (err.message == expected[0]) { result = true; } } return { pass: result, message: 'expected throw failed , ' + err.message + ' is not ' + expected[0] }; } var _default = assertThrowError; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/assert/assertUndefined.js": /*!************************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/assert/assertUndefined.js ***! \************************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function assertUndefined(actualValue) { return { pass: undefined === actualValue, message: 'expect Undefined, actualValue is ' + actualValue }; } var _default = assertUndefined; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/config/DataDriver.js": /*!*******************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/config/DataDriver.js ***! \*******************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var SUITES_KEY = 'suites'; var SPECS_KEY = 'items'; var DESCRIBE_KEY = 'describe'; var IT_KEY = 'it'; var PARAMS_KEY = 'params'; var STRESS_KEY = 'stress'; var ObjectUtils = /*#__PURE__*/function () { function ObjectUtils() { (0, _classCallCheck2["default"])(this, ObjectUtils); } (0, _createClass2["default"])(ObjectUtils, null, [{ key: "get", value: function get(object, name, defaultValue) { var result = defaultValue; for (var key in object) { if (key === name) { return object[key]; } } return result; } }, { key: "has", value: function has(object, key) { return Object.prototype.hasOwnProperty.call(object, key); } }]); return ObjectUtils; }(); var DataDriver = /*#__PURE__*/function () { function DataDriver(attr) { (0, _classCallCheck2["default"])(this, DataDriver); this.id = 'dataDriver'; this.data = attr.data || {}; } (0, _createClass2["default"])(DataDriver, [{ key: "init", value: function init(coreContext) { this.coreContext = coreContext; this.suiteService = this.coreContext.getDefaultService('suite'); this.specService = this.coreContext.getDefaultService('spec'); } }, { key: "getSpecParams", value: function getSpecParams() { var specParams = []; var suiteDesc = this.suiteService.getCurrentRunningSuite().description; var specDesc = this.specService.getCurrentRunningSpec().description; var suites = ObjectUtils.get(this.data, SUITES_KEY, []); var _iterator = _createForOfIteratorHelper(suites), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var suiteItem = _step.value; var describeValue = ObjectUtils.get(suiteItem, DESCRIBE_KEY, ''); if (ObjectUtils.has(suiteItem, DESCRIBE_KEY) && (0, _typeof2["default"])(describeValue) === 'object' && describeValue.constructor === Array && describeValue.includes(suiteDesc)) { var specs = ObjectUtils.get(suiteItem, SPECS_KEY, []); var _iterator2 = _createForOfIteratorHelper(specs), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var specItem = _step2.value; if (ObjectUtils.has(specItem, IT_KEY) && ObjectUtils.get(specItem, IT_KEY) === specDesc) { return ObjectUtils.get(specItem, PARAMS_KEY, specParams); } } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } } } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } return specParams; } }, { key: "getSuiteParams", value: function getSuiteParams() { var suiteParams = {}; var suiteDesc = this.suiteService.getCurrentRunningSuite().description; var suites = ObjectUtils.get(this.data, SUITES_KEY, []); var _iterator3 = _createForOfIteratorHelper(suites), _step3; try { for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) { var suiteItem = _step3.value; var describeValue = ObjectUtils.get(suiteItem, DESCRIBE_KEY, []); if (ObjectUtils.has(suiteItem, DESCRIBE_KEY) && (0, _typeof2["default"])(describeValue) === 'object' && describeValue.constructor === Array && describeValue.includes(suiteDesc)) { suiteParams = Object.assign({}, suiteParams, ObjectUtils.get(suiteItem, PARAMS_KEY, suiteParams)); } } } catch (err) { _iterator3.e(err); } finally { _iterator3.f(); } return suiteParams; } }, { key: "getSpecStress", value: function getSpecStress(specDesc) { var stress = 1; var suiteDesc = this.suiteService.getCurrentRunningSuite().description; var suites = ObjectUtils.get(this.data, SUITES_KEY, []); var _iterator4 = _createForOfIteratorHelper(suites), _step4; try { for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) { var suiteItem = _step4.value; var describeValue = ObjectUtils.get(suiteItem, DESCRIBE_KEY, ''); if (ObjectUtils.has(suiteItem, DESCRIBE_KEY) && (0, _typeof2["default"])(describeValue) === 'object' && describeValue.constructor === Array && describeValue.includes(suiteDesc)) { var specs = ObjectUtils.get(suiteItem, SPECS_KEY, []); var _iterator5 = _createForOfIteratorHelper(specs), _step5; try { for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) { var specItem = _step5.value; if (ObjectUtils.has(specItem, IT_KEY) && ObjectUtils.get(specItem, IT_KEY) === specDesc) { var tempStress = ObjectUtils.get(specItem, STRESS_KEY, stress); return Number.isInteger(tempStress) && tempStress >= 1 ? tempStress : stress; } } } catch (err) { _iterator5.e(err); } finally { _iterator5.f(); } } } } catch (err) { _iterator4.e(err); } finally { _iterator4.f(); } return stress; } }, { key: "getSuiteStress", value: function getSuiteStress(suiteDesc) { var stress = 1; var suites = ObjectUtils.get(this.data, SUITES_KEY, []); var _iterator6 = _createForOfIteratorHelper(suites), _step6; try { for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) { var suiteItem = _step6.value; var describeValue = ObjectUtils.get(suiteItem, DESCRIBE_KEY, []); if (ObjectUtils.has(suiteItem, DESCRIBE_KEY) && (0, _typeof2["default"])(describeValue) === 'object' && describeValue.constructor === Array && describeValue.includes(suiteDesc)) { var tempStress = ObjectUtils.get(suiteItem, STRESS_KEY, stress); return Number.isInteger(tempStress) && tempStress >= 1 ? tempStress : stress; } } } catch (err) { _iterator6.e(err); } finally { _iterator6.f(); } return stress; } }]); return DataDriver; }(); var _default = DataDriver; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/config/Filter.js": /*!***************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/config/Filter.js ***! \***************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TestTypesFilter = exports.SuiteAndItNameFilter = exports.NotClassFilter = exports.ClassFilter = void 0; var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var ClassFilter = /*#__PURE__*/function () { function ClassFilter(suiteName, itName, params) { (0, _classCallCheck2["default"])(this, ClassFilter); this.suiteName = suiteName; this.itName = itName; this.params = params; } (0, _createClass2["default"])(ClassFilter, [{ key: "filterSuite", value: function filterSuite() { var _this = this; return !this.params.split(',').map(function (item) { (0, _newArrowCheck2["default"])(this, _this); return item.split('#')[0]; }.bind(this)).map(function (item) { (0, _newArrowCheck2["default"])(this, _this); return item == this.suiteName; }.bind(this)).reduce(function (pre, cur) { (0, _newArrowCheck2["default"])(this, _this); return pre || cur; }.bind(this), false); } }, { key: "filterIt", value: function filterIt() { var _this2 = this; var classArray = this.params.split(',') || []; var suiteFilterResult = classArray.filter(function (item) { (0, _newArrowCheck2["default"])(this, _this2); return !item.includes('#'); }.bind(this)).map(function (item) { (0, _newArrowCheck2["default"])(this, _this2); return item == this.suiteName; }.bind(this)).reduce(function (pre, cur) { (0, _newArrowCheck2["default"])(this, _this2); return pre || cur; }.bind(this), false); var itFilterResult = classArray.filter(function (item) { (0, _newArrowCheck2["default"])(this, _this2); return item.includes('#'); }.bind(this)).map(function (item) { (0, _newArrowCheck2["default"])(this, _this2); return item == this.suiteName + '#' + this.itName; }.bind(this)).reduce(function (pre, cur) { (0, _newArrowCheck2["default"])(this, _this2); return pre || cur; }.bind(this), false); return !(suiteFilterResult || itFilterResult); } }]); return ClassFilter; }(); exports.ClassFilter = ClassFilter; var NotClassFilter = /*#__PURE__*/function () { function NotClassFilter(suiteName, itName, params) { (0, _classCallCheck2["default"])(this, NotClassFilter); this.suiteName = suiteName; this.itName = itName; this.params = params; } (0, _createClass2["default"])(NotClassFilter, [{ key: "filterSuite", value: function filterSuite() { var _this3 = this; return this.params.split(',').map(function (item) { (0, _newArrowCheck2["default"])(this, _this3); return item == this.suiteName; }.bind(this)).reduce(function (pre, cur) { (0, _newArrowCheck2["default"])(this, _this3); return pre || cur; }.bind(this), false); } }, { key: "filterIt", value: function filterIt() { return this.params.includes(this.suiteName + '#' + this.itName); } }]); return NotClassFilter; }(); exports.NotClassFilter = NotClassFilter; var SuiteAndItNameFilter = /*#__PURE__*/function () { function SuiteAndItNameFilter(suiteName, itName, params) { (0, _classCallCheck2["default"])(this, SuiteAndItNameFilter); this.suiteName = suiteName; this.itName = itName; this.params = params; } (0, _createClass2["default"])(SuiteAndItNameFilter, [{ key: "filterSuite", value: function filterSuite() { var _this4 = this; return !this.params.split(',').map(function (item) { (0, _newArrowCheck2["default"])(this, _this4); return item == this.suiteName; }.bind(this)).reduce(function (pre, cur) { (0, _newArrowCheck2["default"])(this, _this4); return pre || cur; }.bind(this), false); } }, { key: "filterIt", value: function filterIt() { var _this5 = this; return !this.params.split(',').map(function (item) { (0, _newArrowCheck2["default"])(this, _this5); return item == this.itName; }.bind(this)).reduce(function (pre, cur) { (0, _newArrowCheck2["default"])(this, _this5); return pre || cur; }.bind(this), false); } }]); return SuiteAndItNameFilter; }(); exports.SuiteAndItNameFilter = SuiteAndItNameFilter; var TestTypesFilter = /*#__PURE__*/function () { function TestTypesFilter(suiteName, itName, fi, params) { (0, _classCallCheck2["default"])(this, TestTypesFilter); this.suiteName = suiteName; this.itName = itName; this.params = params; this.fi = fi; } (0, _createClass2["default"])(TestTypesFilter, [{ key: "filterIt", value: function filterIt() { return !(this.params === (this.fi & this.params) || this.fi === 0); } }]); return TestTypesFilter; }(); exports.TestTypesFilter = TestTypesFilter; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/config/configService.js": /*!**********************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/config/configService.js ***! \**********************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ConfigService = void 0; var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); var _Filter = __webpack_require__(/*! ./Filter */ "./node_modules/@ohos/hypium/src/module/config/Filter.js"); function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } var ConfigService = /*#__PURE__*/function () { function ConfigService(attr) { (0, _classCallCheck2["default"])(this, ConfigService); this.id = attr.id; this.supportAsync = false; this.random = false; this.filterValid = []; this.filter = 0; this.flag = false; this.suite = null; this.itName = null; this.testType = null; this.level = null; this.size = null; this["class"] = null; this.notClass = null; this.timeout = null; } (0, _createClass2["default"])(ConfigService, [{ key: "init", value: function init(coreContext) { this.coreContext = coreContext; } }, { key: "isNormalInteger", value: function isNormalInteger(str) { var n = Math.floor(Number(str)); return n !== Infinity && String(n) === String(str) && n >= 0; } }, { key: "basicParamValidCheck", value: function basicParamValidCheck(params) { var size = params.size; if (size !== undefined && size !== '' && size !== null) { var sizeArray = ['small', 'medium', 'large']; if (sizeArray.indexOf(size) === -1) { this.filterValid.push('size:' + size); } } var level = params.level; if (level !== undefined && level !== '' && level !== null) { var levelArray = ['0', '1', '2', '3', '4']; if (levelArray.indexOf(level) === -1) { this.filterValid.push('level:' + level); } } var testType = params.testType; if (testType !== undefined && testType !== '' && testType !== null) { var testTypeArray = ['function', 'performance', 'power', 'reliability', 'security', 'global', 'compatibility', 'user', 'standard', 'safety', 'resilience']; if (testTypeArray.indexOf(testType) === -1) { this.filterValid.push('testType:' + testType); } } } }, { key: "filterParamValidCheck", value: function filterParamValidCheck(params) { var timeout = params.timeout; if (timeout !== undefined && timeout !== '' && timeout !== null) { if (!this.isNormalInteger(timeout)) { this.filterValid.push('timeout:' + timeout); } } if (params.dryRun !== undefined && params.dryRun !== 'true' && params.dryRun !== 'false') { this.filterValid.push('dryRun:' + params.dryRun); } var classes = params["class"]; var nameRule = /^[A-Za-z]{1}[\w#,.]*$/; if (classes !== undefined && classes !== '' && classes !== null) { var classArray = classes.split(','); var _iterator = _createForOfIteratorHelper(classArray), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var className = _step.value; if (!className.match(nameRule)) { this.filterValid.push('class:' + classes); break; } } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } } var notClasses = params.notClass; if (notClasses !== undefined && notClasses !== '' && notClasses !== null) { var notClassArray = notClasses.split(','); var _iterator2 = _createForOfIteratorHelper(notClassArray), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var notClassName = _step2.value; if (!notClassName.match(nameRule)) { this.filterValid.push('notClass:' + notClasses); break; } } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } } } }, { key: "setConfig", value: function setConfig(params) { this.basicParamValidCheck(params); this.filterParamValidCheck(params); try { this["class"] = params["class"]; this.notClass = params.notClass; this.flag = params.flag || { flag: false }; this.suite = params.suite; this.itName = params.itName; this.filter = params.filter; this.testType = params.testType; this.level = params.level; this.size = params.size; this.timeout = params.timeout; this.dryRun = params.dryRun; this.filterParam = { testType: { 'function': 1, 'performance': 1 << 1, 'power': 1 << 2, 'reliability': 1 << 3, 'security': 1 << 4, 'global': 1 << 5, 'compatibility': 1 << 6, 'user': 1 << 7, 'standard': 1 << 8, 'safety': 1 << 9, 'resilience': 1 << 10 }, level: { '0': 1 << 24, '1': 1 << 25, '2': 1 << 26, '3': 1 << 27, '4': 1 << 28 }, size: { 'small': 1 << 16, 'medium': 1 << 17, 'large': 1 << 18 } }; this.parseParams(); } catch (err) { console.info('setConfig error: ' + err.message); } } }, { key: "parseParams", value: function parseParams() { var _this = this; if (this.filter != null) { return; } var testTypeFilter = 0; var sizeFilter = 0; var levelFilter = 0; if (this.testType != null) { testTypeFilter = this.testType.split(',').map(function (item) { (0, _newArrowCheck2["default"])(this, _this); return this.filterParam.testType[item] || 0; }.bind(this)).reduce(function (pre, cur) { (0, _newArrowCheck2["default"])(this, _this); return pre | cur; }.bind(this), 0); } if (this.level != null) { levelFilter = this.level.split(',').map(function (item) { (0, _newArrowCheck2["default"])(this, _this); return this.filterParam.level[item] || 0; }.bind(this)).reduce(function (pre, cur) { (0, _newArrowCheck2["default"])(this, _this); return pre | cur; }.bind(this), 0); } if (this.size != null) { sizeFilter = this.size.split(',').map(function (item) { (0, _newArrowCheck2["default"])(this, _this); return this.filterParam.size[item] || 0; }.bind(this)).reduce(function (pre, cur) { (0, _newArrowCheck2["default"])(this, _this); return pre | cur; }.bind(this), 0); } this.filter = testTypeFilter | sizeFilter | levelFilter; console.info('filter params:' + this.filter); } }, { key: "isCurrentSuite", value: function isCurrentSuite(description) { if (this.suite !== undefined && this.suite !== '' && this.suite !== null) { var suiteArray = this.suite.split(','); return suiteArray.indexOf(description) !== -1; } return false; } }, { key: "filterSuite", value: function filterSuite(currentSuiteName) { var _this2 = this; var filterArray = []; if (this.suite !== undefined && this.suite !== '' && this.suite !== null) { filterArray.push(new _Filter.SuiteAndItNameFilter(currentSuiteName, '', this.suite)); } if (this["class"] !== undefined && this["class"] !== '' && this["class"] !== null) { filterArray.push(new _Filter.ClassFilter(currentSuiteName, '', this["class"])); } if (this.notClass !== undefined && this.notClass !== '' && this.notClass !== null) { filterArray.push(new _Filter.NotClassFilter(currentSuiteName, '', this.notClass)); } var result = filterArray.map(function (item) { (0, _newArrowCheck2["default"])(this, _this2); return item.filterSuite(); }.bind(this)).reduce(function (pre, cur) { (0, _newArrowCheck2["default"])(this, _this2); return pre || cur; }.bind(this), false); return result; } }, { key: "filterDesc", value: function filterDesc(currentSuiteName, desc, fi, coreContext) { var _this3 = this; var filterArray = []; if (this.itName !== undefined && this.itName !== '' && this.itName !== null) { filterArray.push(new _Filter.SuiteAndItNameFilter(currentSuiteName, desc, this.itName)); } if (this["class"] !== undefined && this["class"] !== '' && this["class"] !== null) { filterArray.push(new _Filter.ClassFilter(currentSuiteName, desc, this["class"])); } if (this.notClass !== undefined && this.notClass !== '' && this.notClass !== null) { filterArray.push(new _Filter.NotClassFilter(currentSuiteName, desc, this.notClass)); } if (typeof this.filter !== 'undefined' && this.filter !== 0 && fi !== 0) { filterArray.push(new _Filter.TestTypesFilter('', '', fi, this.filter)); } var result = filterArray.map(function (item) { (0, _newArrowCheck2["default"])(this, _this3); return item.filterIt(); }.bind(this)).reduce(function (pre, cur) { (0, _newArrowCheck2["default"])(this, _this3); return pre || cur; }.bind(this), false); return result; } }, { key: "isRandom", value: function isRandom() { return this.random || false; } }, { key: "setSupportAsync", value: function setSupportAsync(value) { this.supportAsync = value; } }, { key: "isSupportAsync", value: function isSupportAsync() { return this.supportAsync; } }, { key: "translateParams", value: function translateParams(parameters) { var keySet = new Set(['-s class', '-s notClass', '-s suite', '-s itName', '-s level', '-s testType', '-s size', '-s timeout', '-s dryRun', 'class', 'notClass', 'suite', 'itName', 'level', 'testType', 'size', 'timeout', 'dryRun']); var targetParams = {}; for (var key in parameters) { if (keySet.has(key)) { var newKey = key.replace("-s ", ""); targetParams[newKey] = parameters[key]; } } return targetParams; } }, { key: "translateParamsToString", value: function translateParamsToString(parameters) { var keySet = new Set(['-s class', '-s notClass', '-s suite', '-s itName', '-s level', '-s testType', '-s size', '-s timeout', '-s dryRun', 'class', 'notClass', 'suite', 'itName', 'level', 'testType', 'size', 'timeout', 'dryRun']); var targetParams = ''; for (var key in parameters) { if (keySet.has(key)) { targetParams += ' ' + key + ' ' + parameters[key]; } } return targetParams.trim(); } }, { key: "execute", value: function execute() {} }]); return ConfigService; }(); exports.ConfigService = ConfigService; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/kit/SysTestKit.js": /*!****************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/kit/SysTestKit.js ***! \****************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js")); var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js")); var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js")); /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var SysTestKit = /*#__PURE__*/function () { function SysTestKit() { (0, _classCallCheck2["default"])(this, SysTestKit); this.id = 'sysTestKit'; this.index = 0; } (0, _createClass2["default"])(SysTestKit, null, [{ key: "actionStart", value: function actionStart(tag) { var _this = this; console.info(JSON.stringify(tag)); var message = '\n' + 'OHOS_REPORT_ACTIONSTART: ' + JSON.stringify(tag) + '\n'; SysTestKit.delegator.print(message).then(function () { (0, _newArrowCheck2["default"])(this, _this); console.info(tag + ' actionStart print success'); }.bind(this)); } }, { key: "actionEnd", value: function actionEnd(tag) { var _this2 = this; console.info(JSON.stringify(tag)); var message = '\n' + 'OHOS_REPORT_ACTIONEND: ' + JSON.stringify(tag) + '\n'; SysTestKit.delegator.print(message).then(function () { (0, _newArrowCheck2["default"])(this, _this2); console.info(tag + ' actionEnd print success'); }.bind(this)); } }, { key: "existKeyword", value: function () { var _existKeyword = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(keyword, timeout) { var _this3 = this; var searchResult, cmd; return _regenerator["default"].wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: keyword = keyword || 'jsapp'; timeout = timeout || 4; searchResult = false; cmd = 'hilog -x | grep -i \'' + keyword + '\' | wc -l'; _context.next = 6; return executePromise(cmd, timeout).then(function (data) { (0, _newArrowCheck2["default"])(this, _this3); searchResult = data; }.bind(this)); case 6: return _context.abrupt("return", searchResult); case 7: case "end": return _context.stop(); } } }, _callee, this); })); function existKeyword(_x, _x2) { return _existKeyword.apply(this, arguments); } return existKeyword; }() }]); return SysTestKit; }(); (0, _defineProperty2["default"])(SysTestKit, "delegator", null); function executePromise(cmd, timeout) { var _this4 = this; return new Promise(function (resolve, reject) { var _this5 = this; (0, _newArrowCheck2["default"])(this, _this4); SysTestKit.delegator.executeShellCommand(cmd, timeout, function (error, data) { (0, _newArrowCheck2["default"])(this, _this5); console.info('existKeyword CallBack: err : ' + JSON.stringify(error)); console.info('existKeyword CallBack: data : ' + JSON.stringify(data)); resolve(parseInt(data.stdResult) > 3 ? true : false); }.bind(this)); }.bind(this)); } var _default = SysTestKit; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/mock/ArgumentMatchers.js": /*!***********************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/mock/ArgumentMatchers.js ***! \***********************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js")); /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var ArgumentMatchers = /*#__PURE__*/function () { function ArgumentMatchers() { (0, _classCallCheck2["default"])(this, ArgumentMatchers); (0, _defineProperty2["default"])(this, "ANY", ""); (0, _defineProperty2["default"])(this, "ANY_STRING", ""); (0, _defineProperty2["default"])(this, "ANY_BOOLEAN", ""); (0, _defineProperty2["default"])(this, "ANY_NUMBER", ""); (0, _defineProperty2["default"])(this, "ANY_OBJECT", ""); (0, _defineProperty2["default"])(this, "ANY_FUNCTION", ""); (0, _defineProperty2["default"])(this, "MATCH_REGEXS", ""); } (0, _createClass2["default"])(ArgumentMatchers, [{ key: "matcheReturnKey", value: function matcheReturnKey() { var arg = arguments[0]; var regex = arguments[1]; var stubSetKey = arguments[2]; if (stubSetKey && stubSetKey == this.ANY) { return this.ANY; } if (typeof arg === "string" && !regex) { return this.ANY_STRING; } if (typeof arg === "boolean" && !regex) { return this.ANY_BOOLEAN; } if (typeof arg === "number" && !regex) { return this.ANY_NUMBER; } if ((0, _typeof2["default"])(arg) === "object" && !regex) { return this.ANY_OBJECT; } if (typeof arg === "function" && !regex) { return this.ANY_FUNCTION; } if (typeof arg === "string" && regex) { return regex.test(arg); } return null; } }, { key: "matcheStubKey", value: function matcheStubKey() { var key = arguments[0]; if (key === ArgumentMatchers.any) { return this.ANY; } if (key === ArgumentMatchers.anyString) { return this.ANY_STRING; } if (key === ArgumentMatchers.anyBoolean) { return this.ANY_BOOLEAN; } if (key === ArgumentMatchers.anyNumber) { return this.ANY_NUMBER; } if (key === ArgumentMatchers.anyObj) { return this.ANY_OBJECT; } if (key === ArgumentMatchers.anyFunction) { return this.ANY_FUNCTION; } if (ArgumentMatchers.isRegExp(key)) { return key; } return null; } }], [{ key: "any", value: function any() {} }, { key: "anyString", value: function anyString() {} }, { key: "anyBoolean", value: function anyBoolean() {} }, { key: "anyNumber", value: function anyNumber() {} }, { key: "anyObj", value: function anyObj() {} }, { key: "anyFunction", value: function anyFunction() {} }, { key: "matchRegexs", value: function matchRegexs() { var regex = arguments[0]; if (ArgumentMatchers.isRegExp(regex)) { return regex; } throw Error("not a regex"); } }, { key: "isRegExp", value: function isRegExp(value) { return Object.prototype.toString.call(value) === "[object RegExp]"; } }]); return ArgumentMatchers; }(); var _default = ArgumentMatchers; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/mock/ExtendInterface.js": /*!**********************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/mock/ExtendInterface.js ***! \**********************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var ExtendInterface = /*#__PURE__*/function () { function ExtendInterface(mocker) { (0, _classCallCheck2["default"])(this, ExtendInterface); this.mocker = mocker; } (0, _createClass2["default"])(ExtendInterface, [{ key: "stub", value: function stub() { this.params = arguments; return this; } }, { key: "stubMockedCall", value: function stubMockedCall(returnInfo) { this.mocker.stubApply(this, this.params, returnInfo); } }, { key: "afterReturn", value: function afterReturn(value) { this.stubMockedCall(function () { return value; }); } }, { key: "afterReturnNothing", value: function afterReturnNothing() { this.stubMockedCall(function () { return undefined; }); } }, { key: "afterAction", value: function afterAction(action) { this.stubMockedCall(action); } }, { key: "afterThrow", value: function afterThrow(msg) { this.stubMockedCall(function () { throw msg; }); } }, { key: "clear", value: function clear() { this.mocker.clear(); } }]); return ExtendInterface; }(); var _default = ExtendInterface; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/mock/MockKit.js": /*!**************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/mock/MockKit.js ***! \**************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MockKit = void 0; exports.when = when; var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js")); var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); var _ExtendInterface = _interopRequireDefault(__webpack_require__(/*! ./ExtendInterface */ "./node_modules/@ohos/hypium/src/module/mock/ExtendInterface.js")); var _VerificationMode = _interopRequireDefault(__webpack_require__(/*! ./VerificationMode */ "./node_modules/@ohos/hypium/src/module/mock/VerificationMode.js")); var _ArgumentMatchers = _interopRequireDefault(__webpack_require__(/*! ./ArgumentMatchers */ "./node_modules/@ohos/hypium/src/module/mock/ArgumentMatchers.js")); /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var MockKit = /*#__PURE__*/function () { function MockKit() { (0, _classCallCheck2["default"])(this, MockKit); this.mFunctions = []; this.stubs = new Map(); this.recordCalls = new Map(); this.currentSetKey = null; this.mockObj = null; this.recordMockedMethod = new Map(); } (0, _createClass2["default"])(MockKit, [{ key: "init", value: function init() { this.reset(); } }, { key: "reset", value: function reset() { this.mFunctions = []; this.stubs = {}; this.recordCalls = {}; this.currentSetKey = null; this.mockObj = null; this.recordMockedMethod = new Map(); } }, { key: "clearAll", value: function clearAll() { this.reset(); var props = Object.keys(this); for (var i = 0; i < props.length; i++) { delete this[props[i]]; } var props = Object.getOwnPropertyNames(this); for (var i = 0; i < props.length; i++) { delete this[props[i]]; } for (var key in this) { delete this[key]; } } }, { key: "clear", value: function clear(obj) { if (!obj) throw Error("Please enter an object to be cleaned"); if ((0, _typeof2["default"])(obj) != 'object') throw new Error('Not a object'); this.recordMockedMethod.forEach(function (value, key, map) { if (key) { obj[key] = value; } }); } }, { key: "ignoreMock", value: function ignoreMock(obj, method) { if ((0, _typeof2["default"])(obj) != 'object') throw new Error('Not a object'); if (typeof method != 'function') throw new Error('Not a function'); var og = this.recordMockedMethod.get(method.propName); if (og) { obj[method.propName] = og; this.recordMockedMethod.set(method.propName, undefined); } } }, { key: "extend", value: function extend(dest, source) { dest["stub"] = source["stub"]; dest["afterReturn"] = source["afterReturn"]; dest["afterReturnNothing"] = source["afterReturnNothing"]; dest["afterAction"] = source["afterAction"]; dest["afterThrow"] = source["afterThrow"]; dest["stubMockedCall"] = source["stubMockedCall"]; dest["clear"] = source["clear"]; return dest; } }, { key: "stubApply", value: function stubApply(f, params, returnInfo) { var values = this.stubs.get(f); if (!values) { values = new Map(); } var key = params[0]; var matcher = new _ArgumentMatchers["default"](); if (matcher.matcheStubKey(key)) { key = matcher.matcheStubKey(key); if (key) { this.currentSetKey = key; } } values.set(key, returnInfo); console.info("set stub:" + f + ";" + "key:" + key + ",returnInfo:" + returnInfo); this.stubs.set(f, values); } }, { key: "getReturnInfo", value: function getReturnInfo(f, params) { var values = this.stubs.get(f); console.info("getReruntInfo:" + f + ",values:" + values + ",params:" + params[0]); if (!values) { return undefined; } var retrunKet = params[0]; var stubSetKey = this.currentSetKey; if (this.currentSetKey && retrunKet) { retrunKet = stubSetKey; } var matcher = new _ArgumentMatchers["default"](); if (matcher.matcheReturnKey(params[0], undefined, stubSetKey) && matcher.matcheReturnKey(params[0], undefined, stubSetKey) != stubSetKey) { retrunKet = params[0]; } values.forEach(function (value, key, map) { if (_ArgumentMatchers["default"].isRegExp(key) && matcher.matcheReturnKey(params[0], key)) { retrunKet = key; } }); console.info("detail:" + values.get(retrunKet)); return values.get(retrunKet); } }, { key: "findName", value: function findName(obj, value) { var properties = this.findProperties(obj); var name = null; properties.forEach(function (va1, idx, array) { if (obj[va1] === value) { name = va1; } }); return name; } }, { key: "isFunctionFromPrototype", value: function isFunctionFromPrototype(f, container, propName) { if (container.constructor != Object && container.constructor.prototype !== container) { return container.constructor.prototype[propName] === f; } return false; } }, { key: "findProperties", value: function findProperties(obj) { function getProperty(new_obj) { if (new_obj.__proto__ === null) { return []; } var properties = Object.getOwnPropertyNames(new_obj); return [].concat((0, _toConsumableArray2["default"])(properties), (0, _toConsumableArray2["default"])(getProperty(new_obj.__proto__))); } return getProperty(obj); } }, { key: "recordMethodCall", value: function recordMethodCall(originalMethod, args) { Function.prototype.getName = function () { return this.name || this.toString().match(/function\s*([^(]*)\(/)[1]; }; var name = originalMethod.getName(); var arglistString = name + '(' + Array.from(args).toString() + ')'; var records = this.recordCalls.get(arglistString); console.log(records); if (!records) { records = 0; } records++; this.recordCalls.set(arglistString, records); } }, { key: "mockFunc", value: function mockFunc(originalObject, originalMethod) { var tmp = this; this.originalMethod = originalMethod; var f = function f() { var args = arguments; var action = tmp.getReturnInfo(f, args); if (originalMethod) { tmp.recordMethodCall(originalMethod, args); } if (action) { return action.apply(this, args); } }; f.container = false || originalObject; f.original = originalMethod || null; if (originalObject && originalMethod) { if (typeof originalMethod != 'function') throw new Error('Not a function'); var name = this.findName(originalObject, originalMethod); originalObject[name] = f; this.recordMockedMethod.set(name, originalMethod); f.propName = name; f.originalFromPrototype = this.isFunctionFromPrototype(f.original, originalObject, f.propName); } f.mocker = this; this.mFunctions.push(f); this.extend(f, new _ExtendInterface["default"](this)); return f; } }, { key: "verify", value: function verify(methodName, argsArray) { if (!methodName) { throw Error("not a function name"); } var a = this.recordCalls.get(methodName + '(' + argsArray.toString() + ')'); return new _VerificationMode["default"](a ? a : 0); } }]); return MockKit; }(); exports.MockKit = MockKit; function ifMockedFunction(f) { if (Object.prototype.toString.call(f) != "[object Function]" && Object.prototype.toString.call(f) != "[object AsyncFunction]") { throw Error("not a function"); } if (!f.stub) { throw Error("not a mock function"); } return true; } function when(f) { if (ifMockedFunction(f)) { return f.stub.bind(f); } } function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/mock/VerificationMode.js": /*!***********************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/mock/VerificationMode.js ***! \***********************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); var _hypium = __webpack_require__(/*! @ohos/hypium */ "./node_modules/@ohos/hypium/index.js"); /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var VerificationMode = /*#__PURE__*/function () { function VerificationMode(times) { (0, _classCallCheck2["default"])(this, VerificationMode); this.doTimes = times; } (0, _createClass2["default"])(VerificationMode, [{ key: "times", value: function times(count) { (0, _hypium.expect)(count).assertEqual(this.doTimes); } }, { key: "never", value: function never() { console.log(this.doTimes); (0, _hypium.expect)(0).assertEqual(this.doTimes); } }, { key: "once", value: function once() { (0, _hypium.expect)(1).assertEqual(this.doTimes); } }, { key: "atLeast", value: function atLeast(count) { if (count > this.doTimes) { throw Error('failed ' + count + ' greater than the actual execution times of method'); } } }, { key: "atMost", value: function atMost(count) { if (count < this.doTimes) { throw Error('failed ' + count + ' less than the actual execution times of method'); } } }]); return VerificationMode; }(); var _default = VerificationMode; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/module/report/OhReport.js": /*!*****************************************************************!*\ !*** ./node_modules/@ohos/hypium/src/module/report/OhReport.js ***! \*****************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var OhReport = /*#__PURE__*/function () { function OhReport(attr) { (0, _classCallCheck2["default"])(this, OhReport); this.delegator = attr.delegator; this.id = 'report'; this.index = 0; this.duration = 0; } (0, _createClass2["default"])(OhReport, [{ key: "init", value: function init(coreContext) { this.coreContext = coreContext; this.suiteService = this.coreContext.getDefaultService('suite'); this.specService = this.coreContext.getDefaultService('spec'); } }, { key: "taskStart", value: function taskStart() { this.taskStartTime = new Date().getTime(); } }, { key: "taskDone", value: function taskDone() { var _this = this; this.taskDoneTime = new Date().getTime(); var summary = this.suiteService.getSummary(); var message = '\n' + 'OHOS_REPORT_RESULT: stream=Tests run: ' + summary.total + ', Failure: ' + summary.failure; message += ', Error: ' + summary.error; message += ', Pass: ' + summary.pass; message += '\n' + 'OHOS_REPORT_CODE: ' + (summary.failure > 0 ? -1 : 0) + '\n'; message += 'OHOS_REPORT_STATUS: taskconsuming=' + summary.duration + '\n'; this.delegator.print(message).then(function () { var _this2 = this; (0, _newArrowCheck2["default"])(this, _this); console.info('report print success'); this.delegator.finishTest('your test finished!!!', 0, function () { (0, _newArrowCheck2["default"])(this, _this2); }.bind(this)); }.bind(this)); } }, { key: "incorrectFormat", value: function incorrectFormat() { var _this3 = this; if (this.coreContext.getDefaultService('config').filterValid.length !== 0) { var value = this.coreContext.getDefaultService('config').filterValid; var message = 'this param ' + value.join(',') + ' is invalid' + '\n'; this.delegator.finishTest(message, 0, function () { (0, _newArrowCheck2["default"])(this, _this3); }.bind(this)); } } }, { key: "suiteStart", value: function suiteStart() { var _this4 = this; var message = '\n' + 'OHOS_REPORT_SUM: ' + this.suiteService.getCurrentRunningSuite().getSpecsNum(); message += '\n' + 'OHOS_REPORT_STATUS: class=' + this.suiteService.getCurrentRunningSuite().description + '\n'; this.delegator.print(message).then(function () { (0, _newArrowCheck2["default"])(this, _this4); console.info(this.suiteService.getCurrentRunningSuite().description + ' print success'); }.bind(this)); } }, { key: "suiteDone", value: function suiteDone() { var _this5 = this; var message = '\n' + 'OHOS_REPORT_STATUS: class=' + this.suiteService.getCurrentRunningSuite().description; message += '\n' + 'OHOS_REPORT_STATUS: suiteconsuming=' + this.suiteService.getCurrentRunningSuite().duration + '\n'; this.delegator.print(message).then(function () { (0, _newArrowCheck2["default"])(this, _this5); console.info(this.suiteService.getCurrentRunningSuite().description + ' print success'); }.bind(this)); } }, { key: "specStart", value: function specStart() { var _this6 = this; var message = '\n' + 'OHOS_REPORT_STATUS: class=' + this.suiteService.getCurrentRunningSuite().description; message += '\n' + 'OHOS_REPORT_STATUS: current=' + ++this.index; message += '\n' + 'OHOS_REPORT_STATUS: id=JS'; message += '\n' + 'OHOS_REPORT_STATUS: numtests=' + this.suiteService.getSummary().total; message += '\n' + 'OHOS_REPORT_STATUS: stream='; message += '\n' + 'OHOS_REPORT_STATUS: test=' + this.specService.currentRunningSpec.description; message += '\n' + 'OHOS_REPORT_STATUS_CODE: 1' + '\n'; this.delegator.print(message).then(function () { (0, _newArrowCheck2["default"])(this, _this6); console.info(this.specService.currentRunningSpec.description + ' start print success'); }.bind(this)); } }, { key: "specDone", value: function specDone() { var _this7 = this; var message = '\n' + 'OHOS_REPORT_STATUS: class=' + this.suiteService.getCurrentRunningSuite().description; message += '\n' + 'OHOS_REPORT_STATUS: current=' + this.index; message += '\n' + 'OHOS_REPORT_STATUS: id=JS'; message += '\n' + 'OHOS_REPORT_STATUS: numtests=' + this.suiteService.getSummary().total; var emsg = ''; if (this.specService.currentRunningSpec.error) { message += '\n' + 'OHOS_REPORT_STATUS: stack=' + this.specService.currentRunningSpec.error; message += '\n' + 'OHOS_REPORT_STATUS: stream='; message += '\n' + 'Error in ' + this.specService.currentRunningSpec.description; message += '\n' + this.specService.currentRunningSpec.error; message += '\n' + 'OHOS_REPORT_STATUS: test=' + this.specService.currentRunningSpec.description; message += '\n' + 'OHOS_REPORT_STATUS_CODE: -1' + '\n'; } else if (this.specService.currentRunningSpec.result) { if (this.specService.currentRunningSpec.result.failExpects.length > 0) { this.specService.currentRunningSpec.result.failExpects.forEach(function (failExpect) { (0, _newArrowCheck2["default"])(this, _this7); emsg = failExpect.message || 'expect ' + failExpect.actualValue + ' ' + failExpect.checkFunc + ' ' + failExpect.expectValue; }.bind(this)); message += '\n' + 'OHOS_REPORT_STATUS: stack=' + emsg; message += '\n' + 'OHOS_REPORT_STATUS: stream='; message += '\n' + 'Error in ' + this.specService.currentRunningSpec.description; message += '\n' + emsg + '\n' + 'OHOS_REPORT_STATUS: test=' + this.specService.currentRunningSpec.description; message += '\n' + 'OHOS_REPORT_STATUS_CODE: -2' + '\n'; } else { message += '\n' + 'OHOS_REPORT_STATUS: stream='; message += '\n' + 'OHOS_REPORT_STATUS: test=' + this.specService.currentRunningSpec.description; message += '\n' + 'OHOS_REPORT_STATUS_CODE: 0' + '\n'; } } else { message += '\n'; } message += 'OHOS_REPORT_STATUS: consuming=' + this.specService.currentRunningSpec.duration + '\n'; this.delegator.print(message).then(function () { (0, _newArrowCheck2["default"])(this, _this7); console.info(this.specService.currentRunningSpec.description + ' end print success'); }.bind(this)); } }]); return OhReport; }(); var _default = OhReport; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@ohos/hypium/src/service.js": /*!**************************************************!*\ !*** ./node_modules/@ohos/hypium/src/service.js ***! \**************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SuiteService = exports.SpecService = exports.ReportService = exports.ExpectService = void 0; var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js")); var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js")); var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/inherits.js")); var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/getPrototypeOf.js")); var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "./node_modules/@babel/runtime/helpers/wrapNativeSuper.js")); function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var AssertException = /*#__PURE__*/function (_Error) { (0, _inherits2["default"])(AssertException, _Error); var _super = _createSuper(AssertException); function AssertException() { var _this2; (0, _classCallCheck2["default"])(this, AssertException); _this2 = _super.call(this); _this2.name = "AssertException"; return _this2; } return (0, _createClass2["default"])(AssertException); }( /*#__PURE__*/(0, _wrapNativeSuper2["default"])(Error)); function processFunc(coreContext, func) { var _this3 = this; var argNames = ((func || '').toString().replace(/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg, '').match(/^(function)?\s*[^\(]*\(\s*([^\)]*)\)/m) || ['', '', ''])[2].split(',') // split parameters .map(function (item) { var _this4 = this; (0, _newArrowCheck2["default"])(this, _this3); return item.replace(/^\s*(_?)(.+?)\1\s*$/, function (name) { (0, _newArrowCheck2["default"])(this, _this4); return name.split('=')[0].trim(); }.bind(this)); }.bind(this)).filter(String); var funcLen = func.length; var processedFunc; coreContext.getDefaultService('config').setSupportAsync(true); switch (funcLen) { case 0: { processedFunc = func; break; } case 1: { if (argNames[0] === 'data') { processedFunc = function processedFunc(paramItem) { func(paramItem); }; } else { processedFunc = function processedFunc() { var _this5 = this; return new Promise(function (resolve, reject) { var _this6 = this; (0, _newArrowCheck2["default"])(this, _this5); function done() { resolve(); } var funcType = func(done); if (funcType instanceof Promise) { funcType["catch"](function (err) { (0, _newArrowCheck2["default"])(this, _this6); reject(err); }.bind(this)); } }.bind(this)); }; } break; } default: { processedFunc = function processedFunc(paramItem) { var _this7 = this; return new Promise(function (resolve, reject) { var _this8 = this; (0, _newArrowCheck2["default"])(this, _this7); function done() { resolve(); } var funcType = func(done, paramItem); if (funcType instanceof Promise) { funcType["catch"](function (err) { (0, _newArrowCheck2["default"])(this, _this8); reject(err); }.bind(this)); } }.bind(this)); }; break; } } return processedFunc; } function secureRandomNumber() { return crypto.randomBytes(8).readUInt32LE() / 0xffffffff; } var SuiteService = /*#__PURE__*/function () { function SuiteService(attr) { (0, _classCallCheck2["default"])(this, SuiteService); this.id = attr.id; this.rootSuite = new SuiteService.Suite({}); this.currentRunningSuite = this.rootSuite; } (0, _createClass2["default"])(SuiteService, [{ key: "describe", value: function describe(desc, func) { if (this.coreContext.getDefaultService('config').filterSuite(desc)) { console.info('filter suite :' + desc); return; } var suite = new SuiteService.Suite({ description: desc }); if (typeof this.coreContext.getServices('dataDriver') !== 'undefined') { var suiteStress = this.coreContext.getServices('dataDriver').dataDriver.getSuiteStress(desc); for (var i = 1; i < suiteStress; i++) { this.currentRunningSuite.childSuites.push(suite); } } var currentSuiteCache = this.currentRunningSuite; this.currentRunningSuite.childSuites.push(suite); this.currentRunningSuite = suite; func.call(); this.currentRunningSuite = currentSuiteCache; } }, { key: "beforeAll", value: function beforeAll(func) { this.currentRunningSuite.beforeAll.push(processFunc(this.coreContext, func)); } }, { key: "beforeEach", value: function beforeEach(func) { this.currentRunningSuite.beforeEach.push(processFunc(this.coreContext, func)); } }, { key: "afterAll", value: function afterAll(func) { this.currentRunningSuite.afterAll.push(processFunc(this.coreContext, func)); } }, { key: "afterEach", value: function afterEach(func) { this.currentRunningSuite.afterEach.push(processFunc(this.coreContext, func)); } }, { key: "getCurrentRunningSuite", value: function getCurrentRunningSuite() { return this.currentRunningSuite; } }, { key: "setCurrentRunningSuite", value: function setCurrentRunningSuite(suite) { this.currentRunningSuite = suite; } }, { key: "getSummary", value: function getSummary() { var total = 0; var error = 0; var failure = 0; var pass = 0; var duration = 0; var rootSuite = this.coreContext.getDefaultService('suite').rootSuite; if (rootSuite && rootSuite.childSuites) { for (var i = 0; i < rootSuite.childSuites.length; i++) { var testsuite = rootSuite.childSuites[i]; duration += testsuite.duration; var specs = testsuite['specs']; for (var j = 0; j < specs.length; j++) { total++; var testcase = specs[j]; if (testcase.error) { error++; } else if (testcase.result.failExpects.length > 0) { failure++; } else if (testcase.result.pass === true) { pass++; } } } } return { total: total, failure: failure, error: error, pass: pass, duration: duration }; } }, { key: "init", value: function init(coreContext) { this.coreContext = coreContext; } }, { key: "dryRun", value: function dryRun(abilityDelegator) { var _this9 = this; var configService = this.coreContext.getDefaultService('config'); if (configService['dryRun'] !== 'true') { return false; } var testSuitesObj = {}; var suitesArray = []; var _iterator = _createForOfIteratorHelper(this.rootSuite.childSuites), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var suiteItem = _step.value; var itArray = []; var suiteName = suiteItem['description']; var _iterator2 = _createForOfIteratorHelper(suiteItem['specs']), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var itItem = _step2.value; var itName = itItem['description']; var filter = itItem['fi']; if (!configService.filterDesc(suiteName, itName, filter, this.coreContext)) { itArray.push({ 'itName': itItem['description'] }); } } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } if (!configService.filterSuite(suiteName) && itArray.length > 0) { var obj = {}; obj[suiteName] = itArray; suitesArray.push(obj); } } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } testSuitesObj['suites'] = suitesArray; var strJson = JSON.stringify(testSuitesObj); var strLen = strJson.length; var maxLen = 500; var maxCount = Math.floor(strLen / maxLen); for (var count = 0; count <= maxCount; count++) { abilityDelegator.print(strJson.substring(count * maxLen, (count + 1) * maxLen)); } console.info('dryRun print success'); abilityDelegator.finishTest('dry run finished!!!', 0, function () { (0, _newArrowCheck2["default"])(this, _this9); }.bind(this)); return true; } }, { key: "execute", value: function execute() { var _this10 = this; if (this.coreContext.getDefaultService('config').filterValid.length !== 0) { this.coreContext.fireEvents('task', 'incorrectFormat'); return; } this.coreContext.fireEvents('task', 'taskStart'); if (this.coreContext.getDefaultService('config').isSupportAsync()) { var asyncExecute = /*#__PURE__*/function () { var _asyncExecute = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() { return _regenerator["default"].wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: (0, _newArrowCheck2["default"])(this, _this10); _context.next = 3; return this.rootSuite.asyncRun(this.coreContext); case 3: case "end": return _context.stop(); } } }, _callee, this); })); function asyncExecute() { return _asyncExecute.apply(this, arguments); } return asyncExecute; }().bind(this); asyncExecute().then(function () { (0, _newArrowCheck2["default"])(this, _this10); this.coreContext.fireEvents('task', 'taskDone'); }.bind(this)); } else { this.rootSuite.run(this.coreContext); this.coreContext.fireEvents('task', 'taskDone'); } } }, { key: "apis", value: function apis() { var _this = this; return { describe: function describe(desc, func) { return _this.describe(desc, func); }, beforeAll: function beforeAll(func) { return _this.beforeAll(func); }, beforeEach: function beforeEach(func) { return _this.beforeEach(func); }, afterAll: function afterAll(func) { return _this.afterAll(func); }, afterEach: function afterEach(func) { return _this.afterEach(func); } }; } }]); return SuiteService; }(); exports.SuiteService = SuiteService; SuiteService.Suite = /*#__PURE__*/function () { function _class(attrs) { (0, _classCallCheck2["default"])(this, _class); this.description = attrs.description || ''; this.childSuites = []; this.specs = []; this.beforeAll = []; this.afterAll = []; this.beforeEach = []; this.afterEach = []; this.duration = 0; } (0, _createClass2["default"])(_class, [{ key: "pushSpec", value: function pushSpec(spec) { this.specs.push(spec); } }, { key: "removeSpec", value: function removeSpec(desc) { var _this11 = this; this.specs = this.specs.filter(function (item, index) { (0, _newArrowCheck2["default"])(this, _this11); return item.description !== desc; }.bind(this)); } }, { key: "getSpecsNum", value: function getSpecsNum() { return this.specs.length; } }, { key: "run", value: function run(coreContext) { var _this12 = this; var suiteService = coreContext.getDefaultService('suite'); suiteService.setCurrentRunningSuite(this); if (this.description !== '') { coreContext.fireEvents('suite', 'suiteStart', this); } this.runHookFunc('beforeAll'); if (this.specs.length > 0) { var configService = coreContext.getDefaultService('config'); if (configService.isRandom()) { this.specs.sort(function () { return secureRandomNumber() > 0.5 ? -1 : 1; }); } this.specs.forEach(function (spec) { (0, _newArrowCheck2["default"])(this, _this12); this.runHookFunc('beforeEach'); spec.run(coreContext); this.runHookFunc('afterEach'); }.bind(this)); } if (this.childSuites.length > 0) { this.childSuites.forEach(function (childSuite) { (0, _newArrowCheck2["default"])(this, _this12); childSuite.run(coreContext); suiteService.setCurrentRunningSuite(childSuite); }.bind(this)); } this.runHookFunc('afterAll'); if (this.description !== '') { coreContext.fireEvents('suite', 'suiteDone'); } } }, { key: "asyncRun", value: function asyncRun(coreContext) { var _this13 = this; var suiteService = coreContext.getDefaultService('suite'); suiteService.setCurrentRunningSuite(this); return new Promise( /*#__PURE__*/function () { var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(resolve) { var configService, i, _i; return _regenerator["default"].wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: (0, _newArrowCheck2["default"])(this, _this13); if (this.description !== '') { coreContext.fireEvents('suite', 'suiteStart', this); } _context2.next = 4; return this.runAsyncHookFunc('beforeAll'); case 4: if (!(this.specs.length > 0)) { _context2.next = 18; break; } configService = coreContext.getDefaultService('config'); if (configService.isRandom()) { this.specs.sort(function () { return secureRandomNumber() > 0.5 ? -1 : 1; }); } i = 0; case 8: if (!(i < this.specs.length)) { _context2.next = 18; break; } _context2.next = 11; return this.runAsyncHookFunc('beforeEach'); case 11: _context2.next = 13; return this.specs[i].asyncRun(coreContext); case 13: _context2.next = 15; return this.runAsyncHookFunc('afterEach'); case 15: i++; _context2.next = 8; break; case 18: if (!(this.childSuites.length > 0)) { _context2.next = 27; break; } _i = 0; case 20: if (!(_i < this.childSuites.length)) { _context2.next = 27; break; } suiteService.setCurrentRunningSuite(this.childSuites[_i]); _context2.next = 24; return this.childSuites[_i].asyncRun(coreContext); case 24: _i++; _context2.next = 20; break; case 27: _context2.next = 29; return this.runAsyncHookFunc('afterAll'); case 29: if (this.description !== '') { coreContext.fireEvents('suite', 'suiteDone'); } resolve(); case 31: case "end": return _context2.stop(); } } }, _callee2, this); })); return function (_x) { return _ref.apply(this, arguments); }; }().bind(this)); } }, { key: "runHookFunc", value: function runHookFunc(hookName) { var _this14 = this; if (this[hookName] && this[hookName].length > 0) { this[hookName].forEach(function (func) { (0, _newArrowCheck2["default"])(this, _this14); try { func(); } catch (e) { console.error(e); } }.bind(this)); } } }, { key: "runAsyncHookFunc", value: function runAsyncHookFunc(hookName) { var _this15 = this; if (this[hookName] && this[hookName].length > 0) { return new Promise( /*#__PURE__*/function () { var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(resolve) { var i; return _regenerator["default"].wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: (0, _newArrowCheck2["default"])(this, _this15); i = 0; case 2: if (!(i < this[hookName].length)) { _context3.next = 14; break; } _context3.prev = 3; _context3.next = 6; return this[hookName][i](); case 6: _context3.next = 11; break; case 8: _context3.prev = 8; _context3.t0 = _context3["catch"](3); console.error(_context3.t0); case 11: i++; _context3.next = 2; break; case 14: resolve(); case 15: case "end": return _context3.stop(); } } }, _callee3, this, [[3, 8]]); })); return function (_x2) { return _ref2.apply(this, arguments); }; }().bind(this)); } } }]); return _class; }(); var SpecService = /*#__PURE__*/function () { function SpecService(attr) { (0, _classCallCheck2["default"])(this, SpecService); this.id = attr.id; } (0, _createClass2["default"])(SpecService, [{ key: "init", value: function init(coreContext) { this.coreContext = coreContext; } }, { key: "setCurrentRunningSpec", value: function setCurrentRunningSpec(spec) { this.currentRunningSpec = spec; } }, { key: "getCurrentRunningSpec", value: function getCurrentRunningSpec() { return this.currentRunningSpec; } }, { key: "it", value: function it(desc, filter, func) { var configService = this.coreContext.getDefaultService('config'); var currentSuiteName = this.coreContext.getDefaultService('suite').getCurrentRunningSuite().description; if (configService.filterDesc(currentSuiteName, desc, filter, this.coreContext)) { console.info('filter it :' + desc); } else { var processedFunc = processFunc(this.coreContext, func); var spec = new SpecService.Spec({ description: desc, fi: filter, fn: processedFunc }); var suiteService = this.coreContext.getDefaultService('suite'); if (typeof this.coreContext.getServices('dataDriver') !== 'undefined') { var specStress = this.coreContext.getServices('dataDriver').dataDriver.getSpecStress(desc); for (var i = 1; i < specStress; i++) { suiteService.getCurrentRunningSuite().pushSpec(spec); } } suiteService.getCurrentRunningSuite().pushSpec(spec); } } }, { key: "apis", value: function apis() { var _this = this; return { it: function it(desc, filter, func) { return _this.it(desc, filter, func); } }; } }]); return SpecService; }(); exports.SpecService = SpecService; SpecService.Spec = /*#__PURE__*/function () { function _class2(attrs) { (0, _classCallCheck2["default"])(this, _class2); this.description = attrs.description || ''; this.fi = attrs.fi; this.fn = attrs.fn || function () {}; this.result = { failExpects: [], passExpects: [] }; this.error = undefined; this.duration = 0; this.startTime = 0; } (0, _createClass2["default"])(_class2, [{ key: "setResult", value: function setResult() { if (this.result.failExpects.length > 0) { this.result.pass = false; } else { this.result.pass = true; } console.info('testcase ' + this.description + ' result:' + this.result.pass); } }, { key: "run", value: function run(coreContext) { var _this16 = this; var specService = coreContext.getDefaultService('spec'); specService.setCurrentRunningSpec(this); this.startTime = new Date().getTime(); coreContext.fireEvents('spec', 'specStart', this); try { var dataDriver = coreContext.getServices('dataDriver'); if (typeof dataDriver === 'undefined') { this.fn(); } else { var suiteParams = dataDriver.dataDriver.getSuiteParams(); var specParams = dataDriver.dataDriver.getSpecParams(); console.info('[suite params] ' + JSON.stringify(suiteParams)); console.info('[spec params] ' + JSON.stringify(specParams)); if (this.fn.length === 0) { this.fn(); } else if (specParams.length === 0) { this.fn(suiteParams); } else { specParams.forEach(function (paramItem) { (0, _newArrowCheck2["default"])(this, _this16); return this.fn(Object.assign({}, paramItem, suiteParams)); }.bind(this)); } } this.setResult(); } catch (e) { this.error = e; } coreContext.fireEvents('spec', 'specDone', this); } }, { key: "asyncRun", value: function asyncRun(coreContext) { var _this17 = this; var specService = coreContext.getDefaultService('spec'); specService.setCurrentRunningSpec(this); this.startTime = new Date().getTime(); var config = coreContext.getDefaultService('config'); var timeout = +(config.timeout === undefined ? 5000 : config.timeout); return new Promise( /*#__PURE__*/function () { var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(resolve) { var _this19 = this; var timeoutPromise, dataDriver, p, suiteParams, specParams, _p, _p2, _iterator3, _step3, paramItem, _p3; return _regenerator["default"].wrap(function _callee4$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: timeoutPromise = function _timeoutPromise() { return new Promise(function (resolve, reject) { var _this18 = this; setTimeout(function () { (0, _newArrowCheck2["default"])(this, _this18); return reject(new Error('execute timeout ' + timeout + 'ms')); }.bind(this), timeout); }); }; (0, _newArrowCheck2["default"])(this, _this17); coreContext.fireEvents('spec', 'specStart', this); _context4.prev = 3; dataDriver = coreContext.getServices('dataDriver'); if (!(typeof dataDriver === 'undefined')) { _context4.next = 11; break; } p = Promise.race([this.fn(), timeoutPromise()]); _context4.next = 9; return p.then(function () { (0, _newArrowCheck2["default"])(this, _this19); this.setResult(); }.bind(this)); case 9: _context4.next = 45; break; case 11: suiteParams = dataDriver.dataDriver.getSuiteParams(); specParams = dataDriver.dataDriver.getSpecParams(); console.info('[suite params] ' + JSON.stringify(suiteParams)); console.info('[spec params] ' + JSON.stringify(specParams)); if (!(this.fn.length === 0)) { _context4.next = 21; break; } _p = Promise.race([this.fn(), timeoutPromise()]); _context4.next = 19; return _p.then(function () { (0, _newArrowCheck2["default"])(this, _this19); this.setResult(); }.bind(this)); case 19: _context4.next = 45; break; case 21: if (!(specParams.length === 0)) { _context4.next = 27; break; } _p2 = Promise.race([this.fn(suiteParams), timeoutPromise()]); _context4.next = 25; return _p2.then(function () { (0, _newArrowCheck2["default"])(this, _this19); this.setResult(); }.bind(this)); case 25: _context4.next = 45; break; case 27: _iterator3 = _createForOfIteratorHelper(specParams); _context4.prev = 28; _iterator3.s(); case 30: if ((_step3 = _iterator3.n()).done) { _context4.next = 37; break; } paramItem = _step3.value; _p3 = Promise.race([this.fn(Object.assign({}, paramItem, suiteParams)), timeoutPromise()]); _context4.next = 35; return _p3.then(function () { (0, _newArrowCheck2["default"])(this, _this19); this.setResult(); }.bind(this)); case 35: _context4.next = 30; break; case 37: _context4.next = 42; break; case 39: _context4.prev = 39; _context4.t0 = _context4["catch"](28); _iterator3.e(_context4.t0); case 42: _context4.prev = 42; _iterator3.f(); return _context4.finish(42); case 45: _context4.next = 50; break; case 47: _context4.prev = 47; _context4.t1 = _context4["catch"](3); if (_context4.t1 instanceof AssertException) { this.fail = _context4.t1; } else { this.error = _context4.t1; } case 50: coreContext.fireEvents('spec', 'specDone', this); resolve(); case 52: case "end": return _context4.stop(); } } }, _callee4, this, [[3, 47], [28, 39, 42, 45]]); })); return function (_x3) { return _ref3.apply(this, arguments); }; }().bind(this)); } }, { key: "filterCheck", value: function filterCheck(coreContext) { var specService = coreContext.getDefaultService('spec'); specService.setCurrentRunningSpec(this); return true; } }, { key: "addExpectationResult", value: function addExpectationResult(expectResult) { if (expectResult.pass) { this.result.passExpects.push(expectResult); } else { this.result.failExpects.push(expectResult); throw new AssertException(expectResult); } } }]); return _class2; }(); var ExpectService = /*#__PURE__*/function () { function ExpectService(attr) { (0, _classCallCheck2["default"])(this, ExpectService); this.id = attr.id; this.matchers = {}; } (0, _createClass2["default"])(ExpectService, [{ key: "expect", value: function expect(actualValue) { return this.wrapMatchers(actualValue); } }, { key: "init", value: function init(coreContext) { this.coreContext = coreContext; this.addMatchers(this.basicMatchers()); } }, { key: "addMatchers", value: function addMatchers(matchers) { for (var matcherName in matchers) { if (Object.prototype.hasOwnProperty.call(matchers, matcherName)) { this.matchers[matcherName] = matchers[matcherName]; } } } }, { key: "basicMatchers", value: function basicMatchers() { return { assertTrue: function assertTrue(actualValue) { return { pass: actualValue === true }; }, assertEqual: function assertEqual(actualValue, args) { return { pass: actualValue === args[0], expectValue: args[0] }; }, assertThrow: function assertThrow(actual, args) { var result = { pass: false }; if (typeof actual !== 'function') { result.message = 'toThrow\'s Actual should be a Function'; } else { var hasThrow = false; var throwError; try { actual(); } catch (e) { hasThrow = true; throwError = e; } if (!hasThrow) { result.message = 'function did not throw an exception'; } else if (throwError && throwError.message === args[0]) { result.pass = true; } else { result.message = "expect to throw ".concat(args[0], " , actual throw ").concat(throwError.message); } } return result; } }; } }, { key: "wrapMatchers", value: function wrapMatchers(actualValue) { var _this20 = this; var _this = this; var wrappedMatchers = {}; var specService = _this.coreContext.getDefaultService('spec'); var currentRunningSpec = specService.getCurrentRunningSpec(); var _loop = function _loop(matcherName) { if (Object.prototype.hasOwnProperty.call(_this20.matchers, matcherName)) { wrappedMatchers[matcherName] = function () { var result = _this.matchers[matcherName](actualValue, arguments); result.actualValue = actualValue; result.checkFunc = matcherName; currentRunningSpec.addExpectationResult(result); }; } }; for (var matcherName in this.matchers) { _loop(matcherName); } return wrappedMatchers; } }, { key: "apis", value: function apis() { var _this = this; return { expect: function expect(actualValue) { return _this.expect(actualValue); } }; } }]); return ExpectService; }(); exports.ExpectService = ExpectService; var ReportService = /*#__PURE__*/function () { function ReportService(attr) { (0, _classCallCheck2["default"])(this, ReportService); this.id = attr.id; } (0, _createClass2["default"])(ReportService, [{ key: "init", value: function init(coreContext) { this.coreContext = coreContext; this.specService = this.coreContext.getDefaultService('spec'); this.suiteService = this.coreContext.getDefaultService('suite'); this.duration = 0; } }, { key: "taskStart", value: function taskStart() { this.sleep(50); this.taskStartTime = new Date().getTime(); console.info('[start] start run suites'); } }, { key: "suiteStart", value: function suiteStart() { this.sleep(50); console.info('[suite start]' + this.suiteService.getCurrentRunningSuite().description); } }, { key: "specStart", value: function specStart() { this.sleep(50); console.info('start running case \'' + this.specService.currentRunningSpec.description + '\''); this.index = this.index + 1; } }, { key: "specDone", value: function specDone() { var _this21 = this; this.sleep(50); var msg = ''; var spec = this.specService.currentRunningSpec; spec.duration = new Date().getTime() - spec.startTime; var suite = this.suiteService.currentRunningSuite; suite.duration += spec.duration; if (spec.error) { this.formatPrint('error', spec.description + ' ; consuming ' + spec.duration + 'ms'); this.formatPrint('errorDetail', spec.error); } else if (spec.result) { if (spec.result.failExpects.length > 0) { this.formatPrint('fail', spec.description + ' ; consuming ' + spec.duration + 'ms'); spec.result.failExpects.forEach(function (failExpect) { (0, _newArrowCheck2["default"])(this, _this21); msg = failExpect.message || 'expect ' + failExpect.actualValue + ' ' + failExpect.checkFunc + ' ' + (failExpect.expectValue || ''); this.formatPrint('failDetail', msg); }.bind(this)); } else { this.formatPrint('pass', spec.description + ' ; consuming ' + spec.duration + 'ms'); } } this.formatPrint(this.specService.currentRunningSpec.error, msg); } }, { key: "suiteDone", value: function suiteDone() { this.sleep(50); var suite = this.suiteService.currentRunningSuite; console.info('[suite end]' + ' consuming ' + suite.duration + 'ms'); } }, { key: "taskDone", value: function taskDone() { this.sleep(50); var msg = ''; var summary = this.suiteService.getSummary(); msg = 'total cases:' + summary.total + ';failure ' + summary.failure + ',' + 'error ' + summary.error; msg += ',pass ' + summary.pass + '; consuming ' + summary.duration + 'ms'; console.info(msg); console.info('[end] run suites end'); } }, { key: "incorrectFormat", value: function incorrectFormat() { if (this.coreContext.getDefaultService('config').filterValid.length !== 0) { this.coreContext.getDefaultService('config').filterValid.forEach(function (item) { console.info('this param ' + item + ' is invalid'); }); } } }, { key: "formatPrint", value: function formatPrint(type, msg) { switch (type) { case 'pass': console.info('[pass]' + msg); break; case 'fail': console.info('[fail]' + msg); break; case 'failDetail': console.info('[failDetail]' + msg); break; case 'error': console.info('[error]' + msg); break; case 'errorDetail': console.info('[errorDetail]' + msg); break; } } }, { key: "sleep", value: function sleep(numberMillis) { var now = new Date(); var exitTime = now.getTime() + numberMillis; while (true) { now = new Date(); if (now.getTime() > exitTime) { return; } } } }]); return ReportService; }(); exports.ReportService = ReportService; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/index.js": /*!******************************************!*\ !*** ./node_modules/deccjsunit/index.js ***! \******************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "Constant", ({ enumerable: true, get: function get() { return _Constant["default"]; } })); Object.defineProperty(exports, "Core", ({ enumerable: true, get: function get() { return _core["default"]; } })); Object.defineProperty(exports, "DataDriver", ({ enumerable: true, get: function get() { return _DataDriver["default"]; } })); Object.defineProperty(exports, "ExpectExtend", ({ enumerable: true, get: function get() { return _ExpectExtend["default"]; } })); Object.defineProperty(exports, "InstrumentLog", ({ enumerable: true, get: function get() { return _InstrumentLog["default"]; } })); Object.defineProperty(exports, "ReportExtend", ({ enumerable: true, get: function get() { return _ReportExtend["default"]; } })); Object.defineProperty(exports, "afterAll", ({ enumerable: true, get: function get() { return _interface.afterAll; } })); Object.defineProperty(exports, "afterEach", ({ enumerable: true, get: function get() { return _interface.afterEach; } })); Object.defineProperty(exports, "beforeAll", ({ enumerable: true, get: function get() { return _interface.beforeAll; } })); Object.defineProperty(exports, "beforeEach", ({ enumerable: true, get: function get() { return _interface.beforeEach; } })); Object.defineProperty(exports, "describe", ({ enumerable: true, get: function get() { return _interface.describe; } })); Object.defineProperty(exports, "expect", ({ enumerable: true, get: function get() { return _interface.expect; } })); Object.defineProperty(exports, "it", ({ enumerable: true, get: function get() { return _interface.it; } })); var _core = _interopRequireDefault(__webpack_require__(/*! ./src/core */ "./node_modules/deccjsunit/src/core.js")); var _Constant = _interopRequireDefault(__webpack_require__(/*! ./src/Constant */ "./node_modules/deccjsunit/src/Constant.js")); var _InstrumentLog = _interopRequireDefault(__webpack_require__(/*! ./src/module/report/InstrumentLog */ "./node_modules/deccjsunit/src/module/report/InstrumentLog.js")); var _ReportExtend = _interopRequireDefault(__webpack_require__(/*! ./src/module/report/ReportExtend */ "./node_modules/deccjsunit/src/module/report/ReportExtend.js")); var _ExpectExtend = _interopRequireDefault(__webpack_require__(/*! ./src/module/assert/ExpectExtend */ "./node_modules/deccjsunit/src/module/assert/ExpectExtend.js")); var _DataDriver = _interopRequireDefault(__webpack_require__(/*! ./src/module/execute/DataDriver */ "./node_modules/deccjsunit/src/module/execute/DataDriver.js")); var _interface = __webpack_require__(/*! ./src/interface */ "./node_modules/deccjsunit/src/interface.js"); function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/Constant.js": /*!*************************************************!*\ !*** ./node_modules/deccjsunit/src/Constant.js ***! \*************************************************/ /***/ (() => { /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * define the testcase type : test type, size , level */ if (typeof globalThis !== 'undefined') { globalThis.DEFAULT = 0; globalThis.FUNCTION = 1; globalThis.PERFORMANCE = 1 << 1; globalThis.POWER = 1 << 2; globalThis.RELIABILITY = 1 << 3; globalThis.SECURITY = 1 << 4; globalThis.GLOBAL = 1 << 5; globalThis.COMPATIBILITY = 1 << 6; globalThis.USER = 1 << 7; globalThis.STANDARD = 1 << 8; globalThis.SAFETY = 1 << 9; globalThis.RESILIENCE = 1 << 10; globalThis.SMALLTEST = 1 << 16; globalThis.MEDIUMTEST = 1 << 17; globalThis.LARGETEST = 1 << 18; globalThis.LEVEL0 = 1 << 24; globalThis.LEVEL1 = 1 << 25; globalThis.LEVEL2 = 1 << 26; globalThis.LEVEL3 = 1 << 27; globalThis.LEVEL4 = 1 << 28; } function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/core.js": /*!*********************************************!*\ !*** ./node_modules/deccjsunit/src/core.js ***! \*********************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); var _service = __webpack_require__(/*! ./service */ "./node_modules/deccjsunit/src/service.js"); var _event = __webpack_require__(/*! ./event */ "./node_modules/deccjsunit/src/event.js"); /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * core service for execute testcase. */ var Core = /*#__PURE__*/function () { function Core() { (0, _classCallCheck2["default"])(this, Core); this.instance = null; this.services = { suite: {}, spec: {}, config: {}, expect: {}, log: {}, report: {} }; this.events = { suite: {}, spec: {}, task: {} }; } (0, _createClass2["default"])(Core, [{ key: "addService", value: function addService(name, service) { var serviceObj = {}; if (!this.services[name]) { this.services[name] = serviceObj; } else { serviceObj = this.services[name]; } serviceObj[service.id] = service; } }, { key: "getDefaultService", value: function getDefaultService(name) { return this.services[name]["default"]; } }, { key: "getServices", value: function getServices(name) { return this.services[name]; } }, { key: "registerEvent", value: function registerEvent(serviceName, event) { var eventObj = {}; if (!this.events[serviceName]) { this.events[serviceName] = eventObj; } else { eventObj = this.events[serviceName]; } eventObj[event.id] = event; } }, { key: "unRegisterEvent", value: function unRegisterEvent(serviceName, eventID) { var eventObj = this.events[serviceName]; if (eventObj) { delete eventObj[eventID]; } } }, { key: "subscribeEvent", value: function subscribeEvent(serviceName, serviceObj) { var eventObj = this.events[serviceName]; if (eventObj) { for (var attr in eventObj) { eventObj[attr]['subscribeEvent'](serviceObj); } } } }, { key: "fireEvents", value: function fireEvents(serviceName, eventName) { var eventObj = this.events[serviceName]; if (!eventObj) { return; } for (var attr in eventObj) { eventObj[attr][eventName](); } } }, { key: "addToGlobal", value: function addToGlobal(apis) { if (typeof globalThis !== 'undefined') { for (var api in apis) { globalThis[api] = apis[api]; } } for (var _api in apis) { this[_api] = apis[_api]; } } }, { key: "init", value: function init() { this.addService('suite', new _service.SuiteService({ id: 'default' })); this.addService('spec', new _service.SpecService({ id: 'default' })); this.addService('expect', new _service.ExpectService({ id: 'default' })); this.addService('report', new _service.ReportService({ id: 'default' })); this.addService('config', new _service.ConfigService({ id: 'default' })); this.registerEvent('task', new _event.TaskEvent({ id: 'default', coreContext: this })); this.registerEvent('suite', new _event.SuiteEvent({ id: 'default', coreContext: this })); this.registerEvent('spec', new _event.SpecEvent({ id: 'default', coreContext: this })); this.subscribeEvent('spec', this.getDefaultService('report')); this.subscribeEvent('suite', this.getDefaultService('report')); this.subscribeEvent('task', this.getDefaultService('report')); var context = this; for (var key in this.services) { var serviceObj = this.services[key]; for (var serviceID in serviceObj) { var service = serviceObj[serviceID]; service.init(context); if (typeof service.apis !== 'function') { continue; } var apis = service.apis(); if (apis) { this.addToGlobal(apis); } } } } }, { key: "execute", value: function execute() { var suiteService = this.getDefaultService('suite'); suiteService.dryRun(); suiteService.execute(); } }], [{ key: "getInstance", value: function getInstance() { if (!this.instance) { this.instance = new Core(); } return this.instance; } }]); return Core; }(); var _default = Core; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/event.js": /*!**********************************************!*\ !*** ./node_modules/deccjsunit/src/event.js ***! \**********************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TaskEvent = exports.SuiteEvent = exports.SpecEvent = void 0; var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var SpecEvent = /*#__PURE__*/function () { function SpecEvent(attr) { (0, _classCallCheck2["default"])(this, SpecEvent); this.id = attr.id; this.coreContext = attr.context; this.eventMonitors = []; } (0, _createClass2["default"])(SpecEvent, [{ key: "subscribeEvent", value: function subscribeEvent(service) { this.eventMonitors.push(service); } }, { key: "specStart", value: function specStart() { for (var monitor in this.eventMonitors) { this.eventMonitors[monitor]['specStart'](); } } }, { key: "specDone", value: function specDone() { for (var monitor in this.eventMonitors) { this.eventMonitors[monitor]['specDone'](); } } }]); return SpecEvent; }(); exports.SpecEvent = SpecEvent; var SuiteEvent = /*#__PURE__*/function () { function SuiteEvent(attr) { (0, _classCallCheck2["default"])(this, SuiteEvent); this.id = attr.id; this.suiteContext = attr.coreContext; this.eventMonitors = []; } (0, _createClass2["default"])(SuiteEvent, [{ key: "subscribeEvent", value: function subscribeEvent(service) { this.eventMonitors.push(service); } }, { key: "suiteStart", value: function suiteStart() { for (var monitor in this.eventMonitors) { this.eventMonitors[monitor]['suiteStart'](); } } }, { key: "suiteDone", value: function suiteDone() { for (var monitor in this.eventMonitors) { this.eventMonitors[monitor]['suiteDone'](); } } }]); return SuiteEvent; }(); exports.SuiteEvent = SuiteEvent; var TaskEvent = /*#__PURE__*/function () { function TaskEvent(attr) { (0, _classCallCheck2["default"])(this, TaskEvent); this.id = attr.id; this.coreContext = attr.coreContext; this.eventMonitors = []; } (0, _createClass2["default"])(TaskEvent, [{ key: "subscribeEvent", value: function subscribeEvent(service) { this.eventMonitors.push(service); } }, { key: "taskStart", value: function taskStart() { for (var monitor in this.eventMonitors) { this.eventMonitors[monitor]['taskStart'](); } } }, { key: "taskDone", value: function taskDone() { for (var monitor in this.eventMonitors) { this.eventMonitors[monitor]['taskDone'](); } } }]); return TaskEvent; }(); exports.TaskEvent = TaskEvent; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/interface.js": /*!**************************************************!*\ !*** ./node_modules/deccjsunit/src/interface.js ***! \**************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.it = exports.expect = exports.describe = exports.beforeEach = exports.beforeAll = exports.afterEach = exports.afterAll = void 0; var _core = _interopRequireDefault(__webpack_require__(/*! ./core */ "./node_modules/deccjsunit/src/core.js")); /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var core = _core["default"].getInstance(); var describe = function describe(desc, func) { if (typeof globalThis !== 'undefined') { return globalThis.describe(desc, func); } return core.describe(desc, func); }; exports.describe = describe; var it = function it(desc, filter, func) { if (typeof globalThis !== 'undefined') { return globalThis.it(desc, filter, func); } return core.it(desc, filter, func); }; exports.it = it; var beforeEach = function beforeEach(func) { if (typeof globalThis !== 'undefined') { return globalThis.beforeEach(func); } return core.beforeEach(func); }; exports.beforeEach = beforeEach; var afterEach = function afterEach(func) { if (typeof globalThis !== 'undefined') { return globalThis.afterEach(func); } return core.afterEach(func); }; exports.afterEach = afterEach; var beforeAll = function beforeAll(func) { if (typeof globalThis !== 'undefined') { return globalThis.beforeAll(func); } return core.beforeAll(func); }; exports.beforeAll = beforeAll; var afterAll = function afterAll(func) { if (typeof globalThis !== 'undefined') { return globalThis.afterAll(func); } return core.afterAll(func); }; exports.afterAll = afterAll; var expect = function expect(actualValue) { if (typeof globalThis !== 'undefined') { return globalThis.expect(actualValue); } return core.expect(actualValue); }; exports.expect = expect; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/module/assert/ExpectExtend.js": /*!*******************************************************************!*\ !*** ./node_modules/deccjsunit/src/module/assert/ExpectExtend.js ***! \*******************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); var _assertNull = _interopRequireDefault(__webpack_require__(/*! ./assertNull */ "./node_modules/deccjsunit/src/module/assert/assertNull.js")); var _assertClose = _interopRequireDefault(__webpack_require__(/*! ./assertClose */ "./node_modules/deccjsunit/src/module/assert/assertClose.js")); var _assertContain = _interopRequireDefault(__webpack_require__(/*! ./assertContain */ "./node_modules/deccjsunit/src/module/assert/assertContain.js")); var _assertLess = _interopRequireDefault(__webpack_require__(/*! ./assertLess */ "./node_modules/deccjsunit/src/module/assert/assertLess.js")); var _assertLarger = _interopRequireDefault(__webpack_require__(/*! ./assertLarger */ "./node_modules/deccjsunit/src/module/assert/assertLarger.js")); var _assertFail = _interopRequireDefault(__webpack_require__(/*! ./assertFail */ "./node_modules/deccjsunit/src/module/assert/assertFail.js")); var _assertUndefined = _interopRequireDefault(__webpack_require__(/*! ./assertUndefined */ "./node_modules/deccjsunit/src/module/assert/assertUndefined.js")); var _assertFalse = _interopRequireDefault(__webpack_require__(/*! ./assertFalse */ "./node_modules/deccjsunit/src/module/assert/assertFalse.js")); var _assertInstanceOf = _interopRequireDefault(__webpack_require__(/*! ./assertInstanceOf */ "./node_modules/deccjsunit/src/module/assert/assertInstanceOf.js")); var _assertThrowError = _interopRequireDefault(__webpack_require__(/*! ./assertThrowError */ "./node_modules/deccjsunit/src/module/assert/assertThrowError.js")); /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var ExpectExtend = /*#__PURE__*/function () { function ExpectExtend(attr) { (0, _classCallCheck2["default"])(this, ExpectExtend); this.id = attr.id; this.matchers = {}; } (0, _createClass2["default"])(ExpectExtend, [{ key: "extendsMatchers", value: function extendsMatchers() { this.matchers.assertNull = _assertNull["default"]; this.matchers.assertClose = _assertClose["default"]; this.matchers.assertContain = _assertContain["default"]; this.matchers.assertLess = _assertLess["default"]; this.matchers.assertLarger = _assertLarger["default"]; this.matchers.assertFail = _assertFail["default"]; this.matchers.assertUndefined = _assertUndefined["default"]; this.matchers.assertFalse = _assertFalse["default"]; this.matchers.assertInstanceOf = _assertInstanceOf["default"]; this.matchers.assertThrowError = _assertThrowError["default"]; } }, { key: "init", value: function init(coreContext) { this.coreContext = coreContext; this.extendsMatchers(); var expectService = this.coreContext.getDefaultService('expect'); expectService.addMatchers(this.matchers); } }, { key: "apis", value: function apis() { return { 'expect': function expect(actualValue) { return this.coreContext.getDefaultService('expect').expect(actualValue); } // 'assertRejected':assertRejected }; } }]); return ExpectExtend; }(); var _default = ExpectExtend; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/module/assert/assertClose.js": /*!******************************************************************!*\ !*** ./node_modules/deccjsunit/src/module/assert/assertClose.js ***! \******************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function assertClose(actualValue, expected) { console.log('expected:' + expected[0] + ',precision:' + expected[1]); if (actualValue === null && expected[0] === null) { throw new Error('actualValue and expected can not be both null!!!'); } var result = false; var diff = Math.abs(expected[0] - actualValue); var actualAbs = Math.abs(actualValue); if (actualAbs - 0 === 0) { if (diff - 0 === 0) { result = true; } else { result = false; } } else if (diff / actualAbs < expected[1]) { result = true; } else { result = false; } return { pass: result, message: '|' + actualValue + ' - ' + expected[0] + '|/' + actualValue + ' is not less than ' + expected[1] }; } var _default = assertClose; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/module/assert/assertContain.js": /*!********************************************************************!*\ !*** ./node_modules/deccjsunit/src/module/assert/assertContain.js ***! \********************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * the actualValue contain expect * @param actualValue * @param expect: the expect value * @example * expect(array).toBeContain(anItem) * expect(String).toBeContain(subString) * @returns {{pass: boolean, message: string}} */ function assertContain(actualValue, expect) { var result = false; if (Object.prototype.toString.call(actualValue).indexOf('Array')) { for (var i in actualValue) { if (actualValue[i] == expect[0]) { result = true; } } } var type = Object.prototype.toString.call(actualValue); if (type === '[object String]') { result = actualValue.indexOf(expect[0]) >= 0; } return { pass: result, message: 'except false, ' + actualValue + ' do not have ' + expect[0] }; } var _default = assertContain; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/module/assert/assertFail.js": /*!*****************************************************************!*\ !*** ./node_modules/deccjsunit/src/module/assert/assertFail.js ***! \*****************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * fail this it * @example * expect(a).toBeFail() * @returns {{pass: boolean, message: string}} */ function assertFail() { return { pass: false, message: 'fail ' }; } var _default = assertFail; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/module/assert/assertFalse.js": /*!******************************************************************!*\ !*** ./node_modules/deccjsunit/src/module/assert/assertFalse.js ***! \******************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * the actualValue is False * @param actualValue * @returns {{pass: boolean, message: string}} */ function assertFalse(actualValue) { return { pass: actualValue === false, message: 'except false, actualValue is ' + actualValue }; } var _default = assertFalse; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/module/assert/assertInstanceOf.js": /*!***********************************************************************!*\ !*** ./node_modules/deccjsunit/src/module/assert/assertInstanceOf.js ***! \***********************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * the actualValue to be an instance of the expected class * @param actualValue : actualValue * @param expected : * @returns {{pass: boolean, message: string}|{pass: boolean}} */ function assertInstanceOf(actualValue, expected) { if (Object.prototype.toString.call(actualValue) == '[object ' + expected[0] + ']') { return { pass: true }; } else { return { pass: false, message: actualValue + ' is ' + Object.prototype.toString.call(actualValue) + 'not ' + expected[0] }; } } var _default = assertInstanceOf; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/module/assert/assertLarger.js": /*!*******************************************************************!*\ !*** ./node_modules/deccjsunit/src/module/assert/assertLarger.js ***! \*******************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * the actualValue to be larger then expected * @param actualValue : actualValue * @param expected : * @returns {{pass: boolean, message: string}|{pass: boolean}} */ function assertLarger(actualValue, expected) { return { pass: actualValue > expected[0], message: actualValue + ' is not larger than ' + expected[0] }; } var _default = assertLarger; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/module/assert/assertLess.js": /*!*****************************************************************!*\ !*** ./node_modules/deccjsunit/src/module/assert/assertLess.js ***! \*****************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function assertLess(actualValue, expected) { return { pass: actualValue < expected[0], message: actualValue + ' is not less than ' + expected[0] }; } var _default = assertLess; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/module/assert/assertNull.js": /*!*****************************************************************!*\ !*** ./node_modules/deccjsunit/src/module/assert/assertNull.js ***! \*****************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function assertNull(actualValue) { return { pass: actualValue == null, message: 'expect null, actualValue is ' + actualValue }; } var _default = assertNull; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/module/assert/assertThrowError.js": /*!***********************************************************************!*\ !*** ./node_modules/deccjsunit/src/module/assert/assertThrowError.js ***! \***********************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * expect a function to throw Error * @param actualValue * @returns {{pass: boolean, message: string}} */ function assertThrowError(actualValue, expected) { var result = false; var err; if (typeof actualValue !== 'function') { throw new Error('actualValue is not a function'); } try { actualValue(); return { pass: result, message: ' An error is not thrown while it is expected!' }; } catch (e) { err = e; } if (err instanceof Error) { console.log(err.message); if (err.message == expected[0]) { result = true; } } return { pass: result, message: 'expected throw failed , ' + err.message + ' is not ' + expected[0] }; } var _default = assertThrowError; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/module/assert/assertUndefined.js": /*!**********************************************************************!*\ !*** ./node_modules/deccjsunit/src/module/assert/assertUndefined.js ***! \**********************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function assertUndefined(actualValue) { return { pass: void 0 === actualValue, message: 'expect Undefined, actualValue is ' + actualValue }; } var _default = assertUndefined; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/module/execute/DataDriver.js": /*!******************************************************************!*\ !*** ./node_modules/deccjsunit/src/module/execute/DataDriver.js ***! \******************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var SUITES_KEY = 'suites'; var SPECS_KEY = 'items'; var DESCRIBE_KEY = 'describe'; var IT_KEY = 'it'; var PARAMS_KEY = 'params'; var STRESS_KEY = 'stress'; var ObjectUtils = /*#__PURE__*/function () { function ObjectUtils() { (0, _classCallCheck2["default"])(this, ObjectUtils); } (0, _createClass2["default"])(ObjectUtils, null, [{ key: "get", value: function get(object, name, defaultValue) { var result = defaultValue; for (var key in object) { if (key === name) { return object[key]; } } return result; } }, { key: "has", value: function has(object, key) { return object.hasOwnProperty(key); } }]); return ObjectUtils; }(); var DataDriver = /*#__PURE__*/function () { function DataDriver(attr) { (0, _classCallCheck2["default"])(this, DataDriver); this.id = 'dataDriver'; this.data = attr.data || {}; } (0, _createClass2["default"])(DataDriver, [{ key: "init", value: function init(coreContext) { this.coreContext = coreContext; this.suiteService = this.coreContext.getDefaultService('suite'); this.specService = this.coreContext.getDefaultService('spec'); } }, { key: "getSpecParams", value: function getSpecParams() { var specParams = []; var suiteDesc = this.suiteService.getCurrentRunningSuite().description; var specDesc = this.specService.getCurrentRunningSpec().description; var suites = ObjectUtils.get(this.data, SUITES_KEY, []); var _iterator = _createForOfIteratorHelper(suites), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var suiteItem = _step.value; var describeValue = ObjectUtils.get(suiteItem, DESCRIBE_KEY, ''); if (ObjectUtils.has(suiteItem, DESCRIBE_KEY) && describeValue === suiteDesc && typeof describeValue === 'string' && describeValue.constructor === String) { // get configuration parameters of all testcases var specs = ObjectUtils.get(suiteItem, SPECS_KEY, []); var _iterator2 = _createForOfIteratorHelper(specs), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var specItem = _step2.value; if (ObjectUtils.has(specItem, IT_KEY) && ObjectUtils.get(specItem, IT_KEY) === specDesc) { return ObjectUtils.get(specItem, PARAMS_KEY, specParams); } } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } } } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } return specParams; } }, { key: "getSuiteParams", value: function getSuiteParams() { var suiteParams = {}; var suiteDesc = this.suiteService.getCurrentRunningSuite().description; var suites = ObjectUtils.get(this.data, SUITES_KEY, []); var _iterator3 = _createForOfIteratorHelper(suites), _step3; try { for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) { var suiteItem = _step3.value; var describeValue = ObjectUtils.get(suiteItem, DESCRIBE_KEY, []); // get configuration parameters of all testsuites if (ObjectUtils.has(suiteItem, DESCRIBE_KEY) && (0, _typeof2["default"])(describeValue) === 'object' && describeValue.constructor === Array && describeValue.includes(suiteDesc)) { suiteParams = Object.assign({}, suiteParams, ObjectUtils.get(suiteItem, PARAMS_KEY, suiteParams)); } } } catch (err) { _iterator3.e(err); } finally { _iterator3.f(); } return suiteParams; } }, { key: "getSpecStress", value: function getSpecStress(specDesc) { var stress = 1; var suiteDesc = this.suiteService.getCurrentRunningSuite().description; var suites = ObjectUtils.get(this.data, SUITES_KEY, []); var _iterator4 = _createForOfIteratorHelper(suites), _step4; try { for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) { var suiteItem = _step4.value; var describeValue = ObjectUtils.get(suiteItem, DESCRIBE_KEY, ''); if (ObjectUtils.has(suiteItem, DESCRIBE_KEY) && describeValue === suiteDesc && typeof describeValue === 'string' && describeValue.constructor === String) { var specs = ObjectUtils.get(suiteItem, SPECS_KEY, []); var _iterator5 = _createForOfIteratorHelper(specs), _step5; try { for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) { var specItem = _step5.value; if (ObjectUtils.has(specItem, IT_KEY) && ObjectUtils.get(specItem, IT_KEY) === specDesc) { var tempStress = ObjectUtils.get(specItem, STRESS_KEY, stress); return Number.isInteger(tempStress) && tempStress >= 1 ? tempStress : stress; } } } catch (err) { _iterator5.e(err); } finally { _iterator5.f(); } } } } catch (err) { _iterator4.e(err); } finally { _iterator4.f(); } return stress; } }, { key: "getSuiteStress", value: function getSuiteStress(suiteDesc) { var stress = 1; var suites = ObjectUtils.get(this.data, SUITES_KEY, []); var _iterator6 = _createForOfIteratorHelper(suites), _step6; try { for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) { var suiteItem = _step6.value; var describeValue = ObjectUtils.get(suiteItem, DESCRIBE_KEY, []); if (ObjectUtils.has(suiteItem, DESCRIBE_KEY) && describeValue === suiteDesc && typeof describeValue === 'string' && describeValue.constructor === String) { var tempStress = ObjectUtils.get(suiteItem, STRESS_KEY, stress); return Number.isInteger(tempStress) && tempStress >= 1 ? tempStress : stress; } } } catch (err) { _iterator6.e(err); } finally { _iterator6.f(); } return stress; } }]); return DataDriver; }(); var _default = DataDriver; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/module/report/InstrumentLog.js": /*!********************************************************************!*\ !*** ./node_modules/deccjsunit/src/module/report/InstrumentLog.js ***! \********************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var InstrumentLog = /*#__PURE__*/function () { function InstrumentLog(attr) { (0, _classCallCheck2["default"])(this, InstrumentLog); this.id = attr.id; this.index = 0; this.version = attr.version; this.unity = attr.unity; } (0, _createClass2["default"])(InstrumentLog, [{ key: "init", value: function init(coreContext) { this.coreContext = coreContext; this.suiteService = this.coreContext.getDefaultService('suite'); this.specService = this.coreContext.getDefaultService('spec'); } }, { key: "taskStart", value: function taskStart() {} }, { key: "taskDone", value: function taskDone() { var _this = this; var summary = this.suiteService.getSummary(); var action = {}; var actionData = {}; actionData.data = '\\' + 'INSTRUMENTATION_RESULT: stream=Tests run: ' + summary.total + ', Failure: ' + summary.failure; actionData.data += ', Error: ' + summary.error; actionData.data += ', Pass: ' + summary.pass; actionData.data += '\\' + 'INSTRUMENTATION_CODE: ' + (summary.failure + summary.error > 0 ? -1 : 0) + '\\'; action.bundleName = 'decc.testkit.runner'; if (this.version === '1.0.3' || this.unity === 'true') { action.abilityName = 'decc.testkit.runner.js.MessageAbility'; action.messageCode = 1004; } else { action.abilityName = 'decc.testkit.runner.MessageAbility'; action.messageCode = 1001; } action.data = actionData; action.abilityType = 1; action.syncOption = 0; console.info('call ability data: ' + JSON.stringify(action)); FeatureAbility.callAbility(action).then(function (data) { (0, _newArrowCheck2["default"])(this, _this); console.info('call ability resolved: ' + data); }.bind(this), function (error) { (0, _newArrowCheck2["default"])(this, _this); console.error('call ability rejected: ' + error); }.bind(this)); } }, { key: "suiteStart", value: function suiteStart() { var _this2 = this; var action = {}; var actionData = {}; var suiteService = this.coreContext.getDefaultService('suite'); actionData.data = suiteService.getSummary().total; actionData.data += '\\' + 'INSTRUMENTATION_STATUS: class=' + suiteService.getCurrentRunningSuite().description; action.bundleName = 'decc.testkit.runner'; if (this.version === '1.0.3' || this.unity === 'true') { action.abilityName = 'decc.testkit.runner.js.MessageAbility'; action.messageCode = 1003; } else { action.abilityName = 'decc.testkit.runner.MessageAbility'; action.messageCode = 1001; } action.data = actionData; action.abilityType = 1; action.syncOption = 0; console.info('call ability data: ' + JSON.stringify(action)); FeatureAbility.callAbility(action).then(function (data) { (0, _newArrowCheck2["default"])(this, _this2); console.info('call ability resolved: ' + data); }.bind(this), function (error) { (0, _newArrowCheck2["default"])(this, _this2); console.error('call ability rejected: ' + error); }.bind(this)); } }, { key: "suiteDone", value: function suiteDone() {} }, { key: "specStart", value: function specStart() { var _this3 = this; var action = {}; var actionData = {}; var suiteService = this.coreContext.getDefaultService('suite'); actionData.data = '\\' + 'INSTRUMENTATION_STATUS: class=' + suiteService.getCurrentRunningSuite().description; actionData.data += '\\' + 'INSTRUMENTATION_STATUS: current=' + (this.index + 1); actionData.data += '\\' + 'INSTRUMENTATION_STATUS: id=JS'; actionData.data += '\\' + 'INSTRUMENTATION_STATUS: numtests=' + suiteService.getSummary().total; actionData.data += '\\' + 'INSTRUMENTATION_STATUS: stream='; actionData.data += '\\' + 'INSTRUMENTATION_STATUS: test=' + this.specService.currentRunningSpec.description; actionData.data += '\\' + 'INSTRUMENTATION_STATUS_CODE: 1' + '\\'; action.data = actionData; this.index = this.index + 1; action.bundleName = 'decc.testkit.runner'; if (this.version === '1.0.3' || this.unity == 'true') { action.abilityName = 'decc.testkit.runner.js.MessageAbility'; } else { action.abilityName = 'decc.testkit.runner.MessageAbility'; } action.messageCode = 1001; action.abilityType = 1; action.syncOption = 0; console.info('call ability data: ' + JSON.stringify(action)); FeatureAbility.callAbility(action).then(function (data) { (0, _newArrowCheck2["default"])(this, _this3); console.info('call ability resolved: ' + data); }.bind(this), function (error) { (0, _newArrowCheck2["default"])(this, _this3); console.error('call ability rejected: ' + error); }.bind(this)); } }, { key: "specDone", value: function specDone() { var _this4 = this; var action = {}; var actionData = {}; actionData.data = '\\' + 'INSTRUMENTATION_STATUS: class=' + this.suiteService.getCurrentRunningSuite().description; actionData.data += '\\' + 'INSTRUMENTATION_STATUS: current=' + this.index; actionData.data += '\\' + 'INSTRUMENTATION_STATUS: id=JS'; actionData.data += '\\' + 'INSTRUMENTATION_STATUS: numtests=' + this.suiteService.getSummary().total; var emsg = ''; if (this.specService.currentRunningSpec.error) { actionData.data += '\\' + 'INSTRUMENTATION_STATUS: stack=' + this.specService.currentRunningSpec.error; actionData.data += '\\' + 'INSTRUMENTATION_STATUS: stream=' + '\\' + 'Error in ' + this.specService.currentRunningSpec.description + '\\' + this.specService.currentRunningSpec.error; actionData.data += '\\' + 'INSTRUMENTATION_STATUS: test=' + this.specService.currentRunningSpec.description; actionData.data += '\\' + 'INSTRUMENTATION_STATUS_CODE: -1' + '\\'; } else if (this.specService.currentRunningSpec.result) { if (this.specService.currentRunningSpec.result.failExpects.length > 0) { this.specService.currentRunningSpec.result.failExpects.forEach(function (failExpect) { (0, _newArrowCheck2["default"])(this, _this4); emsg = failExpect.message || 'expect ' + failExpect.actualValue + ' ' + failExpect.checkFunc + ' ' + (failExpect.expectValue || ''); }.bind(this)); actionData.data += '\\' + 'INSTRUMENTATION_STATUS: stack=' + emsg; actionData.data += '\\' + 'INSTRUMENTATION_STATUS: stream=' + '\\' + 'Error in ' + this.specService.currentRunningSpec.description + '\\' + emsg; actionData.data += '\\' + 'INSTRUMENTATION_STATUS: test=' + this.specService.currentRunningSpec.description; actionData.data += '\\' + 'INSTRUMENTATION_STATUS_CODE: -2' + '\\'; } else { actionData.data += '\\' + 'INSTRUMENTATION_STATUS: stream='; actionData.data += '\\' + 'INSTRUMENTATION_STATUS: test=' + this.specService.currentRunningSpec.description; actionData.data += '\\' + 'INSTRUMENTATION_STATUS_CODE: 0' + '\\'; } } else { actionData.data += '\\'; } action.data = actionData; action.bundleName = 'decc.testkit.runner'; if (this.version === '1.0.3' || this.unity === 'true') { action.abilityName = 'decc.testkit.runner.js.MessageAbility'; action.messageCode = 1002; } else { action.abilityName = 'decc.testkit.runner.MessageAbility'; action.messageCode = 1001; } action.abilityType = 1; action.syncOption = 0; FeatureAbility.callAbility(action).then(function (data) { (0, _newArrowCheck2["default"])(this, _this4); console.info('call ability resolved: ' + data); }.bind(this), function (error) { (0, _newArrowCheck2["default"])(this, _this4); console.error('call ability rejected: ' + error); }.bind(this)); } }]); return InstrumentLog; }(); var _default = InstrumentLog; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/module/report/ReportExtend.js": /*!*******************************************************************!*\ !*** ./node_modules/deccjsunit/src/module/report/ReportExtend.js ***! \*******************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var ReportExtend = /*#__PURE__*/function () { function ReportExtend(fileModule) { (0, _classCallCheck2["default"])(this, ReportExtend); this.id = 'extend'; this.fileModule = fileModule; } (0, _createClass2["default"])(ReportExtend, [{ key: "init", value: function init(coreContext) { this.coreContext = coreContext; this.suiteService = this.coreContext.getDefaultService('suite'); } }, { key: "taskStart", value: function taskStart() {} }, { key: "taskDone", value: function taskDone() { var _this = this; var report = { tag: 'testsuites', name: 'summary_report', timestamp: new Date().toDateString(), time: '1', errors: 0, failures: 0, tests: 0, children: [] }; var rootSuite = this.suiteService.rootSuite; if (rootSuite && rootSuite.childSuites) { var _iterator = _createForOfIteratorHelper(rootSuite.childSuites), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var testsuite = _step.value; var suiteReport = { tag: 'testsuite', name: testsuite['description'], errors: 0, tests: 0, failures: 0, time: '0.1', children: [] }; var specs = testsuite['specs']; var _iterator2 = _createForOfIteratorHelper(specs), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var testcase = _step2.value; report.tests++; suiteReport.tests++; var caseReport = { tag: 'testcase', name: testcase['description'], status: 'run', time: '0.0', classname: testsuite['description'] }; if (testcase.error) { caseReport['result'] = false; caseReport['children'] = [{ tag: 'error', type: '', message: testcase.error.message }]; report.errors++; suiteReport.errors++; } else if (testcase.result.failExpects.length > 0) { caseReport['result'] = false; var message = ''; testcase.result.failExpects.forEach(function (failExpect) { (0, _newArrowCheck2["default"])(this, _this); message += failExpect.message || 'expect ' + failExpect.actualValue + ' ' + failExpect.checkFunc + ' ' + (failExpect.expectValue || '') + ';'; }.bind(this)); caseReport['children'] = [{ tag: 'failure', type: '', message: message }]; report.failures++; suiteReport.failures++; } else { caseReport['result'] = true; } suiteReport.children.push(caseReport); } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } report.children.push(suiteReport); } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } } var reportXml = '\n' + json2xml(report); this.fileModule.writeText({ uri: 'internal://app/report.xml', text: reportXml, success: function success() { console.info('call success callback success'); }, fail: function fail(data, code) { console.info('call fail callback success:'); }, complete: function complete() { console.info('call complete callback success'); } }); } }]); return ReportExtend; }(); function json2xml(json) { var tagName; var hasChildren = false; var childrenStr = ''; var attrStr = ''; for (var key in json) { if (key === 'tag') { tagName = json[key]; } else if (key === 'children') { if (json[key].length > 0) { hasChildren = true; var _iterator3 = _createForOfIteratorHelper(json[key]), _step3; try { for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) { var child = _step3.value; childrenStr += json2xml(child); } } catch (err) { _iterator3.e(err); } finally { _iterator3.f(); } } } else { attrStr += " ".concat(key, "=\"").concat(json[key], "\""); } } var xml = "<".concat(tagName).concat(attrStr); xml += hasChildren ? ">".concat(childrenStr, "") : '/>'; return xml; } var _default = ReportExtend; exports.default = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/deccjsunit/src/service.js": /*!************************************************!*\ !*** ./node_modules/deccjsunit/src/service.js ***! \************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SuiteService = exports.SpecService = exports.ReportService = exports.ExpectService = exports.ConfigService = void 0; var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js")); var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js")); var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function processFunc(coreContext, func) { var _this2 = this; var argNames = ((func || '').toString().replace(/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg, '').match(/^(function)?\s*[^\(]*\(\s*([^\)]*)\)/m) || ['', '', ''])[2].split(',') // split parameters .map(function (item) { var _this3 = this; (0, _newArrowCheck2["default"])(this, _this2); return item.replace(/^\s*(_?)(.+?)\1\s*$/, function (name) { (0, _newArrowCheck2["default"])(this, _this3); return name.split('=')[0].trim(); }.bind(this)); }.bind(this)).filter(String); var funcLen = func.length; var processedFunc; switch (funcLen) { case 0: { if (Object.prototype.toString.call(func) === '[object AsyncFunction]') { coreContext.getDefaultService('config').setSupportAsync(true); } processedFunc = func; break; } case 1: { if (argNames[0] === 'data') { processedFunc = function processedFunc(paramItem) { func(paramItem); }; } else { coreContext.getDefaultService('config').setSupportAsync(true); processedFunc = function processedFunc() { var _this4 = this; return new Promise(function (resolve) { (0, _newArrowCheck2["default"])(this, _this4); function done() { resolve(); } func(done); }.bind(this)); }; } break; } default: { coreContext.getDefaultService('config').setSupportAsync(true); processedFunc = function processedFunc(paramItem) { var _this5 = this; return new Promise(function (resolve) { (0, _newArrowCheck2["default"])(this, _this5); function done() { resolve(); } func(done, paramItem); }.bind(this)); }; break; } } return processedFunc; } function secureRandomNumber() { return crypto.randomBytes(8).readUInt32LE() / 0xffffffff; } var SuiteService = /*#__PURE__*/function () { function SuiteService(attr) { (0, _classCallCheck2["default"])(this, SuiteService); this.id = attr.id; this.rootSuite = new SuiteService.Suite({}); this.currentRunningSuite = this.rootSuite; } (0, _createClass2["default"])(SuiteService, [{ key: "describe", value: function describe(desc, func) { if (this.coreContext.getDefaultService('config').filterSuite(desc)) { return; } var suite = new SuiteService.Suite({ description: desc }); if (typeof this.coreContext.getServices('dataDriver') !== 'undefined') { var suiteStress = this.coreContext.getServices('dataDriver').dataDriver.getSuiteStress(desc); for (var i = 1; i < suiteStress; i++) { this.currentRunningSuite.childSuites.push(suite); } } var currentSuiteCache = this.currentRunningSuite; this.currentRunningSuite.childSuites.push(suite); this.currentRunningSuite = suite; func.call(); this.currentRunningSuite = currentSuiteCache; } }, { key: "beforeAll", value: function beforeAll(func) { this.currentRunningSuite.beforeAll.push(processFunc(this.coreContext, func)); } }, { key: "beforeEach", value: function beforeEach(func) { this.currentRunningSuite.beforeEach.push(processFunc(this.coreContext, func)); } }, { key: "afterAll", value: function afterAll(func) { this.currentRunningSuite.afterAll.push(processFunc(this.coreContext, func)); } }, { key: "afterEach", value: function afterEach(func) { this.currentRunningSuite.afterEach.push(processFunc(this.coreContext, func)); } }, { key: "getCurrentRunningSuite", value: function getCurrentRunningSuite() { return this.currentRunningSuite; } }, { key: "setCurrentRunningSuite", value: function setCurrentRunningSuite(suite) { this.currentRunningSuite = suite; } }, { key: "dryRun", value: function dryRun() { var testSuitesObj = {}; var suitesArray = []; var _iterator = _createForOfIteratorHelper(this.rootSuite.childSuites), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var suiteItem = _step.value; var itArray = []; var suiteName = suiteItem['description']; var _iterator2 = _createForOfIteratorHelper(suiteItem['specs']), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var itItem = _step2.value; itArray.push({ 'itName': itItem['description'] }); } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } var obj = {}; obj[suiteName] = itArray; suitesArray.push(obj); } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } testSuitesObj['suites'] = suitesArray; var strJson = JSON.stringify(testSuitesObj); var strLen = strJson.length; var maxLen = 500; var maxCount = Math.floor(strLen / maxLen); for (var count = 0; count <= maxCount; count++) { console.info('[suites info]' + strJson.substring(count * maxLen, (count + 1) * maxLen)); } console.info('dryRun print success'); } }, { key: "getSummary", value: function getSummary() { var total = 0; var error = 0; var failure = 0; var pass = 0; var rootSuite = this.coreContext.getDefaultService('suite').rootSuite; if (rootSuite && rootSuite.childSuites) { for (var i = 0; i < rootSuite.childSuites.length; i++) { var testsuite = rootSuite.childSuites[i]; var specs = testsuite['specs']; for (var j = 0; j < specs.length; j++) { total++; var testcase = specs[j]; if (testcase.error) { error++; } else if (testcase.result.failExpects.length > 0) { failure++; } else if (testcase.result.pass === true) { pass++; } } } } return { total: total, failure: failure, error: error, pass: pass }; } }, { key: "init", value: function init(coreContext) { this.coreContext = coreContext; } }, { key: "execute", value: function execute() { var _this6 = this; this.coreContext.fireEvents('task', 'taskStart'); if (this.coreContext.getDefaultService('config').isSupportAsync()) { var asyncExecute = /*#__PURE__*/function () { var _asyncExecute = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() { return _regenerator["default"].wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: (0, _newArrowCheck2["default"])(this, _this6); _context.next = 3; return this.rootSuite.asyncRun(this.coreContext); case 3: case "end": return _context.stop(); } } }, _callee, this); })); function asyncExecute() { return _asyncExecute.apply(this, arguments); } return asyncExecute; }().bind(this); asyncExecute().then(function () { (0, _newArrowCheck2["default"])(this, _this6); this.coreContext.fireEvents('task', 'taskDone'); }.bind(this)); } else { this.rootSuite.run(this.coreContext); this.coreContext.fireEvents('task', 'taskDone'); } } }, { key: "apis", value: function apis() { var _this = this; return { describe: function describe(desc, func) { return _this.describe(desc, func); }, beforeAll: function beforeAll(func) { return _this.beforeAll(func); }, beforeEach: function beforeEach(func) { return _this.beforeEach(func); }, afterAll: function afterAll(func) { return _this.afterAll(func); }, afterEach: function afterEach(func) { return _this.afterEach(func); } }; } }]); return SuiteService; }(); exports.SuiteService = SuiteService; SuiteService.Suite = /*#__PURE__*/function () { function _class(attrs) { (0, _classCallCheck2["default"])(this, _class); this.description = attrs.description || ''; this.childSuites = []; this.specs = []; this.beforeAll = []; this.afterAll = []; this.beforeEach = []; this.afterEach = []; this.duration = 0; } (0, _createClass2["default"])(_class, [{ key: "pushSpec", value: function pushSpec(spec) { this.specs.push(spec); } }, { key: "removeSpec", value: function removeSpec(desc) { var _this7 = this; this.specs = this.specs.filter(function (item, index) { (0, _newArrowCheck2["default"])(this, _this7); return item.description !== desc; }.bind(this)); } }, { key: "getSpecsNum", value: function getSpecsNum() { return this.specs.length; } }, { key: "run", value: function run(coreContext) { var _this8 = this; var suiteService = coreContext.getDefaultService('suite'); suiteService.setCurrentRunningSuite(this); if (this.description !== '') { coreContext.fireEvents('suite', 'suiteStart', this); } this.runHookFunc('beforeAll'); if (this.specs.length > 0) { var configService = coreContext.getDefaultService('config'); if (configService.isRandom()) { this.specs.sort(function () { return secureRandomNumber() > 0.5 ? -1 : 1; }); } this.specs.forEach(function (spec) { (0, _newArrowCheck2["default"])(this, _this8); this.runHookFunc('beforeEach'); spec.run(coreContext); this.runHookFunc('afterEach'); }.bind(this)); } if (this.childSuites.length > 0) { this.childSuites.forEach(function (childSuite) { (0, _newArrowCheck2["default"])(this, _this8); childSuite.run(coreContext); suiteService.setCurrentRunningSuite(childSuite); }.bind(this)); } this.runHookFunc('afterAll'); if (this.description !== '') { coreContext.fireEvents('suite', 'suiteDone'); } } }, { key: "asyncRun", value: function asyncRun(coreContext) { var _this9 = this; var suiteService = coreContext.getDefaultService('suite'); suiteService.setCurrentRunningSuite(this); return new Promise( /*#__PURE__*/function () { var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(resolve) { var configService, i, _i; return _regenerator["default"].wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: (0, _newArrowCheck2["default"])(this, _this9); if (this.description !== '') { coreContext.fireEvents('suite', 'suiteStart', this); } _context2.next = 4; return this.runAsyncHookFunc('beforeAll'); case 4: if (!(this.specs.length > 0)) { _context2.next = 18; break; } configService = coreContext.getDefaultService('config'); if (configService.isRandom()) { this.specs.sort(function () { return secureRandomNumber() > 0.5 ? -1 : 1; }); } i = 0; case 8: if (!(i < this.specs.length)) { _context2.next = 18; break; } _context2.next = 11; return this.runAsyncHookFunc('beforeEach'); case 11: _context2.next = 13; return this.specs[i].asyncRun(coreContext); case 13: _context2.next = 15; return this.runAsyncHookFunc('afterEach'); case 15: i++; _context2.next = 8; break; case 18: if (!(this.childSuites.length > 0)) { _context2.next = 27; break; } _i = 0; case 20: if (!(_i < this.childSuites.length)) { _context2.next = 27; break; } suiteService.setCurrentRunningSuite(this.childSuites[_i]); _context2.next = 24; return this.childSuites[_i].asyncRun(coreContext); case 24: _i++; _context2.next = 20; break; case 27: _context2.next = 29; return this.runAsyncHookFunc('afterAll'); case 29: if (this.description !== '') { coreContext.fireEvents('suite', 'suiteDone'); } resolve(); case 31: case "end": return _context2.stop(); } } }, _callee2, this); })); return function (_x) { return _ref.apply(this, arguments); }; }().bind(this)); } }, { key: "runHookFunc", value: function runHookFunc(hookName) { var _this10 = this; if (this[hookName] && this[hookName].length > 0) { this[hookName].forEach(function (func) { (0, _newArrowCheck2["default"])(this, _this10); try { func(); } catch (e) { console.error(e); } }.bind(this)); } } }, { key: "runAsyncHookFunc", value: function runAsyncHookFunc(hookName) { var _this11 = this; if (this[hookName] && this[hookName].length > 0) { return new Promise( /*#__PURE__*/function () { var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(resolve) { var i; return _regenerator["default"].wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: (0, _newArrowCheck2["default"])(this, _this11); i = 0; case 2: if (!(i < this[hookName].length)) { _context3.next = 14; break; } _context3.prev = 3; _context3.next = 6; return this[hookName][i](); case 6: _context3.next = 11; break; case 8: _context3.prev = 8; _context3.t0 = _context3["catch"](3); console.error(_context3.t0); case 11: i++; _context3.next = 2; break; case 14: resolve(); case 15: case "end": return _context3.stop(); } } }, _callee3, this, [[3, 8]]); })); return function (_x2) { return _ref2.apply(this, arguments); }; }().bind(this)); } } }]); return _class; }(); var SpecService = /*#__PURE__*/function () { function SpecService(attr) { (0, _classCallCheck2["default"])(this, SpecService); this.id = attr.id; } (0, _createClass2["default"])(SpecService, [{ key: "init", value: function init(coreContext) { this.coreContext = coreContext; } }, { key: "setCurrentRunningSpec", value: function setCurrentRunningSpec(spec) { this.currentRunningSpec = spec; } }, { key: "getCurrentRunningSpec", value: function getCurrentRunningSpec() { return this.currentRunningSpec; } }, { key: "it", value: function it(desc, filter, func) { var configService = this.coreContext.getDefaultService('config'); var currentSuiteName = this.coreContext.getDefaultService('suite').getCurrentRunningSuite().description; if (configService.filterDesc(currentSuiteName, desc, filter, this.coreContext)) { console.info('filter it :' + desc); return; } else { var processedFunc = processFunc(this.coreContext, func); var spec = new SpecService.Spec({ description: desc, fi: filter, fn: processedFunc }); var suiteService = this.coreContext.getDefaultService('suite'); if (typeof this.coreContext.getServices('dataDriver') !== 'undefined') { var specStress = this.coreContext.getServices('dataDriver').dataDriver.getSpecStress(desc); for (var i = 1; i < specStress; i++) { suiteService.getCurrentRunningSuite().pushSpec(spec); } } suiteService.getCurrentRunningSuite().pushSpec(spec); } } }, { key: "apis", value: function apis() { var _this = this; return { it: function it(desc, filter, func) { return _this.it(desc, filter, func); } }; } }]); return SpecService; }(); exports.SpecService = SpecService; SpecService.Spec = /*#__PURE__*/function () { function _class2(attrs) { (0, _classCallCheck2["default"])(this, _class2); this.description = attrs.description || ''; this.fi = attrs.fi; this.fn = attrs.fn || function () {}; this.result = { failExpects: [], passExpects: [] }; this.error = undefined; this.duration = 0; } (0, _createClass2["default"])(_class2, [{ key: "setResult", value: function setResult() { if (this.result.failExpects.length > 0) { this.result.pass = false; } else { this.result.pass = true; } console.info('testcase ' + this.description + ' result:' + this.result.pass); } }, { key: "run", value: function run(coreContext) { var _this12 = this; var specService = coreContext.getDefaultService('spec'); specService.setCurrentRunningSpec(this); coreContext.fireEvents('spec', 'specStart', this); var startTime = new Date().getTime(); try { var dataDriver = coreContext.getServices('dataDriver'); if (typeof dataDriver === 'undefined') { this.fn(); } else { var suiteParams = dataDriver.dataDriver.getSuiteParams(); var specParams = dataDriver.dataDriver.getSpecParams(); console.info('[suite params] ' + JSON.stringify(suiteParams)); console.info('[spec params] ' + JSON.stringify(specParams)); if (this.fn.length === 0) { this.fn(); } else if (specParams.length === 0) { this.fn(suiteParams); } else { specParams.forEach(function (paramItem) { (0, _newArrowCheck2["default"])(this, _this12); return this.fn(Object.assign({}, paramItem, suiteParams)); }.bind(this)); } } this.setResult(); } catch (e) { this.error = e; } var endTime = new Date().getTime(); this.duration = ((endTime - startTime) / 1000).toFixed(3); coreContext.fireEvents('spec', 'specDone', this); } }, { key: "asyncRun", value: function asyncRun(coreContext) { var _this13 = this; var specService = coreContext.getDefaultService('spec'); specService.setCurrentRunningSpec(this); var config = coreContext.getDefaultService('config'); var timeout = +(config.timeout == undefined ? 5000 : config.timeout); return new Promise( /*#__PURE__*/function () { var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(resolve) { var _this15 = this; var startTime, dataDriver, p, suiteParams, specParams, _p, _p2, _iterator3, _step3, paramItem, _p3, endTime; return _regenerator["default"].wrap(function _callee4$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: (0, _newArrowCheck2["default"])(this, _this13); coreContext.fireEvents('spec', 'specStart', this); startTime = new Date().getTime(); _context4.prev = 3; dataDriver = coreContext.getServices('dataDriver'); if (!(typeof dataDriver === 'undefined')) { _context4.next = 11; break; } p = Promise.race([this.fn(), new Promise(function (resolve, reject) { var _this14 = this; setTimeout(function () { (0, _newArrowCheck2["default"])(this, _this14); return reject(new Error('execute timeout ' + timeout + 'ms')); }.bind(this), timeout); })]); _context4.next = 9; return p.then(function () { (0, _newArrowCheck2["default"])(this, _this15); this.setResult(); }.bind(this)); case 9: _context4.next = 45; break; case 11: suiteParams = dataDriver.dataDriver.getSuiteParams(); specParams = dataDriver.dataDriver.getSpecParams(); console.info('[suite params] ' + JSON.stringify(suiteParams)); console.info('[spec params] ' + JSON.stringify(specParams)); if (!(this.fn.length === 0)) { _context4.next = 21; break; } _p = Promise.race([this.fn(), new Promise(function (resolve, reject) { var _this16 = this; setTimeout(function () { (0, _newArrowCheck2["default"])(this, _this16); return reject(new Error('execute timeout ' + timeout + 'ms')); }.bind(this), timeout); })]); _context4.next = 19; return _p.then(function () { (0, _newArrowCheck2["default"])(this, _this15); this.setResult(); }.bind(this)); case 19: _context4.next = 45; break; case 21: if (!(specParams.length === 0)) { _context4.next = 27; break; } _p2 = Promise.race([this.fn(suiteParams), new Promise(function (resolve, reject) { var _this17 = this; setTimeout(function () { (0, _newArrowCheck2["default"])(this, _this17); return reject(new Error('execute timeout ' + timeout + 'ms')); }.bind(this), timeout); })]); _context4.next = 25; return _p2.then(function () { (0, _newArrowCheck2["default"])(this, _this15); this.setResult(); }.bind(this)); case 25: _context4.next = 45; break; case 27: _iterator3 = _createForOfIteratorHelper(specParams); _context4.prev = 28; _iterator3.s(); case 30: if ((_step3 = _iterator3.n()).done) { _context4.next = 37; break; } paramItem = _step3.value; _p3 = Promise.race([this.fn(Object.assign({}, paramItem, suiteParams)), new Promise(function (resolve, reject) { var _this18 = this; setTimeout(function () { (0, _newArrowCheck2["default"])(this, _this18); return reject(new Error('execute timeout ' + timeout + 'ms')); }.bind(this), timeout); })]); _context4.next = 35; return _p3.then(function () { (0, _newArrowCheck2["default"])(this, _this15); this.setResult(); }.bind(this)); case 35: _context4.next = 30; break; case 37: _context4.next = 42; break; case 39: _context4.prev = 39; _context4.t0 = _context4["catch"](28); _iterator3.e(_context4.t0); case 42: _context4.prev = 42; _iterator3.f(); return _context4.finish(42); case 45: _context4.next = 50; break; case 47: _context4.prev = 47; _context4.t1 = _context4["catch"](3); this.error = _context4.t1; case 50: endTime = new Date().getTime(); this.duration = ((endTime - startTime) / 1000).toFixed(3); coreContext.fireEvents('spec', 'specDone', this); resolve(); case 54: case "end": return _context4.stop(); } } }, _callee4, this, [[3, 47], [28, 39, 42, 45]]); })); return function (_x3) { return _ref3.apply(this, arguments); }; }().bind(this)); } }, { key: "filterCheck", value: function filterCheck(coreContext) { var specService = coreContext.getDefaultService('spec'); specService.setCurrentRunningSpec(this); return true; } }, { key: "addExpectationResult", value: function addExpectationResult(expectResult) { if (expectResult.pass) { this.result.passExpects.push(expectResult); } else { this.result.failExpects.push(expectResult); } } }]); return _class2; }(); var ExpectService = /*#__PURE__*/function () { function ExpectService(attr) { (0, _classCallCheck2["default"])(this, ExpectService); this.id = attr.id; this.matchers = {}; } (0, _createClass2["default"])(ExpectService, [{ key: "expect", value: function expect(actualValue) { return this.wrapMatchers(actualValue); } }, { key: "init", value: function init(coreContext) { this.coreContext = coreContext; this.addMatchers(this.basicMatchers()); } }, { key: "addMatchers", value: function addMatchers(matchers) { for (var matcherName in matchers) { if (matchers.hasOwnProperty(matcherName)) { this.matchers[matcherName] = matchers[matcherName]; } } } }, { key: "basicMatchers", value: function basicMatchers() { return { assertTrue: function assertTrue(actualValue) { return { pass: actualValue === true }; }, assertEqual: function assertEqual(actualValue, args) { return { pass: actualValue === args[0], expectValue: args[0] }; }, assertThrow: function assertThrow(actual, args) { var result = { pass: false }; if (typeof actual !== 'function') { result.message = 'toThrow\'s Actual should be a Function'; } else { var hasThrow = false; var throwError; try { actual(); } catch (e) { hasThrow = true; throwError = e; } if (!hasThrow) { result.message = 'function did not throw an exception'; } else { if (throwError && throwError.message === args[0]) { result.pass = true; } else { result.message = "expect to throw ".concat(args[0], " , actual throw ").concat(throwError.message); } } } return result; } }; } }, { key: "wrapMatchers", value: function wrapMatchers(actualValue) { var _this19 = this; var _this = this; var wrappedMatchers = {}; var specService = _this.coreContext.getDefaultService('spec'); var currentRunningSpec = specService.getCurrentRunningSpec(); var _loop = function _loop(matcherName) { if (_this19.matchers.hasOwnProperty(matcherName)) { wrappedMatchers[matcherName] = function () { var result = _this.matchers[matcherName](actualValue, arguments); result.actualValue = actualValue; result.checkFunc = matcherName; currentRunningSpec.addExpectationResult(result); }; } }; for (var matcherName in this.matchers) { _loop(matcherName); } return wrappedMatchers; } }, { key: "apis", value: function apis() { var _this = this; return { expect: function expect(actualValue) { return _this.expect(actualValue); } }; } }]); return ExpectService; }(); exports.ExpectService = ExpectService; var ReportService = /*#__PURE__*/function () { function ReportService(attr) { (0, _classCallCheck2["default"])(this, ReportService); this.id = attr.id; } (0, _createClass2["default"])(ReportService, [{ key: "init", value: function init(coreContext) { this.coreContext = coreContext; this.specService = this.coreContext.getDefaultService('spec'); this.suiteService = this.coreContext.getDefaultService('suite'); this.duration = 0; } }, { key: "taskStart", value: function taskStart() { var _this20 = this; this.taskStartTime = new Date().getTime(); this.sleep(200); console.info('[start] start run suites, total cases: ' + this.suiteService.rootSuite['childSuites'].map(function (suiteItem) { (0, _newArrowCheck2["default"])(this, _this20); return suiteItem['specs'].length; }.bind(this)).reduce(function (pre, cur) { (0, _newArrowCheck2["default"])(this, _this20); return pre + cur; }.bind(this), 0)); } }, { key: "suiteStart", value: function suiteStart() { this.sleep(200); console.info('[suite start]' + this.suiteService.getCurrentRunningSuite().description + ', total cases: ' + this.suiteService.getCurrentRunningSuite()['specs'].length); } }, { key: "specStart", value: function specStart() { this.sleep(200); console.info('start running case \'' + this.specService.currentRunningSpec.description + '\''); this.index = this.index + 1; } }, { key: "specDone", value: function specDone() { var _this21 = this; this.sleep(200); var msg = ''; var spec = this.specService.currentRunningSpec; if (spec.error) { this.formatPrint('error', spec.description); this.formatPrint('errorDetail', spec.error); } else if (spec.result) { if (spec.result.failExpects.length > 0) { this.formatPrint('fail', spec.description); spec.result.failExpects.forEach(function (failExpect) { (0, _newArrowCheck2["default"])(this, _this21); msg = failExpect.message || 'expect ' + failExpect.actualValue + ' ' + failExpect.checkFunc + ' ' + (failExpect.expectValue || ''); this.formatPrint('failDetail', msg); }.bind(this)); } else { this.formatPrint('pass', spec.description + ' ; consuming ' + spec.duration + 'S'); } } this.formatPrint(this.specService.currentRunningSpec.error, msg); } }, { key: "suiteDone", value: function suiteDone() { this.sleep(200); console.info('[suite end]'); } }, { key: "taskDone", value: function taskDone() { this.sleep(200); this.taskDoneTime = new Date().getTime(); this.duration = ((this.taskDoneTime - this.taskStartTime) / 1000).toFixed(2); var summary = this.suiteService.getSummary(); var msg = 'total cases:' + summary.total + ';failure ' + summary.failure + ',error ' + summary.error; msg += ',pass ' + summary.pass + '; consuming ' + this.duration + 'S'; console.info(msg); console.info('[end] run suites end'); } }, { key: "formatPrint", value: function formatPrint(type, msg) { switch (type) { case 'pass': console.info('[pass]' + msg); break; case 'fail': console.info('[fail]' + msg); break; case 'failDetail': console.info('[failDetail]' + msg); break; case 'error': console.info('[error]' + msg); break; case 'errorDetail': console.info('[errorDetail]' + msg); break; } } }, { key: "sleep", value: function sleep(numberMillis) { var now = new Date(); var exitTime = now.getTime() + numberMillis; while (true) { now = new Date(); if (now.getTime() > exitTime) { return; } } } }]); return ReportService; }(); exports.ReportService = ReportService; var ConfigService = /*#__PURE__*/function () { function ConfigService(attr) { (0, _classCallCheck2["default"])(this, ConfigService); this.id = attr.id; this.supportAsync = false; this.random = false; } (0, _createClass2["default"])(ConfigService, [{ key: "init", value: function init(coreContext) { this.coreContext = coreContext; } }, { key: "setConfig", value: function setConfig(params) { try { this["class"] = params["class"]; this.notClass = params.notClass; this.flag = params.flag || { flag: false }; this.suite = params.suite || null; this.itName = params.itName || null; this.filter = params.filter || null; this.testType = params.testType; this.level = params.level; this.size = params.size; this.timeout = params.timeout; this.filterParam = { testType: { 'function': 1, 'performance': 1 << 1, 'reliability': 1 << 3, 'security': 1 << 4 }, level: { '0': 1 << 24, '1': 1 << 25, '2': 1 << 26, '3': 1 << 27, '4': 1 << 28 }, size: { 'small': 1 << 16, 'medium': 1 << 17, 'large': 1 << 18 } }; this.parseParams(); } catch (err) { this.filter = 0; this.flag = false; this.suite = null; this.itName = null; this.testType = null; this.level = null; this.size = null; this["class"] = null; this.notClass = null; this.timeout = null; } } }, { key: "parseParams", value: function parseParams() { var _this22 = this; var classStr = this["class"]; if (classStr != null) { if (classStr.indexOf(',') === -1) { this.suite = classStr.indexOf('#') !== -1 ? classStr.substring(0, classStr.indexOf('#')) : classStr; this.itName = classStr.indexOf('#') !== -1 ? classStr.substring(classStr.indexOf('#') + 1, classStr.length) : null; } else { var classArr = classStr.split(','); var suites = ''; var itNames = ''; classArr.forEach(function (elem, index) { (0, _newArrowCheck2["default"])(this, _this22); suites += elem.indexOf('#') !== -1 ? elem.substring(0, elem.indexOf('#')) + ',' : elem + ','; itNames += elem.indexOf('#') !== -1 ? elem.substring(elem.indexOf('#') + 1, elem.length) + ',' : ''; }.bind(this)); this.suite = suites.endsWith(',') ? suites.substring(0, suites.length - 1) : suites; this.itName = itNames.endsWith(',') ? itNames.substring(0, itNames.length - 1) : itNames; } } if (this.filter != null) { return; } var testTypeFilter = 0; var sizeFilter = 0; var levelFilter = 0; if (this.testType != null) { if (this.testType.indexOf(',') !== -1) { var testTypeArr = this.testType.split(','); for (var testType in testTypeArr) { testTypeFilter += this.filterParam.testType[testType]; } } else { testTypeFilter = this.filterParam.testType[this.testType]; } } if (this.level != null) { if (this.level.indexOf(',') !== -1) { var typeArr = this.level.split(','); for (var type in typeArr) { if (typeArr.hasOwnProperty(type)) { levelFilter += this.filterParam.level[type]; } } } else { levelFilter = this.filterParam.level[this.level]; } } if (this.size != null) { if (this.size.indexOf(',') !== -1) { var _typeArr = this.size.split(','); for (var _type in _typeArr) { if (_typeArr.hasOwnProperty(_type)) { sizeFilter += this.filterParam.size[_type]; } } } else { sizeFilter = this.filterParam.size[this.size]; } } this.filter = testTypeFilter | sizeFilter | levelFilter; console.info('filter params:' + this.filter); } }, { key: "isCurrentSuite", value: function isCurrentSuite(description) { if (this.suite !== undefined && this.suite !== '' && this.suite !== null) { var suiteArray = this.suite.split(','); return suiteArray.indexOf(description) !== -1; } return false; } }, { key: "filterSuite", value: function filterSuite(description) { if (this.suite !== undefined && this.suite !== '' && this.suite !== null) { var suiteArray = this.suite.split(','); if (suiteArray.indexOf(description) === -1) { console.info('run suite:' + suiteArray + ',filter ' + description); return true; } return false; } else { return false; } } }, { key: "filterDesc", value: function filterDesc(currentSuiteName, desc, fi, coreContext) { if (this.itName !== undefined && this.itName !== '' && this.itName !== null) { var itNameArray = this.itName.split(','); var length = itNameArray.length; var itArray = new Array(length); var configService = this.coreContext.getDefaultService('config'); if (!(configService.isCurrentSuite(currentSuiteName) && itNameArray.indexOf(desc) !== -1)) { return true; } } if (typeof this.filter === 'undefined' || this.filter === 0 || fi === 0) { return false; } var testTypeFi = fi & 65535; var testType = this.filter & 65535; if (testType !== testTypeFi && testTypeFi !== 0 && testType !== 0) { return true; } var sizeFi = fi & 255 << 16; var size = this.filter & 255 << 16; if (size !== 0 && sizeFi !== 0 && size !== sizeFi) { return true; } var levelFi = fi & 127 << 24; var level = this.filter & 127 << 24; if (level !== 0 && levelFi !== 0 && level !== levelFi) { return true; } } }, { key: "isRandom", value: function isRandom() { return this.random || false; } }, { key: "setSupportAsync", value: function setSupportAsync(value) { this.supportAsync = value; } }, { key: "isSupportAsync", value: function isSupportAsync() { return this.supportAsync; } }, { key: "execute", value: function execute() {} }]); return ConfigService; }(); exports.ConfigService = ConfigService; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/events/events.js": /*!***************************************!*\ !*** ./node_modules/events/events.js ***! \***************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js")); var R = (typeof Reflect === "undefined" ? "undefined" : (0, _typeof2["default"])(Reflect)) === 'object' ? Reflect : null; var ReflectApply = R && typeof R.apply === 'function' ? R.apply : function ReflectApply(target, receiver, args) { return Function.prototype.apply.call(target, receiver, args); }; var ReflectOwnKeys; if (R && typeof R.ownKeys === 'function') { ReflectOwnKeys = R.ownKeys; } else if (Object.getOwnPropertySymbols) { ReflectOwnKeys = function ReflectOwnKeys(target) { return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target)); }; } else { ReflectOwnKeys = function ReflectOwnKeys(target) { return Object.getOwnPropertyNames(target); }; } function ProcessEmitWarning(warning) { if (console && console.warn) console.warn(warning); } var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) { return value !== value; }; function EventEmitter() { EventEmitter.init.call(this); } module.exports = EventEmitter; module.exports.once = once; // Backwards-compat with node 0.10.x EventEmitter.EventEmitter = EventEmitter; EventEmitter.prototype._events = undefined; EventEmitter.prototype._eventsCount = 0; EventEmitter.prototype._maxListeners = undefined; // By default EventEmitters will print a warning if more than 10 listeners are // added to it. This is a useful default which helps finding memory leaks. var defaultMaxListeners = 10; function checkListener(listener) { if (typeof listener !== 'function') { throw new TypeError('The "listener" argument must be of type Function. Received type ' + (0, _typeof2["default"])(listener)); } } Object.defineProperty(EventEmitter, 'defaultMaxListeners', { enumerable: true, get: function get() { return defaultMaxListeners; }, set: function set(arg) { if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) { throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.'); } defaultMaxListeners = arg; } }); EventEmitter.init = function () { if (this._events === undefined || this._events === Object.getPrototypeOf(this)._events) { this._events = Object.create(null); this._eventsCount = 0; } this._maxListeners = this._maxListeners || undefined; }; // Obviously not all Emitters should be limited to 10. This function allows // that to be increased. Set to zero for unlimited. EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) { if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) { throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.'); } this._maxListeners = n; return this; }; function _getMaxListeners(that) { if (that._maxListeners === undefined) return EventEmitter.defaultMaxListeners; return that._maxListeners; } EventEmitter.prototype.getMaxListeners = function getMaxListeners() { return _getMaxListeners(this); }; EventEmitter.prototype.emit = function emit(type) { var args = []; for (var i = 1; i < arguments.length; i++) { args.push(arguments[i]); } var doError = type === 'error'; var events = this._events; if (events !== undefined) doError = doError && events.error === undefined;else if (!doError) return false; // If there is no 'error' event listener then throw. if (doError) { var er; if (args.length > 0) er = args[0]; if (er instanceof Error) { // Note: The comments on the `throw` lines are intentional, they show // up in Node's output if this results in an unhandled exception. throw er; // Unhandled 'error' event } // At least give some kind of context to the user var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : '')); err.context = er; throw err; // Unhandled 'error' event } var handler = events[type]; if (handler === undefined) return false; if (typeof handler === 'function') { ReflectApply(handler, this, args); } else { var len = handler.length; var listeners = arrayClone(handler, len); for (var i = 0; i < len; ++i) { ReflectApply(listeners[i], this, args); } } return true; }; function _addListener(target, type, listener, prepend) { var m; var events; var existing; checkListener(listener); events = target._events; if (events === undefined) { events = target._events = Object.create(null); target._eventsCount = 0; } else { // To avoid recursion in the case that type === "newListener"! Before // adding it to the listeners, first emit "newListener". if (events.newListener !== undefined) { target.emit('newListener', type, listener.listener ? listener.listener : listener); // Re-assign `events` because a newListener handler could have caused the // this._events to be assigned to a new object events = target._events; } existing = events[type]; } if (existing === undefined) { // Optimize the case of one listener. Don't need the extra array object. existing = events[type] = listener; ++target._eventsCount; } else { if (typeof existing === 'function') { // Adding the second element, need to change to array. existing = events[type] = prepend ? [listener, existing] : [existing, listener]; // If we've already got an array, just append. } else if (prepend) { existing.unshift(listener); } else { existing.push(listener); } // Check for listener leak m = _getMaxListeners(target); if (m > 0 && existing.length > m && !existing.warned) { existing.warned = true; // No error code for this since it is a Warning // eslint-disable-next-line no-restricted-syntax var w = new Error('Possible EventEmitter memory leak detected. ' + existing.length + ' ' + String(type) + ' listeners ' + 'added. Use emitter.setMaxListeners() to ' + 'increase limit'); w.name = 'MaxListenersExceededWarning'; w.emitter = target; w.type = type; w.count = existing.length; ProcessEmitWarning(w); } } return target; } EventEmitter.prototype.addListener = function addListener(type, listener) { return _addListener(this, type, listener, false); }; EventEmitter.prototype.on = EventEmitter.prototype.addListener; EventEmitter.prototype.prependListener = function prependListener(type, listener) { return _addListener(this, type, listener, true); }; function onceWrapper() { if (!this.fired) { this.target.removeListener(this.type, this.wrapFn); this.fired = true; if (arguments.length === 0) return this.listener.call(this.target); return this.listener.apply(this.target, arguments); } } function _onceWrap(target, type, listener) { var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener }; var wrapped = onceWrapper.bind(state); wrapped.listener = listener; state.wrapFn = wrapped; return wrapped; } EventEmitter.prototype.once = function once(type, listener) { checkListener(listener); this.on(type, _onceWrap(this, type, listener)); return this; }; EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) { checkListener(listener); this.prependListener(type, _onceWrap(this, type, listener)); return this; }; // Emits a 'removeListener' event if and only if the listener was removed. EventEmitter.prototype.removeListener = function removeListener(type, listener) { var list, events, position, i, originalListener; checkListener(listener); events = this._events; if (events === undefined) return this; list = events[type]; if (list === undefined) return this; if (list === listener || list.listener === listener) { if (--this._eventsCount === 0) this._events = Object.create(null);else { delete events[type]; if (events.removeListener) this.emit('removeListener', type, list.listener || listener); } } else if (typeof list !== 'function') { position = -1; for (i = list.length - 1; i >= 0; i--) { if (list[i] === listener || list[i].listener === listener) { originalListener = list[i].listener; position = i; break; } } if (position < 0) return this; if (position === 0) list.shift();else { spliceOne(list, position); } if (list.length === 1) events[type] = list[0]; if (events.removeListener !== undefined) this.emit('removeListener', type, originalListener || listener); } return this; }; EventEmitter.prototype.off = EventEmitter.prototype.removeListener; EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) { var listeners, events, i; events = this._events; if (events === undefined) return this; // not listening for removeListener, no need to emit if (events.removeListener === undefined) { if (arguments.length === 0) { this._events = Object.create(null); this._eventsCount = 0; } else if (events[type] !== undefined) { if (--this._eventsCount === 0) this._events = Object.create(null);else delete events[type]; } return this; } // emit removeListener for all listeners on all events if (arguments.length === 0) { var keys = Object.keys(events); var key; for (i = 0; i < keys.length; ++i) { key = keys[i]; if (key === 'removeListener') continue; this.removeAllListeners(key); } this.removeAllListeners('removeListener'); this._events = Object.create(null); this._eventsCount = 0; return this; } listeners = events[type]; if (typeof listeners === 'function') { this.removeListener(type, listeners); } else if (listeners !== undefined) { // LIFO order for (i = listeners.length - 1; i >= 0; i--) { this.removeListener(type, listeners[i]); } } return this; }; function _listeners(target, type, unwrap) { var events = target._events; if (events === undefined) return []; var evlistener = events[type]; if (evlistener === undefined) return []; if (typeof evlistener === 'function') return unwrap ? [evlistener.listener || evlistener] : [evlistener]; return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length); } EventEmitter.prototype.listeners = function listeners(type) { return _listeners(this, type, true); }; EventEmitter.prototype.rawListeners = function rawListeners(type) { return _listeners(this, type, false); }; EventEmitter.listenerCount = function (emitter, type) { if (typeof emitter.listenerCount === 'function') { return emitter.listenerCount(type); } else { return listenerCount.call(emitter, type); } }; EventEmitter.prototype.listenerCount = listenerCount; function listenerCount(type) { var events = this._events; if (events !== undefined) { var evlistener = events[type]; if (typeof evlistener === 'function') { return 1; } else if (evlistener !== undefined) { return evlistener.length; } } return 0; } EventEmitter.prototype.eventNames = function eventNames() { return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : []; }; function arrayClone(arr, n) { var copy = new Array(n); for (var i = 0; i < n; ++i) { copy[i] = arr[i]; } return copy; } function spliceOne(list, index) { for (; index + 1 < list.length; index++) { list[index] = list[index + 1]; } list.pop(); } function unwrapListeners(arr) { var ret = new Array(arr.length); for (var i = 0; i < ret.length; ++i) { ret[i] = arr[i].listener || arr[i]; } return ret; } function once(emitter, name) { return new Promise(function (resolve, reject) { function errorListener(err) { emitter.removeListener(name, resolver); reject(err); } function resolver() { if (typeof emitter.removeListener === 'function') { emitter.removeListener('error', errorListener); } resolve([].slice.call(arguments)); } ; eventTargetAgnosticAddListener(emitter, name, resolver, { once: true }); if (name !== 'error') { addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true }); } }); } function addErrorHandlerIfEventEmitter(emitter, handler, flags) { if (typeof emitter.on === 'function') { eventTargetAgnosticAddListener(emitter, 'error', handler, flags); } } function eventTargetAgnosticAddListener(emitter, name, listener, flags) { if (typeof emitter.on === 'function') { if (flags.once) { emitter.once(name, listener); } else { emitter.on(name, listener); } } else if (typeof emitter.addEventListener === 'function') { // EventTarget does not have `error` event semantics like Node // EventEmitters, we do not listen for `error` events here. emitter.addEventListener(name, function wrapListener(arg) { // IE does not have builtin `{ once: true }` support so we // have to do it manually. if (flags.once) { emitter.removeEventListener(name, wrapListener); } listener(arg); }); } else { throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + (0, _typeof2["default"])(emitter)); } } function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js": /*!*****************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! \*****************************************************************/ /***/ ((module) => { function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js": /*!******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***! \******************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return arrayLikeToArray(arr); } module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js": /*!**********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! \**********************************************************************/ /***/ ((module) => { function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js": /*!*****************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***! \*****************************************************************/ /***/ ((module) => { function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/classCallCheck.js": /*!***************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***! \***************************************************************/ /***/ ((module) => { function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } module.exports = _classCallCheck, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/construct.js": /*!**********************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/construct.js ***! \**********************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js"); var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js"); function _construct(Parent, args, Class) { if (isNativeReflectConstruct()) { module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports.default = module.exports; } else { module.exports = _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) setPrototypeOf(instance, Class.prototype); return instance; }, module.exports.__esModule = true, module.exports.default = module.exports; } return _construct.apply(null, arguments); } module.exports = _construct, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/createClass.js": /*!************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/createClass.js ***! \************************************************************/ /***/ ((module) => { function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } module.exports = _createClass, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/defineProperty.js": /*!***************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***! \***************************************************************/ /***/ ((module) => { function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } module.exports = _defineProperty, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/getPrototypeOf.js": /*!***************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! \***************************************************************/ /***/ ((module) => { function _getPrototypeOf(o) { module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }, module.exports.__esModule = true, module.exports.default = module.exports; return _getPrototypeOf(o); } module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/inherits.js": /*!*********************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/inherits.js ***! \*********************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js"); function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) setPrototypeOf(subClass, superClass); } module.exports = _inherits, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js": /*!**********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! \**********************************************************************/ /***/ ((module) => { function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/isNativeFunction.js": /*!*****************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/isNativeFunction.js ***! \*****************************************************************/ /***/ ((module) => { function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; } module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js": /*!*************************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***! \*************************************************************************/ /***/ ((module) => { function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/iterableToArray.js": /*!****************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***! \****************************************************************/ /***/ ((module) => { function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } module.exports = _iterableToArray, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/newArrowCheck.js": /*!**************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/newArrowCheck.js ***! \**************************************************************/ /***/ ((module) => { function _newArrowCheck(innerThis, boundThis) { if (innerThis !== boundThis) { throw new TypeError("Cannot instantiate an arrow function"); } } module.exports = _newArrowCheck, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/nonIterableSpread.js": /*!******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***! \******************************************************************/ /***/ ((module) => { function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": /*!**************************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! \**************************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var _typeof = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/typeof.js").default; var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js"); function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return assertThisInitialized(self); } module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/regeneratorRuntime.js": /*!*******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! \*******************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var _typeof = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/typeof.js").default; function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ module.exports = _regeneratorRuntime = function _regeneratorRuntime() { return exports; }, module.exports.__esModule = true, module.exports.default = module.exports; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; } module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js": /*!***************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! \***************************************************************/ /***/ ((module) => { function _setPrototypeOf(o, p) { module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }, module.exports.__esModule = true, module.exports.default = module.exports; return _setPrototypeOf(o, p); } module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/toConsumableArray.js": /*!******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***! \******************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"); var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "./node_modules/@babel/runtime/helpers/iterableToArray.js"); var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "./node_modules/@babel/runtime/helpers/nonIterableSpread.js"); function _toConsumableArray(arr) { return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); } module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/typeof.js": /*!*******************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/typeof.js ***! \*******************************************************/ /***/ ((module) => { function _typeof(obj) { "@babel/helpers - typeof"; return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, module.exports.__esModule = true, module.exports.default = module.exports), _typeof(obj); } module.exports = _typeof, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": /*!***************************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! \***************************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); } module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/wrapNativeSuper.js": /*!****************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***! \****************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/getPrototypeOf.js"); var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js"); var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "./node_modules/@babel/runtime/helpers/isNativeFunction.js"); var construct = __webpack_require__(/*! ./construct.js */ "./node_modules/@babel/runtime/helpers/construct.js"); function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return construct(Class, arguments, getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return setPrototypeOf(Wrapper, Class); }, module.exports.__esModule = true, module.exports.default = module.exports; return _wrapNativeSuper(Class); } module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/regenerator/index.js": /*!**********************************************************!*\ !*** ./node_modules/@babel/runtime/regenerator/index.js ***! \**********************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js")); // TODO(Babel 8): Remove this file. var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")(); module.exports = runtime; // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= try { regeneratorRuntime = runtime; } catch (accidentalStrictMode) { if ((typeof globalThis === "undefined" ? "undefined" : (0, _typeof2["default"])(globalThis)) === "object") { globalThis.regeneratorRuntime = runtime; } else { Function("r", "regeneratorRuntime = r")(runtime); } } function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }) }]); globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"] = globalThis["__common_module_cache___cdc709c54327d7ba73517c4d0d8a5a7b"] || {}; //# sourceMappingURL=vendors.js.mapPK !:assets/js/TestAbility/app.abcPANDAh8.< XL`/\ / : L W  /  z h _D 7 Z X V /L_ESCallTypeAnnotation;'L_ESTypeAnnotation;__appProto__#7#OffscreenCanvas Imagehistory$app_require$$app_bootstrap$$app_define$ renderregisterbootstrap define#5##4##2#)@app-application/app done./lib/manifest-plugin.js!../../../../../../../../../tmp/tmpr2f51grc/manifest.json next{"appID":"ohos.acts.multimedia.video.videoplayer","appName":"$string:TestAbility_label","deviceType":["default","tablet","tv","wearable"],"pages":["pages/index/index"],"versionCode":1000000,"versionName":"1.0.0","window":{"autoDesignWidth":false,"designWidth":720}}ohosplugin length @ohos#6# return#3#requireNapiconsole$1replace[webpackChunk_141024cd28038ce80df01fa8c595dac9./AceApplication onCreateundefined value info@app-module/ Objectincludes#8# testonCreate___mainEntry___substring split@[^.]+.([^.]+)systempluginrequireModulerequireuse strict'__webpack_require__defaultdefineProperty ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=/home/redjie/ohos_/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/app.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/app.js1AceApplication onDestroy__esModuleonDestroy@exports globalq__common_module_cache___141024cd28038ce80df01fa8c595dac9manifest#1# StringindexOf ?name= parse JSONisCommonModue'L_ESTypeInfoRecord;typeFlag!typeSummaryIndexfunc_main_0L_GLOBAL; w S  N?  W E  AV. 5 %  s t  2 "   QqQ u3 /home/redjie/ohos_/out/rk3568/obj/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/module_video_player_js_hap/assets/TestAbility/app_.js          system.routersystem.appsystem.prompt)system.configurationsystem.imagesystem.device#system.mediaqueryohos.animatorsystem.gridsystem.resource2@callTypei 7i 7 sI_xdmmww`wwxwpwbmwQmwBw9w2w!_wGdm`;5djXw&~-w~-wx@ d_m sw&i  \x i_y_ y2x w - w@ jGx1 sw\x@, s`w\ wv~.wvw23-3-$"kwvQQLwvQQL-#wvQQLdm_ x@d  fw wm =  \ \~-9j w!  \ Gwm}3i \sSG 3-"~-(}:w\~- w& 3-"~.}:w\~.s& w,  \ w\ < w -ow    L  ~-"~-wF3 - \ < "$" 3-wF3 -\  3- wC 3.sC w,  \ w\ < w -ow    L  ~-"~-wF3 - \ < "$" 3-wF3 -\  3- JJWdmj!Gmj_XjX, s`w \ d_wQ~-wQL ~- w@jL 3- w@jiy@M wQ~-?sG w  \!- "~-G ~-wQM jL w@j!   \w@idmm_ m i``mm` ;m   z z z z z z z z z     ~ s  p    ~  N   ^ k "&(    ^ ^  !  _    -     xy{} | ~%!~  N  g iNz{{+|+|!-80$9@T"T"    ~  $# #\   k m g          (#ijlmnqtq "   p     N  "[We)~ ^o5PK !:߂((((assets/js/TestAbility/app.jsvar _141024cd28038ce80df01fa8c595dac9; /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=/home/redjie/ohos_/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/app.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/app.js": /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=/home/redjie/ohos_/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/app.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/app.js ***! \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { module.exports = function(module, exports, $app_require$){"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _default = { onCreate: function onCreate() { console.info('AceApplication onCreate'); }, onDestroy: function onDestroy() { console.info('AceApplication onDestroy'); } }; exports["default"] = _default; ; (exports["default"] || module.exports).manifest = __webpack_require__(/*! !!../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/manifest-plugin.js!../../../../../../../../../../../../../../tmp/tmpr2f51grc/manifest.json */ "./lib/manifest-plugin.js!../../../../../../../../../tmp/tmpr2f51grc/manifest.json"); function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } } /* generated by ace-loader */ /***/ }), /***/ "./lib/manifest-plugin.js!../../../../../../../../../tmp/tmpr2f51grc/manifest.json": /*!*****************************************************************************************!*\ !*** ./lib/manifest-plugin.js!../../../../../../../../../tmp/tmpr2f51grc/manifest.json ***! \*****************************************************************************************/ /***/ ((module) => { "use strict"; module.exports = JSON.parse('{"appID":"ohos.acts.multimedia.video.videoplayer","appName":"$string:TestAbility_label","deviceType":["default","tablet","tv","wearable"],"pages":["pages/index/index"],"versionCode":1000000,"versionName":"1.0.0","window":{"autoDesignWidth":false,"designWidth":720}}'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___141024cd28038ce80df01fa8c595dac9"] ? globalThis["__common_module_cache___141024cd28038ce80df01fa8c595dac9"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_141024cd28038ce80df01fa8c595dac9"]) { /******/ const length = globalThis["webpackChunk_141024cd28038ce80df01fa8c595dac9"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_141024cd28038ce80df01fa8c595dac9"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_141024cd28038ce80df01fa8c595dac9"][0][1][moduleId] || /******/ globalThis["webpackChunk_141024cd28038ce80df01fa8c595dac9"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___141024cd28038ce80df01fa8c595dac9"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___141024cd28038ce80df01fa8c595dac9"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { /*!***************************************************************************************************************************!*\ !*** ../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/app.js?entry ***! \***************************************************************************************************************************/ var $app_script$ = __webpack_require__(/*! !!../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/script.js!../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/babel-loader?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/resource-reference-script.js!../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/manifest-loader.js?path=/home/redjie/ohos_/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/app.js!./app.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=/home/redjie/ohos_/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/app.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/app.js") $app_define$('@app-application/app', [], function($app_require$, $app_exports$, $app_module$) { $app_script$($app_module$, $app_exports$, $app_require$) if ($app_exports$.__esModule && $app_exports$.default) { $app_module$.exports = $app_exports$.default } }) $app_bootstrap$('@app-application/app',undefined,undefined) })(); _141024cd28038ce80df01fa8c595dac9 = __webpack_exports__; /******/ })() ; //# sourceMappingURL=app.js.mapPK !:[<<%assets/js/TestAbility/i18n/en-US.json{"strings": {"hello": "Hello","world": "World"},"Files": {}}PK !:O>>%assets/js/TestAbility/i18n/zh-CN.json{"strings": {"hello": "您好","world": "世界"},"Files": {}}PK !: #assets/js/TestAbility/manifest.json{"appID": "ohos.acts.multimedia.video.videoplayer","appName": "$string:TestAbility_label","deviceType": ["default","tablet","tv","wearable"],"pages": ["pages/index/index"],"versionCode": 1000000,"versionName": "1.0.0","window": {"autoDesignWidth": false,"designWidth": 720}}PK !:l+assets/js/TestAbility/pages/index/index.abcPANDA[g,.<L,E/ TwN   I,,/    7 D R z _ m /L_ESCallTypeAnnotation;'L_ESTypeAnnotation;__appProto__OffscreenCanvas Image$app_define$ renderbootstrap define#2#)@app-component/index./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/pages/index/index.js./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/pages/index/index.css styletemplateindexOf String globalq__common_module_cache___141024cd28038ce80df01fa8c595dac9isCommonModue length[webpackChunk_141024cd28038ce80df01fa8c595dac9#5##4#forEachFor VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.$app_require$ some#1# onInit'__webpack_require__default__esModule$1replace split@[^.]+.([^.]+)@app-module/ Object#7#strings.worldsystemplugin valueincludes$t#9#substring./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/pages/index/index.hml@ titleexports @MEDIA$app_bootstrap$ data#3#requireNapiconsole ?name=strings.hello___mainEntry___ Errorchildren .title%20 donehistory.containerohosplugin access attrundefined @ohos#6# return#8#_descriptor test. #11# next objectrequiredecodeURIuse strictclassList assign warn5For VM objects, attribute #10#register{ value must not be a function. Change the value to an object.functionrequireModuledefineProperty'L_ESTypeInfoRecord;  typeFlag!typeSummaryIndexfunc_main_0L_GLOBAL;nnnvnnnrnRnn;#1nW_na&NDaa" {n74nZn/home/redjie/ohos_/out/rk3568/obj/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/module_video_player_js_hap/assets/TestAbility/pages/index/index_.js r ' 0 6 E M ] e ] q w | w     display flexflexDirection columnjustifyContent centeralignItems left0pxtop width 100% height   " type text    &debugLine'pages/index/index:2classNameG V b q       system.routersystem.appsystem.prompt)system.configurationsystem.imagesystem.device#system.mediaqueryohos.animatorsystem.gridsystem.resource&f-5@ publicprotectedprivate ]    fontSize 60pxtextAlign40%marginTop 10pxmarginRightmarginBottommarginLeft K.9rconditionyscreen and (device-type: phone) and (orientation: landscape).r{screen and (device-type: tablet) and (orientation: landscape) 100px "hdiv . C'pages/index/index:1containerCcallTypeW7W7 sl_ xNdmmwwww]wwmwmw~wwywh_wZGydmm_m i`` K`mm`;mdm`;dmm mj!KGmj!Gm j!Gmj_XjX[djXw~-w~-wxwjxQwj!xJ+ w7 \xj iiyiyriiyrSiiyrSyxu w7?\s fGs zGs fGw djL 4.jsw-jwjL  \xjL :3-hjwi yM"4-9s.w5; g\djLo iiyf y"i i _y&yf y"Syhxd  f fw- w  f \ \~-9j w@  \ Gw} \s!G 3-"~-(}w\~- w 3-"~.}w\~.s w  \ w\ < w -ow&    L  ~-"~-w3 - \ < "$" 3-w3 -\  3- w 3.s w  \ w\ < w -ow&    L  ~-"~-w3 - \ < "$" 3-w3 -\  3- JJ d_ mmswi    \xiiy_yxw- w mfjw~-Gw_   \~-#s_ Z "Wjw~/~->jxjxw_  \ w~.ww3-3-$"kwQQLwQQL-#wQQL _x d_ wt~-wtL ~- wjL 3- wjiyM wt~-?sdG w[7  \!- "~-G ~-wtM jL wj!   \w   z z z z z z z z z     ~ s  p      N  &1C?$c_)~p       ~        p p   k  l   # .0.464 y- k g     S S      0    "/      k K } m K   EFLKOPSPWVyON wE  iNz{{+|+|!80$9@T"T"  N   ^ k   \        \    ;eggjklos *        -       %!   e   k m g          0# "  oS.9WPK !:11*assets/js/TestAbility/pages/index/index.jsvar _141024cd28038ce80df01fa8c595dac9; /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/pages/index/index.css": /*!*****************************************************************************************************************************************************************!*\ !*** ./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/pages/index/index.css ***! \*****************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = { ".container": { "display": "flex", "flexDirection": "column", "justifyContent": "center", "alignItems": "center", "left": "0px", "top": "0px", "width": "100%", "height": "100%" }, ".title": { "fontSize": "60px", "textAlign": "center", "width": "100%", "height": "40%", "marginTop": "10px", "marginRight": "10px", "marginBottom": "10px", "marginLeft": "10px" }, "@MEDIA": [ { "condition": "screen and (device-type: phone) and (orientation: landscape)", ".title": { "fontSize": "60px" } }, { "condition": "screen and (device-type: tablet) and (orientation: landscape)", ".title": { "fontSize": "100px" } } ] } /***/ }), /***/ "./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/pages/index/index.hml": /*!********************************************************************************************************************************************************************!*\ !*** ./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/pages/index/index.hml ***! \********************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = { "attr": { "debugLine": "pages/index/index:1", "className": "container" }, "type": "div", "classList": [ "container" ], "children": [ { "attr": { "debugLine": "pages/index/index:2", "className": "title", "value": function () {return (this.$t('strings.hello'))+ decodeURI('') +decodeURI('%20')+ decodeURI('') +(this.title)} }, "type": "text", "classList": [ "title" ] } ] } /***/ }), /***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/pages/index/index.js": /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/pages/index/index.js ***! \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = function(module, exports, $app_require$){"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _default = { data: { title: "" }, onInit: function onInit() { this.title = this.$t('strings.world'); } }; exports["default"] = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } var moduleOwn = exports.default || module.exports; var accessors = ['public', 'protected', 'private']; if (moduleOwn.data && accessors.some(function (acc) { return moduleOwn[acc]; })) { throw new Error('For VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.'); } else if (!moduleOwn.data) { moduleOwn.data = {}; moduleOwn._descriptor = {}; accessors.forEach(function(acc) { var accType = typeof moduleOwn[acc]; if (accType === 'object') { moduleOwn.data = Object.assign(moduleOwn.data, moduleOwn[acc]); for (var name in moduleOwn[acc]) { moduleOwn._descriptor[name] = {access : acc}; } } else if (accType === 'function') { console.warn('For VM objects, attribute ' + acc + ' value must not be a function. Change the value to an object.'); } }); }} /* generated by ace-loader */ /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___141024cd28038ce80df01fa8c595dac9"] ? globalThis["__common_module_cache___141024cd28038ce80df01fa8c595dac9"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_141024cd28038ce80df01fa8c595dac9"]) { /******/ const length = globalThis["webpackChunk_141024cd28038ce80df01fa8c595dac9"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_141024cd28038ce80df01fa8c595dac9"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_141024cd28038ce80df01fa8c595dac9"][0][1][moduleId] || /******/ globalThis["webpackChunk_141024cd28038ce80df01fa8c595dac9"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___141024cd28038ce80df01fa8c595dac9"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___141024cd28038ce80df01fa8c595dac9"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { /*!******************************************************************************************************************************************!*\ !*** ../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/pages/index/index.hml?entry ***! \******************************************************************************************************************************************/ var $app_template$ = __webpack_require__(/*! !!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/json.js!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/template.js!./index.hml */ "./lib/json.js!./lib/template.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/pages/index/index.hml") var $app_style$ = __webpack_require__(/*! !!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/json.js!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/style.js!./index.css */ "./lib/json.js!./lib/style.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/pages/index/index.css") var $app_script$ = __webpack_require__(/*! !!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/script.js!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/babel-loader?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!../../../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/resource-reference-script.js!./index.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestAbility/pages/index/index.js") $app_define$('@app-component/index', [], function($app_require$, $app_exports$, $app_module$) { $app_script$($app_module$, $app_exports$, $app_require$) if ($app_exports$.__esModule && $app_exports$.default) { $app_module$.exports = $app_exports$.default } $app_module$.exports.template = $app_template$ $app_module$.exports.style = $app_style$ }) $app_bootstrap$('@app-component/index',undefined,undefined) })(); _141024cd28038ce80df01fa8c595dac9 = __webpack_exports__; /******/ })() ; //# sourceMappingURL=index.js.mapPK !:Qe{!!.assets/js/TestRunner/OpenHarmonyTestRunner.abcPANDA4! .<! Lp % ju !  R  % z _ ) D   m 7 @ /L_ESCallTypeAnnotation;'L_ESTypeAnnotation;___mainEntry_____appProto__OffscreenCanvas Imagehistory$app_bootstrap$$app_define$ renderregister define #12##9#require test #10#_descriptorsubstring-_interopRequireDefault split-D@exports$1replacebootstrap -D#aa start -d 0 -a 'executeShellCommand'getAbilityDelegator @ohos.MainAbility@[^.]+.([^.]+) cmd : console;executeShellCommand : data : #5#.includes -b defaultrequireNapi #11#[webpackChunk_fc25ba9241b048e37589b9505c1fce85getArguments#8# trim trueohosplugin Error9executeShellCommand : err : onRunstdResult infoexitCodeundefined bind#7#logbundleName@app-module/ object?OpenHarmonyTestRunner onRun run/translateParamsToString JSONSetisCommonModue#3#hasTypeErrorparameters__esModule?OpenHarmonyTestRunner OnPrepare-p next done value#6# returnsystemplugin Object'__webpack_require__ assign access./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestRunner/OpenHarmonyTestRunner.jsfunctionrequireModule warn#1#5For VM objects, attribute { value must not be a function. Change the value to an object.use strict}./node_modules/@babel/runtime/helpers/interopRequireDefault.jsdefinePropertym./node_modules/@babel/runtime/helpers/newArrowCheck.js$app_require$U@ohos.application.abilityDelegatorRegistryFor VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.onPrepare somedebug value : #2#forEachstringify#4#ICannot instantiate an arrow function_newArrowCheck data lengthq__common_module_cache___fc25ba9241b048e37589b9505c1fce85 String globalindexOf ?name=M@app-application/OpenHarmonyTestRunner'L_ESTypeInfoRecord;  typeFlag!typeSummaryIndexfunc_main_0L_GLOBAL;If 4x XH s!:{V84 nd %Uj 6c1!/home/redjie/ohos_/out/rk3568/obj/test/xts/acts/multimedia/media/media_js_standard/videoPlayer/module_video_player_js_hap/assets/TestRunner/OpenHarmonyTestRunner_.js( 2 ? I T ^ k t   -s class-s notClass-s suite-s itName-s level-s testType-s size-s timeout-s package-s dryRun     *=LYsystem.routersystem.appsystem.prompt)system.configurationsystem.imagesystem.device#system.mediaqueryohos.animatorsystem.gridsystem.resource publicprotectedprivate YcallType77 sX _x:dm`;Edmj!Gmjq _Xydmm_m i` `Y`mm` ;m5djXwU~-w~-wx w~.ww 3-3-$"kwQQLwQQL-#wQQLA _ xwxUwwxdjwjWswcsw \\sww \sww \ dmm sw \jww,\jww_\wIw{7w?j!wIGwIw sw \H- 2sw \wJ_w \  \( ~- wU~/iy  s fZZ :3-Cw9\~-??L "wB\dmm_m _ m@m0jYGswUi     \ xjGGmGGmi_y_yxw- wm@fj@w ~-Gw_   \ ~-#s\ Z "Wj@w ~/~->j@x j@xw_  \ * 3-!s>Z , swa\ydmwww'wwwmwzwwqwjwY_wKGd  fZw w  Z \ \~-9j1 w  \ Gw} \sG 3-"~-(}tw\~- wN 3-"~.}tw\~.sN w  \ w\ < w -ow    L  ~-"~-w3 - \ < "$" 3-w3 -\  3- w 3.s w  \ w\ < w -ow    L  ~-"~-w3 - \ < "$" 3-w3 -\  3- JJdm_ xdjAL djAL 4.jAswjAw jAL  \x jAL :3-hjAwi yM"4-9sw \ d_w ~-w L ~- wjL 3- wjiyM w ~-?sP G w` i   \!- "~-G ~-w M jL wj!   \wA _xwxUwwx  p   ~  p      N  +~)~    ~    -       %! 0~       \   \   KL) L LM$ MN$ N  N   ]   {   {       ]   \    2879 9;;==?@$A!BC CEFI IJO {J    <      z {     2   '& &')* *+$/ /  N    ^   k    \        \    ?4!#236R *| }~ ~    z     ~     54 4K z z z z z z z z z z     ~ s iNz{{+|+|!80$9@T"T"  N  g        0    "/     k m g          0# "    0~i!-5 k! PK !:E//-assets/js/TestRunner/OpenHarmonyTestRunner.jsvar _fc25ba9241b048e37589b9505c1fce85; /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestRunner/OpenHarmonyTestRunner.js": /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestRunner/OpenHarmonyTestRunner.js ***! \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { module.exports = function(module, exports, $app_require$){"use strict"; var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _ohosApplication = _interopRequireDefault(requireModule("@ohos.application.abilityDelegatorRegistry")); function translateParamsToString(parameters) { var keySet = new Set(['-s class', '-s notClass', '-s suite', '-s itName', '-s level', '-s testType', '-s size', '-s timeout', '-s package', '-s dryRun']); var targetParams = ''; for (var key in parameters) { if (keySet.has(key)) { targetParams += ' ' + key + ' ' + parameters[key]; } } return targetParams.trim(); } var _default = { onPrepare: function onPrepare() { console.info('OpenHarmonyTestRunner OnPrepare'); }, onRun: function onRun() { var _this = this; console.log('OpenHarmonyTestRunner onRun run'); var abilityDelegatorArguments = _ohosApplication["default"].getArguments(); var abilityDelegator = _ohosApplication["default"].getAbilityDelegator(); var testAbilityName = abilityDelegatorArguments.parameters['-p'] + '.MainAbility'; var cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName; cmd += ' ' + translateParamsToString(abilityDelegatorArguments.parameters); var debug = abilityDelegatorArguments.parameters["-D"]; console.info('debug value : ' + debug); if (debug == 'true') { cmd += ' -D'; } console.info('cmd : ' + cmd); abilityDelegator.executeShellCommand(cmd, function (err, data) { (0, _newArrowCheck2["default"])(this, _this); console.info('executeShellCommand : err : ' + JSON.stringify(err)); console.info('executeShellCommand : data : ' + data.stdResult); console.info('executeShellCommand : data : ' + data.exitCode); }.bind(this)); } }; exports["default"] = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } var moduleOwn = exports.default || module.exports; var accessors = ['public', 'protected', 'private']; if (moduleOwn.data && accessors.some(function (acc) { return moduleOwn[acc]; })) { throw new Error('For VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.'); } else if (!moduleOwn.data) { moduleOwn.data = {}; moduleOwn._descriptor = {}; accessors.forEach(function(acc) { var accType = typeof moduleOwn[acc]; if (accType === 'object') { moduleOwn.data = Object.assign(moduleOwn.data, moduleOwn[acc]); for (var name in moduleOwn[acc]) { moduleOwn._descriptor[name] = {access : acc}; } } else if (accType === 'function') { console.warn('For VM objects, attribute ' + acc + ' value must not be a function. Change the value to an object.'); } }); }} /* generated by ace-loader */ /***/ }), /***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js": /*!**********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! \**********************************************************************/ /***/ ((module) => { function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports.default = module.exports; /***/ }), /***/ "./node_modules/@babel/runtime/helpers/newArrowCheck.js": /*!**************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/newArrowCheck.js ***! \**************************************************************/ /***/ ((module) => { function _newArrowCheck(innerThis, boundThis) { if (innerThis !== boundThis) { throw new TypeError("Cannot instantiate an arrow function"); } } module.exports = _newArrowCheck, module.exports.__esModule = true, module.exports.default = module.exports; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___fc25ba9241b048e37589b9505c1fce85"] ? globalThis["__common_module_cache___fc25ba9241b048e37589b9505c1fce85"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_fc25ba9241b048e37589b9505c1fce85"]) { /******/ const length = globalThis["webpackChunk_fc25ba9241b048e37589b9505c1fce85"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_fc25ba9241b048e37589b9505c1fce85"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_fc25ba9241b048e37589b9505c1fce85"][0][1][moduleId] || /******/ globalThis["webpackChunk_fc25ba9241b048e37589b9505c1fce85"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___fc25ba9241b048e37589b9505c1fce85"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___fc25ba9241b048e37589b9505c1fce85"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { /*!**************************************************************************************************************************************!*\ !*** ../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestRunner/OpenHarmonyTestRunner.js ***! \**************************************************************************************************************************************/ var $app_script$ = __webpack_require__(/*! !!../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/script.js!../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/babel-loader?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!../../../../../../../../../../../out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/lib/resource-reference-script.js!./OpenHarmonyTestRunner.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/preset-env&plugins[]=/home/redjie/ohos_/out/rk3568/obj/developtools/ace-js2bundle/ace_loader_ark/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../test/xts/acts/multimedia/media/media_js_standard/videoPlayer/src/main/js/TestRunner/OpenHarmonyTestRunner.js") $app_define$('@app-application/OpenHarmonyTestRunner', [], function($app_require$, $app_exports$, $app_module$) { $app_script$($app_module$, $app_exports$, $app_require$) if ($app_exports$.__esModule && $app_exports$.default) { $app_module$.exports = $app_exports$.default } }) })(); _fc25ba9241b048e37589b9505c1fce85 = __webpack_exports__; /******/ })() ; //# sourceMappingURL=OpenHarmonyTestRunner.js.mapPK !:”"assets/js/TestRunner/manifest.json{"appID": "ohos.acts.multimedia.video.videoplayer","deviceType": ["default","tablet","tv","wearable"],"versionCode": 1000000,"versionName": "1.0.0"}PK !:  config.json{"app": {"apiVersion": {"compatible": 6,"releaseType": "Beta1","target": 7},"bundleName": "ohos.acts.multimedia.video.videoplayer","vendor": "acts","version": {"code": 1000000,"name": "1.0.0"}},"deviceConfig": {"default": {"debug": true}},"module": {"abilities": [{"description": "$string:MainAbility_desc","descriptionId": 16777216,"formsEnabled": false,"icon": "$media:icon","iconId": 16777222,"label": "$string:MainAbility_label","labelId": 16777217,"launchType": "standard","name": ".MainAbility","orientation": "unspecified","skills": [{"actions": ["action.system.home"],"entities": ["entity.system.home"]}],"srcLanguage": "js","srcPath": "MainAbility","type": "page","visible": true},{"description": "$string:TestAbility_desc","descriptionId": 16777218,"formsEnabled": false,"icon": "$media:icon","iconId": 16777222,"label": "$string:TestAbility_label","labelId": 16777219,"launchType": "standard","name": ".TestAbility","orientation": "unspecified","srcLanguage": "js","srcPath": "TestAbility","type": "page","visible": true}],"deviceType": ["default","tablet","tv","wearable"],"distro": {"deliveryWithInstall": true,"installationFree": false,"moduleName": "entry","moduleType": "entry","virtualMachine": "ark0.0.0.2"},"js": [{"name": "default","pages": ["pages/index/index","pages/surfaceTest/surfaceTest","pages/surfaceTest2/surfaceTest2"],"window": {"autoDesignWidth": true,"designWidth": 720}},{"name": ".TestAbility","pages": ["pages/index/index"],"window": {"autoDesignWidth": false,"designWidth": 720}}],"mainAbility": ".MainAbility","name": ".entry","package": "ohos.acts.multimedia.video.videoplayer","srcPath": "","testRunner": {"name": "OpenHarmonyTestRunner","srcPath": "TestRunner"}}}   0 | *H  m0 i1 0  `He0 *H  {"version-code":1,"version-name":"1.0.0","uuid":"5027b99e-5f9e-465d-9508-a9e0134ffe18","type":"release","app-distribution-type":"os_integration","validity":{"not-before":1594865258,"not-after":1689473258},"bundle-info":{"developer-id":"OpenHarmony","distribution-certificate":"-----BEGIN CERTIFICATE-----\nMIICMzCCAbegAwIBAgIEaOC/zDAMBggqhkjOPQQDAwUAMGMxCzAJBgNVBAYTAkNO\nMRQwEgYDVQQKEwtPcGVuSGFybW9ueTEZMBcGA1UECxMQT3Blbkhhcm1vbnkgVGVh\nbTEjMCEGA1UEAxMaT3Blbkhhcm1vbnkgQXBwbGljYXRpb24gQ0EwHhcNMjEwMjAy\nMTIxOTMxWhcNNDkxMjMxMTIxOTMxWjBoMQswCQYDVQQGEwJDTjEUMBIGA1UEChML\nT3Blbkhhcm1vbnkxGTAXBgNVBAsTEE9wZW5IYXJtb255IFRlYW0xKDAmBgNVBAMT\nH09wZW5IYXJtb255IEFwcGxpY2F0aW9uIFJlbGVhc2UwWTATBgcqhkjOPQIBBggq\nhkjOPQMBBwNCAATbYOCQQpW5fdkYHN45v0X3AHax12jPBdEDosFRIZ1eXmxOYzSG\nJwMfsHhUU90E8lI0TXYZnNmgM1sovubeQqATo1IwUDAfBgNVHSMEGDAWgBTbhrci\nFtULoUu33SV7ufEFfaItRzAOBgNVHQ8BAf8EBAMCB4AwHQYDVR0OBBYEFPtxruhl\ncRBQsJdwcZqLu9oNUVgaMAwGCCqGSM49BAMDBQADaAAwZQIxAJta0PQ2p4DIu/ps\nLMdLCDgQ5UH1l0B4PGhBlMgdi2zf8nk9spazEQI/0XNwpft8QAIwHSuA2WelVi/o\nzAlF08DnbJrOOtOnQq5wHOPlDYB4OtUzOYJk9scotrEnJxJzGsh/\n-----END CERTIFICATE-----\n","bundle-name":"ohos.acts.multimedia.video.videoplayer","apl":"system_core","app-feature":"hos_system_app"},"permissions":{"restricted-permissions":[]},"issuer":"pki_internal"}0<07m0 *H=0c1 0 UCN10U  OpenHarmony10U OpenHarmony Team1#0!UOpenHarmony Application CA0 210202122105Z 491231122105Z0p1 0 UCN10U  OpenHarmony10U OpenHarmony Team100.U'OpenHarmony Application Profile Release0Y0*H=*H=BW빦Aqɒ(F7 *ČM7n+T?ȠQ Ó4nR0P0U#0ۆ" K%{}-G0U0Ua齧zNϕ_ R0 *H=i0f1 byH$BehwF>좘Bdf6`1jz :A$]L!O0D&RC$5xs~0D0ɠ80 *H=0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Root CA0 210202121418Z 491231121418Z0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Root CA0v0*H=+"bM6yk J(ocAmK{- vYY[@YGMGpB_T cG ޸_&r )QsYI~7GB0@0U00U0U:|Oј'Zw0 *H=g0d0wZw'1w>X' :*5z\-o#iY't0$$o]#R0J?yDuEpv0qOy֧+G0a0e=0 *H=0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Root CA0 210202121532Z 491231121532Z0c1 0 UCN10U  OpenHarmony10U OpenHarmony Team1#0!UOpenHarmony Application CA0v0*H=+"b!ǝ5ʤ_A%'tC'֓ 7~pX~pvR0Wڗ(6P›ј!`+-Uc0a0U#0:|Oј'Zw0U00U0Uۆ" K%{}-G0 *H=h0e0m^8t:h_6}fOHU߉hI1ow:rR&-XŖl;NrapYtg4;.1A0=0k0c1 0 UCN10U  OpenHarmony10U OpenHarmony Team1#0!UOpenHarmony Application CA7m0  `Hei0 *H  1  *H 0 *H  1 220301120508Z0/ *H  1" C;i%"tHA!4$rf+G+@mǓ0 *H=G0E u-bZ0˝uy'n2SH-!#M[%.W 踒m+._p\+0 *H 01 0  `He0C *H 64( _>p[Qlz<~ $O c`--jd030h0 *H=0c1 0 UCN10U  OpenHarmony10U OpenHarmony Team1#0!UOpenHarmony Application CA0 210202121931Z 491231121931Z0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Release0Y0*H=*H=B`B}9EvhQ!^^lNc4'xTSR4Mv٠3[(BR0P0U#0ۆ" K%{}-G0U0UqeqPpq QX0 *H=h0e1Z6Ȼl,K8A@xX' :*5z\-o#iY't0$$o]#R0J?yDuEpv0qOy֧+G0a0e=0 *H=0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Root CA0 210202121532Z 491231121532Z0c1 0 UCN10U  OpenHarmony10U OpenHarmony Team1#0!UOpenHarmony Application CA0v0*H=+"b!ǝ5ʤ_A%'tC'֓ 7~pX~pvR0Wڗ(6P›ј!`+-Uc0a0U#0:|Oј'Zw0U00U0Uۆ" K%{}-G0 *H=h0e0m^8t:h_6}fOHU߉hI1ow:rR&-XŖl;NrapYtg4;.1@0<0k0c1 0 UCN10U  OpenHarmony10U OpenHarmony Team1#0!UOpenHarmony Application CAh0  `Hei0 *H  1  *H 0 *H  1 220823124639Z0/ *H  1" -TɹTT]EA bIue Q0 *H=F0D `d|@%ox7i=xM˦eY[kL _>E%z"'ZhV1UXRPK !:d-$$assets/entry/resources.indexPK !:.І*dassets/entry/resources/base/media/icon.pngPK !: 2assets/js/MainAbility/app.abcPK !:zgGppassets/js/MainAbility/app.jsPK !:38k00%,assets/js/MainAbility/i18n/en-US.jsonPK !:鼞22%assets/js/MainAbility/i18n/zh-CN.jsonPK !:kSS#assets/js/MainAbility/manifest.jsonPK !:$[3!!+assets/js/MainAbility/pages/index/index.abcPK !:ҺZj3j3* assets/js/MainAbility/pages/index/index.jsPK !:JV 1 17Tassets/js/MainAbility/pages/surfaceTest/surfaceTest.abcPK !:zŐ!!J!J6assets/js/MainAbility/pages/surfaceTest/surfaceTest.jsPK !:^x 1 19eassets/js/MainAbility/pages/surfaceTest2/surfaceTest2.abcPK !:nWJWJ8assets/js/MainAbility/pages/surfaceTest2/surfaceTest2.jsPK !:r%? 44!Lassets/js/MainAbility/vendors.abcPK !:!zz assets/js/MainAbility/vendors.jsPK !: assets/js/TestAbility/app.abcPK !:߂(((($assets/js/TestAbility/app.jsPK !:[<<%Lassets/js/TestAbility/i18n/en-US.jsonPK !:O>>%dMassets/js/TestAbility/i18n/zh-CN.jsonPK !: #Massets/js/TestAbility/manifest.jsonPK !:l+:Oassets/js/TestAbility/pages/index/index.abcPK !:11*Xoassets/js/TestAbility/pages/index/index.jsPK !:Qe{!!.iassets/js/TestRunner/OpenHarmonyTestRunner.abcPK !:E//-assets/js/TestRunner/OpenHarmonyTestRunner.jsPK !:”"assets/js/TestRunner/manifest.jsonPK !:  lconfig.jsonPK