jsf.js_next_gen 1.0.0-beta-20 → 4.0.0-RC.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. package/.mocharc.json +2 -1
  2. package/.nyc_output/2303b649-59d9-485c-9228-73b0ec8787a7.json +1 -0
  3. package/.nyc_output/756f2f03-c85b-4cdb-9b92-5799eb45ef1e.json +1 -0
  4. package/.nyc_output/processinfo/2303b649-59d9-485c-9228-73b0ec8787a7.json +1 -0
  5. package/.nyc_output/processinfo/756f2f03-c85b-4cdb-9b92-5799eb45ef1e.json +1 -0
  6. package/.nyc_output/processinfo/index.json +1 -0
  7. package/.nycrc +2 -1
  8. package/README.md +78 -24
  9. package/dist/docs/assets/highlight.css +21 -0
  10. package/dist/docs/assets/search.js +1 -1
  11. package/dist/docs/assets/style.css +34 -2
  12. package/dist/docs/functions/{jsf.ajax.addOnError.html → faces.ajax.addOnError.html} +15 -13
  13. package/dist/docs/functions/{jsf.ajax.addOnEvent.html → faces.ajax.addOnEvent.html} +15 -13
  14. package/dist/docs/functions/{jsf.ajax.request.html → faces.ajax.request.html} +15 -13
  15. package/dist/docs/functions/{jsf.ajax.response.html → faces.ajax.response.html} +15 -13
  16. package/dist/docs/functions/{jsf.getClientWindow.html → faces.getClientWindow.html} +17 -14
  17. package/dist/docs/functions/{jsf.getProjectStage.html → faces.getProjectStage.html} +18 -15
  18. package/dist/docs/functions/{jsf.getViewState.html → faces.getViewState.html} +18 -15
  19. package/dist/docs/functions/{jsf.push.close.html → faces.push.close.html} +15 -13
  20. package/dist/docs/functions/{jsf.push.init.html → faces.push.init.html} +29 -19
  21. package/dist/docs/functions/{jsf.push.open.html → faces.push.open.html} +15 -13
  22. package/dist/docs/functions/{jsf.util.chain.html → faces.util.chain.html} +12 -10
  23. package/dist/docs/functions/myfaces.ab.html +10 -8
  24. package/dist/docs/index.html +71 -29
  25. package/dist/docs/modules/{jsf.ajax.html → faces.ajax.html} +18 -16
  26. package/dist/docs/modules/faces.html +75 -0
  27. package/dist/docs/modules/{jsf.push.html → faces.push.html} +16 -14
  28. package/dist/docs/modules/{jsf.util.html → faces.util.html} +12 -10
  29. package/dist/docs/modules/myfaces.html +8 -6
  30. package/dist/docs/modules.html +9 -7
  31. package/dist/docs/variables/faces.contextpath.html +57 -0
  32. package/dist/docs/variables/{jsf.implversion.html → faces.implversion.html} +17 -14
  33. package/dist/docs/variables/{jsf.separatorchar.html → faces.separatorchar.html} +18 -15
  34. package/dist/docs/variables/faces.specversion.html +64 -0
  35. package/dist/docs/variables/myfaces.oam.html +8 -6
  36. package/dist/window/faces-development.js +7688 -0
  37. package/dist/window/faces-development.js.br +0 -0
  38. package/dist/window/faces-development.js.gz +0 -0
  39. package/dist/window/faces-development.js.map +1 -0
  40. package/dist/window/faces.js +3 -0
  41. package/dist/window/faces.js.LICENSE.txt +87 -0
  42. package/dist/window/faces.js.br +0 -0
  43. package/dist/window/faces.js.gz +0 -0
  44. package/dist/window/faces.js.map +1 -0
  45. package/dist/window/jsf-development.js +3011 -2963
  46. package/dist/window/jsf-development.js.br +0 -0
  47. package/dist/window/jsf-development.js.gz +0 -0
  48. package/dist/window/jsf-development.js.map +1 -1
  49. package/dist/window/jsf.js +2 -1
  50. package/dist/window/jsf.js.LICENSE.txt +87 -0
  51. package/dist/window/jsf.js.br +0 -0
  52. package/dist/window/jsf.js.gz +0 -0
  53. package/dist/window/jsf.js.map +1 -1
  54. package/package.json +12 -12
  55. package/pom.xml +14 -0
  56. package/src/main/java/com/example/jsfs_js_ts/DecoratedFacesJS.java +94 -0
  57. package/src/main/java/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.java +54 -0
  58. package/src/main/java/com/example/jsfs_js_ts/FacesJSMapFileResourceWrapper.java +57 -0
  59. package/src/main/java/com/example/jsfs_js_ts/FacesJSMappingDecorator.java +138 -0
  60. package/src/main/typescript/@types/definitions/index.d.ts +147 -0
  61. package/src/main/typescript/api/{Jsf.ts → _api.ts} +61 -49
  62. package/src/main/typescript/api/faces.ts +44 -0
  63. package/src/main/typescript/api/jsf.ts +43 -0
  64. package/src/main/typescript/impl/AjaxImpl.ts +39 -42
  65. package/src/main/typescript/impl/PushImpl.ts +27 -30
  66. package/src/main/typescript/impl/core/Const.ts +38 -16
  67. package/src/main/typescript/impl/core/ImplTypes.ts +1 -1
  68. package/src/main/typescript/impl/i18n/Messages.ts +2 -2
  69. package/src/main/typescript/impl/util/Assertions.ts +3 -3
  70. package/src/main/typescript/impl/util/AsyncQueue.ts +1 -1
  71. package/src/main/typescript/impl/util/AsyncRunnable.ts +5 -5
  72. package/src/main/typescript/impl/util/ExtDomQuery.ts +200 -48
  73. package/src/main/typescript/impl/util/IListener.ts +1 -1
  74. package/src/main/typescript/impl/util/Lang.ts +25 -25
  75. package/src/main/typescript/impl/xhrCore/ErrorData.ts +2 -3
  76. package/src/main/typescript/impl/xhrCore/EventData.ts +4 -3
  77. package/src/main/typescript/impl/xhrCore/IResponseProcessor.ts +19 -11
  78. package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +15 -14
  79. package/src/main/typescript/impl/xhrCore/ResonseDataResolver.ts +15 -11
  80. package/src/main/typescript/impl/xhrCore/Response.ts +30 -24
  81. package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +69 -49
  82. package/src/main/typescript/impl/xhrCore/XhrFormData.ts +9 -7
  83. package/src/main/typescript/impl/xhrCore/XhrRequest.ts +76 -60
  84. package/src/main/typescript/myfaces/OamSubmit.ts +12 -15
  85. package/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.ts +277 -65
  86. package/src/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.ts +1 -1
  87. package/src/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.ts +1 -1
  88. package/src/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.ts +1 -1
  89. package/src/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.ts +1 -1
  90. package/src/main/typescript/test/frameworkBase/_ext/monadish/StreamTest.spec.ts +1 -1
  91. package/src/main/typescript/test/frameworkBase/_ext/monadish/fixtures/test.js +1 -0
  92. package/src/main/typescript/test/frameworkBase/_ext/monadish/fixtures/test2.js +1 -0
  93. package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +75 -30
  94. package/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts +44 -4
  95. package/src/main/typescript/test/impl/ImplTest.spec.ts +18 -22
  96. package/src/main/typescript/test/impl/ImplTest_23.spec.ts +129 -0
  97. package/src/main/typescript/test/impl/SeparatorCharsTest.spec.ts +7 -6
  98. package/src/main/typescript/test/myfaces/OamSubmit.spec.ts +15 -24
  99. package/src/main/typescript/test/queue/AsynchronousProbe.ts +1 -1
  100. package/src/main/typescript/test/queue/AsynchronousQueueTest.spec.ts +4 -4
  101. package/src/main/typescript/test/xhrCore/EventTests.spec.ts +15 -23
  102. package/src/main/typescript/test/xhrCore/FakeWebsocket.ts +3 -3
  103. package/src/main/typescript/test/xhrCore/FileUploadTest.spec.ts +7 -32
  104. package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +16 -37
  105. package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +17 -16
  106. package/src/main/typescript/test/xhrCore/RequestTest_23.spec.ts +364 -0
  107. package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +102 -47
  108. package/src/main/typescript/test/xhrCore/ResponseTest23.spec.ts +362 -0
  109. package/src/main/typescript/test/xhrCore/ShadowDomTest.spec.ts +6 -9
  110. package/src/main/typescript/test/xhrCore/WebsocketTest.ts +15 -15
  111. package/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.ts +3 -3
  112. package/{target/main/typescript/impl/util/AsyncRunnable.js → src/main/typescript/test/xhrCore/fixtures/addedViewHead1.js} +4 -6
  113. package/src/main/typescript/test/xhrCore/fixtures/addedViewHead2.css +18 -0
  114. package/src/main/typescript/test/xhrCore/fixtures/addedViewHead2.js +16 -0
  115. package/src/main/typescript/test/xhrCore/fixtures/addedViewHead3.js +16 -0
  116. package/src/main/typescript/test/xhrCore/fixtures/nonce_script.js +16 -0
  117. package/src/main/typescript/tsconfig-typedoc.json +17 -1
  118. package/src/main/typescript/tsconfig.json +23 -5
  119. package/src/test/resources/jsf-development.js +1 -1
  120. package/src/test.html +75 -0
  121. package/src/tmp/test.html +92 -0
  122. package/target/api/{Jsf.js → _api.js} +68 -70
  123. package/target/api/_api.js.map +1 -0
  124. package/target/api/faces.js +45 -0
  125. package/target/api/faces.js.map +1 -0
  126. package/target/api/jsf.js +45 -0
  127. package/target/api/jsf.js.map +1 -0
  128. package/target/classes/com/example/jsfs_js_ts/DecoratedFacesJS.class +0 -0
  129. package/target/classes/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.class +0 -0
  130. package/target/classes/com/example/jsfs_js_ts/FacesJSMapFileResourceWrapper.class +0 -0
  131. package/target/classes/com/example/jsfs_js_ts/FacesJSMappingDecorator.class +0 -0
  132. package/target/impl/AjaxImpl.js +85 -93
  133. package/target/impl/AjaxImpl.js.map +1 -1
  134. package/target/impl/PushImpl.js +63 -64
  135. package/target/impl/PushImpl.js.map +1 -1
  136. package/target/impl/core/Const.js +38 -19
  137. package/target/impl/core/Const.js.map +1 -1
  138. package/target/impl/core/ImplTypes.js +10 -15
  139. package/target/impl/core/ImplTypes.js.map +1 -1
  140. package/target/impl/i18n/Messages.js +5 -6
  141. package/target/impl/i18n/Messages.js.map +1 -1
  142. package/target/impl/util/Assertions.js +12 -21
  143. package/target/impl/util/Assertions.js.map +1 -1
  144. package/target/impl/util/AsyncQueue.js +28 -36
  145. package/target/impl/util/AsyncQueue.js.map +1 -1
  146. package/target/impl/util/AsyncRunnable.js +1 -1
  147. package/target/impl/util/ExtDomQuery.js +235 -138
  148. package/target/impl/util/ExtDomQuery.js.map +1 -1
  149. package/target/impl/util/Lang.js +43 -50
  150. package/target/impl/util/Lang.js.map +1 -1
  151. package/target/impl/xhrCore/ErrorData.js +37 -62
  152. package/target/impl/xhrCore/ErrorData.js.map +1 -1
  153. package/target/impl/xhrCore/EventData.js +12 -14
  154. package/target/impl/xhrCore/EventData.js.map +1 -1
  155. package/target/impl/xhrCore/RequestDataResolver.js +27 -29
  156. package/target/impl/xhrCore/RequestDataResolver.js.map +1 -1
  157. package/target/impl/xhrCore/ResonseDataResolver.js +25 -23
  158. package/target/impl/xhrCore/ResonseDataResolver.js.map +1 -1
  159. package/target/impl/xhrCore/Response.js +40 -36
  160. package/target/impl/xhrCore/Response.js.map +1 -1
  161. package/target/impl/xhrCore/ResponseProcessor.js +165 -167
  162. package/target/impl/xhrCore/ResponseProcessor.js.map +1 -1
  163. package/target/impl/xhrCore/XhrFormData.js +75 -103
  164. package/target/impl/xhrCore/XhrFormData.js.map +1 -1
  165. package/target/impl/xhrCore/XhrRequest.js +160 -145
  166. package/target/impl/xhrCore/XhrRequest.js.map +1 -1
  167. package/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +4 -0
  168. package/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +4 -0
  169. package/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst +1 -0
  170. package/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +1 -0
  171. package/target/myfaces/OamSubmit.js +32 -20
  172. package/target/myfaces/OamSubmit.js.map +1 -1
  173. package/target/surefire-reports/TEST-com.example.jsfs_js_ts.JsfsJsTsApplicationTests.xml +78 -0
  174. package/target/surefire-reports/com.example.jsfs_js_ts.JsfsJsTsApplicationTests.txt +7 -0
  175. package/target/test/frameworkBase/LangTest.spec.js +46 -32
  176. package/target/test/frameworkBase/LangTest.spec.js.map +1 -1
  177. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +372 -134
  178. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +1 -1
  179. package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js +46 -32
  180. package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js.map +1 -1
  181. package/target/test/frameworkBase/_ext/monadish/MappingProbes.js +25 -34
  182. package/target/test/frameworkBase/_ext/monadish/MappingProbes.js.map +1 -1
  183. package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js +9 -9
  184. package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js.map +1 -1
  185. package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js +32 -32
  186. package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +1 -1
  187. package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js +51 -49
  188. package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js.map +1 -1
  189. package/target/test/frameworkBase/_ext/shared/StandardInits.js +277 -124
  190. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
  191. package/target/test/frameworkBase/_ext/shared/XmlResponses.js +199 -18
  192. package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +1 -1
  193. package/target/test/impl/ImplTest.spec.js +45 -33
  194. package/target/test/impl/ImplTest.spec.js.map +1 -1
  195. package/target/test/impl/ImplTest_23.spec.js +133 -0
  196. package/target/test/impl/ImplTest_23.spec.js.map +1 -0
  197. package/target/test/impl/SeparatorCharsTest.spec.js +22 -20
  198. package/target/test/impl/SeparatorCharsTest.spec.js.map +1 -1
  199. package/target/test/myfaces/OamSubmit.spec.js +35 -42
  200. package/target/test/myfaces/OamSubmit.spec.js.map +1 -1
  201. package/target/test/queue/AsynchronousProbe.js +24 -30
  202. package/target/test/queue/AsynchronousProbe.js.map +1 -1
  203. package/target/test/queue/AsynchronousQueueTest.spec.js +40 -71
  204. package/target/test/queue/AsynchronousQueueTest.spec.js.map +1 -1
  205. package/target/test/xhrCore/EventTests.spec.js +47 -83
  206. package/target/test/xhrCore/EventTests.spec.js.map +1 -1
  207. package/target/test/xhrCore/FakeWebsocket.js +15 -17
  208. package/target/test/xhrCore/FakeWebsocket.js.map +1 -1
  209. package/target/test/xhrCore/FileUploadTest.spec.js +50 -91
  210. package/target/test/xhrCore/FileUploadTest.spec.js.map +1 -1
  211. package/target/test/xhrCore/RequestParamsTest.spec.js +49 -98
  212. package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
  213. package/target/test/xhrCore/RequestTest.spec.js +84 -120
  214. package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
  215. package/target/test/{typescript/xhrCore/RequestTest.js → xhrCore/RequestTest_23.spec.js} +142 -127
  216. package/target/test/xhrCore/RequestTest_23.spec.js.map +1 -0
  217. package/target/test/xhrCore/ResponseTest.spec.js +183 -105
  218. package/target/test/xhrCore/ResponseTest.spec.js.map +1 -1
  219. package/target/test/xhrCore/ResponseTest23.spec.js +312 -0
  220. package/target/test/xhrCore/ResponseTest23.spec.js.map +1 -0
  221. package/target/test/xhrCore/ShadowDomTest.spec.js +33 -66
  222. package/target/test/xhrCore/ShadowDomTest.spec.js.map +1 -1
  223. package/target/test/xhrCore/WebsocketTest.js +64 -97
  224. package/target/test/xhrCore/WebsocketTest.js.map +1 -1
  225. package/target/test/xhrCore/XhrFormDataTest.spec.js +42 -16
  226. package/target/test/xhrCore/XhrFormDataTest.spec.js.map +1 -1
  227. package/target/test-classes/jsf-development.js +452 -3674
  228. package/target/test-classes/jsf.js +1 -1
  229. package/target/test-classes/jsf.js.br +0 -0
  230. package/target/test-classes/jsf.js.gz +0 -0
  231. package/webpack.config.js +7 -4
  232. package/webpack.config.js.map +1 -1
  233. package/webpack.config.ts +23 -4
  234. package/dist/docs/modules/jsf.html +0 -71
  235. package/dist/docs/variables/jsf.specversion.html +0 -52
  236. package/integrationdeploy.cmd +0 -4
  237. package/integrationsdeploy.sh +0 -5
  238. package/remap.js +0 -44
  239. package/remap.js.map +0 -1
  240. package/src/main/java/com/example/jsfs_js_ts/JsfsJsTsApplication.java +0 -12
  241. package/src/main/types/typedefs.d.ts +0 -66
  242. package/target/api/Jsf.js.map +0 -1
  243. package/target/classes/com/example/jsfs_js_ts/JsfsJsTsApplication.class +0 -0
  244. package/target/impl/util/ListenerQueue.js +0 -3
  245. package/target/impl/util/ListenerQueue.js.map +0 -1
  246. package/target/main/typescript/api/Jsf.js +0 -258
  247. package/target/main/typescript/api/Jsf.js.map +0 -1
  248. package/target/main/typescript/impl/AjaxImpl.js +0 -569
  249. package/target/main/typescript/impl/AjaxImpl.js.map +0 -1
  250. package/target/main/typescript/impl/PushImpl.js +0 -215
  251. package/target/main/typescript/impl/PushImpl.js.map +0 -1
  252. package/target/main/typescript/impl/core/Const.js +0 -135
  253. package/target/main/typescript/impl/core/Const.js.map +0 -1
  254. package/target/main/typescript/impl/core/ImplTypes.js +0 -43
  255. package/target/main/typescript/impl/core/ImplTypes.js.map +0 -1
  256. package/target/main/typescript/impl/i18n/Messages.js +0 -114
  257. package/target/main/typescript/impl/i18n/Messages.js.map +0 -1
  258. package/target/main/typescript/impl/util/Assertions.js +0 -90
  259. package/target/main/typescript/impl/util/Assertions.js.map +0 -1
  260. package/target/main/typescript/impl/util/AsyncQueue.js +0 -104
  261. package/target/main/typescript/impl/util/AsyncQueue.js.map +0 -1
  262. package/target/main/typescript/impl/util/AsyncRunnable.js.map +0 -1
  263. package/target/main/typescript/impl/util/ExtDomQuery.js +0 -129
  264. package/target/main/typescript/impl/util/ExtDomQuery.js.map +0 -1
  265. package/target/main/typescript/impl/util/Lang.js +0 -215
  266. package/target/main/typescript/impl/util/Lang.js.map +0 -1
  267. package/target/main/typescript/impl/util/ListenerQueue.js +0 -3
  268. package/target/main/typescript/impl/util/ListenerQueue.js.map +0 -1
  269. package/target/main/typescript/impl/xhrCore/ErrorData.js +0 -89
  270. package/target/main/typescript/impl/xhrCore/ErrorData.js.map +0 -1
  271. package/target/main/typescript/impl/xhrCore/EventData.js +0 -30
  272. package/target/main/typescript/impl/xhrCore/EventData.js.map +0 -1
  273. package/target/main/typescript/impl/xhrCore/IResponseProcessor.js +0 -3
  274. package/target/main/typescript/impl/xhrCore/IResponseProcessor.js.map +0 -1
  275. package/target/main/typescript/impl/xhrCore/RequestDataResolver.js +0 -143
  276. package/target/main/typescript/impl/xhrCore/RequestDataResolver.js.map +0 -1
  277. package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js +0 -103
  278. package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js.map +0 -1
  279. package/target/main/typescript/impl/xhrCore/Response.js +0 -167
  280. package/target/main/typescript/impl/xhrCore/Response.js.map +0 -1
  281. package/target/main/typescript/impl/xhrCore/ResponseProcessor.js +0 -368
  282. package/target/main/typescript/impl/xhrCore/ResponseProcessor.js.map +0 -1
  283. package/target/main/typescript/impl/xhrCore/XhrFormData.js +0 -272
  284. package/target/main/typescript/impl/xhrCore/XhrFormData.js.map +0 -1
  285. package/target/main/typescript/impl/xhrCore/XhrRequest.js +0 -281
  286. package/target/main/typescript/impl/xhrCore/XhrRequest.js.map +0 -1
  287. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.js +0 -293
  288. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.js.map +0 -1
  289. package/target/test/frameworkBase/_ext/monadish/LangTest.js +0 -89
  290. package/target/test/frameworkBase/_ext/monadish/LangTest.js.map +0 -1
  291. package/target/test/frameworkBase/_ext/monadish/MappingTest.js +0 -39
  292. package/target/test/frameworkBase/_ext/monadish/MappingTest.js.map +0 -1
  293. package/target/test/frameworkBase/_ext/monadish/MonadTest.js +0 -155
  294. package/target/test/frameworkBase/_ext/monadish/MonadTest.js.map +0 -1
  295. package/target/test/frameworkBase/_ext/monadish/StreamTest.js +0 -176
  296. package/target/test/frameworkBase/_ext/monadish/StreamTest.js.map +0 -1
  297. package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.js +0 -1
  298. package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.js.map +0 -1
  299. package/target/test/typescript/frameworkBase/LangTest.js +0 -112
  300. package/target/test/typescript/frameworkBase/LangTest.js.map +0 -1
  301. package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js +0 -293
  302. package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js.map +0 -1
  303. package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js +0 -89
  304. package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js.map +0 -1
  305. package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js +0 -115
  306. package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js.map +0 -1
  307. package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js +0 -39
  308. package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js.map +0 -1
  309. package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js +0 -155
  310. package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js.map +0 -1
  311. package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js +0 -176
  312. package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js.map +0 -1
  313. package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js +0 -1
  314. package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js.map +0 -1
  315. package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js +0 -264
  316. package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js.map +0 -1
  317. package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js +0 -23
  318. package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js.map +0 -1
  319. package/target/test/typescript/impl/ImplTest.js +0 -98
  320. package/target/test/typescript/impl/ImplTest.js.map +0 -1
  321. package/target/test/typescript/impl/SeparatorCharsTest.js +0 -72
  322. package/target/test/typescript/impl/SeparatorCharsTest.js.map +0 -1
  323. package/target/test/typescript/queue/AsynchronousProbe.js +0 -99
  324. package/target/test/typescript/queue/AsynchronousProbe.js.map +0 -1
  325. package/target/test/typescript/queue/AsynchronousQueueTest.js +0 -130
  326. package/target/test/typescript/queue/AsynchronousQueueTest.js.map +0 -1
  327. package/target/test/typescript/xhrCore/EventTests.js +0 -155
  328. package/target/test/typescript/xhrCore/EventTests.js.map +0 -1
  329. package/target/test/typescript/xhrCore/FakeWebsocket.js +0 -25
  330. package/target/test/typescript/xhrCore/FakeWebsocket.js.map +0 -1
  331. package/target/test/typescript/xhrCore/FileUploadTest.js +0 -166
  332. package/target/test/typescript/xhrCore/FileUploadTest.js.map +0 -1
  333. package/target/test/typescript/xhrCore/RequestParamsTest.js +0 -151
  334. package/target/test/typescript/xhrCore/RequestParamsTest.js.map +0 -1
  335. package/target/test/typescript/xhrCore/RequestTest.js.map +0 -1
  336. package/target/test/typescript/xhrCore/ResponseTest.js +0 -257
  337. package/target/test/typescript/xhrCore/ResponseTest.js.map +0 -1
  338. package/target/test/typescript/xhrCore/ShadowDomTest.js +0 -122
  339. package/target/test/typescript/xhrCore/ShadowDomTest.js.map +0 -1
  340. package/target/test/typescript/xhrCore/WebsocketTest.js +0 -182
  341. package/target/test/typescript/xhrCore/WebsocketTest.js.map +0 -1
  342. package/target/test/typescript/xhrCore/XhrFormDataTest.js +0 -58
  343. package/target/test/typescript/xhrCore/XhrFormDataTest.js.map +0 -1
