How to use handler2 method in wpt

Best JavaScript code snippet using wpt

data.js

Source: data.js Github

copy

Full Screen

1data = [{"t":0,"command":"create goroutine","name":"main"},2{"t":605979,"command":"create goroutine","name":"handler #8","parent":"main"},3{"t":716359,"command":"create goroutine","name":"handler #9","parent":"main"},4{"t":795910,"command":"create goroutine","name":"handler #7","parent":"main"},5{"t":890597,"command":"create goroutine","name":"handler #5","parent":"main"},6{"t":940297,"command":"create goroutine","name":"handler #13","parent":"main"},7{"t":1102003,"command":"create goroutine","name":"handler #10","parent":"main"},8{"t":1131337,"command":"create goroutine","name":"handler #14","parent":"main"},9{"t":1172158,"command":"create goroutine","name":"handler #12","parent":"main"},10{"t":1180623,"command":"create goroutine","name":"handler #11","parent":"main"},11{"t":1372351,"command":"create goroutine","name":"handler #6","parent":"main"},12{"t":501935213,"command":"create goroutine","name":"handler2 #36","parent":"handler #9"},13{"t":502373213,"command":"create goroutine","name":"handler2 #17","parent":"handler #9"},14{"t":502671213,"command":"create goroutine","name":"handler2 #18","parent":"handler #9"},15{"t":502831213,"command":"create goroutine","name":"handler2 #19","parent":"handler #9"},16{"t":502926620,"command":"create goroutine","name":"handler2 #20","parent":"handler #9"},17{"t":502971199,"command":"create goroutine","name":"handler2 #21","parent":"handler #9"},18{"t":503010467,"command":"create goroutine","name":"handler2 #22","parent":"handler #9"},19{"t":503082867,"command":"create goroutine","name":"handler2 #23","parent":"handler #9"},20{"t":503124242,"command":"create goroutine","name":"handler2 #24","parent":"handler #9"},21{"t":503161810,"command":"create goroutine","name":"handler2 #25","parent":"handler #9"},22{"t":503198888,"command":"create goroutine","name":"handler2 #26","parent":"handler #9"},23{"t":503238228,"command":"create goroutine","name":"handler2 #27","parent":"handler #9"},24{"t":503275477,"command":"create goroutine","name":"handler2 #28","parent":"handler #9"},25{"t":503314398,"command":"create goroutine","name":"handler2 #29","parent":"handler #9"},26{"t":503353920,"command":"create goroutine","name":"handler2 #30","parent":"handler #9"},27{"t":503421299,"command":"create goroutine","name":"handler2 #31","parent":"handler #9"},28{"t":503460371,"command":"create goroutine","name":"handler2 #32","parent":"handler #9"},29{"t":503497680,"command":"create goroutine","name":"handler2 #33","parent":"handler #9"},30{"t":503535420,"command":"create goroutine","name":"handler2 #34","parent":"handler #9"},31{"t":503573408,"command":"create goroutine","name":"handler2 #35","parent":"handler #9"},32{"t":503870418,"command":"create goroutine","name":"handler2 #68","parent":"handler #7"},33{"t":503915822,"command":"create goroutine","name":"handler2 #49","parent":"handler #7"},34{"t":503954732,"command":"create goroutine","name":"handler2 #50","parent":"handler #7"},35{"t":504035568,"command":"create goroutine","name":"handler2 #51","parent":"handler #7"},36{"t":504078289,"command":"create goroutine","name":"handler2 #52","parent":"handler #7"},37{"t":504116407,"command":"create goroutine","name":"handler2 #53","parent":"handler #7"},38{"t":504154111,"command":"create goroutine","name":"handler2 #54","parent":"handler #7"},39{"t":504192319,"command":"create goroutine","name":"handler2 #55","parent":"handler #7"},40{"t":504229730,"command":"create goroutine","name":"handler2 #56","parent":"handler #7"},41{"t":504267069,"command":"create goroutine","name":"handler2 #57","parent":"handler #7"},42{"t":504303417,"command":"create goroutine","name":"handler2 #58","parent":"handler #7"},43{"t":504370138,"command":"create goroutine","name":"handler2 #59","parent":"handler #7"},44{"t":504409442,"command":"create goroutine","name":"handler2 #60","parent":"handler #7"},45{"t":504447617,"command":"create goroutine","name":"handler2 #61","parent":"handler #7"},46{"t":504484431,"command":"create goroutine","name":"handler2 #62","parent":"handler #7"},47{"t":504522490,"command":"create goroutine","name":"handler2 #63","parent":"handler #7"},48{"t":504559708,"command":"create goroutine","name":"handler2 #64","parent":"handler #7"},49{"t":504597372,"command":"create goroutine","name":"handler2 #65","parent":"handler #7"},50{"t":504635389,"command":"create goroutine","name":"handler2 #66","parent":"handler #7"},51{"t":504700457,"command":"create goroutine","name":"handler2 #67","parent":"handler #7"},52{"t":513075598,"command":"create goroutine","name":"handler2 #99","parent":"handler #8"},53{"t":513145308,"command":"create goroutine","name":"handler2 #16","parent":"handler #8"},54{"t":513187282,"command":"create goroutine","name":"handler2 #81","parent":"handler #8"},55{"t":513227202,"command":"create goroutine","name":"handler2 #82","parent":"handler #8"},56{"t":513266361,"command":"create goroutine","name":"handler2 #83","parent":"handler #8"},57{"t":513335480,"command":"create goroutine","name":"handler2 #84","parent":"handler #8"},58{"t":513376249,"command":"create goroutine","name":"handler2 #85","parent":"handler #8"},59{"t":513414400,"command":"create goroutine","name":"handler2 #86","parent":"handler #8"},60{"t":513452319,"command":"create goroutine","name":"handler2 #87","parent":"handler #8"},61{"t":513491362,"command":"create goroutine","name":"handler2 #88","parent":"handler #8"},62{"t":513529717,"command":"create goroutine","name":"handler2 #89","parent":"handler #8"},63{"t":513566318,"command":"create goroutine","name":"handler2 #90","parent":"handler #8"},64{"t":513603189,"command":"create goroutine","name":"handler2 #91","parent":"handler #8"},65{"t":513954910,"command":"create goroutine","name":"handler2 #92","parent":"handler #8"},66{"t":514126422,"command":"create goroutine","name":"handler2 #93","parent":"handler #8"},67{"t":514376549,"command":"create goroutine","name":"handler2 #94","parent":"handler #8"},68{"t":514437967,"command":"create goroutine","name":"handler2 #95","parent":"handler #8"},69{"t":514477570,"command":"create goroutine","name":"handler2 #97","parent":"handler #8"},70{"t":514522481,"command":"create goroutine","name":"handler2 #96","parent":"handler #8"},71{"t":514556520,"command":"create goroutine","name":"handler2 #98","parent":"handler #8"},72{"t":515492698,"command":"create goroutine","name":"handler2 #119","parent":"handler #10"},73{"t":515814521,"command":"create goroutine","name":"handler2 #139","parent":"handler #5"},74{"t":516140919,"command":"create goroutine","name":"handler2 #159","parent":"handler #13"},75{"t":516184567,"command":"create goroutine","name":"handler2 #100","parent":"handler #10"},76{"t":516251809,"command":"create goroutine","name":"handler2 #101","parent":"handler #10"},77{"t":516294112,"command":"create goroutine","name":"handler2 #102","parent":"handler #10"},78{"t":516333927,"command":"create goroutine","name":"handler2 #103","parent":"handler #10"},79{"t":516374128,"command":"create goroutine","name":"handler2 #104","parent":"handler #10"},80{"t":516413410,"command":"create goroutine","name":"handler2 #105","parent":"handler #10"},81{"t":516453527,"command":"create goroutine","name":"handler2 #106","parent":"handler #10"},82{"t":516491537,"command":"create goroutine","name":"handler2 #107","parent":"handler #10"},83{"t":516529292,"command":"create goroutine","name":"handler2 #108","parent":"handler #10"},84{"t":516598418,"command":"create goroutine","name":"handler2 #109","parent":"handler #10"},85{"t":516637851,"command":"create goroutine","name":"handler2 #110","parent":"handler #10"},86{"t":516677141,"command":"create goroutine","name":"handler2 #111","parent":"handler #10"},87{"t":516715117,"command":"create goroutine","name":"handler2 #112","parent":"handler #10"},88{"t":516754281,"command":"create goroutine","name":"handler2 #113","parent":"handler #10"},89{"t":516792782,"command":"create goroutine","name":"handler2 #114","parent":"handler #10"},90{"t":516831311,"command":"create goroutine","name":"handler2 #115","parent":"handler #10"},91{"t":516870099,"command":"create goroutine","name":"handler2 #116","parent":"handler #10"},92{"t":516936560,"command":"create goroutine","name":"handler2 #117","parent":"handler #10"},93{"t":516975278,"command":"create goroutine","name":"handler2 #118","parent":"handler #10"},94{"t":517010898,"command":"create goroutine","name":"handler2 #120","parent":"handler #5"},95{"t":517337189,"command":"create goroutine","name":"handler2 #121","parent":"handler #5"},96{"t":517403732,"command":"create goroutine","name":"handler2 #122","parent":"handler #5"},97{"t":517489259,"command":"create goroutine","name":"handler2 #131","parent":"handler #5"},98{"t":517536792,"command":"create goroutine","name":"handler2 #123","parent":"handler #5"},99{"t":517576367,"command":"create goroutine","name":"handler2 #124","parent":"handler #5"},100{"t":517750768,"command":"create goroutine","name":"handler2 #141","parent":"handler #13"},101{"t":517921729,"command":"create goroutine","name":"handler2 #132","parent":"handler #5"},102{"t":517939837,"command":"create goroutine","name":"handler2 #168","parent":"handler #6"},103{"t":518080352,"command":"create goroutine","name":"handler2 #133","parent":"handler #5"},104{"t":518251269,"command":"create goroutine","name":"handler2 #134","parent":"handler #5"},105{"t":518341239,"command":"create goroutine","name":"handler2 #135","parent":"handler #5"},106{"t":518345652,"command":"create goroutine","name":"handler2 #188","parent":"handler #14"},107{"t":518381957,"command":"create goroutine","name":"handler2 #136","parent":"handler #5"},108{"t":518422412,"command":"create goroutine","name":"handler2 #137","parent":"handler #5"},109{"t":518458221,"command":"create goroutine","name":"handler2 #138","parent":"handler #5"},110{"t":518528771,"command":"create goroutine","name":"handler2 #140","parent":"handler #13"},111{"t":518553572,"command":"create goroutine","name":"handler2 #142","parent":"handler #13"},112{"t":518570649,"command":"create goroutine","name":"handler2 #128","parent":"handler #5"},113{"t":518592259,"command":"create goroutine","name":"handler2 #125","parent":"handler #5"},114{"t":518608137,"command":"create goroutine","name":"handler2 #126","parent":"handler #5"},115{"t":518634249,"command":"create goroutine","name":"handler2 #129","parent":"handler #5"},116{"t":518645897,"command":"create goroutine","name":"handler2 #127","parent":"handler #5"},117{"t":518672232,"command":"create goroutine","name":"handler2 #130","parent":"handler #5"},118{"t":518710291,"command":"create goroutine","name":"handler2 #78","parent":"handler #6"},119{"t":518714547,"command":"create goroutine","name":"handler2 #171","parent":"handler #14"},120{"t":518751257,"command":"create goroutine","name":"handler2 #79","parent":"handler #6"},121{"t":518789492,"command":"create goroutine","name":"handler2 #80","parent":"handler #6"},122{"t":518828032,"command":"create goroutine","name":"handler2 #161","parent":"handler #6"},123{"t":518867390,"command":"create goroutine","name":"handler2 #162","parent":"handler #6"},124{"t":518904297,"command":"create goroutine","name":"handler2 #163","parent":"handler #6"},125{"t":518943919,"command":"create goroutine","name":"handler2 #164","parent":"handler #6"},126{"t":518980450,"command":"create goroutine","name":"handler2 #165","parent":"handler #6"},127{"t":519007988,"command":"create goroutine","name":"handler2 #216","parent":"handler #11"},128{"t":519020318,"command":"create goroutine","name":"handler2 #166","parent":"handler #6"},129{"t":519058812,"command":"create goroutine","name":"handler2 #167","parent":"handler #6"},130{"t":519058819,"command":"create goroutine","name":"handler2 #69","parent":"handler #6"},131{"t":519098870,"command":"create goroutine","name":"handler2 #169","parent":"handler #14"},132{"t":519137808,"command":"create goroutine","name":"handler2 #170","parent":"handler #14"},133{"t":519243880,"command":"create goroutine","name":"handler2 #143","parent":"handler #13"},134{"t":519270919,"command":"create goroutine","name":"handler2 #208","parent":"handler #12"},135{"t":519283282,"command":"create goroutine","name":"handler2 #144","parent":"handler #13"},136{"t":519353722,"command":"create goroutine","name":"handler2 #43","parent":"handler #11"},137{"t":519390522,"command":"create goroutine","name":"handler2 #44","parent":"handler #11"},138{"t":519448491,"command":"create goroutine","name":"handler2 #172","parent":"handler #14"},139{"t":519486187,"command":"create goroutine","name":"handler2 #173","parent":"handler #14"},140{"t":519520409,"command":"create goroutine","name":"handler2 #174","parent":"handler #14"},141{"t":519554359,"command":"create goroutine","name":"handler2 #175","parent":"handler #14"},142{"t":519592672,"command":"create goroutine","name":"handler2 #176","parent":"handler #14"},143{"t":519795692,"command":"create goroutine","name":"handler2 #177","parent":"handler #14"},144{"t":520065780,"command":"create goroutine","name":"handler2 #178","parent":"handler #14"},145{"t":520083259,"command":"create goroutine","name":"handler2 #42","parent":"handler #11"},146{"t":520146702,"command":"create goroutine","name":"handler2 #179","parent":"handler #14"},147{"t":520190649,"command":"create goroutine","name":"handler2 #180","parent":"handler #14"},148{"t":520235151,"command":"create goroutine","name":"handler2 #181","parent":"handler #14"},149{"t":520275919,"command":"create goroutine","name":"handler2 #182","parent":"handler #14"},150{"t":520308092,"command":"create goroutine","name":"handler2 #70","parent":"handler #6"},151{"t":520347447,"command":"create goroutine","name":"handler2 #71","parent":"handler #6"},152{"t":520411128,"command":"create goroutine","name":"handler2 #72","parent":"handler #6"},153{"t":520487429,"command":"create goroutine","name":"handler2 #73","parent":"handler #6"},154{"t":520487432,"command":"create goroutine","name":"handler2 #183","parent":"handler #14"},155{"t":520551200,"command":"create goroutine","name":"handler2 #74","parent":"handler #6"},156{"t":520595770,"command":"create goroutine","name":"handler2 #75","parent":"handler #6"},157{"t":520629122,"command":"create goroutine","name":"handler2 #45","parent":"handler #11"},158{"t":520635641,"command":"create goroutine","name":"handler2 #76","parent":"handler #6"},159{"t":520753292,"command":"create goroutine","name":"handler2 #145","parent":"handler #13"},160{"t":520996388,"command":"create goroutine","name":"handler2 #146","parent":"handler #13"},161{"t":521039060,"command":"create goroutine","name":"handler2 #147","parent":"handler #13"},162{"t":521075018,"command":"create goroutine","name":"handler2 #148","parent":"handler #13"},163{"t":521108807,"command":"create goroutine","name":"handler2 #149","parent":"handler #13"},164{"t":521143241,"command":"create goroutine","name":"handler2 #150","parent":"handler #13"},165{"t":521180369,"command":"create goroutine","name":"handler2 #151","parent":"handler #13"},166{"t":521262727,"command":"create goroutine","name":"handler2 #152","parent":"handler #13"},167{"t":521322178,"command":"create goroutine","name":"handler2 #153","parent":"handler #13"},168{"t":521359337,"command":"create goroutine","name":"handler2 #154","parent":"handler #13"},169{"t":521396219,"command":"create goroutine","name":"handler2 #155","parent":"handler #13"},170{"t":521440970,"command":"create goroutine","name":"handler2 #156","parent":"handler #13"},171{"t":521476692,"command":"create goroutine","name":"handler2 #157","parent":"handler #13"},172{"t":521520918,"command":"create goroutine","name":"handler2 #158","parent":"handler #13"},173{"t":521559742,"command":"create goroutine","name":"handler2 #210","parent":"handler #11"},174{"t":521593442,"command":"create goroutine","name":"handler2 #46","parent":"handler #11"},175{"t":521651098,"command":"create goroutine","name":"handler2 #47","parent":"handler #11"},176{"t":521688701,"command":"create goroutine","name":"handler2 #48","parent":"handler #11"},177{"t":521724060,"command":"create goroutine","name":"handler2 #209","parent":"handler #11"},178{"t":521761792,"command":"create goroutine","name":"handler2 #39","parent":"handler #11"},179{"t":521798221,"command":"create goroutine","name":"handler2 #37","parent":"handler #11"},180{"t":521833219,"command":"create goroutine","name":"handler2 #38","parent":"handler #11"},181{"t":521894588,"command":"create goroutine","name":"handler2 #213","parent":"handler #11"},182{"t":521931789,"command":"create goroutine","name":"handler2 #211","parent":"handler #11"},183{"t":522295227,"command":"create goroutine","name":"handler2 #214","parent":"handler #11"},184{"t":522342018,"command":"create goroutine","name":"handler2 #215","parent":"handler #11"},185{"t":522582339,"command":"create goroutine","name":"handler2 #212","parent":"handler #11"},186{"t":522631492,"command":"create goroutine","name":"handler2 #40","parent":"handler #11"},187{"t":522644427,"command":"create goroutine","name":"handler2 #196","parent":"handler #12"},188{"t":522673121,"command":"create goroutine","name":"handler2 #190","parent":"handler #12"},189{"t":522695558,"command":"create goroutine","name":"handler2 #191","parent":"handler #12"},190{"t":522727319,"command":"create goroutine","name":"handler2 #185","parent":"handler #14"},191{"t":522739821,"command":"create goroutine","name":"handler2 #192","parent":"handler #12"},192{"t":522782998,"command":"create goroutine","name":"handler2 #193","parent":"handler #12"},193{"t":522835248,"command":"create goroutine","name":"handler2 #186","parent":"handler #14"},194{"t":522839960,"command":"create goroutine","name":"handler2 #194","parent":"handler #12"},195{"t":522876691,"command":"create goroutine","name":"handler2 #187","parent":"handler #14"},196{"t":522884359,"command":"create goroutine","name":"handler2 #195","parent":"handler #12"},197{"t":522948460,"command":"create goroutine","name":"handler2 #202","parent":"handler #12"},198{"t":522991498,"command":"create goroutine","name":"handler2 #197","parent":"handler #12"},199{"t":523027717,"command":"create goroutine","name":"handler2 #198","parent":"handler #12"},200{"t":523041057,"command":"create goroutine","name":"handler2 #189","parent":"handler #12"},201{"t":523084779,"command":"create goroutine","name":"handler2 #41","parent":"handler #11"},202{"t":523095347,"command":"create goroutine","name":"handler2 #199","parent":"handler #12"},203{"t":523128010,"command":"create goroutine","name":"handler2 #200","parent":"handler #12"},204{"t":523135247,"command":"create goroutine","name":"handler2 #201","parent":"handler #12"},205{"t":523173249,"command":"create goroutine","name":"handler2 #206","parent":"handler #12"},206{"t":523175429,"command":"create goroutine","name":"handler2 #205","parent":"handler #12"},207{"t":523216318,"command":"create goroutine","name":"handler2 #203","parent":"handler #12"},208{"t":523225178,"command":"create goroutine","name":"handler2 #207","parent":"handler #12"},209{"t":523256131,"command":"create goroutine","name":"handler2 #204","parent":"handler #12"},210{"t":523302301,"command":"create goroutine","name":"handler2 #184","parent":"handler #14"},211{"t":523311010,"command":"create goroutine","name":"handler2 #77","parent":"handler #6"},212{"t":1002884418,"command":"stop goroutine","name":"handler2 #36"},213{"t":1002903571,"command":"stop goroutine","name":"handler2 #18"},214{"t":1002935216,"command":"stop goroutine","name":"handler2 #17"},215{"t":1002981131,"command":"stop goroutine","name":"handler2 #19"},216{"t":1003009796,"command":"stop goroutine","name":"handler2 #20"},217{"t":1003037551,"command":"stop goroutine","name":"handler2 #21"},218{"t":1003077561,"command":"stop goroutine","name":"handler2 #22"},219{"t":1003143808,"command":"stop goroutine","name":"handler2 #23"},220{"t":1003181476,"command":"stop goroutine","name":"handler2 #24"},221{"t":1003211221,"command":"stop goroutine","name":"handler2 #25"},222{"t":1003256560,"command":"stop goroutine","name":"handler2 #26"},223{"t":1003300488,"command":"stop goroutine","name":"handler2 #27"},224{"t":1003337012,"command":"stop goroutine","name":"handler2 #28"},225{"t":1003377146,"command":"stop goroutine","name":"handler2 #29"},226{"t":1003403636,"command":"stop goroutine","name":"handler2 #30"},227{"t":1003491492,"command":"stop goroutine","name":"handler2 #31"},228{"t":1003517872,"command":"stop goroutine","name":"handler2 #32"},229{"t":1003554490,"command":"stop goroutine","name":"handler2 #33"},230{"t":1003588261,"command":"stop goroutine","name":"handler2 #34"},231{"t":1003629096,"command":"stop goroutine","name":"handler2 #35"},232{"t":1003956080,"command":"stop goroutine","name":"handler2 #49"},233{"t":1003961250,"command":"stop goroutine","name":"handler2 #68"},234{"t":1004025326,"command":"stop goroutine","name":"handler2 #50"},235{"t":1004098929,"command":"stop goroutine","name":"handler2 #51"},236{"t":1004136299,"command":"stop goroutine","name":"handler2 #52"},237{"t":1004196978,"command":"stop goroutine","name":"handler2 #53"},238{"t":1004248498,"command":"stop goroutine","name":"handler2 #55"},239{"t":1004263250,"command":"stop goroutine","name":"handler2 #54"},240{"t":1004292188,"command":"stop goroutine","name":"handler2 #56"},241{"t":1004330702,"command":"stop goroutine","name":"handler2 #57"},242{"t":1004365608,"command":"stop goroutine","name":"handler2 #58"},243{"t":1004435792,"command":"stop goroutine","name":"handler2 #59"},244{"t":1004466056,"command":"stop goroutine","name":"handler2 #60"},245{"t":1004504872,"command":"stop goroutine","name":"handler2 #61"},246{"t":1004527032,"command":"stop goroutine","name":"handler2 #62"},247{"t":1004578901,"command":"stop goroutine","name":"handler2 #63"},248{"t":1004607660,"command":"stop goroutine","name":"handler2 #64"},249{"t":1004654966,"command":"stop goroutine","name":"handler2 #65"},250{"t":1004690541,"command":"stop goroutine","name":"handler2 #66"},251{"t":1004753599,"command":"stop goroutine","name":"handler2 #67"},252{"t":1013490148,"command":"stop goroutine","name":"handler2 #86"},253{"t":1013491776,"command":"stop goroutine","name":"handler2 #82"},254{"t":1013544498,"command":"stop goroutine","name":"handler2 #84"},255{"t":1013545779,"command":"stop goroutine","name":"handler2 #85"},256{"t":1013566446,"command":"stop goroutine","name":"handler2 #83"},257{"t":1013573352,"command":"stop goroutine","name":"handler2 #89"},258{"t":1013630588,"command":"stop goroutine","name":"handler2 #99"},259{"t":1013650829,"command":"stop goroutine","name":"handler2 #87"},260{"t":1013658918,"command":"stop goroutine","name":"handler2 #16"},261{"t":1013659536,"command":"stop goroutine","name":"handler2 #90"},262{"t":1013676296,"command":"stop goroutine","name":"handler2 #88"},263{"t":1013680821,"command":"stop goroutine","name":"handler2 #81"},264{"t":1013812349,"command":"stop goroutine","name":"handler2 #91"},265{"t":1014178599,"command":"stop goroutine","name":"handler2 #92"},266{"t":1014318579,"command":"stop goroutine","name":"handler2 #93"},267{"t":1014446999,"command":"stop goroutine","name":"handler2 #94"},268{"t":1014534796,"command":"stop goroutine","name":"handler2 #97"},269{"t":1014591446,"command":"stop goroutine","name":"handler2 #96"},270{"t":1014818810,"command":"stop goroutine","name":"handler2 #95"},271{"t":1014869150,"command":"stop goroutine","name":"handler2 #98"},272{"t":1015667579,"command":"stop goroutine","name":"handler2 #119"},273{"t":1015924229,"command":"stop goroutine","name":"handler2 #139"},274{"t":1016204036,"command":"stop goroutine","name":"handler2 #159"},275{"t":1016242756,"command":"stop goroutine","name":"handler2 #100"},276{"t":1016311396,"command":"stop goroutine","name":"handler2 #101"},277{"t":1016354078,"command":"stop goroutine","name":"handler2 #102"},278{"t":1016384826,"command":"stop goroutine","name":"handler2 #103"},279{"t":1016427812,"command":"stop goroutine","name":"handler2 #104"},280{"t":1016459860,"command":"stop goroutine","name":"handler2 #105"},281{"t":1016504171,"command":"stop goroutine","name":"handler2 #106"},282{"t":1016548588,"command":"stop goroutine","name":"handler2 #107"},283{"t":1016580581,"command":"stop goroutine","name":"handler2 #108"},284{"t":1016659881,"command":"stop goroutine","name":"handler2 #109"},285{"t":1016688880,"command":"stop goroutine","name":"handler2 #110"},286{"t":1016737572,"command":"stop goroutine","name":"handler2 #111"},287{"t":1016780909,"command":"stop goroutine","name":"handler2 #112"},288{"t":1016826608,"command":"stop goroutine","name":"handler2 #113"},289{"t":1016863906,"command":"stop goroutine","name":"handler2 #114"},290{"t":1016913781,"command":"stop goroutine","name":"handler2 #116"},291{"t":1016936072,"command":"stop goroutine","name":"handler2 #115"},292{"t":1017005471,"command":"stop goroutine","name":"handler2 #117"},293{"t":1017024258,"command":"stop goroutine","name":"handler2 #118"},294{"t":1017063412,"command":"stop goroutine","name":"handler2 #120"},295{"t":1017464551,"command":"stop goroutine","name":"handler2 #121"},296{"t":1017565332,"command":"stop goroutine","name":"handler2 #131"},297{"t":1017587321,"command":"stop goroutine","name":"handler2 #123"},298{"t":1017637706,"command":"stop goroutine","name":"handler2 #124"},299{"t":1017828630,"command":"stop goroutine","name":"handler2 #141"},300{"t":1018024370,"command":"stop goroutine","name":"handler2 #168"},301{"t":1018111806,"command":"stop goroutine","name":"handler2 #132"},302{"t":1018283260,"command":"stop goroutine","name":"handler2 #133"},303{"t":1018350342,"command":"stop goroutine","name":"handler2 #134"},304{"t":1018395850,"command":"stop goroutine","name":"handler2 #135"},305{"t":1018416278,"command":"stop goroutine","name":"handler2 #188"},306{"t":1018427351,"command":"stop goroutine","name":"handler2 #136"},307{"t":1018466862,"command":"stop goroutine","name":"handler2 #137"},308{"t":1018522398,"command":"stop goroutine","name":"handler2 #138"},309{"t":1018560681,"command":"stop goroutine","name":"handler2 #122"},310{"t":1018572611,"command":"stop goroutine","name":"handler2 #140"},311{"t":1018625188,"command":"stop goroutine","name":"handler2 #128"},312{"t":1018639276,"command":"stop goroutine","name":"handler2 #125"},313{"t":1018658739,"command":"stop goroutine","name":"handler2 #126"},314{"t":1018684562,"command":"stop goroutine","name":"handler2 #127"},315{"t":1018694202,"command":"stop goroutine","name":"handler2 #129"},316{"t":1018718489,"command":"stop goroutine","name":"handler2 #130"},317{"t":1018764176,"command":"stop goroutine","name":"handler2 #171"},318{"t":1018767511,"command":"stop goroutine","name":"handler2 #78"},319{"t":1018804110,"command":"stop goroutine","name":"handler2 #79"},320{"t":1018839798,"command":"stop goroutine","name":"handler2 #80"},321{"t":1018878840,"command":"stop goroutine","name":"handler2 #161"},322{"t":1018918152,"command":"stop goroutine","name":"handler2 #162"},323{"t":1018952399,"command":"stop goroutine","name":"handler2 #163"},324{"t":1018985962,"command":"stop goroutine","name":"handler2 #164"},325{"t":1019020358,"command":"stop goroutine","name":"handler2 #165"},326{"t":1019072889,"command":"stop goroutine","name":"handler2 #166"},327{"t":1019088731,"command":"stop goroutine","name":"handler2 #216"},328{"t":1019129501,"command":"stop goroutine","name":"handler2 #167"},329{"t":1019149719,"command":"stop goroutine","name":"handler2 #169"},330{"t":1019180891,"command":"stop goroutine","name":"handler2 #170"},331{"t":1019252849,"command":"stop goroutine","name":"handler2 #142"},332{"t":1019295736,"command":"stop goroutine","name":"handler2 #143"},333{"t":1019326420,"command":"stop goroutine","name":"handler2 #144"},334{"t":1019329066,"command":"stop goroutine","name":"handler2 #208"},335{"t":1019377368,"command":"stop goroutine","name":"handler2 #69"},336{"t":1019401872,"command":"stop goroutine","name":"handler2 #43"},337{"t":1019439720,"command":"stop goroutine","name":"handler2 #44"},338{"t":1019492729,"command":"stop goroutine","name":"handler2 #172"},339{"t":1019551736,"command":"stop goroutine","name":"handler2 #173"},340{"t":1019566026,"command":"stop goroutine","name":"handler2 #174"},341{"t":1019600479,"command":"stop goroutine","name":"handler2 #175"},342{"t":1019641549,"command":"stop goroutine","name":"handler2 #176"},343{"t":1020127090,"command":"stop goroutine","name":"handler2 #177"},344{"t":1020153218,"command":"stop goroutine","name":"handler2 #178"},345{"t":1020195371,"command":"stop goroutine","name":"handler2 #179"},346{"t":1020262251,"command":"stop goroutine","name":"handler2 #180"},347{"t":1020301306,"command":"stop goroutine","name":"handler2 #181"},348{"t":1020318516,"command":"stop goroutine","name":"handler2 #42"},349{"t":1020339228,"command":"stop goroutine","name":"handler2 #182"},350{"t":1020340551,"command":"stop goroutine","name":"handler2 #70"},351{"t":1020434460,"command":"stop goroutine","name":"handler2 #71"},352{"t":1020461001,"command":"stop goroutine","name":"handler2 #72"},353{"t":1020549570,"command":"stop goroutine","name":"handler2 #73"},354{"t":1020606878,"command":"stop goroutine","name":"handler2 #74"},355{"t":1020656989,"command":"stop goroutine","name":"handler2 #75"},356{"t":1020686419,"command":"stop goroutine","name":"handler2 #76"},357{"t":1021048792,"command":"stop goroutine","name":"handler2 #146"},358{"t":1021055589,"command":"stop goroutine","name":"handler2 #145"},359{"t":1021099358,"command":"stop goroutine","name":"handler2 #147"},360{"t":1021146540,"command":"stop goroutine","name":"handler2 #148"},361{"t":1021165571,"command":"stop goroutine","name":"handler2 #149"},362{"t":1021189251,"command":"stop goroutine","name":"handler2 #150"},363{"t":1021272369,"command":"stop goroutine","name":"handler2 #151"},364{"t":1021311838,"command":"stop goroutine","name":"handler2 #152"},365{"t":1021371251,"command":"stop goroutine","name":"handler2 #153"},366{"t":1021409666,"command":"stop goroutine","name":"handler2 #154"},367{"t":1021441249,"command":"stop goroutine","name":"handler2 #155"},368{"t":1021486482,"command":"stop goroutine","name":"handler2 #156"},369{"t":1021533840,"command":"stop goroutine","name":"handler2 #157"},370{"t":1021585541,"command":"stop goroutine","name":"handler2 #158"},371{"t":1021604268,"command":"stop goroutine","name":"handler2 #210"},372{"t":1021642838,"command":"stop goroutine","name":"handler2 #46"},373{"t":1021700518,"command":"stop goroutine","name":"handler2 #47"},374{"t":1021732310,"command":"stop goroutine","name":"handler2 #48"},375{"t":1021773882,"command":"stop goroutine","name":"handler2 #209"},376{"t":1021809740,"command":"stop goroutine","name":"handler2 #39"},377{"t":1021842281,"command":"stop goroutine","name":"handler2 #37"},378{"t":1021904880,"command":"stop goroutine","name":"handler2 #38"},379{"t":1021942670,"command":"stop goroutine","name":"handler2 #213"},380{"t":1021979966,"command":"stop goroutine","name":"handler2 #211"},381{"t":1022264229,"command":"stop goroutine","name":"handler2 #183"},382{"t":1022301041,"command":"stop goroutine","name":"handler2 #45"},383{"t":1022352412,"command":"stop goroutine","name":"handler2 #214"},384{"t":1022532536,"command":"stop goroutine","name":"handler2 #215"},385{"t":1022647609,"command":"stop goroutine","name":"handler2 #212"},386{"t":1022683386,"command":"stop goroutine","name":"handler2 #40"},387{"t":1022698121,"command":"stop goroutine","name":"handler2 #196"},388{"t":1022738931,"command":"stop goroutine","name":"handler2 #191"},389{"t":1022752656,"command":"stop goroutine","name":"handler2 #190"},390{"t":1022772669,"command":"stop goroutine","name":"handler2 #185"},391{"t":1022787041,"command":"stop goroutine","name":"handler2 #192"},392{"t":1022848298,"command":"stop goroutine","name":"handler2 #193"},393{"t":1022883529,"command":"stop goroutine","name":"handler2 #194"},394{"t":1022896826,"command":"stop goroutine","name":"handler2 #186"},395{"t":1022914682,"command":"stop goroutine","name":"handler2 #187"},396{"t":1022922079,"command":"stop goroutine","name":"handler2 #195"},397{"t":1023005678,"command":"stop goroutine","name":"handler2 #202"},398{"t":1023051548,"command":"stop goroutine","name":"handler2 #197"},399{"t":1023095338,"command":"stop goroutine","name":"handler2 #189"},400{"t":1023102250,"command":"stop goroutine","name":"handler2 #198"},401{"t":1023136366,"command":"stop goroutine","name":"handler2 #199"},402{"t":1023139688,"command":"stop goroutine","name":"handler2 #41"},403{"t":1023188446,"command":"stop goroutine","name":"handler2 #201"},404{"t":1023192721,"command":"stop goroutine","name":"handler2 #200"},405{"t":1023231029,"command":"stop goroutine","name":"handler2 #205"},406{"t":1023232509,"command":"stop goroutine","name":"handler2 #206"},407{"t":1023275916,"command":"stop goroutine","name":"handler2 #207"},408{"t":1023281470,"command":"stop goroutine","name":"handler2 #203"},409{"t":1023307496,"command":"stop goroutine","name":"handler2 #204"},410{"t":1023359000,"command":"stop goroutine","name":"handler2 #77"},411{"t":1023366969,"command":"stop goroutine","name":"handler2 #184"},412{"t":1503208440,"command":"create goroutine","name":"handler2 #228","parent":"handler #9"},413{"t":1503250976,"command":"create goroutine","name":"handler2 #225","parent":"handler #9"},414{"t":1503280571,"command":"create goroutine","name":"handler2 #226","parent":"handler #9"},415{"t":1503297911,"command":"create goroutine","name":"handler2 #160","parent":"handler #9"},416{"t":1503314719,"command":"create goroutine","name":"handler2 #243","parent":"handler #9"},417{"t":1503327411,"command":"create goroutine","name":"handler2 #227","parent":"handler #9"},418{"t":1503337546,"command":"create goroutine","name":"handler2 #235","parent":"handler #9"},419{"t":1503371531,"command":"create goroutine","name":"handler2 #236","parent":"handler #9"},420{"t":1503372642,"command":"create goroutine","name":"handler2 #239","parent":"handler #9"},421{"t":1503396069,"command":"create goroutine","name":"handler2 #237","parent":"handler #9"},422{"t":1503420102,"command":"create goroutine","name":"handler2 #238","parent":"handler #9"},423{"t":1503430312,"command":"create goroutine","name":"handler2 #240","parent":"handler #9"},424{"t":1503436400,"command":"create goroutine","name":"handler2 #231","parent":"handler #9"},425{"t":1503459909,"command":"create goroutine","name":"handler2 #241","parent":"handler #9"},426{"t":1503473501,"command":"create goroutine","name":"handler2 #229","parent":"handler #9"},427{"t":1503500468,"command":"create goroutine","name":"handler2 #232","parent":"handler #9"},428{"t":1503507319,"command":"create goroutine","name":"handler2 #242","parent":"handler #9"},429{"t":1503513418,"command":"create goroutine","name":"handler2 #230","parent":"handler #9"},430{"t":1503569396,"command":"create goroutine","name":"handler2 #234","parent":"handler #9"},431{"t":1503580018,"command":"create goroutine","name":"handler2 #233","parent":"handler #9"},432{"t":1504079958,"command":"create goroutine","name":"handler2 #249","parent":"handler #7"},433{"t":1504090292,"command":"create goroutine","name":"handler2 #252","parent":"handler #7"},434{"t":1504128298,"command":"create goroutine","name":"handler2 #244","parent":"handler #7"},435{"t":1504138029,"command":"create goroutine","name":"handler2 #250","parent":"handler #7"},436{"t":1504173089,"command":"create goroutine","name":"handler2 #245","parent":"handler #7"},437{"t":1504180372,"command":"create goroutine","name":"handler2 #251","parent":"handler #7"},438{"t":1504189186,"command":"create goroutine","name":"handler2 #256","parent":"handler #7"},439{"t":1504214268,"command":"create goroutine","name":"handler2 #246","parent":"handler #7"},440{"t":1504225896,"command":"create goroutine","name":"handler2 #258","parent":"handler #7"},441{"t":1504232132,"command":"create goroutine","name":"handler2 #253","parent":"handler #7"},442{"t":1504251529,"command":"create goroutine","name":"handler2 #247","parent":"handler #7"},443{"t":1504267808,"command":"create goroutine","name":"handler2 #257","parent":"handler #7"},444{"t":1504275671,"command":"create goroutine","name":"handler2 #254","parent":"handler #7"},445{"t":1504288589,"command":"create goroutine","name":"handler2 #248","parent":"handler #7"},446{"t":1504315520,"command":"create goroutine","name":"handler2 #255","parent":"handler #7"},447{"t":1504334351,"command":"create goroutine","name":"handler2 #259","parent":"handler #7"},448{"t":1504379590,"command":"create goroutine","name":"handler2 #263","parent":"handler #7"},449{"t":1504383288,"command":"create goroutine","name":"handler2 #261","parent":"handler #7"},450{"t":1504398270,"command":"create goroutine","name":"handler2 #260","parent":"handler #7"},451{"t":1504429106,"command":"create goroutine","name":"handler2 #262","parent":"handler #7"},452{"t":1513302808,"command":"create goroutine","name":"handler2 #272","parent":"handler #8"},453{"t":1513305608,"command":"create goroutine","name":"handler2 #277","parent":"handler #8"},454{"t":1513309142,"command":"create goroutine","name":"handler2 #283","parent":"handler #8"},455{"t":1513320899,"command":"create goroutine","name":"handler2 #280","parent":"handler #8"},456{"t":1513373649,"command":"create goroutine","name":"handler2 #264","parent":"handler #8"},457{"t":1513375391,"command":"create goroutine","name":"handler2 #281","parent":"handler #8"},458{"t":1513385966,"command":"create goroutine","name":"handler2 #278","parent":"handler #8"},459{"t":1513422949,"command":"create goroutine","name":"handler2 #265","parent":"handler #8"},460{"t":1513433346,"command":"create goroutine","name":"handler2 #273","parent":"handler #8"},461{"t":1513435602,"command":"create goroutine","name":"handler2 #279","parent":"handler #8"},462{"t":1513456726,"command":"create goroutine","name":"handler2 #282","parent":"handler #8"},463{"t":1513466479,"command":"create goroutine","name":"handler2 #266","parent":"handler #8"},464{"t":1513477730,"command":"create goroutine","name":"handler2 #269","parent":"handler #8"},465{"t":1513507878,"command":"create goroutine","name":"handler2 #271","parent":"handler #8"},466{"t":1513519052,"command":"create goroutine","name":"handler2 #267","parent":"handler #8"},467{"t":1513526526,"command":"create goroutine","name":"handler2 #274","parent":"handler #8"},468{"t":1513569336,"command":"create goroutine","name":"handler2 #270","parent":"handler #8"},469{"t":1513573796,"command":"create goroutine","name":"handler2 #276","parent":"handler #8"},470{"t":1513584738,"command":"create goroutine","name":"handler2 #268","parent":"handler #8"},471{"t":1513615276,"command":"create goroutine","name":"handler2 #275","parent":"handler #8"},472{"t":1515687369,"command":"create goroutine","name":"handler2 #290","parent":"handler #10"},473{"t":1515758662,"command":"create goroutine","name":"handler2 #295","parent":"handler #10"},474{"t":1515759956,"command":"create goroutine","name":"handler2 #289","parent":"handler #10"},475{"t":1515776586,"command":"create goroutine","name":"handler2 #292","parent":"handler #10"},476{"t":1515797410,"command":"create goroutine","name":"handler2 #293","parent":"handler #10"},477{"t":1515842429,"command":"create goroutine","name":"handler2 #291","parent":"handler #10"},478{"t":1515855520,"command":"create goroutine","name":"handler2 #294","parent":"handler #10"},479{"t":1515889468,"command":"create goroutine","name":"handler2 #297","parent":"handler #10"},480{"t":1515900301,"command":"create goroutine","name":"handler2 #298","parent":"handler #10"},481{"t":1515911778,"command":"create goroutine","name":"handler2 #299","parent":"handler #10"},482{"t":1515932462,"command":"create goroutine","name":"handler2 #296","parent":"handler #10"},483{"t":1516086768,"command":"create goroutine","name":"handler2 #324","parent":"handler #10"},484{"t":1516130016,"command":"create goroutine","name":"handler2 #321","parent":"handler #10"},485{"t":1516181591,"command":"create goroutine","name":"handler2 #303","parent":"handler #10"},486{"t":1516226292,"command":"create goroutine","name":"handler2 #322","parent":"handler #10"},487{"t":1516236779,"command":"create goroutine","name":"handler2 #302","parent":"handler #10"},488{"t":1516249138,"command":"create goroutine","name":"handler2 #340","parent":"handler #5"},489{"t":1516266531,"command":"create goroutine","name":"handler2 #323","parent":"handler #10"},490{"t":1516324816,"command":"create goroutine","name":"handler2 #314","parent":"handler #5"},491{"t":1516359079,"command":"create goroutine","name":"handler2 #315","parent":"handler #5"},492{"t":1516365160,"command":"create goroutine","name":"handler2 #305","parent":"handler #5"},493{"t":1516427486,"command":"create goroutine","name":"handler2 #306","parent":"handler #5"},494{"t":1516477548,"command":"create goroutine","name":"handler2 #307","parent":"handler #5"},495{"t":1516508171,"command":"create goroutine","name":"handler2 #316","parent":"handler #5"},496{"t":1516518048,"command":"create goroutine","name":"handler2 #308","parent":"handler #5"},497{"t":1516595918,"command":"create goroutine","name":"handler2 #317","parent":"handler #5"},498{"t":1516631422,"command":"create goroutine","name":"handler2 #309","parent":"handler #5"},499{"t":1516640458,"command":"create goroutine","name":"handler2 #318","parent":"handler #5"},500{"t":1516784796,"command":"create goroutine","name":"handler2 #319","parent":"handler #5"},501{"t":1516865291,"command":"create goroutine","name":"handler2 #320","parent":"handler #5"},502{"t":1516888716,"command":"create goroutine","name":"handler2 #304","parent":"handler #10"},503{"t":1516911271,"command":"create goroutine","name":"handler2 #337","parent":"handler #5"},504{"t":1516949411,"command":"create goroutine","name":"handler2 #310","parent":"handler #5"},505{"t":1516952620,"command":"create goroutine","name":"handler2 #338","parent":"handler #5"},506{"t":1516978611,"command":"create goroutine","name":"handler2 #300","parent":"handler #10"},507{"t":1516995229,"command":"create goroutine","name":"handler2 #311","parent":"handler #5"},508{"t":1517020112,"command":"create goroutine","name":"handler2 #301","parent":"handler #10"},509{"t":1517064040,"command":"create goroutine","name":"handler2 #312","parent":"handler #5"},510{"t":1517080331,"command":"create goroutine","name":"handler2 #313","parent":"handler #5"},511{"t":1517127228,"command":"create goroutine","name":"handler2 #285","parent":"handler #13"},512{"t":1517139001,"command":"create goroutine","name":"handler2 #284","parent":"handler #13"},513{"t":1517170586,"command":"create goroutine","name":"handler2 #287","parent":"handler #13"},514{"t":1517185806,"command":"create goroutine","name":"handler2 #288","parent":"handler #13"},515{"t":1517210620,"command":"create goroutine","name":"handler2 #286","parent":"handler #13"},516{"t":1517224959,"command":"create goroutine","name":"handler2 #353","parent":"handler #13"},517{"t":1517264546,"command":"create goroutine","name":"handler2 #354","parent":"handler #13"},518{"t":1517315602,"command":"create goroutine","name":"handler2 #357","parent":"handler #13"},519{"t":1517363509,"command":"create goroutine","name":"handler2 #355","parent":"handler #13"},520{"t":1517366966,"command":"create goroutine","name":"handler2 #339","parent":"handler #5"},521{"t":1517426082,"command":"create goroutine","name":"handler2 #356","parent":"handler #13"},522{"t":1517454366,"command":"create goroutine","name":"handler2 #363","parent":"handler #13"},523{"t":1517470666,"command":"create goroutine","name":"handler2 #360","parent":"handler #13"},524{"t":1517472868,"command":"create goroutine","name":"handler2 #364","parent":"handler #13"},525{"t":1517501220,"command":"create goroutine","name":"handler2 #361","parent":"handler #13"},526{"t":1517521178,"command":"create goroutine","name":"handler2 #365","parent":"handler #13"},527{"t":1517525138,"command":"create goroutine","name":"handler2 #367","parent":"handler #13"},528{"t":1517544749,"command":"create goroutine","name":"handler2 #358","parent":"handler #13"},529{"t":1517575946,"command":"create goroutine","name":"handler2 #359","parent":"handler #13"},530{"t":1517593620,"command":"create goroutine","name":"handler2 #366","parent":"handler #13"},531{"t":1517612382,"command":"create goroutine","name":"handler2 #362","parent":"handler #13"},532{"t":1518129250,"command":"create goroutine","name":"handler2 #220","parent":"handler #6"},533{"t":1518149186,"command":"create goroutine","name":"handler2 #218","parent":"handler #6"},534{"t":1518178459,"command":"create goroutine","name":"handler2 #219","parent":"handler #6"},535{"t":1518194430,"command":"create goroutine","name":"handler2 #217","parent":"handler #6"},536{"t":1518225252,"command":"create goroutine","name":"handler2 #223","parent":"handler #6"},537{"t":1518238622,"command":"create goroutine","name":"handler2 #221","parent":"handler #6"},538{"t":1518260581,"command":"create goroutine","name":"handler2 #222","parent":"handler #6"},539{"t":1518282690,"command":"create goroutine","name":"handler2 #369","parent":"handler #6"},540{"t":1518297041,"command":"create goroutine","name":"handler2 #370","parent":"handler #6"},541{"t":1518303308,"command":"create goroutine","name":"handler2 #224","parent":"handler #6"},542{"t":1518434156,"command":"create goroutine","name":"handler2 #380","parent":"handler #6"},543{"t":1518460281,"command":"create goroutine","name":"handler2 #375","parent":"handler #6"},544{"t":1518544328,"command":"create goroutine","name":"handler2 #376","parent":"handler #6"},545{"t":1518562928,"command":"create goroutine","name":"handler2 #371","parent":"handler #6"},546{"t":1518618692,"command":"create goroutine","name":"handler2 #377","parent":"handler #6"},547{"t":1518626000,"command":"create goroutine","name":"handler2 #378","parent":"handler #6"},548{"t":1518689692,"command":"create goroutine","name":"handler2 #372","parent":"handler #6"},549{"t":1518744928,"command":"create goroutine","name":"handler2 #327","parent":"handler #14"},550{"t":1518751851,"command":"create goroutine","name":"handler2 #379","parent":"handler #6"},551{"t":1518773671,"command":"create goroutine","name":"handler2 #373","parent":"handler #6"},552{"t":1518807668,"command":"create goroutine","name":"handler2 #326","parent":"handler #14"},553{"t":1518846426,"command":"create goroutine","name":"handler2 #325","parent":"handler #14"},554{"t":1518850270,"command":"create goroutine","name":"handler2 #374","parent":"handler #6"},555{"t":1518850406,"command":"create goroutine","name":"handler2 #332","parent":"handler #14"},556{"t":1518896848,"command":"create goroutine","name":"handler2 #328","parent":"handler #14"},557{"t":1518909218,"command":"create goroutine","name":"handler2 #334","parent":"handler #14"},558{"t":1518942760,"command":"create goroutine","name":"handler2 #329","parent":"handler #14"},559{"t":1518955198,"command":"create goroutine","name":"handler2 #333","parent":"handler #14"},560{"t":1518955381,"command":"create goroutine","name":"handler2 #336","parent":"handler #14"},561{"t":1518985486,"command":"create goroutine","name":"handler2 #330","parent":"handler #14"},562{"t":1519000139,"command":"create goroutine","name":"handler2 #335","parent":"handler #14"},563{"t":1519066258,"command":"create goroutine","name":"handler2 #389","parent":"handler #14"},564{"t":1519067891,"command":"create goroutine","name":"handler2 #392","parent":"handler #14"},565{"t":1519080581,"command":"create goroutine","name":"handler2 #331","parent":"handler #14"},566{"t":1519098818,"command":"create goroutine","name":"handler2 #387","parent":"handler #14"},567{"t":1519128541,"command":"create goroutine","name":"handler2 #390","parent":"handler #14"},568{"t":1519144312,"command":"create goroutine","name":"handler2 #385","parent":"handler #14"},569{"t":1519151982,"command":"create goroutine","name":"handler2 #386","parent":"handler #14"},570{"t":1519188278,"command":"create goroutine","name":"handler2 #388","parent":"handler #14"},571{"t":1519201866,"command":"create goroutine","name":"handler2 #391","parent":"handler #14"},572{"t":1519333128,"command":"create goroutine","name":"handler2 #403","parent":"handler #11"},573{"t":1519353930,"command":"create goroutine","name":"handler2 #405","parent":"handler #11"},574{"t":1519407521,"command":"create goroutine","name":"handler2 #404","parent":"handler #11"},575{"t":1519449341,"command":"create goroutine","name":"handler2 #395","parent":"handler #12"},576{"t":1519548570,"command":"create goroutine","name":"handler2 #393","parent":"handler #12"},577{"t":1519594016,"command":"create goroutine","name":"handler2 #394","parent":"handler #12"},578{"t":1519596546,"command":"create goroutine","name":"handler2 #368","parent":"handler #11"},579{"t":1519638106,"command":"create goroutine","name":"handler2 #401","parent":"handler #11"},580{"t":1519644991,"command":"create goroutine","name":"handler2 #402","parent":"handler #11"},581{"t":1519673982,"command":"create goroutine","name":"handler2 #400","parent":"handler #12"},582{"t":1519709229,"command":"create goroutine","name":"handler2 #396","parent":"handler #12"},583{"t":1519740812,"command":"create goroutine","name":"handler2 #435","parent":"handler #11"},584{"t":1519745862,"command":"create goroutine","name":"handler2 #397","parent":"handler #12"},585{"t":1519788536,"command":"create goroutine","name":"handler2 #398","parent":"handler #12"},586{"t":1519804432,"command":"create goroutine","name":"handler2 #406","parent":"handler #11"},587{"t":1519842506,"command":"create goroutine","name":"handler2 #407","parent":"handler #11"},588{"t":1519870622,"command":"create goroutine","name":"handler2 #413","parent":"handler #11"},589{"t":1519915471,"command":"create goroutine","name":"handler2 #408","parent":"handler #11"},590{"t":1519922180,"command":"create goroutine","name":"handler2 #428","parent":"handler #12"},591{"t":1519938958,"command":"create goroutine","name":"handler2 #399","parent":"handler #12"},592{"t":1519960731,"command":"create goroutine","name":"handler2 #417","parent":"handler #12"},593{"t":1519975031,"command":"create goroutine","name":"handler2 #409","parent":"handler #11"},594{"t":1519993939,"command":"create goroutine","name":"handler2 #416","parent":"handler #11"},595{"t":1520035860,"command":"create goroutine","name":"handler2 #410","parent":"handler #11"},596{"t":1520062936,"command":"create goroutine","name":"handler2 #418","parent":"handler #12"},597{"t":1520078498,"command":"create goroutine","name":"handler2 #411","parent":"handler #11"},598{"t":1520079629,"command":"create goroutine","name":"handler2 #414","parent":"handler #11"},599{"t":1520104808,"command":"create goroutine","name":"handler2 #419","parent":"handler #12"},600{"t":1520118172,"command":"create goroutine","name":"handler2 #412","parent":"handler #11"},601{"t":1520130690,"command":"create goroutine","name":"handler2 #415","parent":"handler #11"},602{"t":1520145736,"command":"create goroutine","name":"handler2 #420","parent":"handler #12"},603{"t":1520172552,"command":"create goroutine","name":"handler2 #424","parent":"handler #12"},604{"t":1520187579,"command":"create goroutine","name":"handler2 #425","parent":"handler #12"},605{"t":1520194560,"command":"create goroutine","name":"handler2 #434","parent":"handler #11"},606{"t":1520225850,"command":"create goroutine","name":"handler2 #426","parent":"handler #12"},607{"t":1520242436,"command":"create goroutine","name":"handler2 #421","parent":"handler #12"},608{"t":1520250029,"command":"create goroutine","name":"handler2 #427","parent":"handler #12"},609{"t":1520267789,"command":"create goroutine","name":"handler2 #422","parent":"handler #12"},610{"t":1520283148,"command":"create goroutine","name":"handler2 #423","parent":"handler #12"},611{"t":1520295930,"command":"create goroutine","name":"handler2 #433","parent":"handler #11"},612{"t":2004348913,"command":"stop goroutine","name":"handler2 #241"},613{"t":2004390269,"command":"stop goroutine","name":"handler2 #227"},614{"t":2004395482,"command":"stop goroutine","name":"handler2 #239"},615{"t":2004408555,"command":"stop goroutine","name":"handler2 #236"},616{"t":2004417614,"command":"stop goroutine","name":"handler2 #228"},617{"t":2004419088,"command":"stop goroutine","name":"handler2 #237"},618{"t":2004429547,"command":"stop goroutine","name":"handler2 #225"},619{"t":2004430617,"command":"stop goroutine","name":"handler2 #238"},620{"t":2004441238,"command":"stop goroutine","name":"handler2 #226"},621{"t":2004442377,"command":"stop goroutine","name":"handler2 #231"},622{"t":2004454756,"command":"stop goroutine","name":"handler2 #160"},623{"t":2004468742,"command":"stop goroutine","name":"handler2 #248"},624{"t":2004489140,"command":"stop goroutine","name":"handler2 #229"},625{"t":2004497630,"command":"stop goroutine","name":"handler2 #243"},626{"t":2004506386,"command":"stop goroutine","name":"handler2 #232"},627{"t":2004510790,"command":"stop goroutine","name":"handler2 #235"},628{"t":2004517435,"command":"stop goroutine","name":"handler2 #242"},629{"t":2004523450,"command":"stop goroutine","name":"handler2 #245"},630{"t":2004528312,"command":"stop goroutine","name":"handler2 #251"},631{"t":2004533989,"command":"stop goroutine","name":"handler2 #230"},632{"t":2004538830,"command":"stop goroutine","name":"handler2 #256"},633{"t":2004544552,"command":"stop goroutine","name":"handler2 #234"},634{"t":2004549039,"command":"stop goroutine","name":"handler2 #246"},635{"t":2004555367,"command":"stop goroutine","name":"handler2 #233"},636{"t":2004560640,"command":"stop goroutine","name":"handler2 #258"},637{"t":2004566174,"command":"stop goroutine","name":"handler2 #240"},638{"t":2004571593,"command":"stop goroutine","name":"handler2 #253"},639{"t":2004576309,"command":"stop goroutine","name":"handler2 #249"},640{"t":2004582426,"command":"stop goroutine","name":"handler2 #247"},641{"t":2004587318,"command":"stop goroutine","name":"handler2 #252"},642{"t":2004592435,"command":"stop goroutine","name":"handler2 #257"},643{"t":2004604760,"command":"stop goroutine","name":"handler2 #244"},644{"t":2004611359,"command":"stop goroutine","name":"handler2 #250"},645{"t":2004615974,"command":"stop goroutine","name":"handler2 #254"},646{"t":2004640320,"command":"stop goroutine","name":"handler2 #255"},647{"t":2004652692,"command":"stop goroutine","name":"handler2 #263"},648{"t":2004657782,"command":"stop goroutine","name":"handler2 #261"},649{"t":2004664285,"command":"stop goroutine","name":"handler2 #259"},650{"t":2004677290,"command":"stop goroutine","name":"handler2 #260"},651{"t":2004690489,"command":"stop goroutine","name":"handler2 #262"},652{"t":2014466541,"command":"stop goroutine","name":"handler2 #282"},653{"t":2014468331,"command":"stop goroutine","name":"handler2 #275"},654{"t":2014476021,"command":"stop goroutine","name":"handler2 #264"},655{"t":2014516402,"command":"stop goroutine","name":"handler2 #266"},656{"t":2014517460,"command":"stop goroutine","name":"handler2 #278"},657{"t":2014521012,"command":"stop goroutine","name":"handler2 #272"},658{"t":2014527517,"command":"stop goroutine","name":"handler2 #269"},659{"t":2014532770,"command":"stop goroutine","name":"handler2 #283"},660{"t":2014534780,"command":"stop goroutine","name":"handler2 #281"},661{"t":2014545599,"command":"stop goroutine","name":"handler2 #280"},662{"t":2014547470,"command":"stop goroutine","name":"handler2 #274"},663{"t":2014555846,"command":"stop goroutine","name":"handler2 #277"},664{"t":2014564036,"command":"stop goroutine","name":"handler2 #270"},665{"t":2014565782,"command":"stop goroutine","name":"handler2 #271"},666{"t":2014573460,"command":"stop goroutine","name":"handler2 #268"},667{"t":2014574236,"command":"stop goroutine","name":"handler2 #273"},668{"t":2014578722,"command":"stop goroutine","name":"handler2 #267"},669{"t":2014586220,"command":"stop goroutine","name":"handler2 #265"},670{"t":2014588889,"command":"stop goroutine","name":"handler2 #279"},671{"t":2014591506,"command":"stop goroutine","name":"handler2 #276"},672{"t":2016010342,"command":"stop goroutine","name":"handler2 #299"},673{"t":2016015807,"command":"stop goroutine","name":"handler2 #291"},674{"t":2016024581,"command":"stop goroutine","name":"handler2 #295"},675{"t":2016034567,"command":"stop goroutine","name":"handler2 #294"},676{"t":2016038157,"command":"stop goroutine","name":"handler2 #292"},677{"t":2016043301,"command":"stop goroutine","name":"handler2 #290"},678{"t":2016046816,"command":"stop goroutine","name":"handler2 #289"},679{"t":2016049900,"command":"stop goroutine","name":"handler2 #293"},680{"t":2016057649,"command":"stop goroutine","name":"handler2 #297"},681{"t":2016062129,"command":"stop goroutine","name":"handler2 #298"},682{"t":2016064201,"command":"stop goroutine","name":"handler2 #296"},683{"t":2016218809,"command":"stop goroutine","name":"handler2 #321"},684{"t":2016220456,"command":"stop goroutine","name":"handler2 #303"},685{"t":2016237127,"command":"stop goroutine","name":"handler2 #324"},686{"t":2016290712,"command":"stop goroutine","name":"handler2 #322"},687{"t":2016344667,"command":"stop goroutine","name":"handler2 #323"},688{"t":2016373332,"command":"stop goroutine","name":"handler2 #314"},689{"t":2016383407,"command":"stop goroutine","name":"handler2 #340"},690{"t":2016419732,"command":"stop goroutine","name":"handler2 #305"},691{"t":2016490047,"command":"stop goroutine","name":"handler2 #306"},692{"t":2016515636,"command":"stop goroutine","name":"handler2 #315"},693{"t":2016526787,"command":"stop goroutine","name":"handler2 #307"},694{"t":2016610689,"command":"stop goroutine","name":"handler2 #316"},695{"t":2016627797,"command":"stop goroutine","name":"handler2 #308"},696{"t":2016636512,"command":"stop goroutine","name":"handler2 #317"},697{"t":2016686026,"command":"stop goroutine","name":"handler2 #309"},698{"t":2016807111,"command":"stop goroutine","name":"handler2 #318"},699{"t":2016875559,"command":"stop goroutine","name":"handler2 #319"},700{"t":2016926507,"command":"stop goroutine","name":"handler2 #320"},701{"t":2016949749,"command":"stop goroutine","name":"handler2 #304"},702{"t":2016962830,"command":"stop goroutine","name":"handler2 #337"},703{"t":2016990637,"command":"stop goroutine","name":"handler2 #310"},704{"t":2017005179,"command":"stop goroutine","name":"handler2 #302"},705{"t":2017028500,"command":"stop goroutine","name":"handler2 #300"},706{"t":2017063236,"command":"stop goroutine","name":"handler2 #311"},707{"t":2017067462,"command":"stop goroutine","name":"handler2 #301"},708{"t":2017094850,"command":"stop goroutine","name":"handler2 #338"},709{"t":2017119692,"command":"stop goroutine","name":"handler2 #312"},710{"t":2017132572,"command":"stop goroutine","name":"handler2 #313"},711{"t":2017183532,"command":"stop goroutine","name":"handler2 #284"},712{"t":2017202061,"command":"stop goroutine","name":"handler2 #285"},713{"t":2017227176,"command":"stop goroutine","name":"handler2 #288"},714{"t":2017233981,"command":"stop goroutine","name":"handler2 #287"},715{"t":2017266800,"command":"stop goroutine","name":"handler2 #286"},716{"t":2017268140,"command":"stop goroutine","name":"handler2 #353"},717{"t":2017336131,"command":"stop goroutine","name":"handler2 #354"},718{"t":2017373231,"command":"stop goroutine","name":"handler2 #357"},719{"t":2017438117,"command":"stop goroutine","name":"handler2 #355"},720{"t":2017462282,"command":"stop goroutine","name":"handler2 #339"},721{"t":2017476660,"command":"stop goroutine","name":"handler2 #356"},722{"t":2017500519,"command":"stop goroutine","name":"handler2 #363"},723{"t":2017539066,"command":"stop goroutine","name":"handler2 #361"},724{"t":2017551410,"command":"stop goroutine","name":"handler2 #364"},725{"t":2017609279,"command":"stop goroutine","name":"handler2 #365"},726{"t":2017611220,"command":"stop goroutine","name":"handler2 #360"},727{"t":2017627491,"command":"stop goroutine","name":"handler2 #358"},728{"t":2017635811,"command":"stop goroutine","name":"handler2 #367"},729{"t":2017652559,"command":"stop goroutine","name":"handler2 #366"},730{"t":2017669706,"command":"stop goroutine","name":"handler2 #359"},731{"t":2017681130,"command":"stop goroutine","name":"handler2 #362"},732{"t":2018271610,"command":"stop goroutine","name":"handler2 #223"},733{"t":2018277808,"command":"stop goroutine","name":"handler2 #218"},734{"t":2018301639,"command":"stop goroutine","name":"handler2 #220"},735{"t":2018313440,"command":"stop goroutine","name":"handler2 #217"},736{"t":2018313659,"command":"stop goroutine","name":"handler2 #219"},737{"t":2018324387,"command":"stop goroutine","name":"handler2 #222"},738{"t":2018327352,"command":"stop goroutine","name":"handler2 #221"},739{"t":2018335506,"command":"stop goroutine","name":"handler2 #369"},740{"t":2018346396,"command":"stop goroutine","name":"handler2 #370"},741{"t":2018358727,"command":"stop goroutine","name":"handler2 #224"},742{"t":2018566109,"command":"stop goroutine","name":"handler2 #375"},743{"t":2018583134,"command":"stop goroutine","name":"handler2 #380"},744{"t":2018619149,"command":"stop goroutine","name":"handler2 #376"},745{"t":2018695626,"command":"stop goroutine","name":"handler2 #377"},746{"t":2018704597,"command":"stop goroutine","name":"handler2 #371"},747{"t":2018712902,"command":"stop goroutine","name":"handler2 #378"},748{"t":2018749752,"command":"stop goroutine","name":"handler2 #372"},749{"t":2018852322,"command":"stop goroutine","name":"handler2 #327"},750{"t":2018854627,"command":"stop goroutine","name":"handler2 #326"},751{"t":2018857480,"command":"stop goroutine","name":"handler2 #379"},752{"t":2018869079,"command":"stop goroutine","name":"handler2 #373"},753{"t":2018908192,"command":"stop goroutine","name":"handler2 #374"},754{"t":2018910631,"command":"stop goroutine","name":"handler2 #332"},755{"t":2018958047,"command":"stop goroutine","name":"handler2 #328"},756{"t":2018961850,"command":"stop goroutine","name":"handler2 #325"},757{"t":2018973432,"command":"stop goroutine","name":"handler2 #334"},758{"t":2018998717,"command":"stop goroutine","name":"handler2 #329"},759{"t":2018999696,"command":"stop goroutine","name":"handler2 #333"},760{"t":2019038740,"command":"stop goroutine","name":"handler2 #330"},761{"t":2019053291,"command":"stop goroutine","name":"handler2 #335"},762{"t":2019067727,"command":"stop goroutine","name":"handler2 #336"},763{"t":2019166935,"command":"stop goroutine","name":"handler2 #392"},764{"t":2019178175,"command":"stop goroutine","name":"handler2 #387"},765{"t":2019184480,"command":"stop goroutine","name":"handler2 #331"},766{"t":2019184722,"command":"stop goroutine","name":"handler2 #390"},767{"t":2019226266,"command":"stop goroutine","name":"handler2 #386"},768{"t":2019228431,"command":"stop goroutine","name":"handler2 #385"},769{"t":2019231286,"command":"stop goroutine","name":"handler2 #388"},770{"t":2019240851,"command":"stop goroutine","name":"handler2 #389"},771{"t":2019255687,"command":"stop goroutine","name":"handler2 #391"},772{"t":2019440292,"command":"stop goroutine","name":"handler2 #405"},773{"t":2019465501,"command":"stop goroutine","name":"handler2 #404"},774{"t":2019500402,"command":"stop goroutine","name":"handler2 #395"},775{"t":2019545039,"command":"stop goroutine","name":"handler2 #403"},776{"t":2019613720,"command":"stop goroutine","name":"handler2 #393"},777{"t":2019669876,"command":"stop goroutine","name":"handler2 #394"},778{"t":2019687362,"command":"stop goroutine","name":"handler2 #368"},779{"t":2019687971,"command":"stop goroutine","name":"handler2 #401"},780{"t":2019720886,"command":"stop goroutine","name":"handler2 #400"},781{"t":2019770842,"command":"stop goroutine","name":"handler2 #396"},782{"t":2019800890,"command":"stop goroutine","name":"handler2 #435"},783{"t":2019814901,"command":"stop goroutine","name":"handler2 #397"},784{"t":2019840736,"command":"stop goroutine","name":"handler2 #406"},785{"t":2019861689,"command":"stop goroutine","name":"handler2 #402"},786{"t":2019862536,"command":"stop goroutine","name":"handler2 #398"},787{"t":2019948580,"command":"stop goroutine","name":"handler2 #413"},788{"t":2019981082,"command":"stop goroutine","name":"handler2 #408"},789{"t":2019983687,"command":"stop goroutine","name":"handler2 #428"},790{"t":2020004877,"command":"stop goroutine","name":"handler2 #399"},791{"t":2020042617,"command":"stop goroutine","name":"handler2 #409"},792{"t":2020062352,"command":"stop goroutine","name":"handler2 #417"},793{"t":2020072832,"command":"stop goroutine","name":"handler2 #416"},794{"t":2020086487,"command":"stop goroutine","name":"handler2 #410"},795{"t":2020112286,"command":"stop goroutine","name":"handler2 #418"},796{"t":2020125622,"command":"stop goroutine","name":"handler2 #411"},797{"t":2020127429,"command":"stop goroutine","name":"handler2 #414"},798{"t":2020148432,"command":"stop goroutine","name":"handler2 #419"},799{"t":2020183191,"command":"stop goroutine","name":"handler2 #420"},800{"t":2020199317,"command":"stop goroutine","name":"handler2 #415"},801{"t":2020207707,"command":"stop goroutine","name":"handler2 #424"},802{"t":2020211660,"command":"stop goroutine","name":"handler2 #412"},803{"t":2020225169,"command":"stop goroutine","name":"handler2 #407"},804{"t":2020240471,"command":"stop goroutine","name":"handler2 #434"},805{"t":2020260941,"command":"stop goroutine","name":"handler2 #425"},806{"t":2020281526,"command":"stop goroutine","name":"handler2 #426"},807{"t":2020281610,"command":"stop goroutine","name":"handler2 #421"},808{"t":2020310042,"command":"stop goroutine","name":"handler2 #427"},809{"t":2020315459,"command":"stop goroutine","name":"handler2 #422"},810{"t":2020327487,"command":"stop goroutine","name":"handler2 #423"},811{"t":2020336781,"command":"stop goroutine","name":"handler2 #433"},812{"t":2505973867,"command":"stop goroutine","name":"handler #7"},813{"t":2505981167,"command":"stop goroutine","name":"handler #9"},814{"t":2514281517,"command":"stop goroutine","name":"handler #8"},815{"t":2517412118,"command":"stop goroutine","name":"handler #10"},816{"t":2517480488,"command":"stop goroutine","name":"handler #5"},817{"t":2517565396,"command":"stop goroutine","name":"handler #13"},818{"t":2518601657,"command":"stop goroutine","name":"handler #6"},819{"t":2519105117,"command":"stop goroutine","name":"handler #14"},820{"t":2519834717,"command":"stop goroutine","name":"handler #11"},821{"t":2519903640,"command":"stop goroutine","name":"handler #12"},...

Full Screen

Full Screen

EventSet.spec.ts

Source: EventSet.spec.ts Github

copy

Full Screen

1import EventSet from './​EventSet'2let set: EventSet3describe('EventSet', () => {4 beforeEach(() => {5 set = new EventSet([])6 })7 describe('addHandlers', () => {8 it('adds a single handler', () => {9 const event = document.createEvent('Event')10 const handler = jasmine.createSpy()11 set = set.addHandlers([handler])12 set.dispatchEvent(event, true)13 expect(handler).toHaveBeenCalledTimes(1)14 expect(handler).toHaveBeenCalledWith(event)15 })16 it('adds multiple handlers', () => {17 const handler1 = jasmine.createSpy('handler1')18 const handler2 = jasmine.createSpy('handler2')19 set = set.addHandlers([handler1, handler2])20 set.dispatchEvent(document.createEvent('Event'), true)21 expect(handler1).toHaveBeenCalledTimes(1)22 expect(handler2).toHaveBeenCalledTimes(1)23 })24 it('adds only unique handlers', () => {25 const handler1 = jasmine.createSpy('handler1')26 const handler2 = jasmine.createSpy('handler2')27 set = set.addHandlers([handler1, handler1, handler2, handler2])28 set.dispatchEvent(document.createEvent('Event'), true)29 expect(handler1).toHaveBeenCalledTimes(1)30 expect(handler2).toHaveBeenCalledTimes(1)31 })32 it('always returns a new object', () => {33 const another = set.addHandlers([])34 expect(typeof another).toBe('object')35 expect(another).not.toBe(set)36 })37 })38 describe('dispatchEvent', () => {39 it('dispatches an event to all handlers', () => {40 const handler1 = jasmine.createSpy('handler1')41 const handler2 = jasmine.createSpy('handler2')42 set = set.addHandlers([handler1, handler2])43 set.dispatchEvent(document.createEvent('Event'), true)44 expect(handler1).toHaveBeenCalledTimes(1)45 expect(handler2).toHaveBeenCalledTimes(1)46 })47 it('dispatches an event to only recent event', () => {48 const handler1 = jasmine.createSpy('handler1')49 const handler2 = jasmine.createSpy('handler2')50 set = set.addHandlers([handler1, handler2, handler1])51 set.dispatchEvent(document.createEvent('Event'), false)52 expect(handler1).toHaveBeenCalledTimes(1)53 expect(handler2).not.toHaveBeenCalled()54 })55 it('dispatches with matching (reverse) order', () => {56 const handler1 = jasmine.createSpy('handler1')57 const handler2 = jasmine.createSpy('handler2')58 const handler3 = jasmine.createSpy('handler3')59 set = set.addHandlers([handler1, handler2, handler3, handler1])60 set.dispatchEvent(document.createEvent('Event'), true)61 expect(handler1).toHaveBeenCalledTimes(1)62 expect(handler2).toHaveBeenCalledTimes(1)63 expect(handler3).toHaveBeenCalledTimes(1)64 expect(handler1).toHaveBeenCalledBefore(handler3)65 expect(handler3).toHaveBeenCalledBefore(handler2)66 })67 })68 describe('hasHandlers', () => {69 it('returns "false" when is empty', () => {70 expect(set.hasHandlers()).toBeFalsy()71 })72 it('returns "false" when is empty', () => {73 const another = set.addHandlers([jasmine.createSpy()])74 expect(another.hasHandlers()).toBeTruthy()75 })76 })77 describe('removeHandlers', () => {78 it('remove a single handler', () => {79 const handler1 = jasmine.createSpy('handler1')80 const handler2 = jasmine.createSpy('handler2')81 set = set.addHandlers([handler1, handler2])82 set.dispatchEvent(document.createEvent('Event'), true)83 set = set.removeHandlers([handler2])84 set.dispatchEvent(document.createEvent('Event'), true)85 expect(handler1).toHaveBeenCalledTimes(2)86 expect(handler2).toHaveBeenCalledTimes(1)87 })88 it('removes multiple handlers', () => {89 const handler1 = jasmine.createSpy('handler1')90 const handler2 = jasmine.createSpy('handler2')91 set = set.addHandlers([handler1, handler2])92 set.dispatchEvent(document.createEvent('Event'), true)93 set = set.removeHandlers([handler1, handler2])94 set.dispatchEvent(document.createEvent('Event'), true)95 expect(handler1).toHaveBeenCalledTimes(1)96 expect(handler2).toHaveBeenCalledTimes(1)97 })98 it('always returns a new object', () => {99 const another = set.removeHandlers([])100 expect(typeof another).toBe('object')101 expect(another).not.toBe(set)102 })103 })...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1wpt.handler2();2wpt.handler1();3wpt.handler1();4wpt.handler2();5wpt.handler1();6wpt.handler2();7wpt.handler1();8wpt.handler2();9wpt.handler1();10wpt.handler2();11wpt.handler1();12wpt.handler2();13wpt.handler1();14wpt.handler2();15wpt.handler1();16wpt.handler2();17wpt.handler1();18wpt.handler2();19wpt.handler1();20wpt.handler2();21wpt.handler1();

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('wpt');2var wpt = new WebPageTest('www.webpagetest.org');3 if (err) return console.log(err);4 console.log(data);5});6var WebPageTest = require('webpagetest');7var wpt = new WebPageTest('www.webpagetest.org');8 if (err) return console.log(err);9 console.log(data);10});

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt_handler = require('./​wpt_handler');2var wpt = new wpt_handler();3wpt.handler2();4function wpt_handler() {5}6wpt_handler.prototype.handler2 = function () {7 console.log("wpt_handler.handler2");8}9var wpt_handler = require('./​wpt_handler');10var wpt = new wpt_handler();11wpt.handler2();12var wpt_handler = function () {13}14wpt_handler.prototype.handler2 = function () {15 console.log("wpt_handler.handler2");16}17module.exports = wpt_handler;

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('./​wpt');2wpt.handler2();3module.exports = {4 handler2: function () {5 console.log("handler2");6 }7}8var wpt = require('/​home/​user/​wpt');9wpt.handler2();

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptHandler = require('./​wptHandler');2wptHandler.handler2(); 3module.exports.handler2 = function(){4 console.log("handler2 called");5}6module.exports.handler1 = function(){7 console.log("handler1 called");8}9Your name to display (optional):10Your name to display (optional):11Your name to display (optional):

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('./​wpt');2wpt.handler2();3exports.handler2 = function() {4 console.log('handler2');5};6The first thing to notice is that the path to the wpt.js file is relative to the test.js file. This is important because the module is going to be loaded into the current context. So if you want to load a module from the root directory, you would have to do something like this:7var wpt = require('./​../​wpt');8var wpt = require('./​wpt');9wpt.handler2();10var handler2 = function() {11 console.log('handler2');12};13exports.handler2 = handler2;14wpt.handler2();

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('wpt.js');2var wpt = require('./​wpt.js');3var wpt = require('../​wpt.js');4var wpt = require('wpt');5var wpt = require('./​wpt');6var wpt = require('../​wpt');7var wpt = require('wpt');8var wpt = require('./​wpt.js');9var wpt = require('../​wpt.js');10var wpt = require('wpt');11var wpt = require('./​wpt');12var wpt = require('../​wpt');13var wpt = require('wpt');14var wpt = require('./​wpt.js');15var wpt = require('../​wpt.js');16var wpt = require('wpt');17var wpt = require('./​w

Full Screen

Blogs

Check out the latest blogs from LambdaTest on this topic:

Webinar: Move Forward With An Effective Test Automation Strategy [Voices of Community]

The key to successful test automation is to focus on tasks that maximize the return on investment (ROI), ensuring that you are automating the right tests and automating them in the right way. This is where test automation strategies come into play.

How To Get Started With Cypress Debugging

One of the most important tasks of a software developer is not just writing code fast; it is the ability to find what causes errors and bugs whenever you encounter one and the ability to solve them quickly.

40 Best UI Testing Tools And Techniques

A good User Interface (UI) is essential to the quality of software or application. A well-designed, sleek, and modern UI goes a long way towards providing a high-quality product for your customers − something that will turn them on.

Why Agile Is Great for Your Business

Agile project management is a great alternative to traditional methods, to address the customer’s needs and the delivery of business value from the beginning of the project. This blog describes the main benefits of Agile for both the customer and the business.

How To Run Cypress Tests In Azure DevOps Pipeline

When software developers took years to create and introduce new products to the market is long gone. Users (or consumers) today are more eager to use their favorite applications with the latest bells and whistles. However, users today don’t have the patience to work around bugs, errors, and design flaws. People have less self-control, and if your product or application doesn’t make life easier for users, they’ll leave for a better solution.

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful