How to use fileUrl method in ts-auto-mock

Best JavaScript code snippet using ts-auto-mock

UiDefs.js

Source:UiDefs.js Github

copy

Full Screen

1FZ.IphoneMusic = ["res/music/farmLink.mp3"];2(function(){3 FZ.IphoneUI = [4 {"name":"ARROW_DOWN","zOrder":0,"fileURL":"ARROW_DOWN.png","x":138,"y":112,"w":45,"h":192,"tags":[],"cols":1},5 {"name":"ARROW_LEFT","zOrder":0,"fileURL":"ARROW_LEFT.png","x":64,"y":214,"w":192,"h":45,"tags":[],"cols":1},6 {"name":"ARROW_LEFT_RIGHT","zOrder":0,"fileURL":"ARROW_LEFT_RIGHT.png","x":55,"y":214,"w":210,"h":45,"tags":[],"cols":1},7 {"name":"ARROW_RIGHT","zOrder":0,"fileURL":"ARROW_RIGHT.png","x":64,"y":214,"w":192,"h":45,"tags":[],"cols":1},8 {"name":"ARROW_UP","zOrder":0,"fileURL":"ARROW_UP.png","x":138,"y":112,"w":45,"h":192,"tags":[],"cols":1},9 {"name":"ARROW_UP_DOWN","zOrder":0,"fileURL":"ARROW_UP_DOWN.png","x":138,"y":121,"w":45,"h":210,"tags":[],"cols":1},10 {"name":"BTN_GAME_BACK","zOrder":2,"fileURL":"BTN_GAME_BACK.png","x":267,"y":32,"w":40,"h":40,"tags":[],"cols":1},11 {"name":"BTN_GAME_BACK_TOUCH","zOrder":2,"fileURL":"BTN_GAME_BACK_TOUCH.png","x":268,"y":32,"w":40,"h":40,"tags":[],"cols":1},12 {"name":"BTN_HINT","zOrder":2,"fileURL":"BTN_HINT.png","x":233,"y":32,"w":40,"h":40,"tags":[],"cols":1},13 {"name":"BTN_HINT_GREY","zOrder":2,"fileURL":"BTN_HINT_GREY.png","x":233,"y":32,"w":40,"h":40,"tags":[],"cols":1},14 {"name":"BTN_HINT_TOUCH","zOrder":2,"fileURL":"BTN_HINT_TOUCH.png","x":233,"y":32,"w":40,"h":40,"tags":[],"cols":1},15 {"name":"BTN_MAIN_MENU","zOrder":4,"fileURL":"BTN.png","x":102,"y":351,"w":127,"h":54,"tags":[],"cols":1},16 {"name":"BTN_MAIN_MENU_ICON","zOrder":2,"fileURL":"BTN_MAIN_MENU_ICON.png","x":215,"y":32,"w":40,"h":40,"tags":[],"cols":1},17 {"name":"BTN_MAIN_MENU_ICON_TOUCH","zOrder":2,"fileURL":"BTN_MAIN_MENU_ICON_TOUCH.png","x":215,"y":32,"w":41,"h":38,"tags":[],"cols":1},18 {"name":"BTN_MAIN_MENU_TOUCH","zOrder":4,"fileURL":"BTN_TOUCH.png","x":102,"y":351,"w":127,"h":54,"tags":[],"cols":1},19 {"name":"BTN_NEXT_LEVEL","zOrder":4,"fileURL":"BTN_NEXT_LEVEL.png","x":105,"y":354,"w":127,"h":54,"tags":[],"cols":1},20 {"name":"BTN_NEXT_LEVEL_TOUCH","zOrder":4,"fileURL":"BTN_NEXT_LEVEL_TOUCH.png","x":105,"y":354,"w":127,"h":54,"tags":[],"cols":1},21 {"name":"BTN_PAUSE","zOrder":2,"fileURL":"BTN_PAUSE.png","x":275,"y":32,"w":40,"h":40,"tags":[],"cols":1},22 {"name":"BTN_PAUSE_TOUCH","zOrder":2,"fileURL":"BTN_PAUSE_TOUCH.png","x":275,"y":32,"w":40,"h":40,"tags":[],"cols":1},23 {"name":"BTN_RETRY","zOrder":5,"fileURL":"BTN.png","x":98,"y":298,"w":127,"h":54,"tags":[],"cols":1},24 {"name":"BTN_RETRY_TOUCH","zOrder":5,"fileURL":"BTN_TOUCH.png","x":98,"y":298,"w":127,"h":54,"tags":[],"cols":1},25 {"name":"BTN_START","zOrder":2,"fileURL":"BTN_START.png","x":130,"y":224,"w":127,"h":54,"tags":[],"cols":1},26 {"name":"BTN_START_TOUCH","zOrder":2,"fileURL":"BTN_START_TOUCH.png","x":130,"y":224,"w":127,"h":54,"tags":[],"cols":1},27 {"name":"gameIn_BG","zOrder":0,"fileURL":"gameIn_BG.png","x":0,"y":0,"w":320,"h":480,"tags":[],"cols":1},28 {"name":"GAME_OVER_BG","zOrder":3,"fileURL":"GAME_OVER_BG.png","x":7,"y":132,"w":313,"h":195,"tags":[],"cols":1},29 {"name":"loading_empty","zOrder":2,"fileURL":"loading_empty.png","x":62,"y":203,"w":195,"h":29,"tags":[],"cols":1},30 {"name":"loading_full","zOrder":2,"fileURL":"loading_full.png","x":62,"y":203,"w":195,"h":29,"tags":[],"cols":1},31 {"name":"MAIN_MENU_BG","zOrder":0,"fileURL":"MAIN_MENU_BG.png","x":0,"y":0,"w":320,"h":480,"tags":[],"cols":1},32 {"name":"MAIN_MENU_AND_LOADING_BG","zOrder":1,"fileURL":"MAIN_MENU_AND_LOADING_BG.png","x":12,"y":71,"w":303,"h":396,"tags":[],"cols":1},33 {"name":"majong_BG","zOrder":0,"fileURL":"majong_BG.png","x":0,"y":0,"w":320,"h":480,"tags":[],"cols":1},34 {"name":"NEXT_LEVEL_BG","zOrder":2,"fileURL":"NEXT_LEVEL_BG.png","x":12,"y":110,"w":305,"h":279,"tags":[],"cols":1},35 {"name":"NO_MORE_MATCHS","zOrder":3,"fileURL":"NO_MORE_MATCHS.png","x":32,"y":205,"w":257,"h":94,"tags":[],"cols":1},36 {"name":"number_hint_clone_0","zOrder":2,"fileURL":"number_hint_0.png","x":255,"y":60,"w":10,"h":12,"tags":[],"cols":1},37 {"name":"number_hint_clone_1","zOrder":2,"fileURL":"number_hint_1.png","x":255,"y":60,"w":10,"h":12,"tags":[],"cols":1},38 {"name":"number_hint_clone_2","zOrder":2,"fileURL":"number_hint_2.png","x":255,"y":60,"w":10,"h":12,"tags":[],"cols":1},39 {"name":"number_hint_clone_3","zOrder":2,"fileURL":"number_hint_3.png","x":255,"y":60,"w":10,"h":12,"tags":[],"cols":1},40 {"name":"number_hint_clone_4","zOrder":2,"fileURL":"number_hint_4.png","x":255,"y":60,"w":10,"h":12,"tags":[],"cols":1},41 {"name":"number_hint_clone_5","zOrder":2,"fileURL":"number_hint_5.png","x":255,"y":60,"w":10,"h":12,"tags":[],"cols":1},42 {"name":"number_hint_clone_6","zOrder":2,"fileURL":"number_hint_6.png","x":255,"y":60,"w":10,"h":12,"tags":[],"cols":1},43 {"name":"number_hint_clone_7","zOrder":2,"fileURL":"number_hint_7.png","x":255,"y":60,"w":10,"h":12,"tags":[],"cols":1},44 {"name":"number_hint_clone_8","zOrder":2,"fileURL":"number_hint_8.png","x":255,"y":60,"w":10,"h":12,"tags":[],"cols":1},45 {"name":"number_hint_clone_9","zOrder":2,"fileURL":"number_hint_9.png","x":255,"y":60,"w":10,"h":12,"tags":[],"cols":1},46 {"name":"number_hint_0","zOrder":2,"fileURL":"number_hint_0.png","x":263,"y":60,"w":10,"h":12,"tags":[],"cols":1},47 {"name":"number_hint_1","zOrder":0,"fileURL":"number_hint_1.png","x":263,"y":60,"w":10,"h":12,"tags":[],"cols":1},48 {"name":"number_hint_2","zOrder":0,"fileURL":"number_hint_2.png","x":263,"y":60,"w":10,"h":12,"tags":[],"cols":1},49 {"name":"number_hint_3","zOrder":0,"fileURL":"number_hint_3.png","x":263,"y":60,"w":10,"h":12,"tags":[],"cols":1},50 {"name":"number_hint_4","zOrder":0,"fileURL":"number_hint_4.png","x":263,"y":60,"w":10,"h":12,"tags":[],"cols":1},51 {"name":"number_hint_5","zOrder":0,"fileURL":"number_hint_5.png","x":263,"y":60,"w":10,"h":12,"tags":[],"cols":1},52 {"name":"number_hint_6","zOrder":0,"fileURL":"number_hint_6.png","x":263,"y":60,"w":10,"h":12,"tags":[],"cols":1},53 {"name":"number_hint_7","zOrder":0,"fileURL":"number_hint_7.png","x":263,"y":60,"w":10,"h":12,"tags":[],"cols":1},54 {"name":"number_hint_8","zOrder":0,"fileURL":"number_hint_8.png","x":263,"y":60,"w":10,"h":12,"tags":[],"cols":1},55 {"name":"number_hint_9","zOrder":0,"fileURL":"number_hint_9.png","x":263,"y":60,"w":10,"h":12,"tags":[],"cols":1},56 {"name":"NUM_STAGE_TOTAL_1","zOrder":5,"fileURL":"number_score_0.png","x":122,"y":189,"w":19,"h":21,"tags":[],"cols":1},57 {"name":"NUM_STAGE_TOTAL_2","zOrder":5,"fileURL":"number_score_0.png","x":138,"y":189,"w":19,"h":21,"tags":[],"cols":1},58 {"name":"NUM_STAGE_TOTAL_3","zOrder":5,"fileURL":"number_score_0.png","x":154,"y":189,"w":19,"h":21,"tags":[],"cols":1},59 {"name":"NUM_STAGE_TOTAL_4","zOrder":5,"fileURL":"number_score_0.png","x":170,"y":189,"w":19,"h":21,"tags":[],"cols":1},60 {"name":"NUM_STAGE_TOTAL_5","zOrder":5,"fileURL":"number_score_0.png","x":186,"y":189,"w":19,"h":21,"tags":[],"cols":1},61 {"name":"NUM_STAGE_OVER_TOTAL_1","zOrder":5,"fileURL":"number_score_0.png","x":122,"y":240,"w":19,"h":21,"tags":[],"cols":1},62 {"name":"NUM_STAGE_OVER_TOTAL_2","zOrder":5,"fileURL":"number_score_0.png","x":138,"y":240,"w":19,"h":21,"tags":[],"cols":1},63 {"name":"NUM_STAGE_OVER_TOTAL_3","zOrder":5,"fileURL":"number_score_0.png","x":154,"y":240,"w":19,"h":21,"tags":[],"cols":1},64 {"name":"NUM_STAGE_OVER_TOTAL_4","zOrder":5,"fileURL":"number_score_0.png","x":170,"y":240,"w":19,"h":21,"tags":[],"cols":1},65 {"name":"NUM_STAGE_OVER_TOTAL_5","zOrder":5,"fileURL":"number_score_0.png","x":186,"y":240,"w":19,"h":21,"tags":[],"cols":1},66 {"name":"NUM_STAGE_WIN_TOTAL_1","zOrder":5,"fileURL":"number_score_0.png","x":122,"y":189,"w":19,"h":21,"tags":[],"cols":1},67 {"name":"NUM_STAGE_WIN_TOTAL_2","zOrder":5,"fileURL":"number_score_0.png","x":138,"y":189,"w":19,"h":21,"tags":[],"cols":1},68 {"name":"NUM_STAGE_WIN_TOTAL_3","zOrder":5,"fileURL":"number_score_0.png","x":154,"y":189,"w":19,"h":21,"tags":[],"cols":1},69 {"name":"NUM_STAGE_WIN_TOTAL_4","zOrder":5,"fileURL":"number_score_0.png","x":170,"y":189,"w":19,"h":21,"tags":[],"cols":1},70 {"name":"NUM_STAGE_WIN_TOTAL_5","zOrder":5,"fileURL":"number_score_0.png","x":186,"y":189,"w":19,"h":21,"tags":[],"cols":1},71 {"name":"NUM_STAGE_TOTAL_TIME_BONUS_1","zOrder":5,"fileURL":"number_score_0.png","x":122,"y":250,"w":19,"h":21,"tags":[],"cols":1},72 {"name":"NUM_STAGE_TOTAL_TIME_BONUS_2","zOrder":5,"fileURL":"number_score_0.png","x":138,"y":250,"w":19,"h":21,"tags":[],"cols":1},73 {"name":"NUM_STAGE_TOTAL_TIME_BONUS_3","zOrder":5,"fileURL":"number_score_0.png","x":154,"y":250,"w":19,"h":21,"tags":[],"cols":1},74 {"name":"NUM_STAGE_TOTAL_TIME_BONUS_4","zOrder":5,"fileURL":"number_score_0.png","x":170,"y":250,"w":19,"h":21,"tags":[],"cols":1},75 {"name":"NUM_STAGE_TOTAL_TIME_BONUS_5","zOrder":5,"fileURL":"number_score_0.png","x":186,"y":250,"w":19,"h":21,"tags":[],"cols":1},76 {"name":"NUM_STAGE_WIN_TOTAL_TIME_1","zOrder":5,"fileURL":"number_score_0.png","x":122,"y":250,"w":19,"h":21,"tags":[],"cols":1},77 {"name":"NUM_STAGE_WIN_TOTAL_TIME_2","zOrder":5,"fileURL":"number_score_0.png","x":138,"y":250,"w":19,"h":21,"tags":[],"cols":1},78 {"name":"NUM_STAGE_WIN_TOTAL_TIME_3","zOrder":5,"fileURL":"number_score_0.png","x":154,"y":250,"w":19,"h":21,"tags":[],"cols":1},79 {"name":"NUM_STAGE_WIN_TOTAL_TIME_4","zOrder":5,"fileURL":"number_score_0.png","x":170,"y":250,"w":19,"h":21,"tags":[],"cols":1},80 {"name":"NUM_STAGE_WIN_TOTAL_TIME_5","zOrder":5,"fileURL":"number_score_0.png","x":186,"y":250,"w":19,"h":21,"tags":[],"cols":1},81 {"name":"NUM_STAGE_TOTAL_HINT_1","zOrder":5,"fileURL":"number_score_0.png","x":122,"y":310,"w":19,"h":21,"tags":[],"cols":1},82 {"name":"NUM_STAGE_TOTAL_HINT_2","zOrder":5,"fileURL":"number_score_0.png","x":138,"y":310,"w":19,"h":21,"tags":[],"cols":1},83 {"name":"NUM_STAGE_TOTAL_HINT_3","zOrder":5,"fileURL":"number_score_0.png","x":154,"y":310,"w":19,"h":21,"tags":[],"cols":1},84 {"name":"NUM_STAGE_TOTAL_HINT_4","zOrder":5,"fileURL":"number_score_0.png","x":170,"y":310,"w":19,"h":21,"tags":[],"cols":1},85 {"name":"NUM_STAGE_TOTAL_HINT_5","zOrder":5,"fileURL":"number_score_0.png","x":186,"y":310,"w":19,"h":21,"tags":[],"cols":1},86 {"name":"NUM_STAGE_WIN_TOTAL_HINT_1","zOrder":5,"fileURL":"number_score_0.png","x":122,"y":310,"w":19,"h":21,"tags":[],"cols":1},87 {"name":"NUM_STAGE_WIN_TOTAL_HINT_2","zOrder":5,"fileURL":"number_score_0.png","x":138,"y":310,"w":19,"h":21,"tags":[],"cols":1},88 {"name":"NUM_STAGE_WIN_TOTAL_HINT_3","zOrder":5,"fileURL":"number_score_0.png","x":154,"y":310,"w":19,"h":21,"tags":[],"cols":1},89 {"name":"NUM_STAGE_WIN_TOTAL_HINT_4","zOrder":5,"fileURL":"number_score_0.png","x":170,"y":310,"w":19,"h":21,"tags":[],"cols":1},90 {"name":"NUM_STAGE_WIN_TOTAL_HINT_5","zOrder":5,"fileURL":"number_score_0.png","x":186,"y":310,"w":19,"h":21,"tags":[],"cols":1},91 {"name":"number_score_1","zOrder":0,"fileURL":"number_score_1.png","x":0,"y":0,"w":19,"h":21,"tags":[],"cols":1},92 {"name":"number_score_2","zOrder":0,"fileURL":"number_score_2.png","x":0,"y":0,"w":19,"h":21,"tags":[],"cols":1},93 {"name":"number_score_3","zOrder":0,"fileURL":"number_score_3.png","x":0,"y":0,"w":19,"h":21,"tags":[],"cols":1},94 {"name":"number_score_4","zOrder":0,"fileURL":"number_score_4.png","x":0,"y":0,"w":19,"h":21,"tags":[],"cols":1},95 {"name":"number_score_5","zOrder":0,"fileURL":"number_score_5.png","x":0,"y":0,"w":19,"h":21,"tags":[],"cols":1},96 {"name":"number_score_6","zOrder":0,"fileURL":"number_score_6.png","x":0,"y":0,"w":19,"h":21,"tags":[],"cols":1},97 {"name":"number_score_7","zOrder":0,"fileURL":"number_score_7.png","x":0,"y":0,"w":19,"h":21,"tags":[],"cols":1},98 {"name":"number_score_8","zOrder":0,"fileURL":"number_score_8.png","x":0,"y":0,"w":19,"h":21,"tags":[],"cols":1},99 {"name":"number_score_9","zOrder":0,"fileURL":"number_score_9.png","x":0,"y":0,"w":19,"h":21,"tags":[],"cols":1},100 {"name":"score_1","zOrder":2,"fileURL":"NUM_LEVEL_0.png","x":124,"y":37,"w":14,"h":15,"tags":[],"cols":1},101 {"name":"score_2","zOrder":2,"fileURL":"NUM_LEVEL_0.png","x":136,"y":37,"w":14,"h":15,"tags":[],"cols":1},102 {"name":"score_3","zOrder":2,"fileURL":"NUM_LEVEL_0.png","x":148,"y":37,"w":14,"h":15,"tags":[],"cols":1},103 {"name":"score_4","zOrder":2,"fileURL":"NUM_LEVEL_0.png","x":160,"y":37,"w":14,"h":15,"tags":[],"cols":1},104 {"name":"score_5","zOrder":2,"fileURL":"NUM_LEVEL_0.png","x":172,"y":37,"w":14,"h":15,"tags":[],"cols":1},105 {"name":"NUM_LEVEL_10","zOrder":2,"fileURL":"NUM_LEVEL_1.png","x":67,"y":37,"w":14,"h":15,"tags":[],"cols":1},106 {"name":"NUM_LEVEL_0","zOrder":2,"fileURL":"NUM_LEVEL_0.png","x":78,"y":37,"w":14,"h":15,"tags":[],"cols":1},107 {"name":"NUM_LEVEL_1","zOrder":0,"fileURL":"NUM_LEVEL_1.png","x":0,"y":0,"w":14,"h":15,"tags":[],"cols":1},108 {"name":"NUM_LEVEL_2","zOrder":0,"fileURL":"NUM_LEVEL_2.png","x":0,"y":0,"w":14,"h":15,"tags":[],"cols":1},109 {"name":"NUM_LEVEL_3","zOrder":0,"fileURL":"NUM_LEVEL_3.png","x":0,"y":0,"w":14,"h":15,"tags":[],"cols":1},110 {"name":"NUM_LEVEL_4","zOrder":0,"fileURL":"NUM_LEVEL_4.png","x":0,"y":0,"w":14,"h":15,"tags":[],"cols":1},111 {"name":"NUM_LEVEL_5","zOrder":0,"fileURL":"NUM_LEVEL_5.png","x":0,"y":0,"w":14,"h":15,"tags":[],"cols":1},112 {"name":"NUM_LEVEL_6","zOrder":0,"fileURL":"NUM_LEVEL_6.png","x":0,"y":0,"w":14,"h":15,"tags":[],"cols":1},113 {"name":"NUM_LEVEL_7","zOrder":0,"fileURL":"NUM_LEVEL_7.png","x":0,"y":0,"w":14,"h":15,"tags":[],"cols":1},114 {"name":"NUM_LEVEL_8","zOrder":0,"fileURL":"NUM_LEVEL_8.png","x":0,"y":0,"w":14,"h":15,"tags":[],"cols":1},115 {"name":"NUM_LEVEL_9","zOrder":0,"fileURL":"NUM_LEVEL_9.png","x":0,"y":0,"w":14,"h":15,"tags":[],"cols":1},116 {"name":"OrientationWarning","zOrder":0,"fileURL":"OrientationWarning.png","x":0,"y":0,"w":250,"h":250,"tags":[],"cols":1},117 {"name":"PAUSE_BG","zOrder":0,"fileURL":"PAUSE_BG.png","x":42,"y":86,"w":236,"h":361,"tags":[],"cols":1},118 {"name":"SpilSplash","zOrder":0,"fileURL":"SpilSplash.png","x":0,"y":60,"w":320,"h":320,"tags":[],"cols":1},119 {"name":"TIME_EMPTY","zOrder":2,"fileURL":"TIME_EMPTY.png","x":32,"y":56,"w":159,"h":25,"tags":[],"cols":1},120 {"name":"TIME__FULL","zOrder":2,"fileURL":"TIME__FULL.png","x":32,"y":56,"w":159,"h":25,"tags":[],"cols":1},121 {"name":"TXT_TOTAL_SCORE","zOrder":0,"fileURL":"TXT_TOTAL_SCORE.png","x":0,"y":0,"w":149,"h":26,"tags":[],"cols":1},122 {"name":"TXT_YOUR_TOTAL_SCORE","zOrder":0,"fileURL":"TXT_YOUR_TOTAL_SCORE.png","x":0,"y":0,"w":200,"h":26,"tags":[],"cols":1},123 {"name":"YOU_WIN_BG","zOrder":3,"fileURL":"YOU_WIN_BG.png","x":3,"y":112,"w":316,"h":286,"tags":[],"cols":1},124 {"name":"farm_1","zOrder":0,"fileURL":"farm/1.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},125 {"name":"farm_10","zOrder":0,"fileURL":"farm/10.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},126 {"name":"farm_11","zOrder":0,"fileURL":"farm/11.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},127 {"name":"farm_12","zOrder":0,"fileURL":"farm/12.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},128 {"name":"farm_13","zOrder":0,"fileURL":"farm/13.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},129 {"name":"farm_14","zOrder":0,"fileURL":"farm/14.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},130 {"name":"farm_15","zOrder":0,"fileURL":"farm/15.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},131 {"name":"farm_16","zOrder":0,"fileURL":"farm/16.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},132 {"name":"farm_17","zOrder":0,"fileURL":"farm/17.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},133 {"name":"farm_18","zOrder":0,"fileURL":"farm/18.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},134 {"name":"farm_19","zOrder":0,"fileURL":"farm/19.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},135 {"name":"farm_2","zOrder":0,"fileURL":"farm/2.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},136 {"name":"farm_20","zOrder":0,"fileURL":"farm/20.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},137 {"name":"farm_21","zOrder":0,"fileURL":"farm/21.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},138 {"name":"farm_22","zOrder":0,"fileURL":"farm/22.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},139 {"name":"farm_23","zOrder":0,"fileURL":"farm/23.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},140 {"name":"farm_24","zOrder":0,"fileURL":"farm/24.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},141 {"name":"farm_25","zOrder":0,"fileURL":"farm/25.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},142 {"name":"farm_26","zOrder":0,"fileURL":"farm/26.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},143 {"name":"farm_27","zOrder":0,"fileURL":"farm/27.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},144 {"name":"farm_28","zOrder":0,"fileURL":"farm/28.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},145 {"name":"farm_29","zOrder":0,"fileURL":"farm/29.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},146 {"name":"farm_3","zOrder":0,"fileURL":"farm/3.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},147 {"name":"farm_30","zOrder":0,"fileURL":"farm/30.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},148 {"name":"farm_31","zOrder":0,"fileURL":"farm/31.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},149 {"name":"farm_32","zOrder":0,"fileURL":"farm/32.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},150 {"name":"farm_4","zOrder":0,"fileURL":"farm/4.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},151 {"name":"farm_5","zOrder":0,"fileURL":"farm/5.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},152 {"name":"farm_6","zOrder":0,"fileURL":"farm/6.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},153 {"name":"farm_7","zOrder":0,"fileURL":"farm/7.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},154 {"name":"farm_8","zOrder":0,"fileURL":"farm/8.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},155 {"name":"farm_9","zOrder":0,"fileURL":"farm/9.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},156 157 {"name":"farm_1_touch","zOrder":0,"fileURL":"farm/1_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},158 {"name":"farm_10_touch","zOrder":0,"fileURL":"farm/10_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},159 {"name":"farm_11_touch","zOrder":0,"fileURL":"farm/11_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},160 {"name":"farm_12_touch","zOrder":0,"fileURL":"farm/12_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},161 {"name":"farm_13_touch","zOrder":0,"fileURL":"farm/13_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},162 {"name":"farm_14_touch","zOrder":0,"fileURL":"farm/14_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},163 {"name":"farm_15_touch","zOrder":0,"fileURL":"farm/15_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},164 {"name":"farm_16_touch","zOrder":0,"fileURL":"farm/16_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},165 {"name":"farm_17_touch","zOrder":0,"fileURL":"farm/17_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},166 {"name":"farm_18_touch","zOrder":0,"fileURL":"farm/18_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},167 {"name":"farm_19_touch","zOrder":0,"fileURL":"farm/19_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},168 {"name":"farm_2_touch","zOrder":0,"fileURL":"farm/2_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},169 {"name":"farm_20_touch","zOrder":0,"fileURL":"farm/20_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},170 {"name":"farm_21_touch","zOrder":0,"fileURL":"farm/21_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},171 {"name":"farm_22_touch","zOrder":0,"fileURL":"farm/22_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},172 {"name":"farm_23_touch","zOrder":0,"fileURL":"farm/23_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},173 {"name":"farm_24_touch","zOrder":0,"fileURL":"farm/24_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},174 {"name":"farm_25_touch","zOrder":0,"fileURL":"farm/25_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},175 {"name":"farm_26_touch","zOrder":0,"fileURL":"farm/26_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},176 {"name":"farm_27_touch","zOrder":0,"fileURL":"farm/27_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},177 {"name":"farm_28_touch","zOrder":0,"fileURL":"farm/28_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},178 {"name":"farm_29_touch","zOrder":0,"fileURL":"farm/29_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},179 {"name":"farm_3_touch","zOrder":0,"fileURL":"farm/3_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},180 {"name":"farm_30_touch","zOrder":0,"fileURL":"farm/30_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},181 {"name":"farm_31_touch","zOrder":0,"fileURL":"farm/31_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},182 {"name":"farm_32_touch","zOrder":0,"fileURL":"farm/32_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},183 {"name":"farm_4_touch","zOrder":0,"fileURL":"farm/4_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},184 {"name":"farm_5_touch","zOrder":0,"fileURL":"farm/5_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},185 {"name":"farm_6_touch","zOrder":0,"fileURL":"farm/6_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},186 {"name":"farm_7_touch","zOrder":0,"fileURL":"farm/7_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},187 {"name":"farm_8_touch","zOrder":0,"fileURL":"farm/8_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1},188 {"name":"farm_9_touch","zOrder":0,"fileURL":"farm/9_touch.png","x":0,"y":0,"w":36,"h":35,"tags":[],"cols":1}189 ];190 191 FZ.getImgInfo = function(name) {192 var index = 0;193 var info = null;194 for(index = 0; index < FZ.IphoneUI.length; index++) {195 info = FZ.IphoneUI[index];196 if(name === info.name) {197 return info;198 }199 }200 return null;201 };202 ...

Full Screen

Full Screen

test-url-fileurltopath.js

Source:test-url-fileurltopath.js Github

copy

Full Screen

1'use strict';2const { isWindows } = require('../common');3const assert = require('assert');4const url = require('url');5function testInvalidArgs(...args) {6 for (const arg of args) {7 assert.throws(() => url.fileURLToPath(arg), {8 code: 'ERR_INVALID_ARG_TYPE'9 });10 }11}12// Input must be string or URL13testInvalidArgs(null, undefined, 1, {}, true);14// Input must be a file URL15assert.throws(() => url.fileURLToPath('https://a/b/c'), {16 code: 'ERR_INVALID_URL_SCHEME'17});18{19 const withHost = new URL('file://host/a');20 if (isWindows) {21 assert.strictEqual(url.fileURLToPath(withHost), '\\\\host\\a');22 } else {23 assert.throws(() => url.fileURLToPath(withHost), {24 code: 'ERR_INVALID_FILE_URL_HOST'25 });26 }27}28{29 if (isWindows) {30 assert.throws(() => url.fileURLToPath('file:///C:/a%2F/'), {31 code: 'ERR_INVALID_FILE_URL_PATH'32 });33 assert.throws(() => url.fileURLToPath('file:///C:/a%5C/'), {34 code: 'ERR_INVALID_FILE_URL_PATH'35 });36 assert.throws(() => url.fileURLToPath('file:///?:/'), {37 code: 'ERR_INVALID_FILE_URL_PATH'38 });39 } else {40 assert.throws(() => url.fileURLToPath('file:///a%2F/'), {41 code: 'ERR_INVALID_FILE_URL_PATH'42 });43 }44}45{46 let testCases;47 if (isWindows) {48 testCases = [49 // Lowercase ascii alpha50 { path: 'C:\\foo', fileURL: 'file:///C:/foo' },51 // Uppercase ascii alpha52 { path: 'C:\\FOO', fileURL: 'file:///C:/FOO' },53 // dir54 { path: 'C:\\dir\\foo', fileURL: 'file:///C:/dir/foo' },55 // trailing separator56 { path: 'C:\\dir\\', fileURL: 'file:///C:/dir/' },57 // dot58 { path: 'C:\\foo.mjs', fileURL: 'file:///C:/foo.mjs' },59 // space60 { path: 'C:\\foo bar', fileURL: 'file:///C:/foo%20bar' },61 // question mark62 { path: 'C:\\foo?bar', fileURL: 'file:///C:/foo%3Fbar' },63 // number sign64 { path: 'C:\\foo#bar', fileURL: 'file:///C:/foo%23bar' },65 // ampersand66 { path: 'C:\\foo&bar', fileURL: 'file:///C:/foo&bar' },67 // equals68 { path: 'C:\\foo=bar', fileURL: 'file:///C:/foo=bar' },69 // colon70 { path: 'C:\\foo:bar', fileURL: 'file:///C:/foo:bar' },71 // semicolon72 { path: 'C:\\foo;bar', fileURL: 'file:///C:/foo;bar' },73 // percent74 { path: 'C:\\foo%bar', fileURL: 'file:///C:/foo%25bar' },75 // backslash76 { path: 'C:\\foo\\bar', fileURL: 'file:///C:/foo/bar' },77 // backspace78 { path: 'C:\\foo\bbar', fileURL: 'file:///C:/foo%08bar' },79 // tab80 { path: 'C:\\foo\tbar', fileURL: 'file:///C:/foo%09bar' },81 // newline82 { path: 'C:\\foo\nbar', fileURL: 'file:///C:/foo%0Abar' },83 // carriage return84 { path: 'C:\\foo\rbar', fileURL: 'file:///C:/foo%0Dbar' },85 // latin186 { path: 'C:\\fóóbàr', fileURL: 'file:///C:/f%C3%B3%C3%B3b%C3%A0r' },87 // Euro sign (BMP code point)88 { path: 'C:\\€', fileURL: 'file:///C:/%E2%82%AC' },89 // Rocket emoji (non-BMP code point)90 { path: 'C:\\🚀', fileURL: 'file:///C:/%F0%9F%9A%80' },91 // UNC path (see https://docs.microsoft.com/en-us/archive/blogs/ie/file-uris-in-windows)92 { path: '\\\\nas\\My Docs\\File.doc', fileURL: 'file://nas/My%20Docs/File.doc' },93 ];94 } else {95 testCases = [96 // Lowercase ascii alpha97 { path: '/foo', fileURL: 'file:///foo' },98 // Uppercase ascii alpha99 { path: '/FOO', fileURL: 'file:///FOO' },100 // dir101 { path: '/dir/foo', fileURL: 'file:///dir/foo' },102 // trailing separator103 { path: '/dir/', fileURL: 'file:///dir/' },104 // dot105 { path: '/foo.mjs', fileURL: 'file:///foo.mjs' },106 // space107 { path: '/foo bar', fileURL: 'file:///foo%20bar' },108 // question mark109 { path: '/foo?bar', fileURL: 'file:///foo%3Fbar' },110 // number sign111 { path: '/foo#bar', fileURL: 'file:///foo%23bar' },112 // ampersand113 { path: '/foo&bar', fileURL: 'file:///foo&bar' },114 // equals115 { path: '/foo=bar', fileURL: 'file:///foo=bar' },116 // colon117 { path: '/foo:bar', fileURL: 'file:///foo:bar' },118 // semicolon119 { path: '/foo;bar', fileURL: 'file:///foo;bar' },120 // percent121 { path: '/foo%bar', fileURL: 'file:///foo%25bar' },122 // backslash123 { path: '/foo\\bar', fileURL: 'file:///foo%5Cbar' },124 // backspace125 { path: '/foo\bbar', fileURL: 'file:///foo%08bar' },126 // tab127 { path: '/foo\tbar', fileURL: 'file:///foo%09bar' },128 // newline129 { path: '/foo\nbar', fileURL: 'file:///foo%0Abar' },130 // carriage return131 { path: '/foo\rbar', fileURL: 'file:///foo%0Dbar' },132 // latin1133 { path: '/fóóbàr', fileURL: 'file:///f%C3%B3%C3%B3b%C3%A0r' },134 // Euro sign (BMP code point)135 { path: '/€', fileURL: 'file:///%E2%82%AC' },136 // Rocket emoji (non-BMP code point)137 { path: '/🚀', fileURL: 'file:///%F0%9F%9A%80' },138 ];139 }140 for (const { path, fileURL } of testCases) {141 const fromString = url.fileURLToPath(fileURL);142 assert.strictEqual(fromString, path);143 const fromURL = url.fileURLToPath(new URL(fileURL));144 assert.strictEqual(fromURL, path);145 }...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1import { fileUrl } from 'ts-auto-mock/fileUrl';2import { getMock } from 'ts-auto-mock';3const mock = getMock(fileUrl('./test2'));4console.log(mock);5export interface Test2 {6 test: string;7}8import { getMock } from 'ts-auto-mock';9const mock = getMock(__filename);10console.log(mock);

Full Screen

Using AI Code Generation

copy

Full Screen

1import {fileUrl} from 'ts-auto-mock';2export const fileUrl = fileUrl(__filename, '../test2.js');3import {fileUrl} from 'ts-auto-mock';4export const fileUrl = fileUrl(__filename, '../test3.js');5import {fileUrl} from 'ts-auto-mock';6export const fileUrl = fileUrl(__filename, '../test4.js');7import {fileUrl} from 'ts-auto-mock';8export const fileUrl = fileUrl(__filename, '../test5.js');9import {fileUrl} from 'ts-auto-mock';10export const fileUrl = fileUrl(__filename, '../test6.js');11import {fileUrl} from 'ts-auto-mock';12export const fileUrl = fileUrl(__filename, '../test7.js');13import {fileUrl} from 'ts-auto-mock';14export const fileUrl = fileUrl(__filename, '../test8.js');15import {fileUrl} from 'ts-auto-mock';16export const fileUrl = fileUrl(__filename, '../test9.js');17import {fileUrl} from 'ts-auto-mock';18export const fileUrl = fileUrl(__filename, '../test10.js');19import {fileUrl} from 'ts-auto-mock';20export const fileUrl = fileUrl(__filename, '../test11.js');21import {fileUrl} from 'ts-auto-mock';22export const fileUrl = fileUrl(__filename, '../test12.js');

Full Screen

Using AI Code Generation

copy

Full Screen

1import {fileUrl} from 'ts-auto-mock/fileUrl';2const path = require('path');3const myPath = path.join(__dirname, 'test2.js');4const myUrl = fileUrl(myPath);5import {fileUrl} from 'ts-auto-mock/fileUrl';6const path = require('path');7const myPath = path.join(__dirname, 'test1.js');8const myUrl = fileUrl(myPath);

Full Screen

Using AI Code Generation

copy

Full Screen

1import { fileUrl } from 'ts-auto-mock/fileUrl';2import { Test1 } from 'ts-auto-mock/extension';3describe('Test1', () => {4 it('should create an instance', () => {5 expect(new Test1()).toBeTruthy();6 });7});8import { fileUrl } from 'ts-auto-mock/fileUrl';9import { Test2 } from 'ts-auto-mock/extension';10describe('Test2', () => {11 it('should create an instance', () => {12 expect(new Test2()).toBeTruthy();13 });14});15import { fileUrl } from 'ts-auto-mock/fileUrl';16import { Test3 } from 'ts-auto-mock/extension';17describe('Test3', () => {18 it('should create an instance', () => {19 expect(new Test3()).toBeTruthy();20 });21});22import { fileUrl } from 'ts-auto-mock/fileUrl';23import { Test4 } from 'ts-auto-mock/extension';24describe('Test4', () => {25 it('should create an instance', () => {26 expect(new Test4()).toBeTruthy();27 });28});29import { fileUrl } from 'ts-auto-mock/fileUrl';30import { Test5 } from 'ts-auto-mock/extension';31describe('Test5', () => {32 it('should create an instance', () => {33 expect(new Test5()).toBeTruthy();34 });35});36import { fileUrl } from 'ts-auto-mock/fileUrl';37import { Test6 } from 'ts-auto-mock/extension';38describe('

Full Screen

Using AI Code Generation

copy

Full Screen

1import { createMock } from 'ts-auto-mock';2import { fileUrl } from 'ts-auto-mock/fileUrl';3import { SomeInterface } from 'some-interface';4describe('test1', () => {5 it('should create a mock', () => {6 const mock = createMock<SomeInterface>(fileUrl('./some-interface.ts'));7 expect(mock).toBeDefined();8 });9});10export interface SomeInterface {11 someProperty: string;12}13I think the problem is that you are not importing the interface from the file. You can try to use the following code:14import { createMock } from 'ts-auto-mock';15import { fileUrl } from 'ts-auto-mock/fileUrl';16import { SomeInterface } from 'some-interface';17describe('test1', () => {18 it('should create a mock', () => {19 const mock = createMock<SomeInterface>(fileUrl('./some-interface.ts'));20 expect(mock).toBeDefined();21 });22});23export interface SomeInterface {24 someProperty: string;25}26I think the problem is that you are not importing the interface from the file. You can try to use the following code:27import { createMock } from 'ts-auto-mock';28import { fileUrl } from 'ts-auto-mock/fileUrl';29import { SomeInterface } from './some-interface';30describe('test1', () => {31 it('should create a mock', () => {32 const mock = createMock<SomeInterface>(fileUrl('./some-interface.ts'));33 expect(mock).toBeDefined();34 });35});36export interface SomeInterface {37 someProperty: string;38}39I think the problem is that you are not importing the interface from the file. You can try to use

Full Screen

Using AI Code Generation

copy

Full Screen

1import { fileUrl } from 'ts-auto-mock/fileUrl';2import { fileContent } from 'ts-auto-mock/fileContent';3import { createMock } from 'ts-auto-mock';4const url = fileUrl('./test2.ts');5const content = fileContent(url);6const mock = createMock(content);7export interface Test {8 test: string;9}10import { fileUrl } from 'ts-auto-mock/fileUrl';11import { fileContent } from 'ts-auto-mock/fileContent';12import { createMock } from 'ts-auto-mock';13const url = fileUrl('./test2.ts');14const content = fileContent(url);15const mock = createMock(content);16export interface Test {17 test: string;18}19import { fileUrl } from 'ts-auto-mock/fileUrl';20import { fileContent } from 'ts-auto-mock/fileContent';21import { createMock } from 'ts-auto-mock';22const url = fileUrl('./test2.ts');23const content = fileContent(url);24const mock = createMock(content);25export interface Test {26 test: string;27}28import { fileUrl } from 'ts-auto-mock/fileUrl';29import { fileContent } from 'ts-auto-mock/fileContent';30import { createMock } from 'ts-auto-mock';31const url = fileUrl('./test2.ts');32const content = fileContent(url);33const mock = createMock(content

Full Screen

Using AI Code Generation

copy

Full Screen

1import { fileUrl } from 'ts-auto-mock/fileUrl';2import { getMock } from 'ts-auto-mock';3import { Interface } from './interface';4const path = fileUrl('./interface.ts');5const mock: Interface = getMock(path);6console.log(mock);7export interface Interface {8 property: string;9 method: () => void;10}

Full Screen

Using AI Code Generation

copy

Full Screen

1import { fileUrl } from 'ts-auto-mock';2import { MyModel } from 'fileUrl('/Users/username/Documents/myProject/src/models/MyModel.ts');3import { fileUrl } from 'ts-auto-mock';4import { MyModel } from 'fileUrl(/Users/username/Documents/myProject/src/models/MyModel.ts)';5import { fileUrl } from 'ts-auto-mock';6import { MyModel } from 'fileUrl(/Users/username/Documents/myProject/src/models/MyModel.ts)';7import { fileUrl } from 'ts-auto-mock';8import { MyModel } from 'fileUrl(/Users/username/Documents/myProject/src/models/MyModel.ts)';9import { fileUrl } from 'ts-auto-mock';10import { MyModel } from 'fileUrl(/Users/username/Documents/myProject/src/models/MyModel.ts)';11import { fileUrl } from 'ts-auto-mock';12import { MyModel } from 'fileUrl(/Users/username/Documents/myProject/src/models/MyModel.ts)';

Full Screen

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 ts-auto-mock 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