@@ -1,130 +0,0 @@
1
- "use strict";
2
- /* Licensed to the Apache Software Foundation (ASF) under one or more
3
- * contributor license agreements. See the NOTICE file distributed with
4
- * this work for additional information regarding copyright ownership.
5
- * The ASF licenses this file to you under the Apache License, Version 2.0
6
- * (the "License"); you may not use this file except in compliance with
7
- * the License. You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (_) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- var mocha_1 = require("mocha");
55
- var chai_1 = require("chai");
56
- var sinon = require("sinon");
57
- var AsynchronousProbe_1 = require("./AsynchronousProbe");
58
- var AsyncQueue_1 = require("../../../main/typescript/impl/util/AsyncQueue");
59
- var StandardInits_1 = require("../frameworkBase/_ext/shared/StandardInits");
60
- var AjaxImpl_1 = require("../../../main/typescript/impl/AjaxImpl");
61
- var defaultMyFaces = StandardInits_1.StandardInits.defaultMyFaces;
62
- (0, mocha_1.describe)('Asynchronous Queue tests', function () {
63
- beforeEach(function () {
64
- return __awaiter(this, void 0, void 0, function () {
65
- var waitForResult;
66
- var _this = this;
67
- return __generator(this, function (_a) {
68
- waitForResult = defaultMyFaces();
69
- return [2 /*return*/, waitForResult.then(function (close) {
70
- _this.xhr = sinon.useFakeXMLHttpRequest();
71
- _this.requests = [];
72
- _this.xhr.onCreate = function (xhr) {
73
- _this.requests.push(xhr);
74
- };
75
- global.XMLHttpRequest = _this.xhr;
76
- window.XMLHttpRequest = _this.xhr;
77
- _this.jsfAjaxResponse = sinon.stub(global.jsf.ajax, "response");
78
- _this.closeIt = function () {
79
- global.XMLHttpRequest = window.XMLHttpRequest = _this.xhr.restore();
80
- _this.jsfAjaxResponse.restore();
81
- AjaxImpl_1.Implementation.reset();
82
- close();
83
- };
84
- })];
85
- });
86
- });
87
- });
88
- afterEach(function () {
89
- this.closeIt();
90
- });
91
- (0, mocha_1.it)('one entry', function (done) {
92
- var probe1 = new AsynchronousProbe_1.ProbeClass(setTimeout);
93
- var queue = new AsyncQueue_1.AsynchronouseQueue();
94
- probe1.then(function () {
95
- (0, chai_1.expect)(probe1.thenPerformed, "called").to.be.true;
96
- done();
97
- });
98
- queue.enqueue(probe1);
99
- });
100
- (0, mocha_1.it)('multiple entries', function (done) {
101
- var queue = new AsyncQueue_1.AsynchronouseQueue();
102
- var probe1 = new AsynchronousProbe_1.ProbeClass(setTimeout);
103
- var probe2 = new AsynchronousProbe_1.ProbeClass(setTimeout);
104
- var probe3 = new AsynchronousProbe_1.ProbeClass(setTimeout);
105
- var finallyCnt = 0;
106
- probe1.then(function () {
107
- (0, chai_1.expect)(probe1.thenPerformed, "called").to.be.true;
108
- (0, chai_1.expect)(queue.isEmpty).to.be.false;
109
- finallyCnt++;
110
- });
111
- probe2.then(function () {
112
- (0, chai_1.expect)(probe2.thenPerformed, "called").to.be.true;
113
- (0, chai_1.expect)(queue.isEmpty).to.be.false;
114
- finallyCnt++;
115
- });
116
- probe3.then(function () {
117
- (0, chai_1.expect)(probe3.thenPerformed, "called").to.be.true;
118
- finallyCnt++;
119
- });
120
- queue.enqueue(probe1);
121
- queue.enqueue(probe2);
122
- queue.enqueue(probe3);
123
- Promise.all([probe1.value, probe2.value, probe3.value]).then(function () {
124
- (0, chai_1.expect)(queue.isEmpty).to.be.true;
125
- (finallyCnt == 3) ? done() : null;
126
- });
127
- });
128
- //TODO error test?
129
- });
130
- //# sourceMappingURL=AsynchronousQueueTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AsynchronousQueueTest.js","sourceRoot":"","sources":["../../../../src/test/typescript/queue/AsynchronousQueueTest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+BAAmC;AACnC,6BAA4B;AAC5B,6BAA+B;AAC/B,yDAA+C;AAC/C,4EAAiF;AACjF,4EAAyE;AACzE,mEAAsE;AACtE,IAAO,cAAc,GAAG,6BAAa,CAAC,cAAc,CAAC;AAErD,IAAA,gBAAQ,EAAC,0BAA0B,EAAE;IAGjC,UAAU,CAAC;;;;;gBAEH,aAAa,GAAG,cAAc,EAAE,CAAC;gBAErC,sBAAO,aAAa,CAAC,IAAI,CAAC,UAAC,KAAK;wBAE5B,KAAI,CAAC,GAAG,GAAG,KAAK,CAAC,qBAAqB,EAAE,CAAC;wBACzC,KAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;wBACnB,KAAI,CAAC,GAAG,CAAC,QAAQ,GAAG,UAAC,GAAG;4BACpB,KAA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,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;YACjC,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;QACrC,CAAC,CAAC,CAAC;IAEP,CAAC,CAAC,CAAC;IAEH,kBAAkB;AACtB,CAAC,CAAC,CAAC"}
@@ -1,155 +0,0 @@
1
- "use strict";
2
- /* Licensed to the Apache Software Foundation (ASF) under one or more
3
- * contributor license agreements. See the NOTICE file distributed with
4
- * this work for additional information regarding copyright ownership.
5
- * The ASF licenses this file to you under the Apache License, Version 2.0
6
- * (the "License"); you may not use this file except in compliance with
7
- * the License. You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (_) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- var mocha_1 = require("mocha");
55
- var sinon = require("sinon");
56
- var StandardInits_1 = require("../frameworkBase/_ext/shared/StandardInits");
57
- var AjaxImpl_1 = require("../../../main/typescript/impl/AjaxImpl");
58
- var chai_1 = require("chai");
59
- var protocolPage = StandardInits_1.StandardInits.protocolPage;
60
- var mona_dish_1 = require("mona-dish");
61
- var XmlResponses_1 = require("../frameworkBase/_ext/shared/XmlResponses");
62
- (0, mocha_1.describe)('tests the addOnEvent and addOnError handling', function () {
63
- beforeEach(function () {
64
- return __awaiter(this, void 0, void 0, function () {
65
- var waitForResult;
66
- var _this = this;
67
- return __generator(this, function (_a) {
68
- waitForResult = protocolPage();
69
- return [2 /*return*/, waitForResult.then(function (close) {
70
- _this.xhr = sinon.useFakeXMLHttpRequest();
71
- _this.requests = [];
72
- _this.respond = function (response) {
73
- var xhrReq = _this.requests.shift();
74
- xhrReq.responsetype = "text/xml";
75
- xhrReq.respond(200, { 'Content-Type': 'text/xml' }, response);
76
- return xhrReq;
77
- };
78
- _this.xhr.onCreate = function (xhr) {
79
- _this.requests.push(xhr);
80
- };
81
- global.XMLHttpRequest = _this.xhr;
82
- window.XMLHttpRequest = _this.xhr;
83
- _this.closeIt = function () {
84
- global.XMLHttpRequest = window.XMLHttpRequest = _this.xhr.restore();
85
- AjaxImpl_1.Implementation.reset();
86
- close();
87
- };
88
- })];
89
- });
90
- });
91
- });
92
- afterEach(function () {
93
- this.closeIt();
94
- });
95
- var allowedStati = {
96
- "begin": true,
97
- "complete": true,
98
- "success": true,
99
- };
100
- it("must have a global add on event call with all three phases passed", function () {
101
- var onEventCalled1 = 0;
102
- var onEventCalled2 = 0;
103
- jsf.ajax.addOnEvent(function (data) {
104
- onEventCalled1++;
105
- if (onEventCalled1 == 1 && data.status != "begin") {
106
- throw ("Wrong status");
107
- }
108
- if (onEventCalled1 == 2 && data.status != "complete") {
109
- throw ("Wrong status");
110
- }
111
- if (onEventCalled1 == 3 && data.status != "success") {
112
- throw ("Wrong status");
113
- }
114
- });
115
- jsf.ajax.addOnEvent(function (data) {
116
- onEventCalled2++;
117
- });
118
- var issuer = mona_dish_1.DQ.byId("cmd_update_insert").click();
119
- this.respond(XmlResponses_1.XmlResponses.UPDATE_INSERT_1);
120
- (0, chai_1.expect)(onEventCalled1).to.eq(3);
121
- (0, chai_1.expect)(onEventCalled2).to.eq(3);
122
- });
123
- it("must have onError called in case of error", function () {
124
- var onErrorCalled1 = 0;
125
- var onErrorCalled2 = 0;
126
- jsf.ajax.addOnError(function (data) {
127
- onErrorCalled1++;
128
- });
129
- jsf.ajax.addOnError(function (data) {
130
- onErrorCalled2++;
131
- });
132
- //cmd_error_component
133
- var issuer = mona_dish_1.DQ.byId("cmd_error_component").click();
134
- this.respond(XmlResponses_1.XmlResponses.ERROR_2);
135
- (0, chai_1.expect)(onErrorCalled1).to.eq(1);
136
- (0, chai_1.expect)(onErrorCalled2).to.eq(1);
137
- });
138
- it("must have an id set if there is an emitting element", function () {
139
- var onEventCalled1 = 0;
140
- var onEventCalled2 = 0;
141
- var assertSourceExists = function (data) {
142
- var _a;
143
- (0, chai_1.expect)(!!((_a = data === null || data === void 0 ? void 0 : data.source) === null || _a === void 0 ? void 0 : _a.id)).to.be.true;
144
- };
145
- jsf.ajax.addOnEvent(function (data) {
146
- assertSourceExists(data);
147
- });
148
- jsf.ajax.addOnEvent(function (data) {
149
- onEventCalled2++;
150
- });
151
- var issuer = mona_dish_1.DQ.byId("cmd_update_insert").click();
152
- this.respond(XmlResponses_1.XmlResponses.UPDATE_INSERT_1);
153
- });
154
- });
155
- //# sourceMappingURL=EventTests.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventTests.js","sourceRoot":"","sources":["../../../../src/test/typescript/xhrCore/EventTests.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+BAA+B;AAC/B,6BAA+B;AAC/B,4EAAyE;AACzE,mEAAsE;AAEtE,6BAA4B;AAC5B,IAAO,YAAY,GAAG,6BAAa,CAAC,YAAY,CAAC;AACjD,uCAA6B;AAC7B,0EAAuE;AAIvE,IAAA,gBAAQ,EAAC,8CAA8C,EAAE;IAErD,UAAU,CAAC;;;;;gBACH,aAAa,GAAG,YAAY,EAAE,CAAC;gBACnC,sBAAO,aAAa,CAAC,IAAI,CAAC,UAAC,KAAK;wBAE5B,KAAI,CAAC,GAAG,GAAG,KAAK,CAAC,qBAAqB,EAAE,CAAC;wBACzC,KAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;wBAEnB,KAAI,CAAC,OAAO,GAAG,UAAC,QAAgB;4BAC5B,IAAI,MAAM,GAAG,KAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;4BACnC,MAA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AE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE;QACtD,IAAI,cAAc,GAAG,CAAC,CAAC;QACvB,IAAI,cAAc,GAAG,CAAC,CAAC;QAEvB,IAAI,kBAAkB,GAAG,UAAC,IAAS;;YAC/B,IAAA,aAAM,EAAC,CAAC,CAAC,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,0CAAE,EAAE,CAAA,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAC1C,CAAC,CAAA;QAED,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,UAAC,IAAS;YAC1B,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;QACH,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,UAAC,IAAS;YAC1B,cAAc,EAAE,CAAC;QAErB,CAAC,CAAC,CAAC;QACH,IAAI,MAAM,GAAG,cAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,KAAK,EAAE,CAAC;QAClD,IAAI,CAAC,OAAO,CAAC,2BAAY,CAAC,eAAe,CAAC,CAAC;IAE/C,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FakeWebsocket = void 0;
4
- var FakeWebsocket = /** @class */ (function () {
5
- function FakeWebsocket(data) {
6
- var _this = this;
7
- this.onopen = function () { };
8
- this.onmessage = function () { };
9
- this.onclose = function () { };
10
- setTimeout(function () {
11
- _this.onopen();
12
- }, 10);
13
- }
14
- FakeWebsocket.prototype.send = function (msg) {
15
- };
16
- FakeWebsocket.prototype._respond = function (response) {
17
- this.onmessage(response);
18
- };
19
- FakeWebsocket.prototype.close = function () {
20
- this.onclose();
21
- };
22
- return FakeWebsocket;
23
- }());
24
- exports.FakeWebsocket = FakeWebsocket;
25
- //# sourceMappingURL=FakeWebsocket.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FakeWebsocket.js","sourceRoot":"","sources":["../../../../src/test/typescript/xhrCore/FakeWebsocket.ts"],"names":[],"mappings":";;;AAAA;IAMI,uBAAY,IAAU;QAAtB,iBAIC;QARD,WAAM,GAAa,cAAO,CAAC,CAAA;QAC3B,cAAS,GAAa,cAAO,CAAC,CAAA;QAC9B,YAAO,GAAa,cAAO,CAAC,CAAA;QAGxB,UAAU,CAAC;YACP,KAAI,CAAC,MAAM,EAAE,CAAC;QAClB,CAAC,EAAE,EAAE,CAAC,CAAC;IACX,CAAC;IAGD,4BAAI,GAAJ,UAAK,GAAQ;IACb,CAAC;IAED,gCAAQ,GAAR,UAAS,QAAa;QAClB,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC7B,CAAC;IAED,6BAAK,GAAL;QACI,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IACL,oBAAC;AAAD,CAAC,AAvBD,IAuBC;AAvBY,sCAAa"}
@@ -1,166 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- var mocha_1 = require("mocha");
40
- var sinon = require("sinon");
41
- var chai_1 = require("chai");
42
- var StandardInits_1 = require("../frameworkBase/_ext/shared/StandardInits");
43
- var mona_dish_1 = require("mona-dish");
44
- var defaultFileForm = StandardInits_1.StandardInits.defaultFileForm;
45
- var AjaxImpl_1 = require("../../../main/typescript/impl/AjaxImpl");
46
- var issueStdReq = function (element) {
47
- jsf.ajax.request(element, null, {
48
- execute: "input_1",
49
- render: "@form",
50
- pass1: "pass1",
51
- pass2: "pass2"
52
- });
53
- };
54
- /**
55
- * specialized tests testing the xhr core behavior when it hits the xmlHttpRequest object
56
- */
57
- (0, mocha_1.describe)('Tests on the xhr core when it starts to call the request', function () {
58
- beforeEach(function () {
59
- return __awaiter(this, void 0, void 0, function () {
60
- var waitForResult;
61
- var _this = this;
62
- return __generator(this, function (_a) {
63
- waitForResult = defaultFileForm();
64
- return [2 /*return*/, waitForResult.then(function (close) {
65
- _this.xhr = sinon.useFakeXMLHttpRequest();
66
- _this.requests = [];
67
- _this.respond = function (response) {
68
- var xhrReq = _this.requests.shift();
69
- xhrReq.responsetype = "text/xml";
70
- xhrReq.respond(200, { 'Content-Type': 'text/xml' }, response);
71
- return xhrReq;
72
- };
73
- _this.xhr.onCreate = function (xhr) {
74
- _this.requests.push(xhr);
75
- };
76
- global.XMLHttpRequest = _this.xhr;
77
- window.XMLHttpRequest = _this.xhr;
78
- _this.closeIt = function () {
79
- global.XMLHttpRequest = window.XMLHttpRequest = _this.xhr.restore();
80
- AjaxImpl_1.Implementation.reset();
81
- close();
82
- };
83
- })];
84
- });
85
- });
86
- });
87
- afterEach(function () {
88
- this.closeIt();
89
- });
90
- (0, mocha_1.it)('must have sent a form multipart request', function (done) {
91
- var send = sinon.spy(XMLHttpRequest.prototype, "send");
92
- var CONTENT_TYPE = "Content-Type";
93
- var MULTIPART_FORM = "multipart/form-data";
94
- var POST = "POST";
95
- try {
96
- var button = mona_dish_1.DomQuery.byId("input_1");
97
- button.addEventListener("click", function (event) {
98
- jsf.ajax.request(event.target, event, { render: '@all', execute: '@form' });
99
- }).click();
100
- //this.resonse("ok");
101
- (0, chai_1.expect)(this.requests.length).to.eq(1);
102
- var request = this.requests[0];
103
- (0, chai_1.expect)(request.method).to.eq(POST);
104
- (0, chai_1.expect)(request.async).to.be.true;
105
- (0, chai_1.expect)(send.called).to.be.true;
106
- (0, chai_1.expect)(send.callCount).to.eq(1);
107
- (0, chai_1.expect)(request.requestBody instanceof FormData).to.be.true;
108
- (0, chai_1.expect)(request.requestHeaders[CONTENT_TYPE] == undefined).to.be.true;
109
- }
110
- finally {
111
- send.restore();
112
- }
113
- done();
114
- });
115
- (0, mocha_1.it)('must have sent a multipart request with a dedicated execute', function (done) {
116
- var send = sinon.spy(XMLHttpRequest.prototype, "send");
117
- var CONTENT_TYPE = "Content-Type";
118
- var MULTIPART_FORM = "multipart/form-data";
119
- var POST = "POST";
120
- try {
121
- var button = mona_dish_1.DomQuery.byId("input_1");
122
- button.addEventListener("click", function (event) {
123
- jsf.ajax.request(event.target, event, { render: '@all', execute: 'input_1 fíleupload' });
124
- }).click();
125
- //this.resonse("ok");
126
- (0, chai_1.expect)(this.requests.length).to.eq(1);
127
- var request = this.requests[0];
128
- (0, chai_1.expect)(request.method).to.eq(POST);
129
- (0, chai_1.expect)(request.async).to.be.true;
130
- (0, chai_1.expect)(send.called).to.be.true;
131
- (0, chai_1.expect)(send.callCount).to.eq(1);
132
- (0, chai_1.expect)(request.requestBody instanceof FormData).to.be.true;
133
- //undefined means the browser fills in the rest
134
- (0, chai_1.expect)(request.requestHeaders[CONTENT_TYPE] == undefined).to.be.true;
135
- }
136
- finally {
137
- send.restore();
138
- }
139
- done();
140
- });
141
- (0, mocha_1.it)('must have sent a single part request with a dedicated execute', function (done) {
142
- var send = sinon.spy(XMLHttpRequest.prototype, "send");
143
- var CONTENT_TYPE = "Content-Type";
144
- var MULTIPART_FORM = "multipart/form-data";
145
- var POST = "POST";
146
- try {
147
- var button = mona_dish_1.DomQuery.byId("input_1");
148
- button.addEventListener("click", function (event) {
149
- jsf.ajax.request(event.target, event, { render: '@all', execute: 'input_1 fileupload' });
150
- }).click();
151
- (0, chai_1.expect)(this.requests.length).to.eq(1);
152
- var request = this.requests[0];
153
- (0, chai_1.expect)(request.method).to.eq(POST);
154
- (0, chai_1.expect)(request.async).to.be.true;
155
- (0, chai_1.expect)(send.called).to.be.true;
156
- (0, chai_1.expect)(send.callCount).to.eq(1);
157
- (0, chai_1.expect)(request.requestBody instanceof FormData).to.be.false;
158
- (0, chai_1.expect)(request.requestHeaders[CONTENT_TYPE].indexOf(MULTIPART_FORM) == -1).to.be.true;
159
- }
160
- finally {
161
- send.restore();
162
- }
163
- done();
164
- });
165
- });
166
- //# sourceMappingURL=FileUploadTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileUploadTest.js","sourceRoot":"","sources":["../../../../src/test/typescript/xhrCore/FileUploadTest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAmC;AACnC,6BAA+B;AAC/B,6BAA4B;AAC5B,4EAAyE;AACzE,uCAAmC;AAanC,IAAO,eAAe,GAAG,6BAAa,CAAC,eAAe,CAAC;AACvD,mEAAsE;AAMtE,IAAI,WAAW,GAAG,UAAU,OAAO;IAC/B,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE;QAC5B,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,OAAO;QACf,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,OAAO;KACjB,CAAC,CAAC;AACP,CAAC,CAAC;AAEF;;GAEG;AACH,IAAA,gBAAQ,EAAC,0DAA0D,EAAE;IACjE,UAAU,CAAC;;;;;gBAEH,aAAa,GAAG,eAAe,EAAE,CAAC;gBACtC,sBAAO,aAAa,CAAC,IAAI,CAAC,UAAC,KAAK;wBAE5B,KAAI,CAAC,GAAG,GAAG,KAAK,CAAC,qBAAqB,EAAE,CAAC;wBACzC,KAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;wBAEnB,KAAI,CAAC,OAAO,GAAG,UAAC,QAAgB;4BAC5B,IAAI,MAAM,GAAG,KAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;4BACnC,MAAM,CAAC,YAAY,GAAG,UAAU,CAAC;4BACjC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,EAAC,cAAc,EAAE,UAAU,EAAC,EAAE,QAAQ,CAAC,CAAC;4BAC5D,OAAO,MAAM,CAAC;wBAClB,CAAC,CAAC;wBAEF,KAAI,CAAC,GAAG,CAAC,QAAQ,GAAG,UAAC,GAAG;4BACp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