cdk_testing.json 380 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032
  1. {
  2. "repo": "angular/components",
  3. "moduleLabel": "@angular/cdk/testing",
  4. "moduleName": "@angular/cdk/testing",
  5. "normalizedModuleName": "angular_cdk_testing",
  6. "entries": [
  7. {
  8. "name": "getNoKeysSpecifiedError",
  9. "signatures": [
  10. {
  11. "name": "getNoKeysSpecifiedError",
  12. "entryType": "function",
  13. "description": "Returns an error which reports that no keys have been specified.",
  14. "generics": [],
  15. "isNewType": false,
  16. "jsdocTags": [
  17. {
  18. "name": "docs-private",
  19. "comment": ""
  20. }
  21. ],
  22. "params": [],
  23. "rawComment": "/**\n * Returns an error which reports that no keys have been specified.\n * @docs-private\n */",
  24. "returnType": "Error"
  25. }
  26. ],
  27. "implementation": {
  28. "params": [],
  29. "isNewType": false,
  30. "returnType": "Error",
  31. "generics": [],
  32. "name": "getNoKeysSpecifiedError",
  33. "description": "Returns an error which reports that no keys have been specified.",
  34. "entryType": "function",
  35. "jsdocTags": [
  36. {
  37. "name": "docs-private",
  38. "comment": ""
  39. }
  40. ],
  41. "rawComment": "/**\n * Returns an error which reports that no keys have been specified.\n * @docs-private\n */"
  42. },
  43. "entryType": "function",
  44. "description": "Returns an error which reports that no keys have been specified.",
  45. "jsdocTags": [
  46. {
  47. "name": "docs-private",
  48. "comment": ""
  49. }
  50. ],
  51. "rawComment": "/**\n * Returns an error which reports that no keys have been specified.\n * @docs-private\n */",
  52. "source": {
  53. "filePath": "/src/cdk/testing/test-element-errors.ts",
  54. "startLine": 13,
  55. "endLine": 15
  56. }
  57. },
  58. {
  59. "name": "ElementDimensions",
  60. "isAbstract": false,
  61. "entryType": "interface",
  62. "members": [
  63. {
  64. "name": "top",
  65. "type": "number",
  66. "memberType": "property",
  67. "memberTags": [],
  68. "description": "The distance from the top of the viewport in pixels",
  69. "jsdocTags": []
  70. },
  71. {
  72. "name": "left",
  73. "type": "number",
  74. "memberType": "property",
  75. "memberTags": [],
  76. "description": "The distance from the left of the viewport in pixels",
  77. "jsdocTags": []
  78. },
  79. {
  80. "name": "width",
  81. "type": "number",
  82. "memberType": "property",
  83. "memberTags": [],
  84. "description": "The width of the element in pixels",
  85. "jsdocTags": []
  86. },
  87. {
  88. "name": "height",
  89. "type": "number",
  90. "memberType": "property",
  91. "memberTags": [],
  92. "description": "The height of the element in pixels",
  93. "jsdocTags": []
  94. }
  95. ],
  96. "generics": [],
  97. "description": "Dimensions for element size and its position relative to the viewport.",
  98. "jsdocTags": [],
  99. "rawComment": "/**\n * Dimensions for element size and its position relative to the viewport.\n */",
  100. "implements": [],
  101. "source": {
  102. "filePath": "/src/cdk/testing/element-dimensions.ts",
  103. "startLine": 12,
  104. "endLine": 21
  105. }
  106. },
  107. {
  108. "name": "AutoChangeDetectionStatus",
  109. "isAbstract": false,
  110. "entryType": "interface",
  111. "members": [
  112. {
  113. "name": "isDisabled",
  114. "type": "boolean",
  115. "memberType": "property",
  116. "memberTags": [],
  117. "description": "Whether auto change detection is disabled.",
  118. "jsdocTags": []
  119. },
  120. {
  121. "name": "onDetectChangesNow",
  122. "type": "(() => void) | undefined",
  123. "memberType": "property",
  124. "memberTags": [
  125. "optional"
  126. ],
  127. "description": "An optional callback, if present it indicates that change detection should be run immediately,\nwhile handling the status change. The callback should then be called as soon as change\ndetection is done.",
  128. "jsdocTags": []
  129. }
  130. ],
  131. "generics": [],
  132. "description": "The status of the test harness auto change detection. If not diabled test harnesses will\nautomatically trigger change detection after every action (such as a click) and before every read\n(such as getting the text of an element).",
  133. "jsdocTags": [],
  134. "rawComment": "/**\n * The status of the test harness auto change detection. If not diabled test harnesses will\n * automatically trigger change detection after every action (such as a click) and before every read\n * (such as getting the text of an element).\n */",
  135. "implements": [],
  136. "source": {
  137. "filePath": "src/cdk/testing/change-detection.ts",
  138. "startLine": 16,
  139. "endLine": 25
  140. }
  141. },
  142. {
  143. "name": "ModifierKeys",
  144. "isAbstract": false,
  145. "entryType": "interface",
  146. "members": [
  147. {
  148. "name": "control",
  149. "type": "boolean | undefined",
  150. "memberType": "property",
  151. "memberTags": [
  152. "optional"
  153. ],
  154. "description": "",
  155. "jsdocTags": []
  156. },
  157. {
  158. "name": "alt",
  159. "type": "boolean | undefined",
  160. "memberType": "property",
  161. "memberTags": [
  162. "optional"
  163. ],
  164. "description": "",
  165. "jsdocTags": []
  166. },
  167. {
  168. "name": "shift",
  169. "type": "boolean | undefined",
  170. "memberType": "property",
  171. "memberTags": [
  172. "optional"
  173. ],
  174. "description": "",
  175. "jsdocTags": []
  176. },
  177. {
  178. "name": "meta",
  179. "type": "boolean | undefined",
  180. "memberType": "property",
  181. "memberTags": [
  182. "optional"
  183. ],
  184. "description": "",
  185. "jsdocTags": []
  186. }
  187. ],
  188. "generics": [],
  189. "description": "Modifier keys that may be held while typing.",
  190. "jsdocTags": [],
  191. "rawComment": "/** Modifier keys that may be held while typing. */",
  192. "implements": [],
  193. "source": {
  194. "filePath": "/src/cdk/testing/test-element.ts",
  195. "startLine": 12,
  196. "endLine": 17
  197. }
  198. },
  199. {
  200. "name": "AsyncFactoryFn",
  201. "type": "() => Promise<T>",
  202. "entryType": "type_alias",
  203. "generics": [
  204. {
  205. "name": "T"
  206. }
  207. ],
  208. "rawComment": "/**\n * An async function that returns a promise when called.\n * @deprecated This was just an alias for `() => Promise<T>`. Use that instead.\n * @breaking-change 21.0.0 Remove this alias.\n * @docs-private\n */",
  209. "description": "An async function that returns a promise when called.",
  210. "jsdocTags": [
  211. {
  212. "name": "deprecated",
  213. "comment": "This was just an alias for `() => Promise<T>`. Use that instead."
  214. },
  215. {
  216. "name": "breaking-change",
  217. "comment": "21.0.0 Remove this alias."
  218. },
  219. {
  220. "name": "docs-private",
  221. "comment": ""
  222. }
  223. ],
  224. "source": {
  225. "filePath": "src/cdk/testing/component-harness.ts",
  226. "startLine": 18,
  227. "endLine": 18
  228. }
  229. },
  230. {
  231. "name": "EventData",
  232. "type": "| string\n | number\n | boolean\n | Function\n | undefined\n | null\n | EventData[]\n | {[key: string]: EventData}",
  233. "entryType": "type_alias",
  234. "generics": [],
  235. "rawComment": "/** Data that can be attached to a custom event dispatched from a `TestElement`. */",
  236. "description": "Data that can be attached to a custom event dispatched from a `TestElement`.",
  237. "jsdocTags": [],
  238. "source": {
  239. "filePath": "/src/cdk/testing/test-element.ts",
  240. "startLine": 20,
  241. "endLine": 28
  242. }
  243. },
  244. {
  245. "name": "AsyncPredicate",
  246. "type": "(item: T) => Promise<boolean>",
  247. "entryType": "type_alias",
  248. "generics": [
  249. {
  250. "name": "T"
  251. }
  252. ],
  253. "rawComment": "/** An async function that takes an item and returns a boolean promise */",
  254. "description": "An async function that takes an item and returns a boolean promise",
  255. "jsdocTags": [],
  256. "source": {
  257. "filePath": "src/cdk/testing/component-harness.ts",
  258. "startLine": 21,
  259. "endLine": 21
  260. }
  261. },
  262. {
  263. "name": "TestKey",
  264. "entryType": "enum",
  265. "members": [
  266. {
  267. "name": "BACKSPACE",
  268. "type": "TestKey.BACKSPACE",
  269. "value": "",
  270. "memberType": "enum_item",
  271. "jsdocTags": [],
  272. "description": "",
  273. "memberTags": []
  274. },
  275. {
  276. "name": "TAB",
  277. "type": "TestKey.TAB",
  278. "value": "",
  279. "memberType": "enum_item",
  280. "jsdocTags": [],
  281. "description": "",
  282. "memberTags": []
  283. },
  284. {
  285. "name": "ENTER",
  286. "type": "TestKey.ENTER",
  287. "value": "",
  288. "memberType": "enum_item",
  289. "jsdocTags": [],
  290. "description": "",
  291. "memberTags": []
  292. },
  293. {
  294. "name": "SHIFT",
  295. "type": "TestKey.SHIFT",
  296. "value": "",
  297. "memberType": "enum_item",
  298. "jsdocTags": [],
  299. "description": "",
  300. "memberTags": []
  301. },
  302. {
  303. "name": "CONTROL",
  304. "type": "TestKey.CONTROL",
  305. "value": "",
  306. "memberType": "enum_item",
  307. "jsdocTags": [],
  308. "description": "",
  309. "memberTags": []
  310. },
  311. {
  312. "name": "ALT",
  313. "type": "TestKey.ALT",
  314. "value": "",
  315. "memberType": "enum_item",
  316. "jsdocTags": [],
  317. "description": "",
  318. "memberTags": []
  319. },
  320. {
  321. "name": "ESCAPE",
  322. "type": "TestKey.ESCAPE",
  323. "value": "",
  324. "memberType": "enum_item",
  325. "jsdocTags": [],
  326. "description": "",
  327. "memberTags": []
  328. },
  329. {
  330. "name": "PAGE_UP",
  331. "type": "TestKey.PAGE_UP",
  332. "value": "",
  333. "memberType": "enum_item",
  334. "jsdocTags": [],
  335. "description": "",
  336. "memberTags": []
  337. },
  338. {
  339. "name": "PAGE_DOWN",
  340. "type": "TestKey.PAGE_DOWN",
  341. "value": "",
  342. "memberType": "enum_item",
  343. "jsdocTags": [],
  344. "description": "",
  345. "memberTags": []
  346. },
  347. {
  348. "name": "END",
  349. "type": "TestKey.END",
  350. "value": "",
  351. "memberType": "enum_item",
  352. "jsdocTags": [],
  353. "description": "",
  354. "memberTags": []
  355. },
  356. {
  357. "name": "HOME",
  358. "type": "TestKey.HOME",
  359. "value": "",
  360. "memberType": "enum_item",
  361. "jsdocTags": [],
  362. "description": "",
  363. "memberTags": []
  364. },
  365. {
  366. "name": "LEFT_ARROW",
  367. "type": "TestKey.LEFT_ARROW",
  368. "value": "",
  369. "memberType": "enum_item",
  370. "jsdocTags": [],
  371. "description": "",
  372. "memberTags": []
  373. },
  374. {
  375. "name": "UP_ARROW",
  376. "type": "TestKey.UP_ARROW",
  377. "value": "",
  378. "memberType": "enum_item",
  379. "jsdocTags": [],
  380. "description": "",
  381. "memberTags": []
  382. },
  383. {
  384. "name": "RIGHT_ARROW",
  385. "type": "TestKey.RIGHT_ARROW",
  386. "value": "",
  387. "memberType": "enum_item",
  388. "jsdocTags": [],
  389. "description": "",
  390. "memberTags": []
  391. },
  392. {
  393. "name": "DOWN_ARROW",
  394. "type": "TestKey.DOWN_ARROW",
  395. "value": "",
  396. "memberType": "enum_item",
  397. "jsdocTags": [],
  398. "description": "",
  399. "memberTags": []
  400. },
  401. {
  402. "name": "INSERT",
  403. "type": "TestKey.INSERT",
  404. "value": "",
  405. "memberType": "enum_item",
  406. "jsdocTags": [],
  407. "description": "",
  408. "memberTags": []
  409. },
  410. {
  411. "name": "DELETE",
  412. "type": "TestKey.DELETE",
  413. "value": "",
  414. "memberType": "enum_item",
  415. "jsdocTags": [],
  416. "description": "",
  417. "memberTags": []
  418. },
  419. {
  420. "name": "F1",
  421. "type": "TestKey.F1",
  422. "value": "",
  423. "memberType": "enum_item",
  424. "jsdocTags": [],
  425. "description": "",
  426. "memberTags": []
  427. },
  428. {
  429. "name": "F2",
  430. "type": "TestKey.F2",
  431. "value": "",
  432. "memberType": "enum_item",
  433. "jsdocTags": [],
  434. "description": "",
  435. "memberTags": []
  436. },
  437. {
  438. "name": "F3",
  439. "type": "TestKey.F3",
  440. "value": "",
  441. "memberType": "enum_item",
  442. "jsdocTags": [],
  443. "description": "",
  444. "memberTags": []
  445. },
  446. {
  447. "name": "F4",
  448. "type": "TestKey.F4",
  449. "value": "",
  450. "memberType": "enum_item",
  451. "jsdocTags": [],
  452. "description": "",
  453. "memberTags": []
  454. },
  455. {
  456. "name": "F5",
  457. "type": "TestKey.F5",
  458. "value": "",
  459. "memberType": "enum_item",
  460. "jsdocTags": [],
  461. "description": "",
  462. "memberTags": []
  463. },
  464. {
  465. "name": "F6",
  466. "type": "TestKey.F6",
  467. "value": "",
  468. "memberType": "enum_item",
  469. "jsdocTags": [],
  470. "description": "",
  471. "memberTags": []
  472. },
  473. {
  474. "name": "F7",
  475. "type": "TestKey.F7",
  476. "value": "",
  477. "memberType": "enum_item",
  478. "jsdocTags": [],
  479. "description": "",
  480. "memberTags": []
  481. },
  482. {
  483. "name": "F8",
  484. "type": "TestKey.F8",
  485. "value": "",
  486. "memberType": "enum_item",
  487. "jsdocTags": [],
  488. "description": "",
  489. "memberTags": []
  490. },
  491. {
  492. "name": "F9",
  493. "type": "TestKey.F9",
  494. "value": "",
  495. "memberType": "enum_item",
  496. "jsdocTags": [],
  497. "description": "",
  498. "memberTags": []
  499. },
  500. {
  501. "name": "F10",
  502. "type": "TestKey.F10",
  503. "value": "",
  504. "memberType": "enum_item",
  505. "jsdocTags": [],
  506. "description": "",
  507. "memberTags": []
  508. },
  509. {
  510. "name": "F11",
  511. "type": "TestKey.F11",
  512. "value": "",
  513. "memberType": "enum_item",
  514. "jsdocTags": [],
  515. "description": "",
  516. "memberTags": []
  517. },
  518. {
  519. "name": "F12",
  520. "type": "TestKey.F12",
  521. "value": "",
  522. "memberType": "enum_item",
  523. "jsdocTags": [],
  524. "description": "",
  525. "memberTags": []
  526. },
  527. {
  528. "name": "META",
  529. "type": "TestKey.META",
  530. "value": "",
  531. "memberType": "enum_item",
  532. "jsdocTags": [],
  533. "description": "",
  534. "memberTags": []
  535. },
  536. {
  537. "name": "COMMA",
  538. "type": "TestKey.COMMA",
  539. "value": "",
  540. "memberType": "enum_item",
  541. "jsdocTags": [],
  542. "description": "",
  543. "memberTags": []
  544. }
  545. ],
  546. "rawComment": "/** An enum of non-text keys that can be used with the `sendKeys` method. */",
  547. "description": "An enum of non-text keys that can be used with the `sendKeys` method.",
  548. "jsdocTags": [],
  549. "source": {
  550. "filePath": "/src/cdk/testing/test-element.ts",
  551. "startLine": 37,
  552. "endLine": 69
  553. }
  554. },
  555. {
  556. "name": "AsyncOptionPredicate",
  557. "type": "(item: T, option: O) => Promise<boolean>",
  558. "entryType": "type_alias",
  559. "generics": [
  560. {
  561. "name": "T"
  562. },
  563. {
  564. "name": "O"
  565. }
  566. ],
  567. "rawComment": "/** An async function that takes an item and an option value and returns a boolean promise. */",
  568. "description": "An async function that takes an item and an option value and returns a boolean promise.",
  569. "jsdocTags": [],
  570. "source": {
  571. "filePath": "src/cdk/testing/component-harness.ts",
  572. "startLine": 24,
  573. "endLine": 24
  574. }
  575. },
  576. {
  577. "name": "HarnessQuery",
  578. "type": "| ComponentHarnessConstructor<T>\n | HarnessPredicate<T>",
  579. "entryType": "type_alias",
  580. "generics": [
  581. {
  582. "name": "T",
  583. "constraint": "ComponentHarness"
  584. }
  585. ],
  586. "rawComment": "/**\n * A query for a `ComponentHarness`, which is expressed as either a `ComponentHarnessConstructor` or\n * a `HarnessPredicate`.\n */",
  587. "description": "A query for a `ComponentHarness`, which is expressed as either a `ComponentHarnessConstructor` or\na `HarnessPredicate`.",
  588. "jsdocTags": [],
  589. "source": {
  590. "filePath": "src/cdk/testing/component-harness.ts",
  591. "startLine": 30,
  592. "endLine": 32
  593. }
  594. },
  595. {
  596. "name": "LocatorFnResult",
  597. "type": "{\n [I in keyof T]: T[I] extends new (...args: any[]) => infer C // Map `ComponentHarnessConstructor<C>` to `C`.\n ? C\n : // Map `HarnessPredicate<C>` to `C`.\n T[I] extends {harnessType: new (...args: any[]) => infer C}\n ? C\n : // Map `string` to `TestElement`.\n T[I] extends string\n ? TestElement\n : // Map everything else to `never` (should not happen due to the type constraint on `T`).\n never;\n}[number]",
  598. "entryType": "type_alias",
  599. "generics": [
  600. {
  601. "name": "T",
  602. "constraint": "(HarnessQuery<any> | string)[]"
  603. }
  604. ],
  605. "rawComment": "/**\n * The result type obtained when searching using a particular list of queries. This type depends on\n * the particular items being queried.\n * - If one of the queries is for a `ComponentHarnessConstructor<C1>`, it means that the result\n * might be a harness of type `C1`\n * - If one of the queries is for a `HarnessPredicate<C2>`, it means that the result might be a\n * harness of type `C2`\n * - If one of the queries is for a `string`, it means that the result might be a `TestElement`.\n *\n * Since we don't know for sure which query will match, the result type if the union of the types\n * for all possible results.\n *\n * @usageNotes\n * ### Example\n *\n * The type:\n * ```ts\n * LocatorFnResult<[\n * ComponentHarnessConstructor<MyHarness>,\n * HarnessPredicate<MyOtherHarness>,\n * string\n * ]>\n * ```\n *\n * is equivalent to:\n *\n * ```ts\n * MyHarness | MyOtherHarness | TestElement\n * ```\n */",
  606. "description": "The result type obtained when searching using a particular list of queries. This type depends on\nthe particular items being queried.\n- If one of the queries is for a `ComponentHarnessConstructor<C1>`, it means that the result\n might be a harness of type `C1`\n- If one of the queries is for a `HarnessPredicate<C2>`, it means that the result might be a\n harness of type `C2`\n- If one of the queries is for a `string`, it means that the result might be a `TestElement`.\n\nSince we don't know for sure which query will match, the result type if the union of the types\nfor all possible results.",
  607. "jsdocTags": [
  608. {
  609. "name": "usageNotes",
  610. "comment": "### Example\n\nThe type:\n```ts\nLocatorFnResult<[\n ComponentHarnessConstructor<MyHarness>,\n HarnessPredicate<MyOtherHarness>,\n string\n]>\n```\n\nis equivalent to:\n\n```ts\nMyHarness | MyOtherHarness | TestElement\n```"
  611. }
  612. ],
  613. "source": {
  614. "filePath": "src/cdk/testing/component-harness.ts",
  615. "startLine": 64,
  616. "endLine": 75
  617. }
  618. },
  619. {
  620. "name": "HarnessEnvironment",
  621. "isAbstract": true,
  622. "entryType": "undecorated_class",
  623. "members": [
  624. {
  625. "name": "constructor",
  626. "signatures": [],
  627. "implementation": {
  628. "params": [
  629. {
  630. "name": "rawRootElement",
  631. "description": "The native root element of this `HarnessEnvironment`.",
  632. "type": "E",
  633. "isOptional": false,
  634. "isRestParam": false
  635. }
  636. ],
  637. "isNewType": false,
  638. "returnType": "HarnessEnvironment<E>",
  639. "generics": [],
  640. "name": "constructor",
  641. "description": "",
  642. "entryType": "function",
  643. "jsdocTags": [],
  644. "rawComment": ""
  645. },
  646. "entryType": "function",
  647. "description": "",
  648. "jsdocTags": [],
  649. "rawComment": "",
  650. "memberType": "method",
  651. "memberTags": [
  652. "protected"
  653. ]
  654. },
  655. {
  656. "name": "rootElement",
  657. "type": "TestElement",
  658. "memberType": "getter",
  659. "memberTags": [],
  660. "description": "The root element of this `HarnessEnvironment` as a `TestElement`.",
  661. "jsdocTags": []
  662. },
  663. {
  664. "name": "rootElement",
  665. "type": "TestElement",
  666. "memberType": "setter",
  667. "memberTags": [],
  668. "description": "",
  669. "jsdocTags": []
  670. },
  671. {
  672. "name": "documentRootLocatorFactory",
  673. "signatures": [
  674. {
  675. "name": "documentRootLocatorFactory",
  676. "entryType": "function",
  677. "description": "Gets a locator factory rooted at the document root.",
  678. "generics": [],
  679. "isNewType": false,
  680. "jsdocTags": [],
  681. "params": [],
  682. "rawComment": "/** Gets a locator factory rooted at the document root. */",
  683. "returnType": "LocatorFactory"
  684. }
  685. ],
  686. "implementation": {
  687. "params": [],
  688. "isNewType": false,
  689. "returnType": "LocatorFactory",
  690. "generics": [],
  691. "name": "documentRootLocatorFactory",
  692. "description": "Gets a locator factory rooted at the document root.",
  693. "entryType": "function",
  694. "jsdocTags": [],
  695. "rawComment": "/** Gets a locator factory rooted at the document root. */"
  696. },
  697. "entryType": "function",
  698. "description": "Gets a locator factory rooted at the document root.",
  699. "jsdocTags": [],
  700. "rawComment": "/** Gets a locator factory rooted at the document root. */",
  701. "memberType": "method",
  702. "memberTags": []
  703. },
  704. {
  705. "name": "locatorFor",
  706. "signatures": [
  707. {
  708. "name": "locatorFor",
  709. "entryType": "function",
  710. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorFor('span')() // Throws because the `Promise` rejects\n```",
  711. "generics": [
  712. {
  713. "name": "T",
  714. "constraint": "(HarnessQuery<any> | string)[]"
  715. }
  716. ],
  717. "isNewType": false,
  718. "jsdocTags": [
  719. {
  720. "name": "param",
  721. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  722. },
  723. {
  724. "name": "return",
  725. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query."
  726. }
  727. ],
  728. "params": [
  729. {
  730. "name": "queries",
  731. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  732. "type": "T",
  733. "isOptional": false,
  734. "isRestParam": true
  735. }
  736. ],
  737. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */",
  738. "returnType": "() => Promise<LocatorFnResult<T>>"
  739. }
  740. ],
  741. "implementation": {
  742. "params": [
  743. {
  744. "name": "queries",
  745. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  746. "type": "T",
  747. "isOptional": false,
  748. "isRestParam": true
  749. }
  750. ],
  751. "isNewType": false,
  752. "returnType": "() => Promise<LocatorFnResult<T>>",
  753. "generics": [
  754. {
  755. "name": "T",
  756. "constraint": "(HarnessQuery<any> | string)[]"
  757. }
  758. ],
  759. "name": "locatorFor",
  760. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorFor('span')() // Throws because the `Promise` rejects\n```",
  761. "entryType": "function",
  762. "jsdocTags": [
  763. {
  764. "name": "param",
  765. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  766. },
  767. {
  768. "name": "return",
  769. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query."
  770. }
  771. ],
  772. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */"
  773. },
  774. "entryType": "function",
  775. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorFor('span')() // Throws because the `Promise` rejects\n```",
  776. "jsdocTags": [
  777. {
  778. "name": "param",
  779. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  780. },
  781. {
  782. "name": "return",
  783. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query."
  784. }
  785. ],
  786. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */",
  787. "memberType": "method",
  788. "memberTags": []
  789. },
  790. {
  791. "name": "locatorForOptional",
  792. "signatures": [
  793. {
  794. "name": "locatorForOptional",
  795. "entryType": "function",
  796. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironmnet`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorForOptional('span')() // Gets `null`\n```",
  797. "generics": [
  798. {
  799. "name": "T",
  800. "constraint": "(HarnessQuery<any> | string)[]"
  801. }
  802. ],
  803. "isNewType": false,
  804. "jsdocTags": [
  805. {
  806. "name": "param",
  807. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  808. },
  809. {
  810. "name": "return",
  811. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null."
  812. }
  813. ],
  814. "params": [
  815. {
  816. "name": "queries",
  817. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  818. "type": "T",
  819. "isOptional": false,
  820. "isRestParam": true
  821. }
  822. ],
  823. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironmnet`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */",
  824. "returnType": "() => Promise<LocatorFnResult<T> | null>"
  825. }
  826. ],
  827. "implementation": {
  828. "params": [
  829. {
  830. "name": "queries",
  831. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  832. "type": "T",
  833. "isOptional": false,
  834. "isRestParam": true
  835. }
  836. ],
  837. "isNewType": false,
  838. "returnType": "() => Promise<LocatorFnResult<T> | null>",
  839. "generics": [
  840. {
  841. "name": "T",
  842. "constraint": "(HarnessQuery<any> | string)[]"
  843. }
  844. ],
  845. "name": "locatorForOptional",
  846. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironmnet`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorForOptional('span')() // Gets `null`\n```",
  847. "entryType": "function",
  848. "jsdocTags": [
  849. {
  850. "name": "param",
  851. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  852. },
  853. {
  854. "name": "return",
  855. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null."
  856. }
  857. ],
  858. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironmnet`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */"
  859. },
  860. "entryType": "function",
  861. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironmnet`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorForOptional('span')() // Gets `null`\n```",
  862. "jsdocTags": [
  863. {
  864. "name": "param",
  865. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  866. },
  867. {
  868. "name": "return",
  869. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null."
  870. }
  871. ],
  872. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironmnet`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */",
  873. "memberType": "method",
  874. "memberTags": []
  875. },
  876. {
  877. "name": "locatorForAll",
  878. "signatures": [
  879. {
  880. "name": "locatorForAll",
  881. "entryType": "function",
  882. "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait lf.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait lf.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait lf.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait lf.locatorForAll('span')()\n```",
  883. "generics": [
  884. {
  885. "name": "T",
  886. "constraint": "(HarnessQuery<any> | string)[]"
  887. }
  888. ],
  889. "isNewType": false,
  890. "jsdocTags": [
  891. {
  892. "name": "param",
  893. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  894. },
  895. {
  896. "name": "return",
  897. "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query."
  898. }
  899. ],
  900. "params": [
  901. {
  902. "name": "queries",
  903. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  904. "type": "T",
  905. "isOptional": false,
  906. "isRestParam": true
  907. }
  908. ],
  909. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await lf.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await lf.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await lf.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await lf.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */",
  910. "returnType": "() => Promise<LocatorFnResult<T>[]>"
  911. }
  912. ],
  913. "implementation": {
  914. "params": [
  915. {
  916. "name": "queries",
  917. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  918. "type": "T",
  919. "isOptional": false,
  920. "isRestParam": true
  921. }
  922. ],
  923. "isNewType": false,
  924. "returnType": "() => Promise<LocatorFnResult<T>[]>",
  925. "generics": [
  926. {
  927. "name": "T",
  928. "constraint": "(HarnessQuery<any> | string)[]"
  929. }
  930. ],
  931. "name": "locatorForAll",
  932. "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait lf.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait lf.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait lf.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait lf.locatorForAll('span')()\n```",
  933. "entryType": "function",
  934. "jsdocTags": [
  935. {
  936. "name": "param",
  937. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  938. },
  939. {
  940. "name": "return",
  941. "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query."
  942. }
  943. ],
  944. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await lf.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await lf.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await lf.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await lf.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */"
  945. },
  946. "entryType": "function",
  947. "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait lf.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait lf.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait lf.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait lf.locatorForAll('span')()\n```",
  948. "jsdocTags": [
  949. {
  950. "name": "param",
  951. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  952. },
  953. {
  954. "name": "return",
  955. "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query."
  956. }
  957. ],
  958. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await lf.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await lf.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await lf.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await lf.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */",
  959. "memberType": "method",
  960. "memberTags": []
  961. },
  962. {
  963. "name": "rootHarnessLoader",
  964. "signatures": [
  965. {
  966. "name": "rootHarnessLoader",
  967. "entryType": "function",
  968. "description": "",
  969. "generics": [],
  970. "isNewType": false,
  971. "jsdocTags": [
  972. {
  973. "name": "return",
  974. "comment": "A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`."
  975. }
  976. ],
  977. "params": [],
  978. "rawComment": "/** @return A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`. */",
  979. "returnType": "Promise<HarnessLoader>"
  980. }
  981. ],
  982. "implementation": {
  983. "params": [],
  984. "isNewType": false,
  985. "returnType": "Promise<HarnessLoader>",
  986. "generics": [],
  987. "name": "rootHarnessLoader",
  988. "description": "",
  989. "entryType": "function",
  990. "jsdocTags": [
  991. {
  992. "name": "return",
  993. "comment": "A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`."
  994. }
  995. ],
  996. "rawComment": "/** @return A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`. */"
  997. },
  998. "entryType": "function",
  999. "description": "",
  1000. "jsdocTags": [
  1001. {
  1002. "name": "return",
  1003. "comment": "A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`."
  1004. }
  1005. ],
  1006. "rawComment": "/** @return A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`. */",
  1007. "memberType": "method",
  1008. "memberTags": []
  1009. },
  1010. {
  1011. "name": "harnessLoaderFor",
  1012. "signatures": [
  1013. {
  1014. "name": "harnessLoaderFor",
  1015. "entryType": "function",
  1016. "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.",
  1017. "generics": [],
  1018. "isNewType": false,
  1019. "jsdocTags": [
  1020. {
  1021. "name": "param",
  1022. "comment": "The selector for the root element."
  1023. },
  1024. {
  1025. "name": "return",
  1026. "comment": "A `HarnessLoader` rooted at the first element matching the given selector."
  1027. },
  1028. {
  1029. "name": "throws",
  1030. "comment": "If no matching element is found for the given selector."
  1031. }
  1032. ],
  1033. "params": [
  1034. {
  1035. "name": "selector",
  1036. "description": "The selector for the root element.",
  1037. "type": "string",
  1038. "isOptional": false,
  1039. "isRestParam": false
  1040. }
  1041. ],
  1042. "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector.\n * @throws If no matching element is found for the given selector.\n */",
  1043. "returnType": "Promise<HarnessLoader>"
  1044. }
  1045. ],
  1046. "implementation": {
  1047. "params": [
  1048. {
  1049. "name": "selector",
  1050. "description": "The selector for the root element.",
  1051. "type": "string",
  1052. "isOptional": false,
  1053. "isRestParam": false
  1054. }
  1055. ],
  1056. "isNewType": false,
  1057. "returnType": "Promise<HarnessLoader>",
  1058. "generics": [],
  1059. "name": "harnessLoaderFor",
  1060. "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.",
  1061. "entryType": "function",
  1062. "jsdocTags": [
  1063. {
  1064. "name": "param",
  1065. "comment": "The selector for the root element."
  1066. },
  1067. {
  1068. "name": "return",
  1069. "comment": "A `HarnessLoader` rooted at the first element matching the given selector."
  1070. },
  1071. {
  1072. "name": "throws",
  1073. "comment": "If no matching element is found for the given selector."
  1074. }
  1075. ],
  1076. "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector.\n * @throws If no matching element is found for the given selector.\n */"
  1077. },
  1078. "entryType": "function",
  1079. "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.",
  1080. "jsdocTags": [
  1081. {
  1082. "name": "param",
  1083. "comment": "The selector for the root element."
  1084. },
  1085. {
  1086. "name": "return",
  1087. "comment": "A `HarnessLoader` rooted at the first element matching the given selector."
  1088. },
  1089. {
  1090. "name": "throws",
  1091. "comment": "If no matching element is found for the given selector."
  1092. }
  1093. ],
  1094. "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector.\n * @throws If no matching element is found for the given selector.\n */",
  1095. "memberType": "method",
  1096. "memberTags": []
  1097. },
  1098. {
  1099. "name": "harnessLoaderForOptional",
  1100. "signatures": [
  1101. {
  1102. "name": "harnessLoaderForOptional",
  1103. "entryType": "function",
  1104. "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.",
  1105. "generics": [],
  1106. "isNewType": false,
  1107. "jsdocTags": [
  1108. {
  1109. "name": "param",
  1110. "comment": "The selector for the root element."
  1111. },
  1112. {
  1113. "name": "return",
  1114. "comment": "A `HarnessLoader` rooted at the first element matching the given selector, or null if\nno matching element is found."
  1115. }
  1116. ],
  1117. "params": [
  1118. {
  1119. "name": "selector",
  1120. "description": "The selector for the root element.",
  1121. "type": "string",
  1122. "isOptional": false,
  1123. "isRestParam": false
  1124. }
  1125. ],
  1126. "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if\n * no matching element is found.\n */",
  1127. "returnType": "Promise<HarnessLoader | null>"
  1128. }
  1129. ],
  1130. "implementation": {
  1131. "params": [
  1132. {
  1133. "name": "selector",
  1134. "description": "The selector for the root element.",
  1135. "type": "string",
  1136. "isOptional": false,
  1137. "isRestParam": false
  1138. }
  1139. ],
  1140. "isNewType": false,
  1141. "returnType": "Promise<HarnessLoader | null>",
  1142. "generics": [],
  1143. "name": "harnessLoaderForOptional",
  1144. "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.",
  1145. "entryType": "function",
  1146. "jsdocTags": [
  1147. {
  1148. "name": "param",
  1149. "comment": "The selector for the root element."
  1150. },
  1151. {
  1152. "name": "return",
  1153. "comment": "A `HarnessLoader` rooted at the first element matching the given selector, or null if\nno matching element is found."
  1154. }
  1155. ],
  1156. "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if\n * no matching element is found.\n */"
  1157. },
  1158. "entryType": "function",
  1159. "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.",
  1160. "jsdocTags": [
  1161. {
  1162. "name": "param",
  1163. "comment": "The selector for the root element."
  1164. },
  1165. {
  1166. "name": "return",
  1167. "comment": "A `HarnessLoader` rooted at the first element matching the given selector, or null if\nno matching element is found."
  1168. }
  1169. ],
  1170. "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if\n * no matching element is found.\n */",
  1171. "memberType": "method",
  1172. "memberTags": []
  1173. },
  1174. {
  1175. "name": "harnessLoaderForAll",
  1176. "signatures": [
  1177. {
  1178. "name": "harnessLoaderForAll",
  1179. "entryType": "function",
  1180. "description": "Gets a list of `HarnessLoader` instances, one for each matching element.",
  1181. "generics": [],
  1182. "isNewType": false,
  1183. "jsdocTags": [
  1184. {
  1185. "name": "param",
  1186. "comment": "The selector for the root element."
  1187. },
  1188. {
  1189. "name": "return",
  1190. "comment": "A list of `HarnessLoader`, one rooted at each element matching the given selector."
  1191. }
  1192. ],
  1193. "params": [
  1194. {
  1195. "name": "selector",
  1196. "description": "The selector for the root element.",
  1197. "type": "string",
  1198. "isOptional": false,
  1199. "isRestParam": false
  1200. }
  1201. ],
  1202. "rawComment": "/**\n * Gets a list of `HarnessLoader` instances, one for each matching element.\n * @param selector The selector for the root element.\n * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.\n */",
  1203. "returnType": "Promise<HarnessLoader[]>"
  1204. }
  1205. ],
  1206. "implementation": {
  1207. "params": [
  1208. {
  1209. "name": "selector",
  1210. "description": "The selector for the root element.",
  1211. "type": "string",
  1212. "isOptional": false,
  1213. "isRestParam": false
  1214. }
  1215. ],
  1216. "isNewType": false,
  1217. "returnType": "Promise<HarnessLoader[]>",
  1218. "generics": [],
  1219. "name": "harnessLoaderForAll",
  1220. "description": "Gets a list of `HarnessLoader` instances, one for each matching element.",
  1221. "entryType": "function",
  1222. "jsdocTags": [
  1223. {
  1224. "name": "param",
  1225. "comment": "The selector for the root element."
  1226. },
  1227. {
  1228. "name": "return",
  1229. "comment": "A list of `HarnessLoader`, one rooted at each element matching the given selector."
  1230. }
  1231. ],
  1232. "rawComment": "/**\n * Gets a list of `HarnessLoader` instances, one for each matching element.\n * @param selector The selector for the root element.\n * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.\n */"
  1233. },
  1234. "entryType": "function",
  1235. "description": "Gets a list of `HarnessLoader` instances, one for each matching element.",
  1236. "jsdocTags": [
  1237. {
  1238. "name": "param",
  1239. "comment": "The selector for the root element."
  1240. },
  1241. {
  1242. "name": "return",
  1243. "comment": "A list of `HarnessLoader`, one rooted at each element matching the given selector."
  1244. }
  1245. ],
  1246. "rawComment": "/**\n * Gets a list of `HarnessLoader` instances, one for each matching element.\n * @param selector The selector for the root element.\n * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.\n */",
  1247. "memberType": "method",
  1248. "memberTags": []
  1249. },
  1250. {
  1251. "name": "getHarness",
  1252. "signatures": [
  1253. {
  1254. "name": "getHarness",
  1255. "entryType": "function",
  1256. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, an error is thrown.",
  1257. "generics": [
  1258. {
  1259. "name": "T",
  1260. "constraint": "ComponentHarness"
  1261. }
  1262. ],
  1263. "isNewType": false,
  1264. "jsdocTags": [
  1265. {
  1266. "name": "param",
  1267. "comment": "A query for a harness to create"
  1268. },
  1269. {
  1270. "name": "return",
  1271. "comment": "An instance of the given harness type"
  1272. },
  1273. {
  1274. "name": "throws",
  1275. "comment": "If a matching component instance can't be found."
  1276. }
  1277. ],
  1278. "params": [
  1279. {
  1280. "name": "query",
  1281. "description": "A query for a harness to create",
  1282. "type": "HarnessQuery<T>",
  1283. "isOptional": false,
  1284. "isRestParam": false
  1285. }
  1286. ],
  1287. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, an error is thrown.\n * @param query A query for a harness to create\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */",
  1288. "returnType": "Promise<T>"
  1289. }
  1290. ],
  1291. "implementation": {
  1292. "params": [
  1293. {
  1294. "name": "query",
  1295. "description": "A query for a harness to create",
  1296. "type": "HarnessQuery<T>",
  1297. "isOptional": false,
  1298. "isRestParam": false
  1299. }
  1300. ],
  1301. "isNewType": false,
  1302. "returnType": "Promise<T>",
  1303. "generics": [
  1304. {
  1305. "name": "T",
  1306. "constraint": "ComponentHarness"
  1307. }
  1308. ],
  1309. "name": "getHarness",
  1310. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, an error is thrown.",
  1311. "entryType": "function",
  1312. "jsdocTags": [
  1313. {
  1314. "name": "param",
  1315. "comment": "A query for a harness to create"
  1316. },
  1317. {
  1318. "name": "return",
  1319. "comment": "An instance of the given harness type"
  1320. },
  1321. {
  1322. "name": "throws",
  1323. "comment": "If a matching component instance can't be found."
  1324. }
  1325. ],
  1326. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, an error is thrown.\n * @param query A query for a harness to create\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */"
  1327. },
  1328. "entryType": "function",
  1329. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, an error is thrown.",
  1330. "jsdocTags": [
  1331. {
  1332. "name": "param",
  1333. "comment": "A query for a harness to create"
  1334. },
  1335. {
  1336. "name": "return",
  1337. "comment": "An instance of the given harness type"
  1338. },
  1339. {
  1340. "name": "throws",
  1341. "comment": "If a matching component instance can't be found."
  1342. }
  1343. ],
  1344. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, an error is thrown.\n * @param query A query for a harness to create\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */",
  1345. "memberType": "method",
  1346. "memberTags": []
  1347. },
  1348. {
  1349. "name": "getHarnessOrNull",
  1350. "signatures": [
  1351. {
  1352. "name": "getHarnessOrNull",
  1353. "entryType": "function",
  1354. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, null is returned.",
  1355. "generics": [
  1356. {
  1357. "name": "T",
  1358. "constraint": "ComponentHarness"
  1359. }
  1360. ],
  1361. "isNewType": false,
  1362. "jsdocTags": [
  1363. {
  1364. "name": "param",
  1365. "comment": "A query for a harness to create"
  1366. },
  1367. {
  1368. "name": "return",
  1369. "comment": "An instance of the given harness type (or null if not found)."
  1370. }
  1371. ],
  1372. "params": [
  1373. {
  1374. "name": "query",
  1375. "description": "A query for a harness to create",
  1376. "type": "HarnessQuery<T>",
  1377. "isOptional": false,
  1378. "isRestParam": false
  1379. }
  1380. ],
  1381. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, null is returned.\n * @param query A query for a harness to create\n * @return An instance of the given harness type (or null if not found).\n */",
  1382. "returnType": "Promise<T | null>"
  1383. }
  1384. ],
  1385. "implementation": {
  1386. "params": [
  1387. {
  1388. "name": "query",
  1389. "description": "A query for a harness to create",
  1390. "type": "HarnessQuery<T>",
  1391. "isOptional": false,
  1392. "isRestParam": false
  1393. }
  1394. ],
  1395. "isNewType": false,
  1396. "returnType": "Promise<T | null>",
  1397. "generics": [
  1398. {
  1399. "name": "T",
  1400. "constraint": "ComponentHarness"
  1401. }
  1402. ],
  1403. "name": "getHarnessOrNull",
  1404. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, null is returned.",
  1405. "entryType": "function",
  1406. "jsdocTags": [
  1407. {
  1408. "name": "param",
  1409. "comment": "A query for a harness to create"
  1410. },
  1411. {
  1412. "name": "return",
  1413. "comment": "An instance of the given harness type (or null if not found)."
  1414. }
  1415. ],
  1416. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, null is returned.\n * @param query A query for a harness to create\n * @return An instance of the given harness type (or null if not found).\n */"
  1417. },
  1418. "entryType": "function",
  1419. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, null is returned.",
  1420. "jsdocTags": [
  1421. {
  1422. "name": "param",
  1423. "comment": "A query for a harness to create"
  1424. },
  1425. {
  1426. "name": "return",
  1427. "comment": "An instance of the given harness type (or null if not found)."
  1428. }
  1429. ],
  1430. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, null is returned.\n * @param query A query for a harness to create\n * @return An instance of the given harness type (or null if not found).\n */",
  1431. "memberType": "method",
  1432. "memberTags": []
  1433. },
  1434. {
  1435. "name": "getAllHarnesses",
  1436. "signatures": [
  1437. {
  1438. "name": "getAllHarnesses",
  1439. "entryType": "function",
  1440. "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.",
  1441. "generics": [
  1442. {
  1443. "name": "T",
  1444. "constraint": "ComponentHarness"
  1445. }
  1446. ],
  1447. "isNewType": false,
  1448. "jsdocTags": [
  1449. {
  1450. "name": "param",
  1451. "comment": "A query for a harness to create"
  1452. },
  1453. {
  1454. "name": "return",
  1455. "comment": "A list instances of the given harness type."
  1456. }
  1457. ],
  1458. "params": [
  1459. {
  1460. "name": "query",
  1461. "description": "A query for a harness to create",
  1462. "type": "HarnessQuery<T>",
  1463. "isOptional": false,
  1464. "isRestParam": false
  1465. }
  1466. ],
  1467. "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.\n * @param query A query for a harness to create\n * @return A list instances of the given harness type.\n */",
  1468. "returnType": "Promise<T[]>"
  1469. }
  1470. ],
  1471. "implementation": {
  1472. "params": [
  1473. {
  1474. "name": "query",
  1475. "description": "A query for a harness to create",
  1476. "type": "HarnessQuery<T>",
  1477. "isOptional": false,
  1478. "isRestParam": false
  1479. }
  1480. ],
  1481. "isNewType": false,
  1482. "returnType": "Promise<T[]>",
  1483. "generics": [
  1484. {
  1485. "name": "T",
  1486. "constraint": "ComponentHarness"
  1487. }
  1488. ],
  1489. "name": "getAllHarnesses",
  1490. "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.",
  1491. "entryType": "function",
  1492. "jsdocTags": [
  1493. {
  1494. "name": "param",
  1495. "comment": "A query for a harness to create"
  1496. },
  1497. {
  1498. "name": "return",
  1499. "comment": "A list instances of the given harness type."
  1500. }
  1501. ],
  1502. "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.\n * @param query A query for a harness to create\n * @return A list instances of the given harness type.\n */"
  1503. },
  1504. "entryType": "function",
  1505. "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.",
  1506. "jsdocTags": [
  1507. {
  1508. "name": "param",
  1509. "comment": "A query for a harness to create"
  1510. },
  1511. {
  1512. "name": "return",
  1513. "comment": "A list instances of the given harness type."
  1514. }
  1515. ],
  1516. "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.\n * @param query A query for a harness to create\n * @return A list instances of the given harness type.\n */",
  1517. "memberType": "method",
  1518. "memberTags": []
  1519. },
  1520. {
  1521. "name": "hasHarness",
  1522. "signatures": [
  1523. {
  1524. "name": "hasHarness",
  1525. "entryType": "function",
  1526. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.",
  1527. "generics": [
  1528. {
  1529. "name": "T",
  1530. "constraint": "ComponentHarness"
  1531. }
  1532. ],
  1533. "isNewType": false,
  1534. "jsdocTags": [
  1535. {
  1536. "name": "param",
  1537. "comment": "A query for a harness to create"
  1538. },
  1539. {
  1540. "name": "return",
  1541. "comment": "A boolean indicating if an instance was found."
  1542. }
  1543. ],
  1544. "params": [
  1545. {
  1546. "name": "query",
  1547. "description": "A query for a harness to create",
  1548. "type": "HarnessQuery<T>",
  1549. "isOptional": false,
  1550. "isRestParam": false
  1551. }
  1552. ],
  1553. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.\n * @param query A query for a harness to create\n * @return A boolean indicating if an instance was found.\n */",
  1554. "returnType": "Promise<boolean>"
  1555. }
  1556. ],
  1557. "implementation": {
  1558. "params": [
  1559. {
  1560. "name": "query",
  1561. "description": "A query for a harness to create",
  1562. "type": "HarnessQuery<T>",
  1563. "isOptional": false,
  1564. "isRestParam": false
  1565. }
  1566. ],
  1567. "isNewType": false,
  1568. "returnType": "Promise<boolean>",
  1569. "generics": [
  1570. {
  1571. "name": "T",
  1572. "constraint": "ComponentHarness"
  1573. }
  1574. ],
  1575. "name": "hasHarness",
  1576. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.",
  1577. "entryType": "function",
  1578. "jsdocTags": [
  1579. {
  1580. "name": "param",
  1581. "comment": "A query for a harness to create"
  1582. },
  1583. {
  1584. "name": "return",
  1585. "comment": "A boolean indicating if an instance was found."
  1586. }
  1587. ],
  1588. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.\n * @param query A query for a harness to create\n * @return A boolean indicating if an instance was found.\n */"
  1589. },
  1590. "entryType": "function",
  1591. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.",
  1592. "jsdocTags": [
  1593. {
  1594. "name": "param",
  1595. "comment": "A query for a harness to create"
  1596. },
  1597. {
  1598. "name": "return",
  1599. "comment": "A boolean indicating if an instance was found."
  1600. }
  1601. ],
  1602. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.\n * @param query A query for a harness to create\n * @return A boolean indicating if an instance was found.\n */",
  1603. "memberType": "method",
  1604. "memberTags": []
  1605. },
  1606. {
  1607. "name": "getChildLoader",
  1608. "signatures": [
  1609. {
  1610. "name": "getChildLoader",
  1611. "entryType": "function",
  1612. "description": "Searches for an element with the given selector under the evironment's root element,\nand returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\nselector, the first is used. If no elements match, an error is thrown.",
  1613. "generics": [],
  1614. "isNewType": false,
  1615. "jsdocTags": [
  1616. {
  1617. "name": "param",
  1618. "comment": "The selector for the root element of the new `HarnessLoader`"
  1619. },
  1620. {
  1621. "name": "return",
  1622. "comment": "A `HarnessLoader` rooted at the element matching the given selector."
  1623. },
  1624. {
  1625. "name": "throws",
  1626. "comment": "If a matching element can't be found."
  1627. }
  1628. ],
  1629. "params": [
  1630. {
  1631. "name": "selector",
  1632. "description": "The selector for the root element of the new `HarnessLoader`",
  1633. "type": "string",
  1634. "isOptional": false,
  1635. "isRestParam": false
  1636. }
  1637. ],
  1638. "rawComment": "/**\n * Searches for an element with the given selector under the evironment's root element,\n * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\n * selector, the first is used. If no elements match, an error is thrown.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A `HarnessLoader` rooted at the element matching the given selector.\n * @throws If a matching element can't be found.\n */",
  1639. "returnType": "Promise<HarnessLoader>"
  1640. }
  1641. ],
  1642. "implementation": {
  1643. "params": [
  1644. {
  1645. "name": "selector",
  1646. "description": "The selector for the root element of the new `HarnessLoader`",
  1647. "type": "string",
  1648. "isOptional": false,
  1649. "isRestParam": false
  1650. }
  1651. ],
  1652. "isNewType": false,
  1653. "returnType": "Promise<HarnessLoader>",
  1654. "generics": [],
  1655. "name": "getChildLoader",
  1656. "description": "Searches for an element with the given selector under the evironment's root element,\nand returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\nselector, the first is used. If no elements match, an error is thrown.",
  1657. "entryType": "function",
  1658. "jsdocTags": [
  1659. {
  1660. "name": "param",
  1661. "comment": "The selector for the root element of the new `HarnessLoader`"
  1662. },
  1663. {
  1664. "name": "return",
  1665. "comment": "A `HarnessLoader` rooted at the element matching the given selector."
  1666. },
  1667. {
  1668. "name": "throws",
  1669. "comment": "If a matching element can't be found."
  1670. }
  1671. ],
  1672. "rawComment": "/**\n * Searches for an element with the given selector under the evironment's root element,\n * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\n * selector, the first is used. If no elements match, an error is thrown.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A `HarnessLoader` rooted at the element matching the given selector.\n * @throws If a matching element can't be found.\n */"
  1673. },
  1674. "entryType": "function",
  1675. "description": "Searches for an element with the given selector under the evironment's root element,\nand returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\nselector, the first is used. If no elements match, an error is thrown.",
  1676. "jsdocTags": [
  1677. {
  1678. "name": "param",
  1679. "comment": "The selector for the root element of the new `HarnessLoader`"
  1680. },
  1681. {
  1682. "name": "return",
  1683. "comment": "A `HarnessLoader` rooted at the element matching the given selector."
  1684. },
  1685. {
  1686. "name": "throws",
  1687. "comment": "If a matching element can't be found."
  1688. }
  1689. ],
  1690. "rawComment": "/**\n * Searches for an element with the given selector under the evironment's root element,\n * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\n * selector, the first is used. If no elements match, an error is thrown.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A `HarnessLoader` rooted at the element matching the given selector.\n * @throws If a matching element can't be found.\n */",
  1691. "memberType": "method",
  1692. "memberTags": []
  1693. },
  1694. {
  1695. "name": "getAllChildLoaders",
  1696. "signatures": [
  1697. {
  1698. "name": "getAllChildLoaders",
  1699. "entryType": "function",
  1700. "description": "Searches for all elements with the given selector under the environment's root element,\nand returns an array of `HarnessLoader`s, one for each matching element, rooted at that\nelement.",
  1701. "generics": [],
  1702. "isNewType": false,
  1703. "jsdocTags": [
  1704. {
  1705. "name": "param",
  1706. "comment": "The selector for the root element of the new `HarnessLoader`"
  1707. },
  1708. {
  1709. "name": "return",
  1710. "comment": "A list of `HarnessLoader`s, one for each matching element, rooted at that element."
  1711. }
  1712. ],
  1713. "params": [
  1714. {
  1715. "name": "selector",
  1716. "description": "The selector for the root element of the new `HarnessLoader`",
  1717. "type": "string",
  1718. "isOptional": false,
  1719. "isRestParam": false
  1720. }
  1721. ],
  1722. "rawComment": "/**\n * Searches for all elements with the given selector under the environment's root element,\n * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that\n * element.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.\n */",
  1723. "returnType": "Promise<HarnessLoader[]>"
  1724. }
  1725. ],
  1726. "implementation": {
  1727. "params": [
  1728. {
  1729. "name": "selector",
  1730. "description": "The selector for the root element of the new `HarnessLoader`",
  1731. "type": "string",
  1732. "isOptional": false,
  1733. "isRestParam": false
  1734. }
  1735. ],
  1736. "isNewType": false,
  1737. "returnType": "Promise<HarnessLoader[]>",
  1738. "generics": [],
  1739. "name": "getAllChildLoaders",
  1740. "description": "Searches for all elements with the given selector under the environment's root element,\nand returns an array of `HarnessLoader`s, one for each matching element, rooted at that\nelement.",
  1741. "entryType": "function",
  1742. "jsdocTags": [
  1743. {
  1744. "name": "param",
  1745. "comment": "The selector for the root element of the new `HarnessLoader`"
  1746. },
  1747. {
  1748. "name": "return",
  1749. "comment": "A list of `HarnessLoader`s, one for each matching element, rooted at that element."
  1750. }
  1751. ],
  1752. "rawComment": "/**\n * Searches for all elements with the given selector under the environment's root element,\n * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that\n * element.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.\n */"
  1753. },
  1754. "entryType": "function",
  1755. "description": "Searches for all elements with the given selector under the environment's root element,\nand returns an array of `HarnessLoader`s, one for each matching element, rooted at that\nelement.",
  1756. "jsdocTags": [
  1757. {
  1758. "name": "param",
  1759. "comment": "The selector for the root element of the new `HarnessLoader`"
  1760. },
  1761. {
  1762. "name": "return",
  1763. "comment": "A list of `HarnessLoader`s, one for each matching element, rooted at that element."
  1764. }
  1765. ],
  1766. "rawComment": "/**\n * Searches for all elements with the given selector under the environment's root element,\n * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that\n * element.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.\n */",
  1767. "memberType": "method",
  1768. "memberTags": []
  1769. },
  1770. {
  1771. "name": "createComponentHarness",
  1772. "signatures": [
  1773. {
  1774. "name": "createComponentHarness",
  1775. "entryType": "function",
  1776. "description": "Creates a `ComponentHarness` for the given harness type with the given raw host element.",
  1777. "generics": [
  1778. {
  1779. "name": "T",
  1780. "constraint": "ComponentHarness"
  1781. }
  1782. ],
  1783. "isNewType": false,
  1784. "jsdocTags": [],
  1785. "params": [
  1786. {
  1787. "name": "harnessType",
  1788. "description": "",
  1789. "type": "ComponentHarnessConstructor<T>",
  1790. "isOptional": false,
  1791. "isRestParam": false
  1792. },
  1793. {
  1794. "name": "element",
  1795. "description": "",
  1796. "type": "E",
  1797. "isOptional": false,
  1798. "isRestParam": false
  1799. }
  1800. ],
  1801. "rawComment": "/** Creates a `ComponentHarness` for the given harness type with the given raw host element. */",
  1802. "returnType": "T"
  1803. }
  1804. ],
  1805. "implementation": {
  1806. "params": [
  1807. {
  1808. "name": "harnessType",
  1809. "description": "",
  1810. "type": "ComponentHarnessConstructor<T>",
  1811. "isOptional": false,
  1812. "isRestParam": false
  1813. },
  1814. {
  1815. "name": "element",
  1816. "description": "",
  1817. "type": "E",
  1818. "isOptional": false,
  1819. "isRestParam": false
  1820. }
  1821. ],
  1822. "isNewType": false,
  1823. "returnType": "T",
  1824. "generics": [
  1825. {
  1826. "name": "T",
  1827. "constraint": "ComponentHarness"
  1828. }
  1829. ],
  1830. "name": "createComponentHarness",
  1831. "description": "Creates a `ComponentHarness` for the given harness type with the given raw host element.",
  1832. "entryType": "function",
  1833. "jsdocTags": [],
  1834. "rawComment": "/** Creates a `ComponentHarness` for the given harness type with the given raw host element. */"
  1835. },
  1836. "entryType": "function",
  1837. "description": "Creates a `ComponentHarness` for the given harness type with the given raw host element.",
  1838. "jsdocTags": [],
  1839. "rawComment": "/** Creates a `ComponentHarness` for the given harness type with the given raw host element. */",
  1840. "memberType": "method",
  1841. "memberTags": [
  1842. "protected"
  1843. ]
  1844. },
  1845. {
  1846. "name": "forceStabilize",
  1847. "signatures": [
  1848. {
  1849. "name": "forceStabilize",
  1850. "entryType": "function",
  1851. "description": "Flushes change detection and async tasks captured in the Angular zone.\nIn most cases it should not be necessary to call this manually. However, there may be some edge\ncases where it is needed to fully flush animation events.\nThis is an abstrct method that must be implemented by subclasses.",
  1852. "generics": [],
  1853. "isNewType": false,
  1854. "jsdocTags": [],
  1855. "params": [],
  1856. "rawComment": "/**\n * Flushes change detection and async tasks captured in the Angular zone.\n * In most cases it should not be necessary to call this manually. However, there may be some edge\n * cases where it is needed to fully flush animation events.\n * This is an abstrct method that must be implemented by subclasses.\n */",
  1857. "returnType": "Promise<void>"
  1858. }
  1859. ],
  1860. "implementation": {
  1861. "params": [],
  1862. "isNewType": false,
  1863. "returnType": "Promise<void>",
  1864. "generics": [],
  1865. "name": "forceStabilize",
  1866. "description": "Flushes change detection and async tasks captured in the Angular zone.\nIn most cases it should not be necessary to call this manually. However, there may be some edge\ncases where it is needed to fully flush animation events.\nThis is an abstrct method that must be implemented by subclasses.",
  1867. "entryType": "function",
  1868. "jsdocTags": [],
  1869. "rawComment": "/**\n * Flushes change detection and async tasks captured in the Angular zone.\n * In most cases it should not be necessary to call this manually. However, there may be some edge\n * cases where it is needed to fully flush animation events.\n * This is an abstrct method that must be implemented by subclasses.\n */"
  1870. },
  1871. "entryType": "function",
  1872. "description": "Flushes change detection and async tasks captured in the Angular zone.\nIn most cases it should not be necessary to call this manually. However, there may be some edge\ncases where it is needed to fully flush animation events.\nThis is an abstrct method that must be implemented by subclasses.",
  1873. "jsdocTags": [],
  1874. "rawComment": "/**\n * Flushes change detection and async tasks captured in the Angular zone.\n * In most cases it should not be necessary to call this manually. However, there may be some edge\n * cases where it is needed to fully flush animation events.\n * This is an abstrct method that must be implemented by subclasses.\n */",
  1875. "memberType": "method",
  1876. "memberTags": [
  1877. "abstract"
  1878. ]
  1879. },
  1880. {
  1881. "name": "waitForTasksOutsideAngular",
  1882. "signatures": [
  1883. {
  1884. "name": "waitForTasksOutsideAngular",
  1885. "entryType": "function",
  1886. "description": "Waits for all scheduled or running async tasks to complete. This allows harness\nauthors to wait for async tasks outside of the Angular zone.\nThis is an abstrct method that must be implemented by subclasses.",
  1887. "generics": [],
  1888. "isNewType": false,
  1889. "jsdocTags": [],
  1890. "params": [],
  1891. "rawComment": "/**\n * Waits for all scheduled or running async tasks to complete. This allows harness\n * authors to wait for async tasks outside of the Angular zone.\n * This is an abstrct method that must be implemented by subclasses.\n */",
  1892. "returnType": "Promise<void>"
  1893. }
  1894. ],
  1895. "implementation": {
  1896. "params": [],
  1897. "isNewType": false,
  1898. "returnType": "Promise<void>",
  1899. "generics": [],
  1900. "name": "waitForTasksOutsideAngular",
  1901. "description": "Waits for all scheduled or running async tasks to complete. This allows harness\nauthors to wait for async tasks outside of the Angular zone.\nThis is an abstrct method that must be implemented by subclasses.",
  1902. "entryType": "function",
  1903. "jsdocTags": [],
  1904. "rawComment": "/**\n * Waits for all scheduled or running async tasks to complete. This allows harness\n * authors to wait for async tasks outside of the Angular zone.\n * This is an abstrct method that must be implemented by subclasses.\n */"
  1905. },
  1906. "entryType": "function",
  1907. "description": "Waits for all scheduled or running async tasks to complete. This allows harness\nauthors to wait for async tasks outside of the Angular zone.\nThis is an abstrct method that must be implemented by subclasses.",
  1908. "jsdocTags": [],
  1909. "rawComment": "/**\n * Waits for all scheduled or running async tasks to complete. This allows harness\n * authors to wait for async tasks outside of the Angular zone.\n * This is an abstrct method that must be implemented by subclasses.\n */",
  1910. "memberType": "method",
  1911. "memberTags": [
  1912. "abstract"
  1913. ]
  1914. },
  1915. {
  1916. "name": "getDocumentRoot",
  1917. "signatures": [
  1918. {
  1919. "name": "getDocumentRoot",
  1920. "entryType": "function",
  1921. "description": "Gets the root element for the document.",
  1922. "generics": [],
  1923. "isNewType": false,
  1924. "jsdocTags": [],
  1925. "params": [],
  1926. "rawComment": "/** Gets the root element for the document. */",
  1927. "returnType": "E"
  1928. }
  1929. ],
  1930. "implementation": {
  1931. "params": [],
  1932. "isNewType": false,
  1933. "returnType": "E",
  1934. "generics": [],
  1935. "name": "getDocumentRoot",
  1936. "description": "Gets the root element for the document.",
  1937. "entryType": "function",
  1938. "jsdocTags": [],
  1939. "rawComment": "/** Gets the root element for the document. */"
  1940. },
  1941. "entryType": "function",
  1942. "description": "Gets the root element for the document.",
  1943. "jsdocTags": [],
  1944. "rawComment": "/** Gets the root element for the document. */",
  1945. "memberType": "method",
  1946. "memberTags": [
  1947. "protected",
  1948. "abstract"
  1949. ]
  1950. },
  1951. {
  1952. "name": "createTestElement",
  1953. "signatures": [
  1954. {
  1955. "name": "createTestElement",
  1956. "entryType": "function",
  1957. "description": "Creates a `TestElement` from a raw element.",
  1958. "generics": [],
  1959. "isNewType": false,
  1960. "jsdocTags": [],
  1961. "params": [
  1962. {
  1963. "name": "element",
  1964. "description": "",
  1965. "type": "E",
  1966. "isOptional": false,
  1967. "isRestParam": false
  1968. }
  1969. ],
  1970. "rawComment": "/** Creates a `TestElement` from a raw element. */",
  1971. "returnType": "TestElement"
  1972. }
  1973. ],
  1974. "implementation": {
  1975. "params": [
  1976. {
  1977. "name": "element",
  1978. "description": "",
  1979. "type": "E",
  1980. "isOptional": false,
  1981. "isRestParam": false
  1982. }
  1983. ],
  1984. "isNewType": false,
  1985. "returnType": "TestElement",
  1986. "generics": [],
  1987. "name": "createTestElement",
  1988. "description": "Creates a `TestElement` from a raw element.",
  1989. "entryType": "function",
  1990. "jsdocTags": [],
  1991. "rawComment": "/** Creates a `TestElement` from a raw element. */"
  1992. },
  1993. "entryType": "function",
  1994. "description": "Creates a `TestElement` from a raw element.",
  1995. "jsdocTags": [],
  1996. "rawComment": "/** Creates a `TestElement` from a raw element. */",
  1997. "memberType": "method",
  1998. "memberTags": [
  1999. "protected",
  2000. "abstract"
  2001. ]
  2002. },
  2003. {
  2004. "name": "createEnvironment",
  2005. "signatures": [
  2006. {
  2007. "name": "createEnvironment",
  2008. "entryType": "function",
  2009. "description": "Creates a `HarnessEnvironment` rooted at the given raw element.",
  2010. "generics": [],
  2011. "isNewType": false,
  2012. "jsdocTags": [],
  2013. "params": [
  2014. {
  2015. "name": "element",
  2016. "description": "",
  2017. "type": "E",
  2018. "isOptional": false,
  2019. "isRestParam": false
  2020. }
  2021. ],
  2022. "rawComment": "/** Creates a `HarnessEnvironment` rooted at the given raw element. */",
  2023. "returnType": "HarnessEnvironment<E>"
  2024. }
  2025. ],
  2026. "implementation": {
  2027. "params": [
  2028. {
  2029. "name": "element",
  2030. "description": "",
  2031. "type": "E",
  2032. "isOptional": false,
  2033. "isRestParam": false
  2034. }
  2035. ],
  2036. "isNewType": false,
  2037. "returnType": "HarnessEnvironment<E>",
  2038. "generics": [],
  2039. "name": "createEnvironment",
  2040. "description": "Creates a `HarnessEnvironment` rooted at the given raw element.",
  2041. "entryType": "function",
  2042. "jsdocTags": [],
  2043. "rawComment": "/** Creates a `HarnessEnvironment` rooted at the given raw element. */"
  2044. },
  2045. "entryType": "function",
  2046. "description": "Creates a `HarnessEnvironment` rooted at the given raw element.",
  2047. "jsdocTags": [],
  2048. "rawComment": "/** Creates a `HarnessEnvironment` rooted at the given raw element. */",
  2049. "memberType": "method",
  2050. "memberTags": [
  2051. "protected",
  2052. "abstract"
  2053. ]
  2054. },
  2055. {
  2056. "name": "getAllRawElements",
  2057. "signatures": [
  2058. {
  2059. "name": "getAllRawElements",
  2060. "entryType": "function",
  2061. "description": "Gets a list of all elements matching the given selector under this environment's root element.",
  2062. "generics": [],
  2063. "isNewType": false,
  2064. "jsdocTags": [],
  2065. "params": [
  2066. {
  2067. "name": "selector",
  2068. "description": "",
  2069. "type": "string",
  2070. "isOptional": false,
  2071. "isRestParam": false
  2072. }
  2073. ],
  2074. "rawComment": "/**\n * Gets a list of all elements matching the given selector under this environment's root element.\n */",
  2075. "returnType": "Promise<E[]>"
  2076. }
  2077. ],
  2078. "implementation": {
  2079. "params": [
  2080. {
  2081. "name": "selector",
  2082. "description": "",
  2083. "type": "string",
  2084. "isOptional": false,
  2085. "isRestParam": false
  2086. }
  2087. ],
  2088. "isNewType": false,
  2089. "returnType": "Promise<E[]>",
  2090. "generics": [],
  2091. "name": "getAllRawElements",
  2092. "description": "Gets a list of all elements matching the given selector under this environment's root element.",
  2093. "entryType": "function",
  2094. "jsdocTags": [],
  2095. "rawComment": "/**\n * Gets a list of all elements matching the given selector under this environment's root element.\n */"
  2096. },
  2097. "entryType": "function",
  2098. "description": "Gets a list of all elements matching the given selector under this environment's root element.",
  2099. "jsdocTags": [],
  2100. "rawComment": "/**\n * Gets a list of all elements matching the given selector under this environment's root element.\n */",
  2101. "memberType": "method",
  2102. "memberTags": [
  2103. "protected",
  2104. "abstract"
  2105. ]
  2106. }
  2107. ],
  2108. "generics": [
  2109. {
  2110. "name": "E"
  2111. }
  2112. ],
  2113. "description": "Base harness environment class that can be extended to allow `ComponentHarness`es to be used in\ndifferent test environments (e.g. testbed, protractor, etc.). This class implements the\nfunctionality of both a `HarnessLoader` and `LocatorFactory`. This class is generic on the raw\nelement type, `E`, used by the particular test environment.",
  2114. "jsdocTags": [],
  2115. "rawComment": "/**\n * Base harness environment class that can be extended to allow `ComponentHarness`es to be used in\n * different test environments (e.g. testbed, protractor, etc.). This class implements the\n * functionality of both a `HarnessLoader` and `LocatorFactory`. This class is generic on the raw\n * element type, `E`, used by the particular test environment.\n */",
  2116. "implements": [
  2117. "HarnessLoader",
  2118. "LocatorFactory"
  2119. ],
  2120. "source": {
  2121. "filePath": "src/cdk/testing/harness-environment.ts",
  2122. "startLine": 45,
  2123. "endLine": 401
  2124. }
  2125. },
  2126. {
  2127. "name": "handleAutoChangeDetectionStatus",
  2128. "signatures": [
  2129. {
  2130. "name": "handleAutoChangeDetectionStatus",
  2131. "entryType": "function",
  2132. "description": "Allows a test `HarnessEnvironment` to install its own handler for auto change detection status\nchanges.",
  2133. "generics": [],
  2134. "isNewType": false,
  2135. "jsdocTags": [
  2136. {
  2137. "name": "param",
  2138. "comment": "The handler for the auto change detection status."
  2139. }
  2140. ],
  2141. "params": [
  2142. {
  2143. "name": "handler",
  2144. "description": "The handler for the auto change detection status.",
  2145. "type": "(status: AutoChangeDetectionStatus) => void",
  2146. "isOptional": false,
  2147. "isRestParam": false
  2148. }
  2149. ],
  2150. "rawComment": "/**\n * Allows a test `HarnessEnvironment` to install its own handler for auto change detection status\n * changes.\n * @param handler The handler for the auto change detection status.\n */",
  2151. "returnType": "void"
  2152. }
  2153. ],
  2154. "implementation": {
  2155. "params": [
  2156. {
  2157. "name": "handler",
  2158. "description": "The handler for the auto change detection status.",
  2159. "type": "(status: AutoChangeDetectionStatus) => void",
  2160. "isOptional": false,
  2161. "isRestParam": false
  2162. }
  2163. ],
  2164. "isNewType": false,
  2165. "returnType": "void",
  2166. "generics": [],
  2167. "name": "handleAutoChangeDetectionStatus",
  2168. "description": "Allows a test `HarnessEnvironment` to install its own handler for auto change detection status\nchanges.",
  2169. "entryType": "function",
  2170. "jsdocTags": [
  2171. {
  2172. "name": "param",
  2173. "comment": "The handler for the auto change detection status."
  2174. }
  2175. ],
  2176. "rawComment": "/**\n * Allows a test `HarnessEnvironment` to install its own handler for auto change detection status\n * changes.\n * @param handler The handler for the auto change detection status.\n */"
  2177. },
  2178. "entryType": "function",
  2179. "description": "Allows a test `HarnessEnvironment` to install its own handler for auto change detection status\nchanges.",
  2180. "jsdocTags": [
  2181. {
  2182. "name": "param",
  2183. "comment": "The handler for the auto change detection status."
  2184. }
  2185. ],
  2186. "rawComment": "/**\n * Allows a test `HarnessEnvironment` to install its own handler for auto change detection status\n * changes.\n * @param handler The handler for the auto change detection status.\n */",
  2187. "source": {
  2188. "filePath": "src/cdk/testing/change-detection.ts",
  2189. "startLine": 49,
  2190. "endLine": 54
  2191. }
  2192. },
  2193. {
  2194. "name": "TestElement",
  2195. "isAbstract": false,
  2196. "entryType": "interface",
  2197. "members": [
  2198. {
  2199. "name": "blur",
  2200. "signatures": [],
  2201. "implementation": {
  2202. "params": [],
  2203. "isNewType": false,
  2204. "returnType": "Promise<void>",
  2205. "generics": [],
  2206. "name": "blur",
  2207. "description": "Blur the element.",
  2208. "entryType": "function",
  2209. "jsdocTags": [],
  2210. "rawComment": "/** Blur the element. */"
  2211. },
  2212. "entryType": "function",
  2213. "description": "Blur the element.",
  2214. "jsdocTags": [],
  2215. "rawComment": "/** Blur the element. */",
  2216. "memberType": "method",
  2217. "memberTags": []
  2218. },
  2219. {
  2220. "name": "clear",
  2221. "signatures": [],
  2222. "implementation": {
  2223. "params": [],
  2224. "isNewType": false,
  2225. "returnType": "Promise<void>",
  2226. "generics": [],
  2227. "name": "clear",
  2228. "description": "Clear the element's input (for input and textarea elements only).",
  2229. "entryType": "function",
  2230. "jsdocTags": [],
  2231. "rawComment": "/** Clear the element's input (for input and textarea elements only). */"
  2232. },
  2233. "entryType": "function",
  2234. "description": "Clear the element's input (for input and textarea elements only).",
  2235. "jsdocTags": [],
  2236. "rawComment": "/** Clear the element's input (for input and textarea elements only). */",
  2237. "memberType": "method",
  2238. "memberTags": []
  2239. },
  2240. {
  2241. "name": "click",
  2242. "signatures": [],
  2243. "implementation": {
  2244. "params": [
  2245. {
  2246. "name": "modifiers",
  2247. "description": "",
  2248. "type": "ModifierKeys | undefined",
  2249. "isOptional": true,
  2250. "isRestParam": false
  2251. }
  2252. ],
  2253. "isNewType": false,
  2254. "returnType": "Promise<void>",
  2255. "generics": [],
  2256. "name": "click",
  2257. "description": "Click the element at the default location for the current environment. If you need to guarantee\nthe element is clicked at a specific location, consider using `click('center')` or\n`click(x, y)` instead.",
  2258. "entryType": "function",
  2259. "jsdocTags": [],
  2260. "rawComment": "/**\n * Click the element at the default location for the current environment. If you need to guarantee\n * the element is clicked at a specific location, consider using `click('center')` or\n * `click(x, y)` instead.\n */"
  2261. },
  2262. "entryType": "function",
  2263. "description": "Click the element at the default location for the current environment. If you need to guarantee\nthe element is clicked at a specific location, consider using `click('center')` or\n`click(x, y)` instead.",
  2264. "jsdocTags": [],
  2265. "rawComment": "/**\n * Click the element at the default location for the current environment. If you need to guarantee\n * the element is clicked at a specific location, consider using `click('center')` or\n * `click(x, y)` instead.\n */",
  2266. "memberType": "method",
  2267. "memberTags": []
  2268. },
  2269. {
  2270. "name": "click",
  2271. "signatures": [],
  2272. "implementation": {
  2273. "params": [
  2274. {
  2275. "name": "location",
  2276. "description": "",
  2277. "type": "\"center\"",
  2278. "isOptional": false,
  2279. "isRestParam": false
  2280. },
  2281. {
  2282. "name": "modifiers",
  2283. "description": "",
  2284. "type": "ModifierKeys | undefined",
  2285. "isOptional": true,
  2286. "isRestParam": false
  2287. }
  2288. ],
  2289. "isNewType": false,
  2290. "returnType": "Promise<void>",
  2291. "generics": [],
  2292. "name": "click",
  2293. "description": "Click the element at the element's center.",
  2294. "entryType": "function",
  2295. "jsdocTags": [],
  2296. "rawComment": "/** Click the element at the element's center. */"
  2297. },
  2298. "entryType": "function",
  2299. "description": "Click the element at the element's center.",
  2300. "jsdocTags": [],
  2301. "rawComment": "/** Click the element at the element's center. */",
  2302. "memberType": "method",
  2303. "memberTags": []
  2304. },
  2305. {
  2306. "name": "click",
  2307. "signatures": [],
  2308. "implementation": {
  2309. "params": [
  2310. {
  2311. "name": "relativeX",
  2312. "description": "Coordinate within the element, along the X-axis at which to click.",
  2313. "type": "number",
  2314. "isOptional": false,
  2315. "isRestParam": false
  2316. },
  2317. {
  2318. "name": "relativeY",
  2319. "description": "Coordinate within the element, along the Y-axis at which to click.",
  2320. "type": "number",
  2321. "isOptional": false,
  2322. "isRestParam": false
  2323. },
  2324. {
  2325. "name": "modifiers",
  2326. "description": "Modifier keys held while clicking",
  2327. "type": "ModifierKeys | undefined",
  2328. "isOptional": true,
  2329. "isRestParam": false
  2330. }
  2331. ],
  2332. "isNewType": false,
  2333. "returnType": "Promise<void>",
  2334. "generics": [],
  2335. "name": "click",
  2336. "description": "Click the element at the specified coordinates relative to the top-left of the element.",
  2337. "entryType": "function",
  2338. "jsdocTags": [
  2339. {
  2340. "name": "param",
  2341. "comment": "Coordinate within the element, along the X-axis at which to click."
  2342. },
  2343. {
  2344. "name": "param",
  2345. "comment": "Coordinate within the element, along the Y-axis at which to click."
  2346. },
  2347. {
  2348. "name": "param",
  2349. "comment": "Modifier keys held while clicking"
  2350. }
  2351. ],
  2352. "rawComment": "/**\n * Click the element at the specified coordinates relative to the top-left of the element.\n * @param relativeX Coordinate within the element, along the X-axis at which to click.\n * @param relativeY Coordinate within the element, along the Y-axis at which to click.\n * @param modifiers Modifier keys held while clicking\n */"
  2353. },
  2354. "entryType": "function",
  2355. "description": "Click the element at the specified coordinates relative to the top-left of the element.",
  2356. "jsdocTags": [
  2357. {
  2358. "name": "param",
  2359. "comment": "Coordinate within the element, along the X-axis at which to click."
  2360. },
  2361. {
  2362. "name": "param",
  2363. "comment": "Coordinate within the element, along the Y-axis at which to click."
  2364. },
  2365. {
  2366. "name": "param",
  2367. "comment": "Modifier keys held while clicking"
  2368. }
  2369. ],
  2370. "rawComment": "/**\n * Click the element at the specified coordinates relative to the top-left of the element.\n * @param relativeX Coordinate within the element, along the X-axis at which to click.\n * @param relativeY Coordinate within the element, along the Y-axis at which to click.\n * @param modifiers Modifier keys held while clicking\n */",
  2371. "memberType": "method",
  2372. "memberTags": []
  2373. },
  2374. {
  2375. "name": "rightClick",
  2376. "signatures": [],
  2377. "implementation": {
  2378. "params": [
  2379. {
  2380. "name": "relativeX",
  2381. "description": "Coordinate within the element, along the X-axis at which to click.",
  2382. "type": "number",
  2383. "isOptional": false,
  2384. "isRestParam": false
  2385. },
  2386. {
  2387. "name": "relativeY",
  2388. "description": "Coordinate within the element, along the Y-axis at which to click.",
  2389. "type": "number",
  2390. "isOptional": false,
  2391. "isRestParam": false
  2392. },
  2393. {
  2394. "name": "modifiers",
  2395. "description": "Modifier keys held while clicking",
  2396. "type": "ModifierKeys | undefined",
  2397. "isOptional": true,
  2398. "isRestParam": false
  2399. }
  2400. ],
  2401. "isNewType": false,
  2402. "returnType": "Promise<void>",
  2403. "generics": [],
  2404. "name": "rightClick",
  2405. "description": "Right clicks on the element at the specified coordinates relative to the top-left of it.",
  2406. "entryType": "function",
  2407. "jsdocTags": [
  2408. {
  2409. "name": "param",
  2410. "comment": "Coordinate within the element, along the X-axis at which to click."
  2411. },
  2412. {
  2413. "name": "param",
  2414. "comment": "Coordinate within the element, along the Y-axis at which to click."
  2415. },
  2416. {
  2417. "name": "param",
  2418. "comment": "Modifier keys held while clicking"
  2419. }
  2420. ],
  2421. "rawComment": "/**\n * Right clicks on the element at the specified coordinates relative to the top-left of it.\n * @param relativeX Coordinate within the element, along the X-axis at which to click.\n * @param relativeY Coordinate within the element, along the Y-axis at which to click.\n * @param modifiers Modifier keys held while clicking\n */"
  2422. },
  2423. "entryType": "function",
  2424. "description": "Right clicks on the element at the specified coordinates relative to the top-left of it.",
  2425. "jsdocTags": [
  2426. {
  2427. "name": "param",
  2428. "comment": "Coordinate within the element, along the X-axis at which to click."
  2429. },
  2430. {
  2431. "name": "param",
  2432. "comment": "Coordinate within the element, along the Y-axis at which to click."
  2433. },
  2434. {
  2435. "name": "param",
  2436. "comment": "Modifier keys held while clicking"
  2437. }
  2438. ],
  2439. "rawComment": "/**\n * Right clicks on the element at the specified coordinates relative to the top-left of it.\n * @param relativeX Coordinate within the element, along the X-axis at which to click.\n * @param relativeY Coordinate within the element, along the Y-axis at which to click.\n * @param modifiers Modifier keys held while clicking\n */",
  2440. "memberType": "method",
  2441. "memberTags": []
  2442. },
  2443. {
  2444. "name": "focus",
  2445. "signatures": [],
  2446. "implementation": {
  2447. "params": [],
  2448. "isNewType": false,
  2449. "returnType": "Promise<void>",
  2450. "generics": [],
  2451. "name": "focus",
  2452. "description": "Focus the element.",
  2453. "entryType": "function",
  2454. "jsdocTags": [],
  2455. "rawComment": "/** Focus the element. */"
  2456. },
  2457. "entryType": "function",
  2458. "description": "Focus the element.",
  2459. "jsdocTags": [],
  2460. "rawComment": "/** Focus the element. */",
  2461. "memberType": "method",
  2462. "memberTags": []
  2463. },
  2464. {
  2465. "name": "getCssValue",
  2466. "signatures": [],
  2467. "implementation": {
  2468. "params": [
  2469. {
  2470. "name": "property",
  2471. "description": "",
  2472. "type": "string",
  2473. "isOptional": false,
  2474. "isRestParam": false
  2475. }
  2476. ],
  2477. "isNewType": false,
  2478. "returnType": "Promise<string>",
  2479. "generics": [],
  2480. "name": "getCssValue",
  2481. "description": "Get the computed value of the given CSS property for the element.",
  2482. "entryType": "function",
  2483. "jsdocTags": [],
  2484. "rawComment": "/** Get the computed value of the given CSS property for the element. */"
  2485. },
  2486. "entryType": "function",
  2487. "description": "Get the computed value of the given CSS property for the element.",
  2488. "jsdocTags": [],
  2489. "rawComment": "/** Get the computed value of the given CSS property for the element. */",
  2490. "memberType": "method",
  2491. "memberTags": []
  2492. },
  2493. {
  2494. "name": "hover",
  2495. "signatures": [],
  2496. "implementation": {
  2497. "params": [],
  2498. "isNewType": false,
  2499. "returnType": "Promise<void>",
  2500. "generics": [],
  2501. "name": "hover",
  2502. "description": "Hovers the mouse over the element.",
  2503. "entryType": "function",
  2504. "jsdocTags": [],
  2505. "rawComment": "/** Hovers the mouse over the element. */"
  2506. },
  2507. "entryType": "function",
  2508. "description": "Hovers the mouse over the element.",
  2509. "jsdocTags": [],
  2510. "rawComment": "/** Hovers the mouse over the element. */",
  2511. "memberType": "method",
  2512. "memberTags": []
  2513. },
  2514. {
  2515. "name": "mouseAway",
  2516. "signatures": [],
  2517. "implementation": {
  2518. "params": [],
  2519. "isNewType": false,
  2520. "returnType": "Promise<void>",
  2521. "generics": [],
  2522. "name": "mouseAway",
  2523. "description": "Moves the mouse away from the element.",
  2524. "entryType": "function",
  2525. "jsdocTags": [],
  2526. "rawComment": "/** Moves the mouse away from the element. */"
  2527. },
  2528. "entryType": "function",
  2529. "description": "Moves the mouse away from the element.",
  2530. "jsdocTags": [],
  2531. "rawComment": "/** Moves the mouse away from the element. */",
  2532. "memberType": "method",
  2533. "memberTags": []
  2534. },
  2535. {
  2536. "name": "sendKeys",
  2537. "signatures": [],
  2538. "implementation": {
  2539. "params": [
  2540. {
  2541. "name": "keys",
  2542. "description": "",
  2543. "type": "(string | TestKey)[]",
  2544. "isOptional": false,
  2545. "isRestParam": true
  2546. }
  2547. ],
  2548. "isNewType": false,
  2549. "returnType": "Promise<void>",
  2550. "generics": [],
  2551. "name": "sendKeys",
  2552. "description": "Sends the given string to the input as a series of key presses. Also fires input events\nand attempts to add the string to the Element's value. Note that some environments cannot\nreproduce native browser behavior for keyboard shortcuts such as Tab, Ctrl + A, etc.",
  2553. "entryType": "function",
  2554. "jsdocTags": [
  2555. {
  2556. "name": "throws",
  2557. "comment": "An error if no keys have been specified."
  2558. }
  2559. ],
  2560. "rawComment": "/**\n * Sends the given string to the input as a series of key presses. Also fires input events\n * and attempts to add the string to the Element's value. Note that some environments cannot\n * reproduce native browser behavior for keyboard shortcuts such as Tab, Ctrl + A, etc.\n * @throws An error if no keys have been specified.\n */"
  2561. },
  2562. "entryType": "function",
  2563. "description": "Sends the given string to the input as a series of key presses. Also fires input events\nand attempts to add the string to the Element's value. Note that some environments cannot\nreproduce native browser behavior for keyboard shortcuts such as Tab, Ctrl + A, etc.",
  2564. "jsdocTags": [
  2565. {
  2566. "name": "throws",
  2567. "comment": "An error if no keys have been specified."
  2568. }
  2569. ],
  2570. "rawComment": "/**\n * Sends the given string to the input as a series of key presses. Also fires input events\n * and attempts to add the string to the Element's value. Note that some environments cannot\n * reproduce native browser behavior for keyboard shortcuts such as Tab, Ctrl + A, etc.\n * @throws An error if no keys have been specified.\n */",
  2571. "memberType": "method",
  2572. "memberTags": []
  2573. },
  2574. {
  2575. "name": "sendKeys",
  2576. "signatures": [],
  2577. "implementation": {
  2578. "params": [
  2579. {
  2580. "name": "modifiers",
  2581. "description": "",
  2582. "type": "ModifierKeys",
  2583. "isOptional": false,
  2584. "isRestParam": false
  2585. },
  2586. {
  2587. "name": "keys",
  2588. "description": "",
  2589. "type": "(string | TestKey)[]",
  2590. "isOptional": false,
  2591. "isRestParam": true
  2592. }
  2593. ],
  2594. "isNewType": false,
  2595. "returnType": "Promise<void>",
  2596. "generics": [],
  2597. "name": "sendKeys",
  2598. "description": "Sends the given string to the input as a series of key presses. Also fires input\nevents and attempts to add the string to the Element's value.",
  2599. "entryType": "function",
  2600. "jsdocTags": [
  2601. {
  2602. "name": "throws",
  2603. "comment": "An error if no keys have been specified."
  2604. }
  2605. ],
  2606. "rawComment": "/**\n * Sends the given string to the input as a series of key presses. Also fires input\n * events and attempts to add the string to the Element's value.\n * @throws An error if no keys have been specified.\n */"
  2607. },
  2608. "entryType": "function",
  2609. "description": "Sends the given string to the input as a series of key presses. Also fires input\nevents and attempts to add the string to the Element's value.",
  2610. "jsdocTags": [
  2611. {
  2612. "name": "throws",
  2613. "comment": "An error if no keys have been specified."
  2614. }
  2615. ],
  2616. "rawComment": "/**\n * Sends the given string to the input as a series of key presses. Also fires input\n * events and attempts to add the string to the Element's value.\n * @throws An error if no keys have been specified.\n */",
  2617. "memberType": "method",
  2618. "memberTags": []
  2619. },
  2620. {
  2621. "name": "text",
  2622. "signatures": [],
  2623. "implementation": {
  2624. "params": [
  2625. {
  2626. "name": "options",
  2627. "description": "Options that affect what text is included.",
  2628. "type": "TextOptions | undefined",
  2629. "isOptional": true,
  2630. "isRestParam": false
  2631. }
  2632. ],
  2633. "isNewType": false,
  2634. "returnType": "Promise<string>",
  2635. "generics": [],
  2636. "name": "text",
  2637. "description": "Gets the text from the element.",
  2638. "entryType": "function",
  2639. "jsdocTags": [
  2640. {
  2641. "name": "param",
  2642. "comment": "Options that affect what text is included."
  2643. }
  2644. ],
  2645. "rawComment": "/**\n * Gets the text from the element.\n * @param options Options that affect what text is included.\n */"
  2646. },
  2647. "entryType": "function",
  2648. "description": "Gets the text from the element.",
  2649. "jsdocTags": [
  2650. {
  2651. "name": "param",
  2652. "comment": "Options that affect what text is included."
  2653. }
  2654. ],
  2655. "rawComment": "/**\n * Gets the text from the element.\n * @param options Options that affect what text is included.\n */",
  2656. "memberType": "method",
  2657. "memberTags": []
  2658. },
  2659. {
  2660. "name": "setContenteditableValue",
  2661. "signatures": [],
  2662. "implementation": {
  2663. "params": [
  2664. {
  2665. "name": "value",
  2666. "description": "Value to be set on the element.",
  2667. "type": "string",
  2668. "isOptional": false,
  2669. "isRestParam": false
  2670. }
  2671. ],
  2672. "isNewType": false,
  2673. "returnType": "Promise<void>",
  2674. "generics": [],
  2675. "name": "setContenteditableValue",
  2676. "description": "Sets the value of a `contenteditable` element.",
  2677. "entryType": "function",
  2678. "jsdocTags": [
  2679. {
  2680. "name": "param",
  2681. "comment": "Value to be set on the element."
  2682. },
  2683. {
  2684. "name": "breaking-change",
  2685. "comment": "16.0.0 Will become a required method."
  2686. }
  2687. ],
  2688. "rawComment": "/**\n * Sets the value of a `contenteditable` element.\n * @param value Value to be set on the element.\n * @breaking-change 16.0.0 Will become a required method.\n */"
  2689. },
  2690. "entryType": "function",
  2691. "description": "Sets the value of a `contenteditable` element.",
  2692. "jsdocTags": [
  2693. {
  2694. "name": "param",
  2695. "comment": "Value to be set on the element."
  2696. },
  2697. {
  2698. "name": "breaking-change",
  2699. "comment": "16.0.0 Will become a required method."
  2700. }
  2701. ],
  2702. "rawComment": "/**\n * Sets the value of a `contenteditable` element.\n * @param value Value to be set on the element.\n * @breaking-change 16.0.0 Will become a required method.\n */",
  2703. "memberType": "method",
  2704. "memberTags": [
  2705. "optional"
  2706. ]
  2707. },
  2708. {
  2709. "name": "getAttribute",
  2710. "signatures": [],
  2711. "implementation": {
  2712. "params": [
  2713. {
  2714. "name": "name",
  2715. "description": "",
  2716. "type": "string",
  2717. "isOptional": false,
  2718. "isRestParam": false
  2719. }
  2720. ],
  2721. "isNewType": false,
  2722. "returnType": "Promise<string | null>",
  2723. "generics": [],
  2724. "name": "getAttribute",
  2725. "description": "Gets the value for the given attribute from the element.",
  2726. "entryType": "function",
  2727. "jsdocTags": [],
  2728. "rawComment": "/** Gets the value for the given attribute from the element. */"
  2729. },
  2730. "entryType": "function",
  2731. "description": "Gets the value for the given attribute from the element.",
  2732. "jsdocTags": [],
  2733. "rawComment": "/** Gets the value for the given attribute from the element. */",
  2734. "memberType": "method",
  2735. "memberTags": []
  2736. },
  2737. {
  2738. "name": "hasClass",
  2739. "signatures": [],
  2740. "implementation": {
  2741. "params": [
  2742. {
  2743. "name": "name",
  2744. "description": "",
  2745. "type": "string",
  2746. "isOptional": false,
  2747. "isRestParam": false
  2748. }
  2749. ],
  2750. "isNewType": false,
  2751. "returnType": "Promise<boolean>",
  2752. "generics": [],
  2753. "name": "hasClass",
  2754. "description": "Checks whether the element has the given class.",
  2755. "entryType": "function",
  2756. "jsdocTags": [],
  2757. "rawComment": "/** Checks whether the element has the given class. */"
  2758. },
  2759. "entryType": "function",
  2760. "description": "Checks whether the element has the given class.",
  2761. "jsdocTags": [],
  2762. "rawComment": "/** Checks whether the element has the given class. */",
  2763. "memberType": "method",
  2764. "memberTags": []
  2765. },
  2766. {
  2767. "name": "getDimensions",
  2768. "signatures": [],
  2769. "implementation": {
  2770. "params": [],
  2771. "isNewType": false,
  2772. "returnType": "Promise<ElementDimensions>",
  2773. "generics": [],
  2774. "name": "getDimensions",
  2775. "description": "Gets the dimensions of the element.",
  2776. "entryType": "function",
  2777. "jsdocTags": [],
  2778. "rawComment": "/** Gets the dimensions of the element. */"
  2779. },
  2780. "entryType": "function",
  2781. "description": "Gets the dimensions of the element.",
  2782. "jsdocTags": [],
  2783. "rawComment": "/** Gets the dimensions of the element. */",
  2784. "memberType": "method",
  2785. "memberTags": []
  2786. },
  2787. {
  2788. "name": "getProperty",
  2789. "signatures": [],
  2790. "implementation": {
  2791. "params": [
  2792. {
  2793. "name": "name",
  2794. "description": "",
  2795. "type": "string",
  2796. "isOptional": false,
  2797. "isRestParam": false
  2798. }
  2799. ],
  2800. "isNewType": false,
  2801. "returnType": "Promise<T>",
  2802. "generics": [
  2803. {
  2804. "name": "T",
  2805. "default": "any"
  2806. }
  2807. ],
  2808. "name": "getProperty",
  2809. "description": "Gets the value of a property of an element.",
  2810. "entryType": "function",
  2811. "jsdocTags": [],
  2812. "rawComment": "/** Gets the value of a property of an element. */"
  2813. },
  2814. "entryType": "function",
  2815. "description": "Gets the value of a property of an element.",
  2816. "jsdocTags": [],
  2817. "rawComment": "/** Gets the value of a property of an element. */",
  2818. "memberType": "method",
  2819. "memberTags": []
  2820. },
  2821. {
  2822. "name": "matchesSelector",
  2823. "signatures": [],
  2824. "implementation": {
  2825. "params": [
  2826. {
  2827. "name": "selector",
  2828. "description": "",
  2829. "type": "string",
  2830. "isOptional": false,
  2831. "isRestParam": false
  2832. }
  2833. ],
  2834. "isNewType": false,
  2835. "returnType": "Promise<boolean>",
  2836. "generics": [],
  2837. "name": "matchesSelector",
  2838. "description": "Checks whether this element matches the given selector.",
  2839. "entryType": "function",
  2840. "jsdocTags": [],
  2841. "rawComment": "/** Checks whether this element matches the given selector. */"
  2842. },
  2843. "entryType": "function",
  2844. "description": "Checks whether this element matches the given selector.",
  2845. "jsdocTags": [],
  2846. "rawComment": "/** Checks whether this element matches the given selector. */",
  2847. "memberType": "method",
  2848. "memberTags": []
  2849. },
  2850. {
  2851. "name": "isFocused",
  2852. "signatures": [],
  2853. "implementation": {
  2854. "params": [],
  2855. "isNewType": false,
  2856. "returnType": "Promise<boolean>",
  2857. "generics": [],
  2858. "name": "isFocused",
  2859. "description": "Checks whether the element is focused.",
  2860. "entryType": "function",
  2861. "jsdocTags": [],
  2862. "rawComment": "/** Checks whether the element is focused. */"
  2863. },
  2864. "entryType": "function",
  2865. "description": "Checks whether the element is focused.",
  2866. "jsdocTags": [],
  2867. "rawComment": "/** Checks whether the element is focused. */",
  2868. "memberType": "method",
  2869. "memberTags": []
  2870. },
  2871. {
  2872. "name": "setInputValue",
  2873. "signatures": [],
  2874. "implementation": {
  2875. "params": [
  2876. {
  2877. "name": "value",
  2878. "description": "",
  2879. "type": "string",
  2880. "isOptional": false,
  2881. "isRestParam": false
  2882. }
  2883. ],
  2884. "isNewType": false,
  2885. "returnType": "Promise<void>",
  2886. "generics": [],
  2887. "name": "setInputValue",
  2888. "description": "Sets the value of a property of an input.",
  2889. "entryType": "function",
  2890. "jsdocTags": [],
  2891. "rawComment": "/** Sets the value of a property of an input. */"
  2892. },
  2893. "entryType": "function",
  2894. "description": "Sets the value of a property of an input.",
  2895. "jsdocTags": [],
  2896. "rawComment": "/** Sets the value of a property of an input. */",
  2897. "memberType": "method",
  2898. "memberTags": []
  2899. },
  2900. {
  2901. "name": "selectOptions",
  2902. "signatures": [],
  2903. "implementation": {
  2904. "params": [
  2905. {
  2906. "name": "optionIndexes",
  2907. "description": "",
  2908. "type": "number[]",
  2909. "isOptional": false,
  2910. "isRestParam": true
  2911. }
  2912. ],
  2913. "isNewType": false,
  2914. "returnType": "Promise<void>",
  2915. "generics": [],
  2916. "name": "selectOptions",
  2917. "description": "Selects the options at the specified indexes inside of a native `select` element.",
  2918. "entryType": "function",
  2919. "jsdocTags": [],
  2920. "rawComment": "/** Selects the options at the specified indexes inside of a native `select` element. */"
  2921. },
  2922. "entryType": "function",
  2923. "description": "Selects the options at the specified indexes inside of a native `select` element.",
  2924. "jsdocTags": [],
  2925. "rawComment": "/** Selects the options at the specified indexes inside of a native `select` element. */",
  2926. "memberType": "method",
  2927. "memberTags": []
  2928. },
  2929. {
  2930. "name": "dispatchEvent",
  2931. "signatures": [],
  2932. "implementation": {
  2933. "params": [
  2934. {
  2935. "name": "name",
  2936. "description": "Name of the event to be dispatched.",
  2937. "type": "string",
  2938. "isOptional": false,
  2939. "isRestParam": false
  2940. },
  2941. {
  2942. "name": "data",
  2943. "description": "",
  2944. "type": "Record<string, EventData> | undefined",
  2945. "isOptional": true,
  2946. "isRestParam": false
  2947. }
  2948. ],
  2949. "isNewType": false,
  2950. "returnType": "Promise<void>",
  2951. "generics": [],
  2952. "name": "dispatchEvent",
  2953. "description": "Dispatches an event with a particular name.",
  2954. "entryType": "function",
  2955. "jsdocTags": [
  2956. {
  2957. "name": "param",
  2958. "comment": "Name of the event to be dispatched."
  2959. }
  2960. ],
  2961. "rawComment": "/**\n * Dispatches an event with a particular name.\n * @param name Name of the event to be dispatched.\n */"
  2962. },
  2963. "entryType": "function",
  2964. "description": "Dispatches an event with a particular name.",
  2965. "jsdocTags": [
  2966. {
  2967. "name": "param",
  2968. "comment": "Name of the event to be dispatched."
  2969. }
  2970. ],
  2971. "rawComment": "/**\n * Dispatches an event with a particular name.\n * @param name Name of the event to be dispatched.\n */",
  2972. "memberType": "method",
  2973. "memberTags": []
  2974. }
  2975. ],
  2976. "generics": [],
  2977. "description": "This acts as a common interface for DOM elements across both unit and e2e tests. It is the\ninterface through which the ComponentHarness interacts with the component's DOM.",
  2978. "jsdocTags": [],
  2979. "rawComment": "/**\n * This acts as a common interface for DOM elements across both unit and e2e tests. It is the\n * interface through which the ComponentHarness interacts with the component's DOM.\n */",
  2980. "implements": [],
  2981. "source": {
  2982. "filePath": "/src/cdk/testing/test-element.ts",
  2983. "startLine": 75,
  2984. "endLine": 181
  2985. }
  2986. },
  2987. {
  2988. "name": "stopHandlingAutoChangeDetectionStatus",
  2989. "signatures": [
  2990. {
  2991. "name": "stopHandlingAutoChangeDetectionStatus",
  2992. "entryType": "function",
  2993. "description": "Allows a `HarnessEnvironment` to stop handling auto change detection status changes.",
  2994. "generics": [],
  2995. "isNewType": false,
  2996. "jsdocTags": [],
  2997. "params": [],
  2998. "rawComment": "/** Allows a `HarnessEnvironment` to stop handling auto change detection status changes. */",
  2999. "returnType": "void"
  3000. }
  3001. ],
  3002. "implementation": {
  3003. "params": [],
  3004. "isNewType": false,
  3005. "returnType": "void",
  3006. "generics": [],
  3007. "name": "stopHandlingAutoChangeDetectionStatus",
  3008. "description": "Allows a `HarnessEnvironment` to stop handling auto change detection status changes.",
  3009. "entryType": "function",
  3010. "jsdocTags": [],
  3011. "rawComment": "/** Allows a `HarnessEnvironment` to stop handling auto change detection status changes. */"
  3012. },
  3013. "entryType": "function",
  3014. "description": "Allows a `HarnessEnvironment` to stop handling auto change detection status changes.",
  3015. "jsdocTags": [],
  3016. "rawComment": "/** Allows a `HarnessEnvironment` to stop handling auto change detection status changes. */",
  3017. "source": {
  3018. "filePath": "src/cdk/testing/change-detection.ts",
  3019. "startLine": 57,
  3020. "endLine": 60
  3021. }
  3022. },
  3023. {
  3024. "name": "HarnessLoader",
  3025. "isAbstract": false,
  3026. "entryType": "interface",
  3027. "members": [
  3028. {
  3029. "name": "getChildLoader",
  3030. "signatures": [],
  3031. "implementation": {
  3032. "params": [
  3033. {
  3034. "name": "selector",
  3035. "description": "The selector for the root element of the new `HarnessLoader`",
  3036. "type": "string",
  3037. "isOptional": false,
  3038. "isRestParam": false
  3039. }
  3040. ],
  3041. "isNewType": false,
  3042. "returnType": "Promise<HarnessLoader>",
  3043. "generics": [],
  3044. "name": "getChildLoader",
  3045. "description": "Searches for an element with the given selector under the current instances's root element,\nand returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\nselector, the first is used. If no elements match, an error is thrown.",
  3046. "entryType": "function",
  3047. "jsdocTags": [
  3048. {
  3049. "name": "param",
  3050. "comment": "The selector for the root element of the new `HarnessLoader`"
  3051. },
  3052. {
  3053. "name": "return",
  3054. "comment": "A `HarnessLoader` rooted at the element matching the given selector."
  3055. },
  3056. {
  3057. "name": "throws",
  3058. "comment": "If a matching element can't be found."
  3059. }
  3060. ],
  3061. "rawComment": "/**\n * Searches for an element with the given selector under the current instances's root element,\n * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\n * selector, the first is used. If no elements match, an error is thrown.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A `HarnessLoader` rooted at the element matching the given selector.\n * @throws If a matching element can't be found.\n */"
  3062. },
  3063. "entryType": "function",
  3064. "description": "Searches for an element with the given selector under the current instances's root element,\nand returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\nselector, the first is used. If no elements match, an error is thrown.",
  3065. "jsdocTags": [
  3066. {
  3067. "name": "param",
  3068. "comment": "The selector for the root element of the new `HarnessLoader`"
  3069. },
  3070. {
  3071. "name": "return",
  3072. "comment": "A `HarnessLoader` rooted at the element matching the given selector."
  3073. },
  3074. {
  3075. "name": "throws",
  3076. "comment": "If a matching element can't be found."
  3077. }
  3078. ],
  3079. "rawComment": "/**\n * Searches for an element with the given selector under the current instances's root element,\n * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\n * selector, the first is used. If no elements match, an error is thrown.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A `HarnessLoader` rooted at the element matching the given selector.\n * @throws If a matching element can't be found.\n */",
  3080. "memberType": "method",
  3081. "memberTags": []
  3082. },
  3083. {
  3084. "name": "getAllChildLoaders",
  3085. "signatures": [],
  3086. "implementation": {
  3087. "params": [
  3088. {
  3089. "name": "selector",
  3090. "description": "The selector for the root element of the new `HarnessLoader`",
  3091. "type": "string",
  3092. "isOptional": false,
  3093. "isRestParam": false
  3094. }
  3095. ],
  3096. "isNewType": false,
  3097. "returnType": "Promise<HarnessLoader[]>",
  3098. "generics": [],
  3099. "name": "getAllChildLoaders",
  3100. "description": "Searches for all elements with the given selector under the current instances's root element,\nand returns an array of `HarnessLoader`s, one for each matching element, rooted at that\nelement.",
  3101. "entryType": "function",
  3102. "jsdocTags": [
  3103. {
  3104. "name": "param",
  3105. "comment": "The selector for the root element of the new `HarnessLoader`"
  3106. },
  3107. {
  3108. "name": "return",
  3109. "comment": "A list of `HarnessLoader`s, one for each matching element, rooted at that element."
  3110. }
  3111. ],
  3112. "rawComment": "/**\n * Searches for all elements with the given selector under the current instances's root element,\n * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that\n * element.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.\n */"
  3113. },
  3114. "entryType": "function",
  3115. "description": "Searches for all elements with the given selector under the current instances's root element,\nand returns an array of `HarnessLoader`s, one for each matching element, rooted at that\nelement.",
  3116. "jsdocTags": [
  3117. {
  3118. "name": "param",
  3119. "comment": "The selector for the root element of the new `HarnessLoader`"
  3120. },
  3121. {
  3122. "name": "return",
  3123. "comment": "A list of `HarnessLoader`s, one for each matching element, rooted at that element."
  3124. }
  3125. ],
  3126. "rawComment": "/**\n * Searches for all elements with the given selector under the current instances's root element,\n * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that\n * element.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.\n */",
  3127. "memberType": "method",
  3128. "memberTags": []
  3129. },
  3130. {
  3131. "name": "getHarness",
  3132. "signatures": [],
  3133. "implementation": {
  3134. "params": [
  3135. {
  3136. "name": "query",
  3137. "description": "A query for a harness to create",
  3138. "type": "HarnessQuery<T>",
  3139. "isOptional": false,
  3140. "isRestParam": false
  3141. }
  3142. ],
  3143. "isNewType": false,
  3144. "returnType": "Promise<T>",
  3145. "generics": [
  3146. {
  3147. "name": "T",
  3148. "constraint": "ComponentHarness"
  3149. }
  3150. ],
  3151. "name": "getHarness",
  3152. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessLoader`'s root element, and returns a `ComponentHarness` for that instance. If multiple\nmatching components are found, a harness for the first one is returned. If no matching\ncomponent is found, an error is thrown.",
  3153. "entryType": "function",
  3154. "jsdocTags": [
  3155. {
  3156. "name": "param",
  3157. "comment": "A query for a harness to create"
  3158. },
  3159. {
  3160. "name": "return",
  3161. "comment": "An instance of the given harness type"
  3162. },
  3163. {
  3164. "name": "throws",
  3165. "comment": "If a matching component instance can't be found."
  3166. }
  3167. ],
  3168. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessLoader`'s root element, and returns a `ComponentHarness` for that instance. If multiple\n * matching components are found, a harness for the first one is returned. If no matching\n * component is found, an error is thrown.\n * @param query A query for a harness to create\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */"
  3169. },
  3170. "entryType": "function",
  3171. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessLoader`'s root element, and returns a `ComponentHarness` for that instance. If multiple\nmatching components are found, a harness for the first one is returned. If no matching\ncomponent is found, an error is thrown.",
  3172. "jsdocTags": [
  3173. {
  3174. "name": "param",
  3175. "comment": "A query for a harness to create"
  3176. },
  3177. {
  3178. "name": "return",
  3179. "comment": "An instance of the given harness type"
  3180. },
  3181. {
  3182. "name": "throws",
  3183. "comment": "If a matching component instance can't be found."
  3184. }
  3185. ],
  3186. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessLoader`'s root element, and returns a `ComponentHarness` for that instance. If multiple\n * matching components are found, a harness for the first one is returned. If no matching\n * component is found, an error is thrown.\n * @param query A query for a harness to create\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */",
  3187. "memberType": "method",
  3188. "memberTags": []
  3189. },
  3190. {
  3191. "name": "getHarnessOrNull",
  3192. "signatures": [],
  3193. "implementation": {
  3194. "params": [
  3195. {
  3196. "name": "query",
  3197. "description": "A query for a harness to create",
  3198. "type": "HarnessQuery<T>",
  3199. "isOptional": false,
  3200. "isRestParam": false
  3201. }
  3202. ],
  3203. "isNewType": false,
  3204. "returnType": "Promise<T | null>",
  3205. "generics": [
  3206. {
  3207. "name": "T",
  3208. "constraint": "ComponentHarness"
  3209. }
  3210. ],
  3211. "name": "getHarnessOrNull",
  3212. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessLoader`'s root element, and returns a `ComponentHarness` for that instance. If multiple\nmatching components are found, a harness for the first one is returned. If no matching\ncomponent is found, null is returned.",
  3213. "entryType": "function",
  3214. "jsdocTags": [
  3215. {
  3216. "name": "param",
  3217. "comment": "A query for a harness to create"
  3218. },
  3219. {
  3220. "name": "return",
  3221. "comment": "An instance of the given harness type (or null if not found)."
  3222. }
  3223. ],
  3224. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessLoader`'s root element, and returns a `ComponentHarness` for that instance. If multiple\n * matching components are found, a harness for the first one is returned. If no matching\n * component is found, null is returned.\n * @param query A query for a harness to create\n * @return An instance of the given harness type (or null if not found).\n */"
  3225. },
  3226. "entryType": "function",
  3227. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessLoader`'s root element, and returns a `ComponentHarness` for that instance. If multiple\nmatching components are found, a harness for the first one is returned. If no matching\ncomponent is found, null is returned.",
  3228. "jsdocTags": [
  3229. {
  3230. "name": "param",
  3231. "comment": "A query for a harness to create"
  3232. },
  3233. {
  3234. "name": "return",
  3235. "comment": "An instance of the given harness type (or null if not found)."
  3236. }
  3237. ],
  3238. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessLoader`'s root element, and returns a `ComponentHarness` for that instance. If multiple\n * matching components are found, a harness for the first one is returned. If no matching\n * component is found, null is returned.\n * @param query A query for a harness to create\n * @return An instance of the given harness type (or null if not found).\n */",
  3239. "memberType": "method",
  3240. "memberTags": []
  3241. },
  3242. {
  3243. "name": "getAllHarnesses",
  3244. "signatures": [],
  3245. "implementation": {
  3246. "params": [
  3247. {
  3248. "name": "query",
  3249. "description": "A query for a harness to create",
  3250. "type": "HarnessQuery<T>",
  3251. "isOptional": false,
  3252. "isRestParam": false
  3253. }
  3254. ],
  3255. "isNewType": false,
  3256. "returnType": "Promise<T[]>",
  3257. "generics": [
  3258. {
  3259. "name": "T",
  3260. "constraint": "ComponentHarness"
  3261. }
  3262. ],
  3263. "name": "getAllHarnesses",
  3264. "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessLoader`'s root element, and returns a list `ComponentHarness` for each instance.",
  3265. "entryType": "function",
  3266. "jsdocTags": [
  3267. {
  3268. "name": "param",
  3269. "comment": "A query for a harness to create"
  3270. },
  3271. {
  3272. "name": "return",
  3273. "comment": "A list instances of the given harness type."
  3274. }
  3275. ],
  3276. "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessLoader`'s root element, and returns a list `ComponentHarness` for each instance.\n * @param query A query for a harness to create\n * @return A list instances of the given harness type.\n */"
  3277. },
  3278. "entryType": "function",
  3279. "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessLoader`'s root element, and returns a list `ComponentHarness` for each instance.",
  3280. "jsdocTags": [
  3281. {
  3282. "name": "param",
  3283. "comment": "A query for a harness to create"
  3284. },
  3285. {
  3286. "name": "return",
  3287. "comment": "A list instances of the given harness type."
  3288. }
  3289. ],
  3290. "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessLoader`'s root element, and returns a list `ComponentHarness` for each instance.\n * @param query A query for a harness to create\n * @return A list instances of the given harness type.\n */",
  3291. "memberType": "method",
  3292. "memberTags": []
  3293. },
  3294. {
  3295. "name": "hasHarness",
  3296. "signatures": [],
  3297. "implementation": {
  3298. "params": [
  3299. {
  3300. "name": "query",
  3301. "description": "A query for a harness to create",
  3302. "type": "HarnessQuery<T>",
  3303. "isOptional": false,
  3304. "isRestParam": false
  3305. }
  3306. ],
  3307. "isNewType": false,
  3308. "returnType": "Promise<boolean>",
  3309. "generics": [
  3310. {
  3311. "name": "T",
  3312. "constraint": "ComponentHarness"
  3313. }
  3314. ],
  3315. "name": "hasHarness",
  3316. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessLoader`'s root element, and returns a boolean indicating if any were found.",
  3317. "entryType": "function",
  3318. "jsdocTags": [
  3319. {
  3320. "name": "param",
  3321. "comment": "A query for a harness to create"
  3322. },
  3323. {
  3324. "name": "return",
  3325. "comment": "A boolean indicating if an instance was found."
  3326. }
  3327. ],
  3328. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessLoader`'s root element, and returns a boolean indicating if any were found.\n * @param query A query for a harness to create\n * @return A boolean indicating if an instance was found.\n */"
  3329. },
  3330. "entryType": "function",
  3331. "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessLoader`'s root element, and returns a boolean indicating if any were found.",
  3332. "jsdocTags": [
  3333. {
  3334. "name": "param",
  3335. "comment": "A query for a harness to create"
  3336. },
  3337. {
  3338. "name": "return",
  3339. "comment": "A boolean indicating if an instance was found."
  3340. }
  3341. ],
  3342. "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessLoader`'s root element, and returns a boolean indicating if any were found.\n * @param query A query for a harness to create\n * @return A boolean indicating if an instance was found.\n */",
  3343. "memberType": "method",
  3344. "memberTags": []
  3345. }
  3346. ],
  3347. "generics": [],
  3348. "description": "Interface used to load ComponentHarness objects. This interface is used by test authors to\ninstantiate `ComponentHarness`es.",
  3349. "jsdocTags": [],
  3350. "rawComment": "/**\n * Interface used to load ComponentHarness objects. This interface is used by test authors to\n * instantiate `ComponentHarness`es.\n */",
  3351. "implements": [],
  3352. "source": {
  3353. "filePath": "src/cdk/testing/component-harness.ts",
  3354. "startLine": 81,
  3355. "endLine": 137
  3356. }
  3357. },
  3358. {
  3359. "name": "manualChangeDetection",
  3360. "signatures": [
  3361. {
  3362. "name": "manualChangeDetection",
  3363. "entryType": "function",
  3364. "description": "Disables the harness system's auto change detection for the duration of the given function.",
  3365. "generics": [
  3366. {
  3367. "name": "T"
  3368. }
  3369. ],
  3370. "isNewType": false,
  3371. "jsdocTags": [
  3372. {
  3373. "name": "param",
  3374. "comment": "The function to disable auto change detection for."
  3375. },
  3376. {
  3377. "name": "return",
  3378. "comment": "The result of the given function."
  3379. }
  3380. ],
  3381. "params": [
  3382. {
  3383. "name": "fn",
  3384. "description": "The function to disable auto change detection for.",
  3385. "type": "() => Promise<T>",
  3386. "isOptional": false,
  3387. "isRestParam": false
  3388. }
  3389. ],
  3390. "rawComment": "/**\n * Disables the harness system's auto change detection for the duration of the given function.\n * @param fn The function to disable auto change detection for.\n * @return The result of the given function.\n */",
  3391. "returnType": "Promise<T>"
  3392. }
  3393. ],
  3394. "implementation": {
  3395. "params": [
  3396. {
  3397. "name": "fn",
  3398. "description": "The function to disable auto change detection for.",
  3399. "type": "() => Promise<T>",
  3400. "isOptional": false,
  3401. "isRestParam": false
  3402. }
  3403. ],
  3404. "isNewType": false,
  3405. "returnType": "Promise<T>",
  3406. "generics": [
  3407. {
  3408. "name": "T"
  3409. }
  3410. ],
  3411. "name": "manualChangeDetection",
  3412. "description": "Disables the harness system's auto change detection for the duration of the given function.",
  3413. "entryType": "function",
  3414. "jsdocTags": [
  3415. {
  3416. "name": "param",
  3417. "comment": "The function to disable auto change detection for."
  3418. },
  3419. {
  3420. "name": "return",
  3421. "comment": "The result of the given function."
  3422. }
  3423. ],
  3424. "rawComment": "/**\n * Disables the harness system's auto change detection for the duration of the given function.\n * @param fn The function to disable auto change detection for.\n * @return The result of the given function.\n */"
  3425. },
  3426. "entryType": "function",
  3427. "description": "Disables the harness system's auto change detection for the duration of the given function.",
  3428. "jsdocTags": [
  3429. {
  3430. "name": "param",
  3431. "comment": "The function to disable auto change detection for."
  3432. },
  3433. {
  3434. "name": "return",
  3435. "comment": "The result of the given function."
  3436. }
  3437. ],
  3438. "rawComment": "/**\n * Disables the harness system's auto change detection for the duration of the given function.\n * @param fn The function to disable auto change detection for.\n * @return The result of the given function.\n */",
  3439. "source": {
  3440. "filePath": "src/cdk/testing/change-detection.ts",
  3441. "startLine": 118,
  3442. "endLine": 120
  3443. }
  3444. },
  3445. {
  3446. "name": "parallel",
  3447. "signatures": [
  3448. {
  3449. "name": "parallel",
  3450. "entryType": "function",
  3451. "description": "Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\ndetection over the entire operation such that change detection occurs exactly once before\nresolving the values and once after.",
  3452. "generics": [
  3453. {
  3454. "name": "T1"
  3455. },
  3456. {
  3457. "name": "T2"
  3458. },
  3459. {
  3460. "name": "T3"
  3461. },
  3462. {
  3463. "name": "T4"
  3464. },
  3465. {
  3466. "name": "T5"
  3467. }
  3468. ],
  3469. "isNewType": false,
  3470. "jsdocTags": [
  3471. {
  3472. "name": "param",
  3473. "comment": "A getter for the async values to resolve in parallel with batched change detection."
  3474. },
  3475. {
  3476. "name": "return",
  3477. "comment": "The resolved values."
  3478. }
  3479. ],
  3480. "params": [
  3481. {
  3482. "name": "values",
  3483. "description": "A getter for the async values to resolve in parallel with batched change detection.",
  3484. "type": "() => [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>]",
  3485. "isOptional": false,
  3486. "isRestParam": false
  3487. }
  3488. ],
  3489. "rawComment": "/**\n * Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\n * detection over the entire operation such that change detection occurs exactly once before\n * resolving the values and once after.\n * @param values A getter for the async values to resolve in parallel with batched change detection.\n * @return The resolved values.\n */",
  3490. "returnType": "Promise<[T1, T2, T3, T4, T5]>"
  3491. },
  3492. {
  3493. "name": "parallel",
  3494. "entryType": "function",
  3495. "description": "Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\ndetection over the entire operation such that change detection occurs exactly once before\nresolving the values and once after.",
  3496. "generics": [
  3497. {
  3498. "name": "T1"
  3499. },
  3500. {
  3501. "name": "T2"
  3502. },
  3503. {
  3504. "name": "T3"
  3505. },
  3506. {
  3507. "name": "T4"
  3508. }
  3509. ],
  3510. "isNewType": false,
  3511. "jsdocTags": [
  3512. {
  3513. "name": "param",
  3514. "comment": "A getter for the async values to resolve in parallel with batched change detection."
  3515. },
  3516. {
  3517. "name": "return",
  3518. "comment": "The resolved values."
  3519. }
  3520. ],
  3521. "params": [
  3522. {
  3523. "name": "values",
  3524. "description": "A getter for the async values to resolve in parallel with batched change detection.",
  3525. "type": "() => [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]",
  3526. "isOptional": false,
  3527. "isRestParam": false
  3528. }
  3529. ],
  3530. "rawComment": "/**\n * Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\n * detection over the entire operation such that change detection occurs exactly once before\n * resolving the values and once after.\n * @param values A getter for the async values to resolve in parallel with batched change detection.\n * @return The resolved values.\n */",
  3531. "returnType": "Promise<[T1, T2, T3, T4]>"
  3532. },
  3533. {
  3534. "name": "parallel",
  3535. "entryType": "function",
  3536. "description": "Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\ndetection over the entire operation such that change detection occurs exactly once before\nresolving the values and once after.",
  3537. "generics": [
  3538. {
  3539. "name": "T1"
  3540. },
  3541. {
  3542. "name": "T2"
  3543. },
  3544. {
  3545. "name": "T3"
  3546. }
  3547. ],
  3548. "isNewType": false,
  3549. "jsdocTags": [
  3550. {
  3551. "name": "param",
  3552. "comment": "A getter for the async values to resolve in parallel with batched change detection."
  3553. },
  3554. {
  3555. "name": "return",
  3556. "comment": "The resolved values."
  3557. }
  3558. ],
  3559. "params": [
  3560. {
  3561. "name": "values",
  3562. "description": "A getter for the async values to resolve in parallel with batched change detection.",
  3563. "type": "() => [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]",
  3564. "isOptional": false,
  3565. "isRestParam": false
  3566. }
  3567. ],
  3568. "rawComment": "/**\n * Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\n * detection over the entire operation such that change detection occurs exactly once before\n * resolving the values and once after.\n * @param values A getter for the async values to resolve in parallel with batched change detection.\n * @return The resolved values.\n */",
  3569. "returnType": "Promise<[T1, T2, T3]>"
  3570. },
  3571. {
  3572. "name": "parallel",
  3573. "entryType": "function",
  3574. "description": "Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\ndetection over the entire operation such that change detection occurs exactly once before\nresolving the values and once after.",
  3575. "generics": [
  3576. {
  3577. "name": "T1"
  3578. },
  3579. {
  3580. "name": "T2"
  3581. }
  3582. ],
  3583. "isNewType": false,
  3584. "jsdocTags": [
  3585. {
  3586. "name": "param",
  3587. "comment": "A getter for the async values to resolve in parallel with batched change detection."
  3588. },
  3589. {
  3590. "name": "return",
  3591. "comment": "The resolved values."
  3592. }
  3593. ],
  3594. "params": [
  3595. {
  3596. "name": "values",
  3597. "description": "A getter for the async values to resolve in parallel with batched change detection.",
  3598. "type": "() => [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]",
  3599. "isOptional": false,
  3600. "isRestParam": false
  3601. }
  3602. ],
  3603. "rawComment": "/**\n * Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\n * detection over the entire operation such that change detection occurs exactly once before\n * resolving the values and once after.\n * @param values A getter for the async values to resolve in parallel with batched change detection.\n * @return The resolved values.\n */",
  3604. "returnType": "Promise<[T1, T2]>"
  3605. },
  3606. {
  3607. "name": "parallel",
  3608. "entryType": "function",
  3609. "description": "Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\ndetection over the entire operation such that change detection occurs exactly once before\nresolving the values and once after.",
  3610. "generics": [
  3611. {
  3612. "name": "T"
  3613. }
  3614. ],
  3615. "isNewType": false,
  3616. "jsdocTags": [
  3617. {
  3618. "name": "param",
  3619. "comment": "A getter for the async values to resolve in parallel with batched change detection."
  3620. },
  3621. {
  3622. "name": "return",
  3623. "comment": "The resolved values."
  3624. }
  3625. ],
  3626. "params": [
  3627. {
  3628. "name": "values",
  3629. "description": "A getter for the async values to resolve in parallel with batched change detection.",
  3630. "type": "() => (T | PromiseLike<T>)[]",
  3631. "isOptional": false,
  3632. "isRestParam": false
  3633. }
  3634. ],
  3635. "rawComment": "/**\n * Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\n * detection over the entire operation such that change detection occurs exactly once before\n * resolving the values and once after.\n * @param values A getter for the async values to resolve in parallel with batched change detection.\n * @return The resolved values.\n */",
  3636. "returnType": "Promise<T[]>"
  3637. }
  3638. ],
  3639. "implementation": {
  3640. "params": [
  3641. {
  3642. "name": "values",
  3643. "description": "A getter for the async values to resolve in parallel with batched change detection.",
  3644. "type": "() => Iterable<T | PromiseLike<T>>",
  3645. "isOptional": false,
  3646. "isRestParam": false
  3647. }
  3648. ],
  3649. "isNewType": false,
  3650. "returnType": "Promise<[T1, T2, T3, T4, T5]>",
  3651. "generics": [
  3652. {
  3653. "name": "T"
  3654. }
  3655. ],
  3656. "name": "parallel",
  3657. "description": "Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\ndetection over the entire operation such that change detection occurs exactly once before\nresolving the values and once after.",
  3658. "entryType": "function",
  3659. "jsdocTags": [
  3660. {
  3661. "name": "param",
  3662. "comment": "A getter for the async values to resolve in parallel with batched change detection."
  3663. },
  3664. {
  3665. "name": "return",
  3666. "comment": "The resolved values."
  3667. }
  3668. ],
  3669. "rawComment": "/**\n * Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\n * detection over the entire operation such that change detection occurs exactly once before\n * resolving the values and once after.\n * @param values A getter for the async values to resolve in parallel with batched change detection.\n * @return The resolved values.\n */"
  3670. },
  3671. "entryType": "function",
  3672. "description": "Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\ndetection over the entire operation such that change detection occurs exactly once before\nresolving the values and once after.",
  3673. "jsdocTags": [
  3674. {
  3675. "name": "param",
  3676. "comment": "A getter for the async values to resolve in parallel with batched change detection."
  3677. },
  3678. {
  3679. "name": "return",
  3680. "comment": "The resolved values."
  3681. }
  3682. ],
  3683. "rawComment": "/**\n * Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\n * detection over the entire operation such that change detection occurs exactly once before\n * resolving the values and once after.\n * @param values A getter for the async values to resolve in parallel with batched change detection.\n * @return The resolved values.\n */",
  3684. "source": {
  3685. "filePath": "src/cdk/testing/change-detection.ts",
  3686. "startLine": 129,
  3687. "endLine": 137
  3688. }
  3689. },
  3690. {
  3691. "name": "LocatorFactory",
  3692. "isAbstract": false,
  3693. "entryType": "interface",
  3694. "members": [
  3695. {
  3696. "name": "documentRootLocatorFactory",
  3697. "signatures": [],
  3698. "implementation": {
  3699. "params": [],
  3700. "isNewType": false,
  3701. "returnType": "LocatorFactory",
  3702. "generics": [],
  3703. "name": "documentRootLocatorFactory",
  3704. "description": "Gets a locator factory rooted at the document root.",
  3705. "entryType": "function",
  3706. "jsdocTags": [],
  3707. "rawComment": "/** Gets a locator factory rooted at the document root. */"
  3708. },
  3709. "entryType": "function",
  3710. "description": "Gets a locator factory rooted at the document root.",
  3711. "jsdocTags": [],
  3712. "rawComment": "/** Gets a locator factory rooted at the document root. */",
  3713. "memberType": "method",
  3714. "memberTags": []
  3715. },
  3716. {
  3717. "name": "rootElement",
  3718. "type": "TestElement",
  3719. "memberType": "property",
  3720. "memberTags": [],
  3721. "description": "The root element of this `LocatorFactory` as a `TestElement`.",
  3722. "jsdocTags": []
  3723. },
  3724. {
  3725. "name": "locatorFor",
  3726. "signatures": [],
  3727. "implementation": {
  3728. "params": [
  3729. {
  3730. "name": "queries",
  3731. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  3732. "type": "T",
  3733. "isOptional": false,
  3734. "isRestParam": true
  3735. }
  3736. ],
  3737. "isNewType": false,
  3738. "returnType": "() => Promise<LocatorFnResult<T>>",
  3739. "generics": [
  3740. {
  3741. "name": "T",
  3742. "constraint": "(HarnessQuery<any> | string)[]"
  3743. }
  3744. ],
  3745. "name": "locatorFor",
  3746. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `LocatorFactory`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorFor('span')() // Throws because the `Promise` rejects\n```",
  3747. "entryType": "function",
  3748. "jsdocTags": [
  3749. {
  3750. "name": "param",
  3751. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  3752. },
  3753. {
  3754. "name": "return",
  3755. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query."
  3756. }
  3757. ],
  3758. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `LocatorFactory`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */"
  3759. },
  3760. "entryType": "function",
  3761. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `LocatorFactory`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorFor('span')() // Throws because the `Promise` rejects\n```",
  3762. "jsdocTags": [
  3763. {
  3764. "name": "param",
  3765. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  3766. },
  3767. {
  3768. "name": "return",
  3769. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query."
  3770. }
  3771. ],
  3772. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `LocatorFactory`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */",
  3773. "memberType": "method",
  3774. "memberTags": []
  3775. },
  3776. {
  3777. "name": "locatorForOptional",
  3778. "signatures": [],
  3779. "implementation": {
  3780. "params": [
  3781. {
  3782. "name": "queries",
  3783. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  3784. "type": "T",
  3785. "isOptional": false,
  3786. "isRestParam": true
  3787. }
  3788. ],
  3789. "isNewType": false,
  3790. "returnType": "() => Promise<LocatorFnResult<T> | null>",
  3791. "generics": [
  3792. {
  3793. "name": "T",
  3794. "constraint": "(HarnessQuery<any> | string)[]"
  3795. }
  3796. ],
  3797. "name": "locatorForOptional",
  3798. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `LocatorFactory`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorForOptional('span')() // Gets `null`\n```",
  3799. "entryType": "function",
  3800. "jsdocTags": [
  3801. {
  3802. "name": "param",
  3803. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  3804. },
  3805. {
  3806. "name": "return",
  3807. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null."
  3808. }
  3809. ],
  3810. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `LocatorFactory`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */"
  3811. },
  3812. "entryType": "function",
  3813. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `LocatorFactory`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorForOptional('span')() // Gets `null`\n```",
  3814. "jsdocTags": [
  3815. {
  3816. "name": "param",
  3817. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  3818. },
  3819. {
  3820. "name": "return",
  3821. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null."
  3822. }
  3823. ],
  3824. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `LocatorFactory`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */",
  3825. "memberType": "method",
  3826. "memberTags": []
  3827. },
  3828. {
  3829. "name": "locatorForAll",
  3830. "signatures": [],
  3831. "implementation": {
  3832. "params": [
  3833. {
  3834. "name": "queries",
  3835. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  3836. "type": "T",
  3837. "isOptional": false,
  3838. "isRestParam": true
  3839. }
  3840. ],
  3841. "isNewType": false,
  3842. "returnType": "() => Promise<LocatorFnResult<T>[]>",
  3843. "generics": [
  3844. {
  3845. "name": "T",
  3846. "constraint": "(HarnessQuery<any> | string)[]"
  3847. }
  3848. ],
  3849. "name": "locatorForAll",
  3850. "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the root element of this `LocatorFactory`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait lf.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait lf.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait lf.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait lf.locatorForAll('span')()\n```",
  3851. "entryType": "function",
  3852. "jsdocTags": [
  3853. {
  3854. "name": "param",
  3855. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  3856. },
  3857. {
  3858. "name": "return",
  3859. "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query."
  3860. }
  3861. ],
  3862. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the root element of this `LocatorFactory`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await lf.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await lf.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await lf.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await lf.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */"
  3863. },
  3864. "entryType": "function",
  3865. "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the root element of this `LocatorFactory`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait lf.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait lf.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait lf.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait lf.locatorForAll('span')()\n```",
  3866. "jsdocTags": [
  3867. {
  3868. "name": "param",
  3869. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  3870. },
  3871. {
  3872. "name": "return",
  3873. "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query."
  3874. }
  3875. ],
  3876. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the root element of this `LocatorFactory`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await lf.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await lf.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await lf.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await lf.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */",
  3877. "memberType": "method",
  3878. "memberTags": []
  3879. },
  3880. {
  3881. "name": "rootHarnessLoader",
  3882. "signatures": [],
  3883. "implementation": {
  3884. "params": [],
  3885. "isNewType": false,
  3886. "returnType": "Promise<HarnessLoader>",
  3887. "generics": [],
  3888. "name": "rootHarnessLoader",
  3889. "description": "",
  3890. "entryType": "function",
  3891. "jsdocTags": [
  3892. {
  3893. "name": "return",
  3894. "comment": "A `HarnessLoader` rooted at the root element of this `LocatorFactory`."
  3895. }
  3896. ],
  3897. "rawComment": "/** @return A `HarnessLoader` rooted at the root element of this `LocatorFactory`. */"
  3898. },
  3899. "entryType": "function",
  3900. "description": "",
  3901. "jsdocTags": [
  3902. {
  3903. "name": "return",
  3904. "comment": "A `HarnessLoader` rooted at the root element of this `LocatorFactory`."
  3905. }
  3906. ],
  3907. "rawComment": "/** @return A `HarnessLoader` rooted at the root element of this `LocatorFactory`. */",
  3908. "memberType": "method",
  3909. "memberTags": []
  3910. },
  3911. {
  3912. "name": "harnessLoaderFor",
  3913. "signatures": [],
  3914. "implementation": {
  3915. "params": [
  3916. {
  3917. "name": "selector",
  3918. "description": "The selector for the root element.",
  3919. "type": "string",
  3920. "isOptional": false,
  3921. "isRestParam": false
  3922. }
  3923. ],
  3924. "isNewType": false,
  3925. "returnType": "Promise<HarnessLoader>",
  3926. "generics": [],
  3927. "name": "harnessLoaderFor",
  3928. "description": "Gets a `HarnessLoader` instance for an element under the root of this `LocatorFactory`.",
  3929. "entryType": "function",
  3930. "jsdocTags": [
  3931. {
  3932. "name": "param",
  3933. "comment": "The selector for the root element."
  3934. },
  3935. {
  3936. "name": "return",
  3937. "comment": "A `HarnessLoader` rooted at the first element matching the given selector."
  3938. },
  3939. {
  3940. "name": "throws",
  3941. "comment": "If no matching element is found for the given selector."
  3942. }
  3943. ],
  3944. "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `LocatorFactory`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector.\n * @throws If no matching element is found for the given selector.\n */"
  3945. },
  3946. "entryType": "function",
  3947. "description": "Gets a `HarnessLoader` instance for an element under the root of this `LocatorFactory`.",
  3948. "jsdocTags": [
  3949. {
  3950. "name": "param",
  3951. "comment": "The selector for the root element."
  3952. },
  3953. {
  3954. "name": "return",
  3955. "comment": "A `HarnessLoader` rooted at the first element matching the given selector."
  3956. },
  3957. {
  3958. "name": "throws",
  3959. "comment": "If no matching element is found for the given selector."
  3960. }
  3961. ],
  3962. "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `LocatorFactory`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector.\n * @throws If no matching element is found for the given selector.\n */",
  3963. "memberType": "method",
  3964. "memberTags": []
  3965. },
  3966. {
  3967. "name": "harnessLoaderForOptional",
  3968. "signatures": [],
  3969. "implementation": {
  3970. "params": [
  3971. {
  3972. "name": "selector",
  3973. "description": "The selector for the root element.",
  3974. "type": "string",
  3975. "isOptional": false,
  3976. "isRestParam": false
  3977. }
  3978. ],
  3979. "isNewType": false,
  3980. "returnType": "Promise<HarnessLoader | null>",
  3981. "generics": [],
  3982. "name": "harnessLoaderForOptional",
  3983. "description": "Gets a `HarnessLoader` instance for an element under the root of this `LocatorFactory`",
  3984. "entryType": "function",
  3985. "jsdocTags": [
  3986. {
  3987. "name": "param",
  3988. "comment": "The selector for the root element."
  3989. },
  3990. {
  3991. "name": "return",
  3992. "comment": "A `HarnessLoader` rooted at the first element matching the given selector, or null if\nno matching element is found."
  3993. }
  3994. ],
  3995. "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `LocatorFactory`\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if\n * no matching element is found.\n */"
  3996. },
  3997. "entryType": "function",
  3998. "description": "Gets a `HarnessLoader` instance for an element under the root of this `LocatorFactory`",
  3999. "jsdocTags": [
  4000. {
  4001. "name": "param",
  4002. "comment": "The selector for the root element."
  4003. },
  4004. {
  4005. "name": "return",
  4006. "comment": "A `HarnessLoader` rooted at the first element matching the given selector, or null if\nno matching element is found."
  4007. }
  4008. ],
  4009. "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `LocatorFactory`\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if\n * no matching element is found.\n */",
  4010. "memberType": "method",
  4011. "memberTags": []
  4012. },
  4013. {
  4014. "name": "harnessLoaderForAll",
  4015. "signatures": [],
  4016. "implementation": {
  4017. "params": [
  4018. {
  4019. "name": "selector",
  4020. "description": "The selector for the root element.",
  4021. "type": "string",
  4022. "isOptional": false,
  4023. "isRestParam": false
  4024. }
  4025. ],
  4026. "isNewType": false,
  4027. "returnType": "Promise<HarnessLoader[]>",
  4028. "generics": [],
  4029. "name": "harnessLoaderForAll",
  4030. "description": "Gets a list of `HarnessLoader` instances, one for each matching element.",
  4031. "entryType": "function",
  4032. "jsdocTags": [
  4033. {
  4034. "name": "param",
  4035. "comment": "The selector for the root element."
  4036. },
  4037. {
  4038. "name": "return",
  4039. "comment": "A list of `HarnessLoader`, one rooted at each element matching the given selector."
  4040. }
  4041. ],
  4042. "rawComment": "/**\n * Gets a list of `HarnessLoader` instances, one for each matching element.\n * @param selector The selector for the root element.\n * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.\n */"
  4043. },
  4044. "entryType": "function",
  4045. "description": "Gets a list of `HarnessLoader` instances, one for each matching element.",
  4046. "jsdocTags": [
  4047. {
  4048. "name": "param",
  4049. "comment": "The selector for the root element."
  4050. },
  4051. {
  4052. "name": "return",
  4053. "comment": "A list of `HarnessLoader`, one rooted at each element matching the given selector."
  4054. }
  4055. ],
  4056. "rawComment": "/**\n * Gets a list of `HarnessLoader` instances, one for each matching element.\n * @param selector The selector for the root element.\n * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.\n */",
  4057. "memberType": "method",
  4058. "memberTags": []
  4059. },
  4060. {
  4061. "name": "forceStabilize",
  4062. "signatures": [],
  4063. "implementation": {
  4064. "params": [],
  4065. "isNewType": false,
  4066. "returnType": "Promise<void>",
  4067. "generics": [],
  4068. "name": "forceStabilize",
  4069. "description": "Flushes change detection and async tasks captured in the Angular zone.\nIn most cases it should not be necessary to call this manually. However, there may be some edge\ncases where it is needed to fully flush animation events.",
  4070. "entryType": "function",
  4071. "jsdocTags": [],
  4072. "rawComment": "/**\n * Flushes change detection and async tasks captured in the Angular zone.\n * In most cases it should not be necessary to call this manually. However, there may be some edge\n * cases where it is needed to fully flush animation events.\n */"
  4073. },
  4074. "entryType": "function",
  4075. "description": "Flushes change detection and async tasks captured in the Angular zone.\nIn most cases it should not be necessary to call this manually. However, there may be some edge\ncases where it is needed to fully flush animation events.",
  4076. "jsdocTags": [],
  4077. "rawComment": "/**\n * Flushes change detection and async tasks captured in the Angular zone.\n * In most cases it should not be necessary to call this manually. However, there may be some edge\n * cases where it is needed to fully flush animation events.\n */",
  4078. "memberType": "method",
  4079. "memberTags": []
  4080. },
  4081. {
  4082. "name": "waitForTasksOutsideAngular",
  4083. "signatures": [],
  4084. "implementation": {
  4085. "params": [],
  4086. "isNewType": false,
  4087. "returnType": "Promise<void>",
  4088. "generics": [],
  4089. "name": "waitForTasksOutsideAngular",
  4090. "description": "Waits for all scheduled or running async tasks to complete. This allows harness\nauthors to wait for async tasks outside of the Angular zone.",
  4091. "entryType": "function",
  4092. "jsdocTags": [],
  4093. "rawComment": "/**\n * Waits for all scheduled or running async tasks to complete. This allows harness\n * authors to wait for async tasks outside of the Angular zone.\n */"
  4094. },
  4095. "entryType": "function",
  4096. "description": "Waits for all scheduled or running async tasks to complete. This allows harness\nauthors to wait for async tasks outside of the Angular zone.",
  4097. "jsdocTags": [],
  4098. "rawComment": "/**\n * Waits for all scheduled or running async tasks to complete. This allows harness\n * authors to wait for async tasks outside of the Angular zone.\n */",
  4099. "memberType": "method",
  4100. "memberTags": []
  4101. }
  4102. ],
  4103. "generics": [],
  4104. "description": "Interface used to create asynchronous locator functions used find elements and component\nharnesses. This interface is used by `ComponentHarness` authors to create locator functions for\ntheir `ComponentHarness` subclass.",
  4105. "jsdocTags": [],
  4106. "rawComment": "/**\n * Interface used to create asynchronous locator functions used find elements and component\n * harnesses. This interface is used by `ComponentHarness` authors to create locator functions for\n * their `ComponentHarness` subclass.\n */",
  4107. "implements": [],
  4108. "source": {
  4109. "filePath": "src/cdk/testing/component-harness.ts",
  4110. "startLine": 144,
  4111. "endLine": 299
  4112. }
  4113. },
  4114. {
  4115. "name": "TextOptions",
  4116. "isAbstract": false,
  4117. "entryType": "interface",
  4118. "members": [
  4119. {
  4120. "name": "exclude",
  4121. "type": "string | undefined",
  4122. "memberType": "property",
  4123. "memberTags": [
  4124. "optional"
  4125. ],
  4126. "description": "Optional selector for elements whose content should be excluded from the text string.",
  4127. "jsdocTags": []
  4128. }
  4129. ],
  4130. "generics": [],
  4131. "description": "Options that affect the text returned by `TestElement.text`.",
  4132. "jsdocTags": [],
  4133. "rawComment": "/**\n * Options that affect the text returned by `TestElement.text`.\n */",
  4134. "implements": [],
  4135. "source": {
  4136. "filePath": "/src/cdk/testing/test-element.ts",
  4137. "startLine": 186,
  4138. "endLine": 189
  4139. }
  4140. },
  4141. {
  4142. "name": "ComponentHarness",
  4143. "isAbstract": true,
  4144. "entryType": "undecorated_class",
  4145. "members": [
  4146. {
  4147. "name": "constructor",
  4148. "signatures": [],
  4149. "implementation": {
  4150. "params": [
  4151. {
  4152. "name": "locatorFactory",
  4153. "description": "",
  4154. "type": "LocatorFactory",
  4155. "isOptional": false,
  4156. "isRestParam": false
  4157. }
  4158. ],
  4159. "isNewType": false,
  4160. "returnType": "ComponentHarness",
  4161. "generics": [],
  4162. "name": "constructor",
  4163. "description": "",
  4164. "entryType": "function",
  4165. "jsdocTags": [],
  4166. "rawComment": ""
  4167. },
  4168. "entryType": "function",
  4169. "description": "",
  4170. "jsdocTags": [],
  4171. "rawComment": "",
  4172. "memberType": "method",
  4173. "memberTags": []
  4174. },
  4175. {
  4176. "name": "host",
  4177. "signatures": [
  4178. {
  4179. "name": "host",
  4180. "entryType": "function",
  4181. "description": "Gets a `Promise` for the `TestElement` representing the host element of the component.",
  4182. "generics": [],
  4183. "isNewType": false,
  4184. "jsdocTags": [],
  4185. "params": [],
  4186. "rawComment": "/** Gets a `Promise` for the `TestElement` representing the host element of the component. */",
  4187. "returnType": "Promise<TestElement>"
  4188. }
  4189. ],
  4190. "implementation": {
  4191. "params": [],
  4192. "isNewType": false,
  4193. "returnType": "Promise<TestElement>",
  4194. "generics": [],
  4195. "name": "host",
  4196. "description": "Gets a `Promise` for the `TestElement` representing the host element of the component.",
  4197. "entryType": "function",
  4198. "jsdocTags": [],
  4199. "rawComment": "/** Gets a `Promise` for the `TestElement` representing the host element of the component. */"
  4200. },
  4201. "entryType": "function",
  4202. "description": "Gets a `Promise` for the `TestElement` representing the host element of the component.",
  4203. "jsdocTags": [],
  4204. "rawComment": "/** Gets a `Promise` for the `TestElement` representing the host element of the component. */",
  4205. "memberType": "method",
  4206. "memberTags": []
  4207. },
  4208. {
  4209. "name": "documentRootLocatorFactory",
  4210. "signatures": [
  4211. {
  4212. "name": "documentRootLocatorFactory",
  4213. "entryType": "function",
  4214. "description": "Gets a `LocatorFactory` for the document root element. This factory can be used to create\nlocators for elements that a component creates outside of its own root element. (e.g. by\nappending to document.body).",
  4215. "generics": [],
  4216. "isNewType": false,
  4217. "jsdocTags": [],
  4218. "params": [],
  4219. "rawComment": "/**\n * Gets a `LocatorFactory` for the document root element. This factory can be used to create\n * locators for elements that a component creates outside of its own root element. (e.g. by\n * appending to document.body).\n */",
  4220. "returnType": "LocatorFactory"
  4221. }
  4222. ],
  4223. "implementation": {
  4224. "params": [],
  4225. "isNewType": false,
  4226. "returnType": "LocatorFactory",
  4227. "generics": [],
  4228. "name": "documentRootLocatorFactory",
  4229. "description": "Gets a `LocatorFactory` for the document root element. This factory can be used to create\nlocators for elements that a component creates outside of its own root element. (e.g. by\nappending to document.body).",
  4230. "entryType": "function",
  4231. "jsdocTags": [],
  4232. "rawComment": "/**\n * Gets a `LocatorFactory` for the document root element. This factory can be used to create\n * locators for elements that a component creates outside of its own root element. (e.g. by\n * appending to document.body).\n */"
  4233. },
  4234. "entryType": "function",
  4235. "description": "Gets a `LocatorFactory` for the document root element. This factory can be used to create\nlocators for elements that a component creates outside of its own root element. (e.g. by\nappending to document.body).",
  4236. "jsdocTags": [],
  4237. "rawComment": "/**\n * Gets a `LocatorFactory` for the document root element. This factory can be used to create\n * locators for elements that a component creates outside of its own root element. (e.g. by\n * appending to document.body).\n */",
  4238. "memberType": "method",
  4239. "memberTags": [
  4240. "protected"
  4241. ]
  4242. },
  4243. {
  4244. "name": "locatorFor",
  4245. "signatures": [
  4246. {
  4247. "name": "locatorFor",
  4248. "entryType": "function",
  4249. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait ch.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait ch.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait ch.locatorFor('span')() // Throws because the `Promise` rejects\n```",
  4250. "generics": [
  4251. {
  4252. "name": "T",
  4253. "constraint": "(HarnessQuery<any> | string)[]"
  4254. }
  4255. ],
  4256. "isNewType": false,
  4257. "jsdocTags": [
  4258. {
  4259. "name": "param",
  4260. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  4261. },
  4262. {
  4263. "name": "return",
  4264. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query."
  4265. }
  4266. ],
  4267. "params": [
  4268. {
  4269. "name": "queries",
  4270. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  4271. "type": "T",
  4272. "isOptional": false,
  4273. "isRestParam": true
  4274. }
  4275. ],
  4276. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await ch.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await ch.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await ch.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */",
  4277. "returnType": "() => Promise<LocatorFnResult<T>>"
  4278. }
  4279. ],
  4280. "implementation": {
  4281. "params": [
  4282. {
  4283. "name": "queries",
  4284. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  4285. "type": "T",
  4286. "isOptional": false,
  4287. "isRestParam": true
  4288. }
  4289. ],
  4290. "isNewType": false,
  4291. "returnType": "() => Promise<LocatorFnResult<T>>",
  4292. "generics": [
  4293. {
  4294. "name": "T",
  4295. "constraint": "(HarnessQuery<any> | string)[]"
  4296. }
  4297. ],
  4298. "name": "locatorFor",
  4299. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait ch.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait ch.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait ch.locatorFor('span')() // Throws because the `Promise` rejects\n```",
  4300. "entryType": "function",
  4301. "jsdocTags": [
  4302. {
  4303. "name": "param",
  4304. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  4305. },
  4306. {
  4307. "name": "return",
  4308. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query."
  4309. }
  4310. ],
  4311. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await ch.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await ch.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await ch.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */"
  4312. },
  4313. "entryType": "function",
  4314. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait ch.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait ch.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait ch.locatorFor('span')() // Throws because the `Promise` rejects\n```",
  4315. "jsdocTags": [
  4316. {
  4317. "name": "param",
  4318. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  4319. },
  4320. {
  4321. "name": "return",
  4322. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query."
  4323. }
  4324. ],
  4325. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await ch.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await ch.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await ch.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */",
  4326. "memberType": "method",
  4327. "memberTags": [
  4328. "protected"
  4329. ]
  4330. },
  4331. {
  4332. "name": "locatorForOptional",
  4333. "signatures": [
  4334. {
  4335. "name": "locatorForOptional",
  4336. "entryType": "function",
  4337. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait ch.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait ch.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait ch.locatorForOptional('span')() // Gets `null`\n```",
  4338. "generics": [
  4339. {
  4340. "name": "T",
  4341. "constraint": "(HarnessQuery<any> | string)[]"
  4342. }
  4343. ],
  4344. "isNewType": false,
  4345. "jsdocTags": [
  4346. {
  4347. "name": "param",
  4348. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  4349. },
  4350. {
  4351. "name": "return",
  4352. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null."
  4353. }
  4354. ],
  4355. "params": [
  4356. {
  4357. "name": "queries",
  4358. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  4359. "type": "T",
  4360. "isOptional": false,
  4361. "isRestParam": true
  4362. }
  4363. ],
  4364. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await ch.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await ch.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await ch.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */",
  4365. "returnType": "() => Promise<LocatorFnResult<T> | null>"
  4366. }
  4367. ],
  4368. "implementation": {
  4369. "params": [
  4370. {
  4371. "name": "queries",
  4372. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  4373. "type": "T",
  4374. "isOptional": false,
  4375. "isRestParam": true
  4376. }
  4377. ],
  4378. "isNewType": false,
  4379. "returnType": "() => Promise<LocatorFnResult<T> | null>",
  4380. "generics": [
  4381. {
  4382. "name": "T",
  4383. "constraint": "(HarnessQuery<any> | string)[]"
  4384. }
  4385. ],
  4386. "name": "locatorForOptional",
  4387. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait ch.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait ch.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait ch.locatorForOptional('span')() // Gets `null`\n```",
  4388. "entryType": "function",
  4389. "jsdocTags": [
  4390. {
  4391. "name": "param",
  4392. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  4393. },
  4394. {
  4395. "name": "return",
  4396. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null."
  4397. }
  4398. ],
  4399. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await ch.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await ch.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await ch.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */"
  4400. },
  4401. "entryType": "function",
  4402. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait ch.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait ch.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait ch.locatorForOptional('span')() // Gets `null`\n```",
  4403. "jsdocTags": [
  4404. {
  4405. "name": "param",
  4406. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  4407. },
  4408. {
  4409. "name": "return",
  4410. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null."
  4411. }
  4412. ],
  4413. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await ch.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await ch.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await ch.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */",
  4414. "memberType": "method",
  4415. "memberTags": [
  4416. "protected"
  4417. ]
  4418. },
  4419. {
  4420. "name": "locatorForAll",
  4421. "signatures": [
  4422. {
  4423. "name": "locatorForAll",
  4424. "entryType": "function",
  4425. "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait ch.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait ch.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait ch.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait ch.locatorForAll('span')()\n```",
  4426. "generics": [
  4427. {
  4428. "name": "T",
  4429. "constraint": "(HarnessQuery<any> | string)[]"
  4430. }
  4431. ],
  4432. "isNewType": false,
  4433. "jsdocTags": [
  4434. {
  4435. "name": "param",
  4436. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  4437. },
  4438. {
  4439. "name": "return",
  4440. "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query."
  4441. }
  4442. ],
  4443. "params": [
  4444. {
  4445. "name": "queries",
  4446. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  4447. "type": "T",
  4448. "isOptional": false,
  4449. "isRestParam": true
  4450. }
  4451. ],
  4452. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await ch.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await ch.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await ch.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await ch.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */",
  4453. "returnType": "() => Promise<LocatorFnResult<T>[]>"
  4454. }
  4455. ],
  4456. "implementation": {
  4457. "params": [
  4458. {
  4459. "name": "queries",
  4460. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  4461. "type": "T",
  4462. "isOptional": false,
  4463. "isRestParam": true
  4464. }
  4465. ],
  4466. "isNewType": false,
  4467. "returnType": "() => Promise<LocatorFnResult<T>[]>",
  4468. "generics": [
  4469. {
  4470. "name": "T",
  4471. "constraint": "(HarnessQuery<any> | string)[]"
  4472. }
  4473. ],
  4474. "name": "locatorForAll",
  4475. "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait ch.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait ch.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait ch.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait ch.locatorForAll('span')()\n```",
  4476. "entryType": "function",
  4477. "jsdocTags": [
  4478. {
  4479. "name": "param",
  4480. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  4481. },
  4482. {
  4483. "name": "return",
  4484. "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query."
  4485. }
  4486. ],
  4487. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await ch.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await ch.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await ch.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await ch.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */"
  4488. },
  4489. "entryType": "function",
  4490. "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait ch.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait ch.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait ch.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait ch.locatorForAll('span')()\n```",
  4491. "jsdocTags": [
  4492. {
  4493. "name": "param",
  4494. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  4495. },
  4496. {
  4497. "name": "return",
  4498. "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query."
  4499. }
  4500. ],
  4501. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await ch.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await ch.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await ch.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await ch.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */",
  4502. "memberType": "method",
  4503. "memberTags": [
  4504. "protected"
  4505. ]
  4506. },
  4507. {
  4508. "name": "forceStabilize",
  4509. "signatures": [
  4510. {
  4511. "name": "forceStabilize",
  4512. "entryType": "function",
  4513. "description": "Flushes change detection and async tasks in the Angular zone.\nIn most cases it should not be necessary to call this manually. However, there may be some edge\ncases where it is needed to fully flush animation events.",
  4514. "generics": [],
  4515. "isNewType": false,
  4516. "jsdocTags": [],
  4517. "params": [],
  4518. "rawComment": "/**\n * Flushes change detection and async tasks in the Angular zone.\n * In most cases it should not be necessary to call this manually. However, there may be some edge\n * cases where it is needed to fully flush animation events.\n */",
  4519. "returnType": "Promise<void>"
  4520. }
  4521. ],
  4522. "implementation": {
  4523. "params": [],
  4524. "isNewType": false,
  4525. "returnType": "Promise<void>",
  4526. "generics": [],
  4527. "name": "forceStabilize",
  4528. "description": "Flushes change detection and async tasks in the Angular zone.\nIn most cases it should not be necessary to call this manually. However, there may be some edge\ncases where it is needed to fully flush animation events.",
  4529. "entryType": "function",
  4530. "jsdocTags": [],
  4531. "rawComment": "/**\n * Flushes change detection and async tasks in the Angular zone.\n * In most cases it should not be necessary to call this manually. However, there may be some edge\n * cases where it is needed to fully flush animation events.\n */"
  4532. },
  4533. "entryType": "function",
  4534. "description": "Flushes change detection and async tasks in the Angular zone.\nIn most cases it should not be necessary to call this manually. However, there may be some edge\ncases where it is needed to fully flush animation events.",
  4535. "jsdocTags": [],
  4536. "rawComment": "/**\n * Flushes change detection and async tasks in the Angular zone.\n * In most cases it should not be necessary to call this manually. However, there may be some edge\n * cases where it is needed to fully flush animation events.\n */",
  4537. "memberType": "method",
  4538. "memberTags": [
  4539. "protected"
  4540. ]
  4541. },
  4542. {
  4543. "name": "waitForTasksOutsideAngular",
  4544. "signatures": [
  4545. {
  4546. "name": "waitForTasksOutsideAngular",
  4547. "entryType": "function",
  4548. "description": "Waits for all scheduled or running async tasks to complete. This allows harness\nauthors to wait for async tasks outside of the Angular zone.",
  4549. "generics": [],
  4550. "isNewType": false,
  4551. "jsdocTags": [],
  4552. "params": [],
  4553. "rawComment": "/**\n * Waits for all scheduled or running async tasks to complete. This allows harness\n * authors to wait for async tasks outside of the Angular zone.\n */",
  4554. "returnType": "Promise<void>"
  4555. }
  4556. ],
  4557. "implementation": {
  4558. "params": [],
  4559. "isNewType": false,
  4560. "returnType": "Promise<void>",
  4561. "generics": [],
  4562. "name": "waitForTasksOutsideAngular",
  4563. "description": "Waits for all scheduled or running async tasks to complete. This allows harness\nauthors to wait for async tasks outside of the Angular zone.",
  4564. "entryType": "function",
  4565. "jsdocTags": [],
  4566. "rawComment": "/**\n * Waits for all scheduled or running async tasks to complete. This allows harness\n * authors to wait for async tasks outside of the Angular zone.\n */"
  4567. },
  4568. "entryType": "function",
  4569. "description": "Waits for all scheduled or running async tasks to complete. This allows harness\nauthors to wait for async tasks outside of the Angular zone.",
  4570. "jsdocTags": [],
  4571. "rawComment": "/**\n * Waits for all scheduled or running async tasks to complete. This allows harness\n * authors to wait for async tasks outside of the Angular zone.\n */",
  4572. "memberType": "method",
  4573. "memberTags": [
  4574. "protected"
  4575. ]
  4576. }
  4577. ],
  4578. "generics": [],
  4579. "description": "Base class for component test harnesses that all component harness authors should extend. This\nbase component harness provides the basic ability to locate element and sub-component harnesses.",
  4580. "jsdocTags": [],
  4581. "rawComment": "/**\n * Base class for component test harnesses that all component harness authors should extend. This\n * base component harness provides the basic ability to locate element and sub-component harnesses.\n */",
  4582. "implements": [],
  4583. "source": {
  4584. "filePath": "src/cdk/testing/component-harness.ts",
  4585. "startLine": 305,
  4586. "endLine": 454
  4587. }
  4588. },
  4589. {
  4590. "name": "ContentContainerComponentHarness",
  4591. "isAbstract": true,
  4592. "entryType": "undecorated_class",
  4593. "members": [
  4594. {
  4595. "name": "getChildLoader",
  4596. "signatures": [
  4597. {
  4598. "name": "getChildLoader",
  4599. "entryType": "function",
  4600. "description": "Gets a `HarnessLoader` that searches for harnesses under the first element matching the given\nselector within the current harness's content.",
  4601. "generics": [],
  4602. "isNewType": false,
  4603. "jsdocTags": [
  4604. {
  4605. "name": "param",
  4606. "comment": "The selector for an element in the component's content."
  4607. },
  4608. {
  4609. "name": "returns",
  4610. "comment": "A `HarnessLoader` that searches for harnesses under the given selector."
  4611. }
  4612. ],
  4613. "params": [
  4614. {
  4615. "name": "selector",
  4616. "description": "The selector for an element in the component's content.",
  4617. "type": "S",
  4618. "isOptional": false,
  4619. "isRestParam": false
  4620. }
  4621. ],
  4622. "rawComment": "/**\n * Gets a `HarnessLoader` that searches for harnesses under the first element matching the given\n * selector within the current harness's content.\n * @param selector The selector for an element in the component's content.\n * @returns A `HarnessLoader` that searches for harnesses under the given selector.\n */",
  4623. "returnType": "Promise<HarnessLoader>"
  4624. }
  4625. ],
  4626. "implementation": {
  4627. "params": [
  4628. {
  4629. "name": "selector",
  4630. "description": "The selector for an element in the component's content.",
  4631. "type": "S",
  4632. "isOptional": false,
  4633. "isRestParam": false
  4634. }
  4635. ],
  4636. "isNewType": false,
  4637. "returnType": "Promise<HarnessLoader>",
  4638. "returnDescription": "A `HarnessLoader` that searches for harnesses under the given selector.",
  4639. "generics": [],
  4640. "name": "getChildLoader",
  4641. "description": "Gets a `HarnessLoader` that searches for harnesses under the first element matching the given\nselector within the current harness's content.",
  4642. "entryType": "function",
  4643. "jsdocTags": [
  4644. {
  4645. "name": "param",
  4646. "comment": "The selector for an element in the component's content."
  4647. },
  4648. {
  4649. "name": "returns",
  4650. "comment": "A `HarnessLoader` that searches for harnesses under the given selector."
  4651. }
  4652. ],
  4653. "rawComment": "/**\n * Gets a `HarnessLoader` that searches for harnesses under the first element matching the given\n * selector within the current harness's content.\n * @param selector The selector for an element in the component's content.\n * @returns A `HarnessLoader` that searches for harnesses under the given selector.\n */"
  4654. },
  4655. "entryType": "function",
  4656. "description": "Gets a `HarnessLoader` that searches for harnesses under the first element matching the given\nselector within the current harness's content.",
  4657. "jsdocTags": [
  4658. {
  4659. "name": "param",
  4660. "comment": "The selector for an element in the component's content."
  4661. },
  4662. {
  4663. "name": "returns",
  4664. "comment": "A `HarnessLoader` that searches for harnesses under the given selector."
  4665. }
  4666. ],
  4667. "rawComment": "/**\n * Gets a `HarnessLoader` that searches for harnesses under the first element matching the given\n * selector within the current harness's content.\n * @param selector The selector for an element in the component's content.\n * @returns A `HarnessLoader` that searches for harnesses under the given selector.\n */",
  4668. "memberType": "method",
  4669. "memberTags": []
  4670. },
  4671. {
  4672. "name": "getAllChildLoaders",
  4673. "signatures": [
  4674. {
  4675. "name": "getAllChildLoaders",
  4676. "entryType": "function",
  4677. "description": "Gets a list of `HarnessLoader` for each element matching the given selector under the current\nharness's cotnent that searches for harnesses under that element.",
  4678. "generics": [],
  4679. "isNewType": false,
  4680. "jsdocTags": [
  4681. {
  4682. "name": "param",
  4683. "comment": "The selector for elements in the component's content."
  4684. },
  4685. {
  4686. "name": "returns",
  4687. "comment": "A list of `HarnessLoader` for each element matching the given selector."
  4688. }
  4689. ],
  4690. "params": [
  4691. {
  4692. "name": "selector",
  4693. "description": "The selector for elements in the component's content.",
  4694. "type": "S",
  4695. "isOptional": false,
  4696. "isRestParam": false
  4697. }
  4698. ],
  4699. "rawComment": "/**\n * Gets a list of `HarnessLoader` for each element matching the given selector under the current\n * harness's cotnent that searches for harnesses under that element.\n * @param selector The selector for elements in the component's content.\n * @returns A list of `HarnessLoader` for each element matching the given selector.\n */",
  4700. "returnType": "Promise<HarnessLoader[]>"
  4701. }
  4702. ],
  4703. "implementation": {
  4704. "params": [
  4705. {
  4706. "name": "selector",
  4707. "description": "The selector for elements in the component's content.",
  4708. "type": "S",
  4709. "isOptional": false,
  4710. "isRestParam": false
  4711. }
  4712. ],
  4713. "isNewType": false,
  4714. "returnType": "Promise<HarnessLoader[]>",
  4715. "returnDescription": "A list of `HarnessLoader` for each element matching the given selector.",
  4716. "generics": [],
  4717. "name": "getAllChildLoaders",
  4718. "description": "Gets a list of `HarnessLoader` for each element matching the given selector under the current\nharness's cotnent that searches for harnesses under that element.",
  4719. "entryType": "function",
  4720. "jsdocTags": [
  4721. {
  4722. "name": "param",
  4723. "comment": "The selector for elements in the component's content."
  4724. },
  4725. {
  4726. "name": "returns",
  4727. "comment": "A list of `HarnessLoader` for each element matching the given selector."
  4728. }
  4729. ],
  4730. "rawComment": "/**\n * Gets a list of `HarnessLoader` for each element matching the given selector under the current\n * harness's cotnent that searches for harnesses under that element.\n * @param selector The selector for elements in the component's content.\n * @returns A list of `HarnessLoader` for each element matching the given selector.\n */"
  4731. },
  4732. "entryType": "function",
  4733. "description": "Gets a list of `HarnessLoader` for each element matching the given selector under the current\nharness's cotnent that searches for harnesses under that element.",
  4734. "jsdocTags": [
  4735. {
  4736. "name": "param",
  4737. "comment": "The selector for elements in the component's content."
  4738. },
  4739. {
  4740. "name": "returns",
  4741. "comment": "A list of `HarnessLoader` for each element matching the given selector."
  4742. }
  4743. ],
  4744. "rawComment": "/**\n * Gets a list of `HarnessLoader` for each element matching the given selector under the current\n * harness's cotnent that searches for harnesses under that element.\n * @param selector The selector for elements in the component's content.\n * @returns A list of `HarnessLoader` for each element matching the given selector.\n */",
  4745. "memberType": "method",
  4746. "memberTags": []
  4747. },
  4748. {
  4749. "name": "getHarness",
  4750. "signatures": [
  4751. {
  4752. "name": "getHarness",
  4753. "entryType": "function",
  4754. "description": "Gets the first matching harness for the given query within the current harness's content.",
  4755. "generics": [
  4756. {
  4757. "name": "T",
  4758. "constraint": "ComponentHarness"
  4759. }
  4760. ],
  4761. "isNewType": false,
  4762. "jsdocTags": [
  4763. {
  4764. "name": "param",
  4765. "comment": "The harness query to search for."
  4766. },
  4767. {
  4768. "name": "returns",
  4769. "comment": "The first harness matching the given query."
  4770. },
  4771. {
  4772. "name": "throws",
  4773. "comment": "If no matching harness is found."
  4774. }
  4775. ],
  4776. "params": [
  4777. {
  4778. "name": "query",
  4779. "description": "The harness query to search for.",
  4780. "type": "HarnessQuery<T>",
  4781. "isOptional": false,
  4782. "isRestParam": false
  4783. }
  4784. ],
  4785. "rawComment": "/**\n * Gets the first matching harness for the given query within the current harness's content.\n * @param query The harness query to search for.\n * @returns The first harness matching the given query.\n * @throws If no matching harness is found.\n */",
  4786. "returnType": "Promise<T>"
  4787. }
  4788. ],
  4789. "implementation": {
  4790. "params": [
  4791. {
  4792. "name": "query",
  4793. "description": "The harness query to search for.",
  4794. "type": "HarnessQuery<T>",
  4795. "isOptional": false,
  4796. "isRestParam": false
  4797. }
  4798. ],
  4799. "isNewType": false,
  4800. "returnType": "Promise<T>",
  4801. "returnDescription": "The first harness matching the given query.",
  4802. "generics": [
  4803. {
  4804. "name": "T",
  4805. "constraint": "ComponentHarness"
  4806. }
  4807. ],
  4808. "name": "getHarness",
  4809. "description": "Gets the first matching harness for the given query within the current harness's content.",
  4810. "entryType": "function",
  4811. "jsdocTags": [
  4812. {
  4813. "name": "param",
  4814. "comment": "The harness query to search for."
  4815. },
  4816. {
  4817. "name": "returns",
  4818. "comment": "The first harness matching the given query."
  4819. },
  4820. {
  4821. "name": "throws",
  4822. "comment": "If no matching harness is found."
  4823. }
  4824. ],
  4825. "rawComment": "/**\n * Gets the first matching harness for the given query within the current harness's content.\n * @param query The harness query to search for.\n * @returns The first harness matching the given query.\n * @throws If no matching harness is found.\n */"
  4826. },
  4827. "entryType": "function",
  4828. "description": "Gets the first matching harness for the given query within the current harness's content.",
  4829. "jsdocTags": [
  4830. {
  4831. "name": "param",
  4832. "comment": "The harness query to search for."
  4833. },
  4834. {
  4835. "name": "returns",
  4836. "comment": "The first harness matching the given query."
  4837. },
  4838. {
  4839. "name": "throws",
  4840. "comment": "If no matching harness is found."
  4841. }
  4842. ],
  4843. "rawComment": "/**\n * Gets the first matching harness for the given query within the current harness's content.\n * @param query The harness query to search for.\n * @returns The first harness matching the given query.\n * @throws If no matching harness is found.\n */",
  4844. "memberType": "method",
  4845. "memberTags": []
  4846. },
  4847. {
  4848. "name": "getHarnessOrNull",
  4849. "signatures": [
  4850. {
  4851. "name": "getHarnessOrNull",
  4852. "entryType": "function",
  4853. "description": "Gets the first matching harness for the given query within the current harness's content.",
  4854. "generics": [
  4855. {
  4856. "name": "T",
  4857. "constraint": "ComponentHarness"
  4858. }
  4859. ],
  4860. "isNewType": false,
  4861. "jsdocTags": [
  4862. {
  4863. "name": "param",
  4864. "comment": "The harness query to search for."
  4865. },
  4866. {
  4867. "name": "returns",
  4868. "comment": "The first harness matching the given query, or null if none is found."
  4869. }
  4870. ],
  4871. "params": [
  4872. {
  4873. "name": "query",
  4874. "description": "The harness query to search for.",
  4875. "type": "HarnessQuery<T>",
  4876. "isOptional": false,
  4877. "isRestParam": false
  4878. }
  4879. ],
  4880. "rawComment": "/**\n * Gets the first matching harness for the given query within the current harness's content.\n * @param query The harness query to search for.\n * @returns The first harness matching the given query, or null if none is found.\n */",
  4881. "returnType": "Promise<T | null>"
  4882. }
  4883. ],
  4884. "implementation": {
  4885. "params": [
  4886. {
  4887. "name": "query",
  4888. "description": "The harness query to search for.",
  4889. "type": "HarnessQuery<T>",
  4890. "isOptional": false,
  4891. "isRestParam": false
  4892. }
  4893. ],
  4894. "isNewType": false,
  4895. "returnType": "Promise<T | null>",
  4896. "returnDescription": "The first harness matching the given query, or null if none is found.",
  4897. "generics": [
  4898. {
  4899. "name": "T",
  4900. "constraint": "ComponentHarness"
  4901. }
  4902. ],
  4903. "name": "getHarnessOrNull",
  4904. "description": "Gets the first matching harness for the given query within the current harness's content.",
  4905. "entryType": "function",
  4906. "jsdocTags": [
  4907. {
  4908. "name": "param",
  4909. "comment": "The harness query to search for."
  4910. },
  4911. {
  4912. "name": "returns",
  4913. "comment": "The first harness matching the given query, or null if none is found."
  4914. }
  4915. ],
  4916. "rawComment": "/**\n * Gets the first matching harness for the given query within the current harness's content.\n * @param query The harness query to search for.\n * @returns The first harness matching the given query, or null if none is found.\n */"
  4917. },
  4918. "entryType": "function",
  4919. "description": "Gets the first matching harness for the given query within the current harness's content.",
  4920. "jsdocTags": [
  4921. {
  4922. "name": "param",
  4923. "comment": "The harness query to search for."
  4924. },
  4925. {
  4926. "name": "returns",
  4927. "comment": "The first harness matching the given query, or null if none is found."
  4928. }
  4929. ],
  4930. "rawComment": "/**\n * Gets the first matching harness for the given query within the current harness's content.\n * @param query The harness query to search for.\n * @returns The first harness matching the given query, or null if none is found.\n */",
  4931. "memberType": "method",
  4932. "memberTags": []
  4933. },
  4934. {
  4935. "name": "getAllHarnesses",
  4936. "signatures": [
  4937. {
  4938. "name": "getAllHarnesses",
  4939. "entryType": "function",
  4940. "description": "Gets all matching harnesses for the given query within the current harness's content.",
  4941. "generics": [
  4942. {
  4943. "name": "T",
  4944. "constraint": "ComponentHarness"
  4945. }
  4946. ],
  4947. "isNewType": false,
  4948. "jsdocTags": [
  4949. {
  4950. "name": "param",
  4951. "comment": "The harness query to search for."
  4952. },
  4953. {
  4954. "name": "returns",
  4955. "comment": "The list of harness matching the given query."
  4956. }
  4957. ],
  4958. "params": [
  4959. {
  4960. "name": "query",
  4961. "description": "The harness query to search for.",
  4962. "type": "HarnessQuery<T>",
  4963. "isOptional": false,
  4964. "isRestParam": false
  4965. }
  4966. ],
  4967. "rawComment": "/**\n * Gets all matching harnesses for the given query within the current harness's content.\n * @param query The harness query to search for.\n * @returns The list of harness matching the given query.\n */",
  4968. "returnType": "Promise<T[]>"
  4969. }
  4970. ],
  4971. "implementation": {
  4972. "params": [
  4973. {
  4974. "name": "query",
  4975. "description": "The harness query to search for.",
  4976. "type": "HarnessQuery<T>",
  4977. "isOptional": false,
  4978. "isRestParam": false
  4979. }
  4980. ],
  4981. "isNewType": false,
  4982. "returnType": "Promise<T[]>",
  4983. "returnDescription": "The list of harness matching the given query.",
  4984. "generics": [
  4985. {
  4986. "name": "T",
  4987. "constraint": "ComponentHarness"
  4988. }
  4989. ],
  4990. "name": "getAllHarnesses",
  4991. "description": "Gets all matching harnesses for the given query within the current harness's content.",
  4992. "entryType": "function",
  4993. "jsdocTags": [
  4994. {
  4995. "name": "param",
  4996. "comment": "The harness query to search for."
  4997. },
  4998. {
  4999. "name": "returns",
  5000. "comment": "The list of harness matching the given query."
  5001. }
  5002. ],
  5003. "rawComment": "/**\n * Gets all matching harnesses for the given query within the current harness's content.\n * @param query The harness query to search for.\n * @returns The list of harness matching the given query.\n */"
  5004. },
  5005. "entryType": "function",
  5006. "description": "Gets all matching harnesses for the given query within the current harness's content.",
  5007. "jsdocTags": [
  5008. {
  5009. "name": "param",
  5010. "comment": "The harness query to search for."
  5011. },
  5012. {
  5013. "name": "returns",
  5014. "comment": "The list of harness matching the given query."
  5015. }
  5016. ],
  5017. "rawComment": "/**\n * Gets all matching harnesses for the given query within the current harness's content.\n * @param query The harness query to search for.\n * @returns The list of harness matching the given query.\n */",
  5018. "memberType": "method",
  5019. "memberTags": []
  5020. },
  5021. {
  5022. "name": "hasHarness",
  5023. "signatures": [
  5024. {
  5025. "name": "hasHarness",
  5026. "entryType": "function",
  5027. "description": "Checks whether there is a matching harnesses for the given query within the current harness's\ncontent.",
  5028. "generics": [
  5029. {
  5030. "name": "T",
  5031. "constraint": "ComponentHarness"
  5032. }
  5033. ],
  5034. "isNewType": false,
  5035. "jsdocTags": [
  5036. {
  5037. "name": "param",
  5038. "comment": "The harness query to search for."
  5039. },
  5040. {
  5041. "name": "returns",
  5042. "comment": "Whetehr there is matching harnesses for the given query."
  5043. }
  5044. ],
  5045. "params": [
  5046. {
  5047. "name": "query",
  5048. "description": "The harness query to search for.",
  5049. "type": "HarnessQuery<T>",
  5050. "isOptional": false,
  5051. "isRestParam": false
  5052. }
  5053. ],
  5054. "rawComment": "/**\n * Checks whether there is a matching harnesses for the given query within the current harness's\n * content.\n *\n * @param query The harness query to search for.\n * @returns Whetehr there is matching harnesses for the given query.\n */",
  5055. "returnType": "Promise<boolean>"
  5056. }
  5057. ],
  5058. "implementation": {
  5059. "params": [
  5060. {
  5061. "name": "query",
  5062. "description": "The harness query to search for.",
  5063. "type": "HarnessQuery<T>",
  5064. "isOptional": false,
  5065. "isRestParam": false
  5066. }
  5067. ],
  5068. "isNewType": false,
  5069. "returnType": "Promise<boolean>",
  5070. "returnDescription": "Whetehr there is matching harnesses for the given query.",
  5071. "generics": [
  5072. {
  5073. "name": "T",
  5074. "constraint": "ComponentHarness"
  5075. }
  5076. ],
  5077. "name": "hasHarness",
  5078. "description": "Checks whether there is a matching harnesses for the given query within the current harness's\ncontent.",
  5079. "entryType": "function",
  5080. "jsdocTags": [
  5081. {
  5082. "name": "param",
  5083. "comment": "The harness query to search for."
  5084. },
  5085. {
  5086. "name": "returns",
  5087. "comment": "Whetehr there is matching harnesses for the given query."
  5088. }
  5089. ],
  5090. "rawComment": "/**\n * Checks whether there is a matching harnesses for the given query within the current harness's\n * content.\n *\n * @param query The harness query to search for.\n * @returns Whetehr there is matching harnesses for the given query.\n */"
  5091. },
  5092. "entryType": "function",
  5093. "description": "Checks whether there is a matching harnesses for the given query within the current harness's\ncontent.",
  5094. "jsdocTags": [
  5095. {
  5096. "name": "param",
  5097. "comment": "The harness query to search for."
  5098. },
  5099. {
  5100. "name": "returns",
  5101. "comment": "Whetehr there is matching harnesses for the given query."
  5102. }
  5103. ],
  5104. "rawComment": "/**\n * Checks whether there is a matching harnesses for the given query within the current harness's\n * content.\n *\n * @param query The harness query to search for.\n * @returns Whetehr there is matching harnesses for the given query.\n */",
  5105. "memberType": "method",
  5106. "memberTags": []
  5107. },
  5108. {
  5109. "name": "getRootHarnessLoader",
  5110. "signatures": [
  5111. {
  5112. "name": "getRootHarnessLoader",
  5113. "entryType": "function",
  5114. "description": "Gets the root harness loader from which to start\nsearching for content contained by this harness.",
  5115. "generics": [],
  5116. "isNewType": false,
  5117. "jsdocTags": [],
  5118. "params": [],
  5119. "rawComment": "/**\n * Gets the root harness loader from which to start\n * searching for content contained by this harness.\n */",
  5120. "returnType": "Promise<HarnessLoader>"
  5121. }
  5122. ],
  5123. "implementation": {
  5124. "params": [],
  5125. "isNewType": false,
  5126. "returnType": "Promise<HarnessLoader>",
  5127. "generics": [],
  5128. "name": "getRootHarnessLoader",
  5129. "description": "Gets the root harness loader from which to start\nsearching for content contained by this harness.",
  5130. "entryType": "function",
  5131. "jsdocTags": [],
  5132. "rawComment": "/**\n * Gets the root harness loader from which to start\n * searching for content contained by this harness.\n */"
  5133. },
  5134. "entryType": "function",
  5135. "description": "Gets the root harness loader from which to start\nsearching for content contained by this harness.",
  5136. "jsdocTags": [],
  5137. "rawComment": "/**\n * Gets the root harness loader from which to start\n * searching for content contained by this harness.\n */",
  5138. "memberType": "method",
  5139. "memberTags": [
  5140. "protected"
  5141. ]
  5142. },
  5143. {
  5144. "name": "host",
  5145. "signatures": [
  5146. {
  5147. "name": "host",
  5148. "entryType": "function",
  5149. "description": "Gets a `Promise` for the `TestElement` representing the host element of the component.",
  5150. "generics": [],
  5151. "isNewType": false,
  5152. "jsdocTags": [],
  5153. "params": [],
  5154. "rawComment": "/** Gets a `Promise` for the `TestElement` representing the host element of the component. */",
  5155. "returnType": "Promise<TestElement>"
  5156. }
  5157. ],
  5158. "implementation": {
  5159. "params": [],
  5160. "isNewType": false,
  5161. "returnType": "Promise<TestElement>",
  5162. "generics": [],
  5163. "name": "host",
  5164. "description": "Gets a `Promise` for the `TestElement` representing the host element of the component.",
  5165. "entryType": "function",
  5166. "jsdocTags": [],
  5167. "rawComment": "/** Gets a `Promise` for the `TestElement` representing the host element of the component. */"
  5168. },
  5169. "entryType": "function",
  5170. "description": "Gets a `Promise` for the `TestElement` representing the host element of the component.",
  5171. "jsdocTags": [],
  5172. "rawComment": "/** Gets a `Promise` for the `TestElement` representing the host element of the component. */",
  5173. "memberType": "method",
  5174. "memberTags": [
  5175. "override"
  5176. ]
  5177. },
  5178. {
  5179. "name": "documentRootLocatorFactory",
  5180. "signatures": [
  5181. {
  5182. "name": "documentRootLocatorFactory",
  5183. "entryType": "function",
  5184. "description": "Gets a `LocatorFactory` for the document root element. This factory can be used to create\nlocators for elements that a component creates outside of its own root element. (e.g. by\nappending to document.body).",
  5185. "generics": [],
  5186. "isNewType": false,
  5187. "jsdocTags": [],
  5188. "params": [],
  5189. "rawComment": "/**\n * Gets a `LocatorFactory` for the document root element. This factory can be used to create\n * locators for elements that a component creates outside of its own root element. (e.g. by\n * appending to document.body).\n */",
  5190. "returnType": "LocatorFactory"
  5191. }
  5192. ],
  5193. "implementation": {
  5194. "params": [],
  5195. "isNewType": false,
  5196. "returnType": "LocatorFactory",
  5197. "generics": [],
  5198. "name": "documentRootLocatorFactory",
  5199. "description": "Gets a `LocatorFactory` for the document root element. This factory can be used to create\nlocators for elements that a component creates outside of its own root element. (e.g. by\nappending to document.body).",
  5200. "entryType": "function",
  5201. "jsdocTags": [],
  5202. "rawComment": "/**\n * Gets a `LocatorFactory` for the document root element. This factory can be used to create\n * locators for elements that a component creates outside of its own root element. (e.g. by\n * appending to document.body).\n */"
  5203. },
  5204. "entryType": "function",
  5205. "description": "Gets a `LocatorFactory` for the document root element. This factory can be used to create\nlocators for elements that a component creates outside of its own root element. (e.g. by\nappending to document.body).",
  5206. "jsdocTags": [],
  5207. "rawComment": "/**\n * Gets a `LocatorFactory` for the document root element. This factory can be used to create\n * locators for elements that a component creates outside of its own root element. (e.g. by\n * appending to document.body).\n */",
  5208. "memberType": "method",
  5209. "memberTags": [
  5210. "protected",
  5211. "override"
  5212. ]
  5213. },
  5214. {
  5215. "name": "locatorFor",
  5216. "signatures": [
  5217. {
  5218. "name": "locatorFor",
  5219. "entryType": "function",
  5220. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait ch.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait ch.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait ch.locatorFor('span')() // Throws because the `Promise` rejects\n```",
  5221. "generics": [
  5222. {
  5223. "name": "T",
  5224. "constraint": "(HarnessQuery<any> | string)[]"
  5225. }
  5226. ],
  5227. "isNewType": false,
  5228. "jsdocTags": [
  5229. {
  5230. "name": "param",
  5231. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  5232. },
  5233. {
  5234. "name": "return",
  5235. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query."
  5236. }
  5237. ],
  5238. "params": [
  5239. {
  5240. "name": "queries",
  5241. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  5242. "type": "T",
  5243. "isOptional": false,
  5244. "isRestParam": true
  5245. }
  5246. ],
  5247. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await ch.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await ch.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await ch.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */",
  5248. "returnType": "() => Promise<LocatorFnResult<T>>"
  5249. }
  5250. ],
  5251. "implementation": {
  5252. "params": [
  5253. {
  5254. "name": "queries",
  5255. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  5256. "type": "T",
  5257. "isOptional": false,
  5258. "isRestParam": true
  5259. }
  5260. ],
  5261. "isNewType": false,
  5262. "returnType": "() => Promise<LocatorFnResult<T>>",
  5263. "generics": [
  5264. {
  5265. "name": "T",
  5266. "constraint": "(HarnessQuery<any> | string)[]"
  5267. }
  5268. ],
  5269. "name": "locatorFor",
  5270. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait ch.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait ch.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait ch.locatorFor('span')() // Throws because the `Promise` rejects\n```",
  5271. "entryType": "function",
  5272. "jsdocTags": [
  5273. {
  5274. "name": "param",
  5275. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  5276. },
  5277. {
  5278. "name": "return",
  5279. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query."
  5280. }
  5281. ],
  5282. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await ch.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await ch.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await ch.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */"
  5283. },
  5284. "entryType": "function",
  5285. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait ch.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait ch.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait ch.locatorFor('span')() // Throws because the `Promise` rejects\n```",
  5286. "jsdocTags": [
  5287. {
  5288. "name": "param",
  5289. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  5290. },
  5291. {
  5292. "name": "return",
  5293. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query."
  5294. }
  5295. ],
  5296. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await ch.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await ch.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await ch.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */",
  5297. "memberType": "method",
  5298. "memberTags": [
  5299. "protected",
  5300. "override"
  5301. ]
  5302. },
  5303. {
  5304. "name": "locatorForOptional",
  5305. "signatures": [
  5306. {
  5307. "name": "locatorForOptional",
  5308. "entryType": "function",
  5309. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait ch.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait ch.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait ch.locatorForOptional('span')() // Gets `null`\n```",
  5310. "generics": [
  5311. {
  5312. "name": "T",
  5313. "constraint": "(HarnessQuery<any> | string)[]"
  5314. }
  5315. ],
  5316. "isNewType": false,
  5317. "jsdocTags": [
  5318. {
  5319. "name": "param",
  5320. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  5321. },
  5322. {
  5323. "name": "return",
  5324. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null."
  5325. }
  5326. ],
  5327. "params": [
  5328. {
  5329. "name": "queries",
  5330. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  5331. "type": "T",
  5332. "isOptional": false,
  5333. "isRestParam": true
  5334. }
  5335. ],
  5336. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await ch.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await ch.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await ch.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */",
  5337. "returnType": "() => Promise<LocatorFnResult<T> | null>"
  5338. }
  5339. ],
  5340. "implementation": {
  5341. "params": [
  5342. {
  5343. "name": "queries",
  5344. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  5345. "type": "T",
  5346. "isOptional": false,
  5347. "isRestParam": true
  5348. }
  5349. ],
  5350. "isNewType": false,
  5351. "returnType": "() => Promise<LocatorFnResult<T> | null>",
  5352. "generics": [
  5353. {
  5354. "name": "T",
  5355. "constraint": "(HarnessQuery<any> | string)[]"
  5356. }
  5357. ],
  5358. "name": "locatorForOptional",
  5359. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait ch.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait ch.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait ch.locatorForOptional('span')() // Gets `null`\n```",
  5360. "entryType": "function",
  5361. "jsdocTags": [
  5362. {
  5363. "name": "param",
  5364. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  5365. },
  5366. {
  5367. "name": "return",
  5368. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null."
  5369. }
  5370. ],
  5371. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await ch.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await ch.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await ch.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */"
  5372. },
  5373. "entryType": "function",
  5374. "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\nawait ch.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait ch.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait ch.locatorForOptional('span')() // Gets `null`\n```",
  5375. "jsdocTags": [
  5376. {
  5377. "name": "param",
  5378. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  5379. },
  5380. {
  5381. "name": "return",
  5382. "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null."
  5383. }
  5384. ],
  5385. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * await ch.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await ch.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await ch.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */",
  5386. "memberType": "method",
  5387. "memberTags": [
  5388. "protected",
  5389. "override"
  5390. ]
  5391. },
  5392. {
  5393. "name": "locatorForAll",
  5394. "signatures": [
  5395. {
  5396. "name": "locatorForAll",
  5397. "entryType": "function",
  5398. "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait ch.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait ch.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait ch.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait ch.locatorForAll('span')()\n```",
  5399. "generics": [
  5400. {
  5401. "name": "T",
  5402. "constraint": "(HarnessQuery<any> | string)[]"
  5403. }
  5404. ],
  5405. "isNewType": false,
  5406. "jsdocTags": [
  5407. {
  5408. "name": "param",
  5409. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  5410. },
  5411. {
  5412. "name": "return",
  5413. "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query."
  5414. }
  5415. ],
  5416. "params": [
  5417. {
  5418. "name": "queries",
  5419. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  5420. "type": "T",
  5421. "isOptional": false,
  5422. "isRestParam": true
  5423. }
  5424. ],
  5425. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await ch.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await ch.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await ch.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await ch.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */",
  5426. "returnType": "() => Promise<LocatorFnResult<T>[]>"
  5427. }
  5428. ],
  5429. "implementation": {
  5430. "params": [
  5431. {
  5432. "name": "queries",
  5433. "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.",
  5434. "type": "T",
  5435. "isOptional": false,
  5436. "isRestParam": true
  5437. }
  5438. ],
  5439. "isNewType": false,
  5440. "returnType": "() => Promise<LocatorFnResult<T>[]>",
  5441. "generics": [
  5442. {
  5443. "name": "T",
  5444. "constraint": "(HarnessQuery<any> | string)[]"
  5445. }
  5446. ],
  5447. "name": "locatorForAll",
  5448. "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait ch.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait ch.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait ch.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait ch.locatorForAll('span')()\n```",
  5449. "entryType": "function",
  5450. "jsdocTags": [
  5451. {
  5452. "name": "param",
  5453. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  5454. },
  5455. {
  5456. "name": "return",
  5457. "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query."
  5458. }
  5459. ],
  5460. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await ch.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await ch.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await ch.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await ch.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */"
  5461. },
  5462. "entryType": "function",
  5463. "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the host element of this `ComponentHarness`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n<div id=\"d1\"></div><div id=\"d2\"></div>\n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait ch.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait ch.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait ch.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait ch.locatorForAll('span')()\n```",
  5464. "jsdocTags": [
  5465. {
  5466. "name": "param",
  5467. "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate."
  5468. },
  5469. {
  5470. "name": "return",
  5471. "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query."
  5472. }
  5473. ],
  5474. "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the host element of this `ComponentHarness`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n * <div id=\"d1\"></div><div id=\"d2\"></div>\n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await ch.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await ch.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await ch.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await ch.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */",
  5475. "memberType": "method",
  5476. "memberTags": [
  5477. "protected",
  5478. "override"
  5479. ]
  5480. },
  5481. {
  5482. "name": "forceStabilize",
  5483. "signatures": [
  5484. {
  5485. "name": "forceStabilize",
  5486. "entryType": "function",
  5487. "description": "Flushes change detection and async tasks in the Angular zone.\nIn most cases it should not be necessary to call this manually. However, there may be some edge\ncases where it is needed to fully flush animation events.",
  5488. "generics": [],
  5489. "isNewType": false,
  5490. "jsdocTags": [],
  5491. "params": [],
  5492. "rawComment": "/**\n * Flushes change detection and async tasks in the Angular zone.\n * In most cases it should not be necessary to call this manually. However, there may be some edge\n * cases where it is needed to fully flush animation events.\n */",
  5493. "returnType": "Promise<void>"
  5494. }
  5495. ],
  5496. "implementation": {
  5497. "params": [],
  5498. "isNewType": false,
  5499. "returnType": "Promise<void>",
  5500. "generics": [],
  5501. "name": "forceStabilize",
  5502. "description": "Flushes change detection and async tasks in the Angular zone.\nIn most cases it should not be necessary to call this manually. However, there may be some edge\ncases where it is needed to fully flush animation events.",
  5503. "entryType": "function",
  5504. "jsdocTags": [],
  5505. "rawComment": "/**\n * Flushes change detection and async tasks in the Angular zone.\n * In most cases it should not be necessary to call this manually. However, there may be some edge\n * cases where it is needed to fully flush animation events.\n */"
  5506. },
  5507. "entryType": "function",
  5508. "description": "Flushes change detection and async tasks in the Angular zone.\nIn most cases it should not be necessary to call this manually. However, there may be some edge\ncases where it is needed to fully flush animation events.",
  5509. "jsdocTags": [],
  5510. "rawComment": "/**\n * Flushes change detection and async tasks in the Angular zone.\n * In most cases it should not be necessary to call this manually. However, there may be some edge\n * cases where it is needed to fully flush animation events.\n */",
  5511. "memberType": "method",
  5512. "memberTags": [
  5513. "protected",
  5514. "override"
  5515. ]
  5516. },
  5517. {
  5518. "name": "waitForTasksOutsideAngular",
  5519. "signatures": [
  5520. {
  5521. "name": "waitForTasksOutsideAngular",
  5522. "entryType": "function",
  5523. "description": "Waits for all scheduled or running async tasks to complete. This allows harness\nauthors to wait for async tasks outside of the Angular zone.",
  5524. "generics": [],
  5525. "isNewType": false,
  5526. "jsdocTags": [],
  5527. "params": [],
  5528. "rawComment": "/**\n * Waits for all scheduled or running async tasks to complete. This allows harness\n * authors to wait for async tasks outside of the Angular zone.\n */",
  5529. "returnType": "Promise<void>"
  5530. }
  5531. ],
  5532. "implementation": {
  5533. "params": [],
  5534. "isNewType": false,
  5535. "returnType": "Promise<void>",
  5536. "generics": [],
  5537. "name": "waitForTasksOutsideAngular",
  5538. "description": "Waits for all scheduled or running async tasks to complete. This allows harness\nauthors to wait for async tasks outside of the Angular zone.",
  5539. "entryType": "function",
  5540. "jsdocTags": [],
  5541. "rawComment": "/**\n * Waits for all scheduled or running async tasks to complete. This allows harness\n * authors to wait for async tasks outside of the Angular zone.\n */"
  5542. },
  5543. "entryType": "function",
  5544. "description": "Waits for all scheduled or running async tasks to complete. This allows harness\nauthors to wait for async tasks outside of the Angular zone.",
  5545. "jsdocTags": [],
  5546. "rawComment": "/**\n * Waits for all scheduled or running async tasks to complete. This allows harness\n * authors to wait for async tasks outside of the Angular zone.\n */",
  5547. "memberType": "method",
  5548. "memberTags": [
  5549. "protected",
  5550. "override"
  5551. ]
  5552. }
  5553. ],
  5554. "generics": [
  5555. {
  5556. "name": "S",
  5557. "constraint": "string",
  5558. "default": "string"
  5559. }
  5560. ],
  5561. "description": "Base class for component harnesses that authors should extend if they anticipate that consumers\nof the harness may want to access other harnesses within the `<ng-content>` of the component.",
  5562. "jsdocTags": [],
  5563. "rawComment": "/**\n * Base class for component harnesses that authors should extend if they anticipate that consumers\n * of the harness may want to access other harnesses within the `<ng-content>` of the component.\n */",
  5564. "extends": "ComponentHarness",
  5565. "implements": [
  5566. "HarnessLoader"
  5567. ],
  5568. "source": {
  5569. "filePath": "src/cdk/testing/component-harness.ts",
  5570. "startLine": 460,
  5571. "endLine": 530
  5572. }
  5573. },
  5574. {
  5575. "name": "ComponentHarnessConstructor",
  5576. "isAbstract": false,
  5577. "entryType": "interface",
  5578. "members": [
  5579. {
  5580. "name": "hostSelector",
  5581. "type": "string",
  5582. "memberType": "property",
  5583. "memberTags": [],
  5584. "description": "`ComponentHarness` subclasses must specify a static `hostSelector` property that is used to\nfind the host element for the corresponding component. This property should match the selector\nfor the Angular component.",
  5585. "jsdocTags": []
  5586. }
  5587. ],
  5588. "generics": [
  5589. {
  5590. "name": "T",
  5591. "constraint": "ComponentHarness"
  5592. }
  5593. ],
  5594. "description": "Constructor for a ComponentHarness subclass. To be a valid ComponentHarnessConstructor, the\nclass must also have a static `hostSelector` property.",
  5595. "jsdocTags": [],
  5596. "rawComment": "/**\n * Constructor for a ComponentHarness subclass. To be a valid ComponentHarnessConstructor, the\n * class must also have a static `hostSelector` property.\n */",
  5597. "implements": [],
  5598. "source": {
  5599. "filePath": "src/cdk/testing/component-harness.ts",
  5600. "startLine": 536,
  5601. "endLine": 545
  5602. }
  5603. },
  5604. {
  5605. "name": "BaseHarnessFilters",
  5606. "isAbstract": false,
  5607. "entryType": "interface",
  5608. "members": [
  5609. {
  5610. "name": "selector",
  5611. "type": "string | undefined",
  5612. "memberType": "property",
  5613. "memberTags": [
  5614. "optional"
  5615. ],
  5616. "description": "Only find instances whose host element matches the given selector.",
  5617. "jsdocTags": []
  5618. },
  5619. {
  5620. "name": "ancestor",
  5621. "type": "string | undefined",
  5622. "memberType": "property",
  5623. "memberTags": [
  5624. "optional"
  5625. ],
  5626. "description": "Only find instances that are nested under an element with the given selector.",
  5627. "jsdocTags": []
  5628. }
  5629. ],
  5630. "generics": [],
  5631. "description": "A set of criteria that can be used to filter a list of `ComponentHarness` instances.",
  5632. "jsdocTags": [],
  5633. "rawComment": "/** A set of criteria that can be used to filter a list of `ComponentHarness` instances. */",
  5634. "implements": [],
  5635. "source": {
  5636. "filePath": "src/cdk/testing/component-harness.ts",
  5637. "startLine": 548,
  5638. "endLine": 553
  5639. }
  5640. },
  5641. {
  5642. "name": "HarnessPredicate",
  5643. "isAbstract": false,
  5644. "entryType": "undecorated_class",
  5645. "members": [
  5646. {
  5647. "name": "constructor",
  5648. "signatures": [],
  5649. "implementation": {
  5650. "params": [
  5651. {
  5652. "name": "harnessType",
  5653. "description": "",
  5654. "type": "ComponentHarnessConstructor<T>",
  5655. "isOptional": false,
  5656. "isRestParam": false
  5657. },
  5658. {
  5659. "name": "options",
  5660. "description": "",
  5661. "type": "BaseHarnessFilters",
  5662. "isOptional": false,
  5663. "isRestParam": false
  5664. }
  5665. ],
  5666. "isNewType": false,
  5667. "returnType": "HarnessPredicate<T>",
  5668. "generics": [],
  5669. "name": "constructor",
  5670. "description": "",
  5671. "entryType": "function",
  5672. "jsdocTags": [],
  5673. "rawComment": ""
  5674. },
  5675. "entryType": "function",
  5676. "description": "",
  5677. "jsdocTags": [],
  5678. "rawComment": "",
  5679. "memberType": "method",
  5680. "memberTags": []
  5681. },
  5682. {
  5683. "name": "harnessType",
  5684. "type": "ComponentHarnessConstructor<T>",
  5685. "memberType": "property",
  5686. "memberTags": [
  5687. "override"
  5688. ],
  5689. "description": "",
  5690. "jsdocTags": []
  5691. },
  5692. {
  5693. "name": "add",
  5694. "signatures": [
  5695. {
  5696. "name": "add",
  5697. "entryType": "function",
  5698. "description": "Adds a predicate function to be run against candidate harnesses.",
  5699. "generics": [],
  5700. "isNewType": false,
  5701. "jsdocTags": [
  5702. {
  5703. "name": "param",
  5704. "comment": "A description of this predicate that may be used in error messages."
  5705. },
  5706. {
  5707. "name": "param",
  5708. "comment": "An async predicate function."
  5709. },
  5710. {
  5711. "name": "return",
  5712. "comment": "this (for method chaining)."
  5713. }
  5714. ],
  5715. "params": [
  5716. {
  5717. "name": "description",
  5718. "description": "A description of this predicate that may be used in error messages.",
  5719. "type": "string",
  5720. "isOptional": false,
  5721. "isRestParam": false
  5722. },
  5723. {
  5724. "name": "predicate",
  5725. "description": "An async predicate function.",
  5726. "type": "AsyncPredicate<T>",
  5727. "isOptional": false,
  5728. "isRestParam": false
  5729. }
  5730. ],
  5731. "rawComment": "/**\n * Adds a predicate function to be run against candidate harnesses.\n * @param description A description of this predicate that may be used in error messages.\n * @param predicate An async predicate function.\n * @return this (for method chaining).\n */",
  5732. "returnType": "this"
  5733. }
  5734. ],
  5735. "implementation": {
  5736. "params": [
  5737. {
  5738. "name": "description",
  5739. "description": "A description of this predicate that may be used in error messages.",
  5740. "type": "string",
  5741. "isOptional": false,
  5742. "isRestParam": false
  5743. },
  5744. {
  5745. "name": "predicate",
  5746. "description": "An async predicate function.",
  5747. "type": "AsyncPredicate<T>",
  5748. "isOptional": false,
  5749. "isRestParam": false
  5750. }
  5751. ],
  5752. "isNewType": false,
  5753. "returnType": "this",
  5754. "generics": [],
  5755. "name": "add",
  5756. "description": "Adds a predicate function to be run against candidate harnesses.",
  5757. "entryType": "function",
  5758. "jsdocTags": [
  5759. {
  5760. "name": "param",
  5761. "comment": "A description of this predicate that may be used in error messages."
  5762. },
  5763. {
  5764. "name": "param",
  5765. "comment": "An async predicate function."
  5766. },
  5767. {
  5768. "name": "return",
  5769. "comment": "this (for method chaining)."
  5770. }
  5771. ],
  5772. "rawComment": "/**\n * Adds a predicate function to be run against candidate harnesses.\n * @param description A description of this predicate that may be used in error messages.\n * @param predicate An async predicate function.\n * @return this (for method chaining).\n */"
  5773. },
  5774. "entryType": "function",
  5775. "description": "Adds a predicate function to be run against candidate harnesses.",
  5776. "jsdocTags": [
  5777. {
  5778. "name": "param",
  5779. "comment": "A description of this predicate that may be used in error messages."
  5780. },
  5781. {
  5782. "name": "param",
  5783. "comment": "An async predicate function."
  5784. },
  5785. {
  5786. "name": "return",
  5787. "comment": "this (for method chaining)."
  5788. }
  5789. ],
  5790. "rawComment": "/**\n * Adds a predicate function to be run against candidate harnesses.\n * @param description A description of this predicate that may be used in error messages.\n * @param predicate An async predicate function.\n * @return this (for method chaining).\n */",
  5791. "memberType": "method",
  5792. "memberTags": []
  5793. },
  5794. {
  5795. "name": "addOption",
  5796. "signatures": [
  5797. {
  5798. "name": "addOption",
  5799. "entryType": "function",
  5800. "description": "Adds a predicate function that depends on an option value to be run against candidate\nharnesses. If the option value is undefined, the predicate will be ignored.",
  5801. "generics": [
  5802. {
  5803. "name": "O"
  5804. }
  5805. ],
  5806. "isNewType": false,
  5807. "jsdocTags": [
  5808. {
  5809. "name": "param",
  5810. "comment": "The name of the option (may be used in error messages)."
  5811. },
  5812. {
  5813. "name": "param",
  5814. "comment": "The option value."
  5815. },
  5816. {
  5817. "name": "param",
  5818. "comment": "The predicate function to run if the option value is not undefined."
  5819. },
  5820. {
  5821. "name": "return",
  5822. "comment": "this (for method chaining)."
  5823. }
  5824. ],
  5825. "params": [
  5826. {
  5827. "name": "name",
  5828. "description": "The name of the option (may be used in error messages).",
  5829. "type": "string",
  5830. "isOptional": false,
  5831. "isRestParam": false
  5832. },
  5833. {
  5834. "name": "option",
  5835. "description": "The option value.",
  5836. "type": "O | undefined",
  5837. "isOptional": false,
  5838. "isRestParam": false
  5839. },
  5840. {
  5841. "name": "predicate",
  5842. "description": "The predicate function to run if the option value is not undefined.",
  5843. "type": "AsyncOptionPredicate<T, O>",
  5844. "isOptional": false,
  5845. "isRestParam": false
  5846. }
  5847. ],
  5848. "rawComment": "/**\n * Adds a predicate function that depends on an option value to be run against candidate\n * harnesses. If the option value is undefined, the predicate will be ignored.\n * @param name The name of the option (may be used in error messages).\n * @param option The option value.\n * @param predicate The predicate function to run if the option value is not undefined.\n * @return this (for method chaining).\n */",
  5849. "returnType": "this"
  5850. }
  5851. ],
  5852. "implementation": {
  5853. "params": [
  5854. {
  5855. "name": "name",
  5856. "description": "The name of the option (may be used in error messages).",
  5857. "type": "string",
  5858. "isOptional": false,
  5859. "isRestParam": false
  5860. },
  5861. {
  5862. "name": "option",
  5863. "description": "The option value.",
  5864. "type": "O | undefined",
  5865. "isOptional": false,
  5866. "isRestParam": false
  5867. },
  5868. {
  5869. "name": "predicate",
  5870. "description": "The predicate function to run if the option value is not undefined.",
  5871. "type": "AsyncOptionPredicate<T, O>",
  5872. "isOptional": false,
  5873. "isRestParam": false
  5874. }
  5875. ],
  5876. "isNewType": false,
  5877. "returnType": "this",
  5878. "generics": [
  5879. {
  5880. "name": "O"
  5881. }
  5882. ],
  5883. "name": "addOption",
  5884. "description": "Adds a predicate function that depends on an option value to be run against candidate\nharnesses. If the option value is undefined, the predicate will be ignored.",
  5885. "entryType": "function",
  5886. "jsdocTags": [
  5887. {
  5888. "name": "param",
  5889. "comment": "The name of the option (may be used in error messages)."
  5890. },
  5891. {
  5892. "name": "param",
  5893. "comment": "The option value."
  5894. },
  5895. {
  5896. "name": "param",
  5897. "comment": "The predicate function to run if the option value is not undefined."
  5898. },
  5899. {
  5900. "name": "return",
  5901. "comment": "this (for method chaining)."
  5902. }
  5903. ],
  5904. "rawComment": "/**\n * Adds a predicate function that depends on an option value to be run against candidate\n * harnesses. If the option value is undefined, the predicate will be ignored.\n * @param name The name of the option (may be used in error messages).\n * @param option The option value.\n * @param predicate The predicate function to run if the option value is not undefined.\n * @return this (for method chaining).\n */"
  5905. },
  5906. "entryType": "function",
  5907. "description": "Adds a predicate function that depends on an option value to be run against candidate\nharnesses. If the option value is undefined, the predicate will be ignored.",
  5908. "jsdocTags": [
  5909. {
  5910. "name": "param",
  5911. "comment": "The name of the option (may be used in error messages)."
  5912. },
  5913. {
  5914. "name": "param",
  5915. "comment": "The option value."
  5916. },
  5917. {
  5918. "name": "param",
  5919. "comment": "The predicate function to run if the option value is not undefined."
  5920. },
  5921. {
  5922. "name": "return",
  5923. "comment": "this (for method chaining)."
  5924. }
  5925. ],
  5926. "rawComment": "/**\n * Adds a predicate function that depends on an option value to be run against candidate\n * harnesses. If the option value is undefined, the predicate will be ignored.\n * @param name The name of the option (may be used in error messages).\n * @param option The option value.\n * @param predicate The predicate function to run if the option value is not undefined.\n * @return this (for method chaining).\n */",
  5927. "memberType": "method",
  5928. "memberTags": []
  5929. },
  5930. {
  5931. "name": "filter",
  5932. "signatures": [
  5933. {
  5934. "name": "filter",
  5935. "entryType": "function",
  5936. "description": "Filters a list of harnesses on this predicate.",
  5937. "generics": [],
  5938. "isNewType": false,
  5939. "jsdocTags": [
  5940. {
  5941. "name": "param",
  5942. "comment": "The list of harnesses to filter."
  5943. },
  5944. {
  5945. "name": "return",
  5946. "comment": "A list of harnesses that satisfy this predicate."
  5947. }
  5948. ],
  5949. "params": [
  5950. {
  5951. "name": "harnesses",
  5952. "description": "The list of harnesses to filter.",
  5953. "type": "T[]",
  5954. "isOptional": false,
  5955. "isRestParam": false
  5956. }
  5957. ],
  5958. "rawComment": "/**\n * Filters a list of harnesses on this predicate.\n * @param harnesses The list of harnesses to filter.\n * @return A list of harnesses that satisfy this predicate.\n */",
  5959. "returnType": "Promise<T[]>"
  5960. }
  5961. ],
  5962. "implementation": {
  5963. "params": [
  5964. {
  5965. "name": "harnesses",
  5966. "description": "The list of harnesses to filter.",
  5967. "type": "T[]",
  5968. "isOptional": false,
  5969. "isRestParam": false
  5970. }
  5971. ],
  5972. "isNewType": false,
  5973. "returnType": "Promise<T[]>",
  5974. "generics": [],
  5975. "name": "filter",
  5976. "description": "Filters a list of harnesses on this predicate.",
  5977. "entryType": "function",
  5978. "jsdocTags": [
  5979. {
  5980. "name": "param",
  5981. "comment": "The list of harnesses to filter."
  5982. },
  5983. {
  5984. "name": "return",
  5985. "comment": "A list of harnesses that satisfy this predicate."
  5986. }
  5987. ],
  5988. "rawComment": "/**\n * Filters a list of harnesses on this predicate.\n * @param harnesses The list of harnesses to filter.\n * @return A list of harnesses that satisfy this predicate.\n */"
  5989. },
  5990. "entryType": "function",
  5991. "description": "Filters a list of harnesses on this predicate.",
  5992. "jsdocTags": [
  5993. {
  5994. "name": "param",
  5995. "comment": "The list of harnesses to filter."
  5996. },
  5997. {
  5998. "name": "return",
  5999. "comment": "A list of harnesses that satisfy this predicate."
  6000. }
  6001. ],
  6002. "rawComment": "/**\n * Filters a list of harnesses on this predicate.\n * @param harnesses The list of harnesses to filter.\n * @return A list of harnesses that satisfy this predicate.\n */",
  6003. "memberType": "method",
  6004. "memberTags": []
  6005. },
  6006. {
  6007. "name": "evaluate",
  6008. "signatures": [
  6009. {
  6010. "name": "evaluate",
  6011. "entryType": "function",
  6012. "description": "Evaluates whether the given harness satisfies this predicate.",
  6013. "generics": [],
  6014. "isNewType": false,
  6015. "jsdocTags": [
  6016. {
  6017. "name": "param",
  6018. "comment": "The harness to check"
  6019. },
  6020. {
  6021. "name": "return",
  6022. "comment": "A promise that resolves to true if the harness satisfies this predicate,\nand resolves to false otherwise."
  6023. }
  6024. ],
  6025. "params": [
  6026. {
  6027. "name": "harness",
  6028. "description": "The harness to check",
  6029. "type": "T",
  6030. "isOptional": false,
  6031. "isRestParam": false
  6032. }
  6033. ],
  6034. "rawComment": "/**\n * Evaluates whether the given harness satisfies this predicate.\n * @param harness The harness to check\n * @return A promise that resolves to true if the harness satisfies this predicate,\n * and resolves to false otherwise.\n */",
  6035. "returnType": "Promise<boolean>"
  6036. }
  6037. ],
  6038. "implementation": {
  6039. "params": [
  6040. {
  6041. "name": "harness",
  6042. "description": "The harness to check",
  6043. "type": "T",
  6044. "isOptional": false,
  6045. "isRestParam": false
  6046. }
  6047. ],
  6048. "isNewType": false,
  6049. "returnType": "Promise<boolean>",
  6050. "generics": [],
  6051. "name": "evaluate",
  6052. "description": "Evaluates whether the given harness satisfies this predicate.",
  6053. "entryType": "function",
  6054. "jsdocTags": [
  6055. {
  6056. "name": "param",
  6057. "comment": "The harness to check"
  6058. },
  6059. {
  6060. "name": "return",
  6061. "comment": "A promise that resolves to true if the harness satisfies this predicate,\nand resolves to false otherwise."
  6062. }
  6063. ],
  6064. "rawComment": "/**\n * Evaluates whether the given harness satisfies this predicate.\n * @param harness The harness to check\n * @return A promise that resolves to true if the harness satisfies this predicate,\n * and resolves to false otherwise.\n */"
  6065. },
  6066. "entryType": "function",
  6067. "description": "Evaluates whether the given harness satisfies this predicate.",
  6068. "jsdocTags": [
  6069. {
  6070. "name": "param",
  6071. "comment": "The harness to check"
  6072. },
  6073. {
  6074. "name": "return",
  6075. "comment": "A promise that resolves to true if the harness satisfies this predicate,\nand resolves to false otherwise."
  6076. }
  6077. ],
  6078. "rawComment": "/**\n * Evaluates whether the given harness satisfies this predicate.\n * @param harness The harness to check\n * @return A promise that resolves to true if the harness satisfies this predicate,\n * and resolves to false otherwise.\n */",
  6079. "memberType": "method",
  6080. "memberTags": []
  6081. },
  6082. {
  6083. "name": "getDescription",
  6084. "signatures": [
  6085. {
  6086. "name": "getDescription",
  6087. "entryType": "function",
  6088. "description": "Gets a description of this predicate for use in error messages.",
  6089. "generics": [],
  6090. "isNewType": false,
  6091. "jsdocTags": [],
  6092. "params": [],
  6093. "rawComment": "/** Gets a description of this predicate for use in error messages. */",
  6094. "returnType": "string"
  6095. }
  6096. ],
  6097. "implementation": {
  6098. "params": [],
  6099. "isNewType": false,
  6100. "returnType": "string",
  6101. "generics": [],
  6102. "name": "getDescription",
  6103. "description": "Gets a description of this predicate for use in error messages.",
  6104. "entryType": "function",
  6105. "jsdocTags": [],
  6106. "rawComment": "/** Gets a description of this predicate for use in error messages. */"
  6107. },
  6108. "entryType": "function",
  6109. "description": "Gets a description of this predicate for use in error messages.",
  6110. "jsdocTags": [],
  6111. "rawComment": "/** Gets a description of this predicate for use in error messages. */",
  6112. "memberType": "method",
  6113. "memberTags": []
  6114. },
  6115. {
  6116. "name": "getSelector",
  6117. "signatures": [
  6118. {
  6119. "name": "getSelector",
  6120. "entryType": "function",
  6121. "description": "Gets the selector used to find candidate elements.",
  6122. "generics": [],
  6123. "isNewType": false,
  6124. "jsdocTags": [],
  6125. "params": [],
  6126. "rawComment": "/** Gets the selector used to find candidate elements. */",
  6127. "returnType": "string"
  6128. }
  6129. ],
  6130. "implementation": {
  6131. "params": [],
  6132. "isNewType": false,
  6133. "returnType": "string",
  6134. "generics": [],
  6135. "name": "getSelector",
  6136. "description": "Gets the selector used to find candidate elements.",
  6137. "entryType": "function",
  6138. "jsdocTags": [],
  6139. "rawComment": "/** Gets the selector used to find candidate elements. */"
  6140. },
  6141. "entryType": "function",
  6142. "description": "Gets the selector used to find candidate elements.",
  6143. "jsdocTags": [],
  6144. "rawComment": "/** Gets the selector used to find candidate elements. */",
  6145. "memberType": "method",
  6146. "memberTags": []
  6147. },
  6148. {
  6149. "name": "stringMatches",
  6150. "signatures": [
  6151. {
  6152. "name": "stringMatches",
  6153. "entryType": "function",
  6154. "description": "Checks if the specified nullable string value matches the given pattern.",
  6155. "generics": [],
  6156. "isNewType": false,
  6157. "jsdocTags": [
  6158. {
  6159. "name": "param",
  6160. "comment": "The nullable string value to check, or a Promise resolving to the\nnullable string value."
  6161. },
  6162. {
  6163. "name": "param",
  6164. "comment": "The pattern the value is expected to match. If `pattern` is a string,\n`value` is expected to match exactly. If `pattern` is a regex, a partial match is\nallowed. If `pattern` is `null`, the value is expected to be `null`."
  6165. },
  6166. {
  6167. "name": "return",
  6168. "comment": "Whether the value matches the pattern."
  6169. }
  6170. ],
  6171. "params": [
  6172. {
  6173. "name": "value",
  6174. "description": "The nullable string value to check, or a Promise resolving to the\nnullable string value.",
  6175. "type": "string | Promise<string | null> | null",
  6176. "isOptional": false,
  6177. "isRestParam": false
  6178. },
  6179. {
  6180. "name": "pattern",
  6181. "description": "The pattern the value is expected to match. If `pattern` is a string,\n`value` is expected to match exactly. If `pattern` is a regex, a partial match is\nallowed. If `pattern` is `null`, the value is expected to be `null`.",
  6182. "type": "string | RegExp | null",
  6183. "isOptional": false,
  6184. "isRestParam": false
  6185. }
  6186. ],
  6187. "rawComment": "/**\n * Checks if the specified nullable string value matches the given pattern.\n * @param value The nullable string value to check, or a Promise resolving to the\n * nullable string value.\n * @param pattern The pattern the value is expected to match. If `pattern` is a string,\n * `value` is expected to match exactly. If `pattern` is a regex, a partial match is\n * allowed. If `pattern` is `null`, the value is expected to be `null`.\n * @return Whether the value matches the pattern.\n */",
  6188. "returnType": "Promise<boolean>"
  6189. }
  6190. ],
  6191. "implementation": {
  6192. "params": [
  6193. {
  6194. "name": "value",
  6195. "description": "The nullable string value to check, or a Promise resolving to the\nnullable string value.",
  6196. "type": "string | Promise<string | null> | null",
  6197. "isOptional": false,
  6198. "isRestParam": false
  6199. },
  6200. {
  6201. "name": "pattern",
  6202. "description": "The pattern the value is expected to match. If `pattern` is a string,\n`value` is expected to match exactly. If `pattern` is a regex, a partial match is\nallowed. If `pattern` is `null`, the value is expected to be `null`.",
  6203. "type": "string | RegExp | null",
  6204. "isOptional": false,
  6205. "isRestParam": false
  6206. }
  6207. ],
  6208. "isNewType": false,
  6209. "returnType": "Promise<boolean>",
  6210. "generics": [],
  6211. "name": "stringMatches",
  6212. "description": "Checks if the specified nullable string value matches the given pattern.",
  6213. "entryType": "function",
  6214. "jsdocTags": [
  6215. {
  6216. "name": "param",
  6217. "comment": "The nullable string value to check, or a Promise resolving to the\nnullable string value."
  6218. },
  6219. {
  6220. "name": "param",
  6221. "comment": "The pattern the value is expected to match. If `pattern` is a string,\n`value` is expected to match exactly. If `pattern` is a regex, a partial match is\nallowed. If `pattern` is `null`, the value is expected to be `null`."
  6222. },
  6223. {
  6224. "name": "return",
  6225. "comment": "Whether the value matches the pattern."
  6226. }
  6227. ],
  6228. "rawComment": "/**\n * Checks if the specified nullable string value matches the given pattern.\n * @param value The nullable string value to check, or a Promise resolving to the\n * nullable string value.\n * @param pattern The pattern the value is expected to match. If `pattern` is a string,\n * `value` is expected to match exactly. If `pattern` is a regex, a partial match is\n * allowed. If `pattern` is `null`, the value is expected to be `null`.\n * @return Whether the value matches the pattern.\n */"
  6229. },
  6230. "entryType": "function",
  6231. "description": "Checks if the specified nullable string value matches the given pattern.",
  6232. "jsdocTags": [
  6233. {
  6234. "name": "param",
  6235. "comment": "The nullable string value to check, or a Promise resolving to the\nnullable string value."
  6236. },
  6237. {
  6238. "name": "param",
  6239. "comment": "The pattern the value is expected to match. If `pattern` is a string,\n`value` is expected to match exactly. If `pattern` is a regex, a partial match is\nallowed. If `pattern` is `null`, the value is expected to be `null`."
  6240. },
  6241. {
  6242. "name": "return",
  6243. "comment": "Whether the value matches the pattern."
  6244. }
  6245. ],
  6246. "rawComment": "/**\n * Checks if the specified nullable string value matches the given pattern.\n * @param value The nullable string value to check, or a Promise resolving to the\n * nullable string value.\n * @param pattern The pattern the value is expected to match. If `pattern` is a string,\n * `value` is expected to match exactly. If `pattern` is a regex, a partial match is\n * allowed. If `pattern` is `null`, the value is expected to be `null`.\n * @return Whether the value matches the pattern.\n */",
  6247. "memberType": "method",
  6248. "memberTags": [
  6249. "static"
  6250. ]
  6251. }
  6252. ],
  6253. "generics": [
  6254. {
  6255. "name": "T",
  6256. "constraint": "ComponentHarness"
  6257. }
  6258. ],
  6259. "description": "A class used to associate a ComponentHarness class with predicate functions that can be used to\nfilter instances of the class to be matched.",
  6260. "jsdocTags": [],
  6261. "rawComment": "/**\n * A class used to associate a ComponentHarness class with predicate functions that can be used to\n * filter instances of the class to be matched.\n */",
  6262. "implements": [],
  6263. "source": {
  6264. "filePath": "src/cdk/testing/component-harness.ts",
  6265. "startLine": 559,
  6266. "endLine": 687
  6267. }
  6268. }
  6269. ],
  6270. "symbols": [
  6271. [
  6272. "getNoKeysSpecifiedError",
  6273. "@angular/cdk/testing"
  6274. ],
  6275. [
  6276. "ElementDimensions",
  6277. "@angular/cdk/testing"
  6278. ],
  6279. [
  6280. "AutoChangeDetectionStatus",
  6281. "@angular/cdk/testing"
  6282. ],
  6283. [
  6284. "ModifierKeys",
  6285. "@angular/cdk/testing"
  6286. ],
  6287. [
  6288. "AsyncFactoryFn",
  6289. "@angular/cdk/testing"
  6290. ],
  6291. [
  6292. "EventData",
  6293. "@angular/cdk/testing"
  6294. ],
  6295. [
  6296. "AsyncPredicate",
  6297. "@angular/cdk/testing"
  6298. ],
  6299. [
  6300. "TestKey",
  6301. "@angular/cdk/testing"
  6302. ],
  6303. [
  6304. "AsyncOptionPredicate",
  6305. "@angular/cdk/testing"
  6306. ],
  6307. [
  6308. "HarnessQuery",
  6309. "@angular/cdk/testing"
  6310. ],
  6311. [
  6312. "LocatorFnResult",
  6313. "@angular/cdk/testing"
  6314. ],
  6315. [
  6316. "HarnessEnvironment",
  6317. "@angular/cdk/testing"
  6318. ],
  6319. [
  6320. "handleAutoChangeDetectionStatus",
  6321. "@angular/cdk/testing"
  6322. ],
  6323. [
  6324. "TestElement",
  6325. "@angular/cdk/testing"
  6326. ],
  6327. [
  6328. "stopHandlingAutoChangeDetectionStatus",
  6329. "@angular/cdk/testing"
  6330. ],
  6331. [
  6332. "HarnessLoader",
  6333. "@angular/cdk/testing"
  6334. ],
  6335. [
  6336. "manualChangeDetection",
  6337. "@angular/cdk/testing"
  6338. ],
  6339. [
  6340. "parallel",
  6341. "@angular/cdk/testing"
  6342. ],
  6343. [
  6344. "LocatorFactory",
  6345. "@angular/cdk/testing"
  6346. ],
  6347. [
  6348. "TextOptions",
  6349. "@angular/cdk/testing"
  6350. ],
  6351. [
  6352. "ComponentHarness",
  6353. "@angular/cdk/testing"
  6354. ],
  6355. [
  6356. "ContentContainerComponentHarness",
  6357. "@angular/cdk/testing"
  6358. ],
  6359. [
  6360. "ComponentHarnessConstructor",
  6361. "@angular/cdk/testing"
  6362. ],
  6363. [
  6364. "BaseHarnessFilters",
  6365. "@angular/cdk/testing"
  6366. ],
  6367. [
  6368. "HarnessPredicate",
  6369. "@angular/cdk/testing"
  6370. ],
  6371. [
  6372. "getNoKeysSpecifiedError",
  6373. "@angular/cdk/testing"
  6374. ],
  6375. [
  6376. "ElementDimensions",
  6377. "@angular/cdk/testing"
  6378. ],
  6379. [
  6380. "ElementDimensions.top",
  6381. "@angular/cdk/testing"
  6382. ],
  6383. [
  6384. "ElementDimensions.left",
  6385. "@angular/cdk/testing"
  6386. ],
  6387. [
  6388. "ElementDimensions.width",
  6389. "@angular/cdk/testing"
  6390. ],
  6391. [
  6392. "ElementDimensions.height",
  6393. "@angular/cdk/testing"
  6394. ],
  6395. [
  6396. "AutoChangeDetectionStatus",
  6397. "@angular/cdk/testing"
  6398. ],
  6399. [
  6400. "AutoChangeDetectionStatus.isDisabled",
  6401. "@angular/cdk/testing"
  6402. ],
  6403. [
  6404. "AutoChangeDetectionStatus.onDetectChangesNow",
  6405. "@angular/cdk/testing"
  6406. ],
  6407. [
  6408. "ModifierKeys",
  6409. "@angular/cdk/testing"
  6410. ],
  6411. [
  6412. "ModifierKeys.control",
  6413. "@angular/cdk/testing"
  6414. ],
  6415. [
  6416. "ModifierKeys.alt",
  6417. "@angular/cdk/testing"
  6418. ],
  6419. [
  6420. "ModifierKeys.shift",
  6421. "@angular/cdk/testing"
  6422. ],
  6423. [
  6424. "ModifierKeys.meta",
  6425. "@angular/cdk/testing"
  6426. ],
  6427. [
  6428. "AsyncFactoryFn",
  6429. "@angular/cdk/testing"
  6430. ],
  6431. [
  6432. "EventData",
  6433. "@angular/cdk/testing"
  6434. ],
  6435. [
  6436. "AsyncPredicate",
  6437. "@angular/cdk/testing"
  6438. ],
  6439. [
  6440. "TestKey",
  6441. "@angular/cdk/testing"
  6442. ],
  6443. [
  6444. "TestKey.BACKSPACE",
  6445. "@angular/cdk/testing"
  6446. ],
  6447. [
  6448. "TestKey.TAB",
  6449. "@angular/cdk/testing"
  6450. ],
  6451. [
  6452. "TestKey.ENTER",
  6453. "@angular/cdk/testing"
  6454. ],
  6455. [
  6456. "TestKey.SHIFT",
  6457. "@angular/cdk/testing"
  6458. ],
  6459. [
  6460. "TestKey.CONTROL",
  6461. "@angular/cdk/testing"
  6462. ],
  6463. [
  6464. "TestKey.ALT",
  6465. "@angular/cdk/testing"
  6466. ],
  6467. [
  6468. "TestKey.ESCAPE",
  6469. "@angular/cdk/testing"
  6470. ],
  6471. [
  6472. "TestKey.PAGE_UP",
  6473. "@angular/cdk/testing"
  6474. ],
  6475. [
  6476. "TestKey.PAGE_DOWN",
  6477. "@angular/cdk/testing"
  6478. ],
  6479. [
  6480. "TestKey.END",
  6481. "@angular/cdk/testing"
  6482. ],
  6483. [
  6484. "TestKey.HOME",
  6485. "@angular/cdk/testing"
  6486. ],
  6487. [
  6488. "TestKey.LEFT_ARROW",
  6489. "@angular/cdk/testing"
  6490. ],
  6491. [
  6492. "TestKey.UP_ARROW",
  6493. "@angular/cdk/testing"
  6494. ],
  6495. [
  6496. "TestKey.RIGHT_ARROW",
  6497. "@angular/cdk/testing"
  6498. ],
  6499. [
  6500. "TestKey.DOWN_ARROW",
  6501. "@angular/cdk/testing"
  6502. ],
  6503. [
  6504. "TestKey.INSERT",
  6505. "@angular/cdk/testing"
  6506. ],
  6507. [
  6508. "TestKey.DELETE",
  6509. "@angular/cdk/testing"
  6510. ],
  6511. [
  6512. "TestKey.F1",
  6513. "@angular/cdk/testing"
  6514. ],
  6515. [
  6516. "TestKey.F2",
  6517. "@angular/cdk/testing"
  6518. ],
  6519. [
  6520. "TestKey.F3",
  6521. "@angular/cdk/testing"
  6522. ],
  6523. [
  6524. "TestKey.F4",
  6525. "@angular/cdk/testing"
  6526. ],
  6527. [
  6528. "TestKey.F5",
  6529. "@angular/cdk/testing"
  6530. ],
  6531. [
  6532. "TestKey.F6",
  6533. "@angular/cdk/testing"
  6534. ],
  6535. [
  6536. "TestKey.F7",
  6537. "@angular/cdk/testing"
  6538. ],
  6539. [
  6540. "TestKey.F8",
  6541. "@angular/cdk/testing"
  6542. ],
  6543. [
  6544. "TestKey.F9",
  6545. "@angular/cdk/testing"
  6546. ],
  6547. [
  6548. "TestKey.F10",
  6549. "@angular/cdk/testing"
  6550. ],
  6551. [
  6552. "TestKey.F11",
  6553. "@angular/cdk/testing"
  6554. ],
  6555. [
  6556. "TestKey.F12",
  6557. "@angular/cdk/testing"
  6558. ],
  6559. [
  6560. "TestKey.META",
  6561. "@angular/cdk/testing"
  6562. ],
  6563. [
  6564. "TestKey.COMMA",
  6565. "@angular/cdk/testing"
  6566. ],
  6567. [
  6568. "AsyncOptionPredicate",
  6569. "@angular/cdk/testing"
  6570. ],
  6571. [
  6572. "HarnessQuery",
  6573. "@angular/cdk/testing"
  6574. ],
  6575. [
  6576. "LocatorFnResult",
  6577. "@angular/cdk/testing"
  6578. ],
  6579. [
  6580. "HarnessEnvironment",
  6581. "@angular/cdk/testing"
  6582. ],
  6583. [
  6584. "HarnessEnvironment.constructor",
  6585. "@angular/cdk/testing"
  6586. ],
  6587. [
  6588. "HarnessEnvironment.rootElement",
  6589. "@angular/cdk/testing"
  6590. ],
  6591. [
  6592. "HarnessEnvironment.rootElement",
  6593. "@angular/cdk/testing"
  6594. ],
  6595. [
  6596. "HarnessEnvironment.documentRootLocatorFactory",
  6597. "@angular/cdk/testing"
  6598. ],
  6599. [
  6600. "HarnessEnvironment.locatorFor",
  6601. "@angular/cdk/testing"
  6602. ],
  6603. [
  6604. "HarnessEnvironment.locatorForOptional",
  6605. "@angular/cdk/testing"
  6606. ],
  6607. [
  6608. "HarnessEnvironment.locatorForAll",
  6609. "@angular/cdk/testing"
  6610. ],
  6611. [
  6612. "HarnessEnvironment.rootHarnessLoader",
  6613. "@angular/cdk/testing"
  6614. ],
  6615. [
  6616. "HarnessEnvironment.harnessLoaderFor",
  6617. "@angular/cdk/testing"
  6618. ],
  6619. [
  6620. "HarnessEnvironment.harnessLoaderForOptional",
  6621. "@angular/cdk/testing"
  6622. ],
  6623. [
  6624. "HarnessEnvironment.harnessLoaderForAll",
  6625. "@angular/cdk/testing"
  6626. ],
  6627. [
  6628. "HarnessEnvironment.getHarness",
  6629. "@angular/cdk/testing"
  6630. ],
  6631. [
  6632. "HarnessEnvironment.getHarnessOrNull",
  6633. "@angular/cdk/testing"
  6634. ],
  6635. [
  6636. "HarnessEnvironment.getAllHarnesses",
  6637. "@angular/cdk/testing"
  6638. ],
  6639. [
  6640. "HarnessEnvironment.hasHarness",
  6641. "@angular/cdk/testing"
  6642. ],
  6643. [
  6644. "HarnessEnvironment.getChildLoader",
  6645. "@angular/cdk/testing"
  6646. ],
  6647. [
  6648. "HarnessEnvironment.getAllChildLoaders",
  6649. "@angular/cdk/testing"
  6650. ],
  6651. [
  6652. "HarnessEnvironment.createComponentHarness",
  6653. "@angular/cdk/testing"
  6654. ],
  6655. [
  6656. "HarnessEnvironment.forceStabilize",
  6657. "@angular/cdk/testing"
  6658. ],
  6659. [
  6660. "HarnessEnvironment.waitForTasksOutsideAngular",
  6661. "@angular/cdk/testing"
  6662. ],
  6663. [
  6664. "HarnessEnvironment.getDocumentRoot",
  6665. "@angular/cdk/testing"
  6666. ],
  6667. [
  6668. "HarnessEnvironment.createTestElement",
  6669. "@angular/cdk/testing"
  6670. ],
  6671. [
  6672. "HarnessEnvironment.createEnvironment",
  6673. "@angular/cdk/testing"
  6674. ],
  6675. [
  6676. "HarnessEnvironment.getAllRawElements",
  6677. "@angular/cdk/testing"
  6678. ],
  6679. [
  6680. "handleAutoChangeDetectionStatus",
  6681. "@angular/cdk/testing"
  6682. ],
  6683. [
  6684. "TestElement",
  6685. "@angular/cdk/testing"
  6686. ],
  6687. [
  6688. "TestElement.blur",
  6689. "@angular/cdk/testing"
  6690. ],
  6691. [
  6692. "TestElement.clear",
  6693. "@angular/cdk/testing"
  6694. ],
  6695. [
  6696. "TestElement.click",
  6697. "@angular/cdk/testing"
  6698. ],
  6699. [
  6700. "TestElement.click",
  6701. "@angular/cdk/testing"
  6702. ],
  6703. [
  6704. "TestElement.click",
  6705. "@angular/cdk/testing"
  6706. ],
  6707. [
  6708. "TestElement.rightClick",
  6709. "@angular/cdk/testing"
  6710. ],
  6711. [
  6712. "TestElement.focus",
  6713. "@angular/cdk/testing"
  6714. ],
  6715. [
  6716. "TestElement.getCssValue",
  6717. "@angular/cdk/testing"
  6718. ],
  6719. [
  6720. "TestElement.hover",
  6721. "@angular/cdk/testing"
  6722. ],
  6723. [
  6724. "TestElement.mouseAway",
  6725. "@angular/cdk/testing"
  6726. ],
  6727. [
  6728. "TestElement.sendKeys",
  6729. "@angular/cdk/testing"
  6730. ],
  6731. [
  6732. "TestElement.sendKeys",
  6733. "@angular/cdk/testing"
  6734. ],
  6735. [
  6736. "TestElement.text",
  6737. "@angular/cdk/testing"
  6738. ],
  6739. [
  6740. "TestElement.setContenteditableValue",
  6741. "@angular/cdk/testing"
  6742. ],
  6743. [
  6744. "TestElement.getAttribute",
  6745. "@angular/cdk/testing"
  6746. ],
  6747. [
  6748. "TestElement.hasClass",
  6749. "@angular/cdk/testing"
  6750. ],
  6751. [
  6752. "TestElement.getDimensions",
  6753. "@angular/cdk/testing"
  6754. ],
  6755. [
  6756. "TestElement.getProperty",
  6757. "@angular/cdk/testing"
  6758. ],
  6759. [
  6760. "TestElement.matchesSelector",
  6761. "@angular/cdk/testing"
  6762. ],
  6763. [
  6764. "TestElement.isFocused",
  6765. "@angular/cdk/testing"
  6766. ],
  6767. [
  6768. "TestElement.setInputValue",
  6769. "@angular/cdk/testing"
  6770. ],
  6771. [
  6772. "TestElement.selectOptions",
  6773. "@angular/cdk/testing"
  6774. ],
  6775. [
  6776. "TestElement.dispatchEvent",
  6777. "@angular/cdk/testing"
  6778. ],
  6779. [
  6780. "stopHandlingAutoChangeDetectionStatus",
  6781. "@angular/cdk/testing"
  6782. ],
  6783. [
  6784. "HarnessLoader",
  6785. "@angular/cdk/testing"
  6786. ],
  6787. [
  6788. "HarnessLoader.getChildLoader",
  6789. "@angular/cdk/testing"
  6790. ],
  6791. [
  6792. "HarnessLoader.getAllChildLoaders",
  6793. "@angular/cdk/testing"
  6794. ],
  6795. [
  6796. "HarnessLoader.getHarness",
  6797. "@angular/cdk/testing"
  6798. ],
  6799. [
  6800. "HarnessLoader.getHarnessOrNull",
  6801. "@angular/cdk/testing"
  6802. ],
  6803. [
  6804. "HarnessLoader.getAllHarnesses",
  6805. "@angular/cdk/testing"
  6806. ],
  6807. [
  6808. "HarnessLoader.hasHarness",
  6809. "@angular/cdk/testing"
  6810. ],
  6811. [
  6812. "manualChangeDetection",
  6813. "@angular/cdk/testing"
  6814. ],
  6815. [
  6816. "parallel",
  6817. "@angular/cdk/testing"
  6818. ],
  6819. [
  6820. "LocatorFactory",
  6821. "@angular/cdk/testing"
  6822. ],
  6823. [
  6824. "LocatorFactory.documentRootLocatorFactory",
  6825. "@angular/cdk/testing"
  6826. ],
  6827. [
  6828. "LocatorFactory.rootElement",
  6829. "@angular/cdk/testing"
  6830. ],
  6831. [
  6832. "LocatorFactory.locatorFor",
  6833. "@angular/cdk/testing"
  6834. ],
  6835. [
  6836. "LocatorFactory.locatorForOptional",
  6837. "@angular/cdk/testing"
  6838. ],
  6839. [
  6840. "LocatorFactory.locatorForAll",
  6841. "@angular/cdk/testing"
  6842. ],
  6843. [
  6844. "LocatorFactory.rootHarnessLoader",
  6845. "@angular/cdk/testing"
  6846. ],
  6847. [
  6848. "LocatorFactory.harnessLoaderFor",
  6849. "@angular/cdk/testing"
  6850. ],
  6851. [
  6852. "LocatorFactory.harnessLoaderForOptional",
  6853. "@angular/cdk/testing"
  6854. ],
  6855. [
  6856. "LocatorFactory.harnessLoaderForAll",
  6857. "@angular/cdk/testing"
  6858. ],
  6859. [
  6860. "LocatorFactory.forceStabilize",
  6861. "@angular/cdk/testing"
  6862. ],
  6863. [
  6864. "LocatorFactory.waitForTasksOutsideAngular",
  6865. "@angular/cdk/testing"
  6866. ],
  6867. [
  6868. "TextOptions",
  6869. "@angular/cdk/testing"
  6870. ],
  6871. [
  6872. "TextOptions.exclude",
  6873. "@angular/cdk/testing"
  6874. ],
  6875. [
  6876. "ComponentHarness",
  6877. "@angular/cdk/testing"
  6878. ],
  6879. [
  6880. "ComponentHarness.constructor",
  6881. "@angular/cdk/testing"
  6882. ],
  6883. [
  6884. "ComponentHarness.host",
  6885. "@angular/cdk/testing"
  6886. ],
  6887. [
  6888. "ComponentHarness.documentRootLocatorFactory",
  6889. "@angular/cdk/testing"
  6890. ],
  6891. [
  6892. "ComponentHarness.locatorFor",
  6893. "@angular/cdk/testing"
  6894. ],
  6895. [
  6896. "ComponentHarness.locatorForOptional",
  6897. "@angular/cdk/testing"
  6898. ],
  6899. [
  6900. "ComponentHarness.locatorForAll",
  6901. "@angular/cdk/testing"
  6902. ],
  6903. [
  6904. "ComponentHarness.forceStabilize",
  6905. "@angular/cdk/testing"
  6906. ],
  6907. [
  6908. "ComponentHarness.waitForTasksOutsideAngular",
  6909. "@angular/cdk/testing"
  6910. ],
  6911. [
  6912. "ContentContainerComponentHarness",
  6913. "@angular/cdk/testing"
  6914. ],
  6915. [
  6916. "ContentContainerComponentHarness.getChildLoader",
  6917. "@angular/cdk/testing"
  6918. ],
  6919. [
  6920. "ContentContainerComponentHarness.getAllChildLoaders",
  6921. "@angular/cdk/testing"
  6922. ],
  6923. [
  6924. "ContentContainerComponentHarness.getHarness",
  6925. "@angular/cdk/testing"
  6926. ],
  6927. [
  6928. "ContentContainerComponentHarness.getHarnessOrNull",
  6929. "@angular/cdk/testing"
  6930. ],
  6931. [
  6932. "ContentContainerComponentHarness.getAllHarnesses",
  6933. "@angular/cdk/testing"
  6934. ],
  6935. [
  6936. "ContentContainerComponentHarness.hasHarness",
  6937. "@angular/cdk/testing"
  6938. ],
  6939. [
  6940. "ContentContainerComponentHarness.getRootHarnessLoader",
  6941. "@angular/cdk/testing"
  6942. ],
  6943. [
  6944. "ContentContainerComponentHarness.host",
  6945. "@angular/cdk/testing"
  6946. ],
  6947. [
  6948. "ContentContainerComponentHarness.documentRootLocatorFactory",
  6949. "@angular/cdk/testing"
  6950. ],
  6951. [
  6952. "ContentContainerComponentHarness.locatorFor",
  6953. "@angular/cdk/testing"
  6954. ],
  6955. [
  6956. "ContentContainerComponentHarness.locatorForOptional",
  6957. "@angular/cdk/testing"
  6958. ],
  6959. [
  6960. "ContentContainerComponentHarness.locatorForAll",
  6961. "@angular/cdk/testing"
  6962. ],
  6963. [
  6964. "ContentContainerComponentHarness.forceStabilize",
  6965. "@angular/cdk/testing"
  6966. ],
  6967. [
  6968. "ContentContainerComponentHarness.waitForTasksOutsideAngular",
  6969. "@angular/cdk/testing"
  6970. ],
  6971. [
  6972. "ComponentHarnessConstructor",
  6973. "@angular/cdk/testing"
  6974. ],
  6975. [
  6976. "ComponentHarnessConstructor.hostSelector",
  6977. "@angular/cdk/testing"
  6978. ],
  6979. [
  6980. "BaseHarnessFilters",
  6981. "@angular/cdk/testing"
  6982. ],
  6983. [
  6984. "BaseHarnessFilters.selector",
  6985. "@angular/cdk/testing"
  6986. ],
  6987. [
  6988. "BaseHarnessFilters.ancestor",
  6989. "@angular/cdk/testing"
  6990. ],
  6991. [
  6992. "HarnessPredicate",
  6993. "@angular/cdk/testing"
  6994. ],
  6995. [
  6996. "HarnessPredicate.constructor",
  6997. "@angular/cdk/testing"
  6998. ],
  6999. [
  7000. "HarnessPredicate.harnessType",
  7001. "@angular/cdk/testing"
  7002. ],
  7003. [
  7004. "HarnessPredicate.add",
  7005. "@angular/cdk/testing"
  7006. ],
  7007. [
  7008. "HarnessPredicate.addOption",
  7009. "@angular/cdk/testing"
  7010. ],
  7011. [
  7012. "HarnessPredicate.filter",
  7013. "@angular/cdk/testing"
  7014. ],
  7015. [
  7016. "HarnessPredicate.evaluate",
  7017. "@angular/cdk/testing"
  7018. ],
  7019. [
  7020. "HarnessPredicate.getDescription",
  7021. "@angular/cdk/testing"
  7022. ],
  7023. [
  7024. "HarnessPredicate.getSelector",
  7025. "@angular/cdk/testing"
  7026. ],
  7027. [
  7028. "HarnessPredicate.stringMatches",
  7029. "@angular/cdk/testing"
  7030. ]
  7031. ]
  7032. }