@oracle/oraclejet-audit 10.0.0 → 11.1.3

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 (702) hide show
  1. package/jaf-amd.js +12 -4
  2. package/jaf.js +6 -1
  3. package/jafapi.js +6 -1
  4. package/lib/AST.js +6 -1
  5. package/lib/AST_Ts.js +6 -1
  6. package/lib/AstJson.js +6 -1
  7. package/lib/AstNodeTypes.js +6 -1
  8. package/lib/Comments.js +6 -1
  9. package/lib/ComponentSvcs.js +5 -0
  10. package/lib/Components.js +6 -1
  11. package/lib/Config.js +6 -1
  12. package/lib/ConfigLib.js +6 -1
  13. package/lib/CssLib.js +5 -0
  14. package/lib/CssUtils.js +5 -0
  15. package/lib/DomUtils.js +6 -1
  16. package/lib/FileIndex.js +5 -0
  17. package/lib/FileSet.js +5 -0
  18. package/lib/FsUtils.js +6 -1
  19. package/lib/Histo.js +6 -0
  20. package/lib/HtmlTree.js +6 -1
  21. package/lib/HtmlUtils.js +5 -0
  22. package/lib/Issue.js +5 -0
  23. package/lib/JafEvents.js +5 -0
  24. package/lib/JafLib.js +6 -1
  25. package/lib/Json.js +6 -0
  26. package/lib/JsonLoader.js +6 -1
  27. package/lib/MetaLib.js +6 -1
  28. package/lib/NetUtils.js +5 -0
  29. package/lib/NodeTypes.js +5 -0
  30. package/lib/Parser.js +6 -1
  31. package/lib/RegTypes.js +5 -0
  32. package/lib/Registry.js +5 -0
  33. package/lib/Reporter.js +5 -0
  34. package/lib/RuleContext.js +5 -0
  35. package/lib/RulePack.js +5 -0
  36. package/lib/RuleSet.js +6 -1
  37. package/lib/Rules.js +6 -1
  38. package/lib/Scope.js +6 -1
  39. package/lib/SemVer.js +5 -0
  40. package/lib/Server.js +5 -0
  41. package/lib/SevLib.js +5 -0
  42. package/lib/Severity.js +6 -1
  43. package/lib/Stats.js +6 -0
  44. package/lib/Ts.js +6 -1
  45. package/lib/Utils.js +6 -1
  46. package/lib/Watch.js +5 -0
  47. package/lib/Writer.js +5 -0
  48. package/lib/ZipUtils.js +5 -0
  49. package/lib/api.js +6 -0
  50. package/lib/cliStats.js +6 -0
  51. package/lib/clone.js +5 -0
  52. package/lib/cmdline.js +6 -1
  53. package/lib/colors.js +5 -0
  54. package/lib/exportRules.js +6 -0
  55. package/lib/extends.js +6 -0
  56. package/lib/filetypes.js +6 -0
  57. package/lib/groups.js +6 -0
  58. package/lib/help.js +6 -1
  59. package/lib/imanual.js +6 -0
  60. package/lib/jetver.js +6 -1
  61. package/lib/macros.js +6 -0
  62. package/lib/metaLoader.js +5 -0
  63. package/lib/metahist.js +5 -0
  64. package/lib/msgidLoader.js +6 -1
  65. package/lib/ns.js +6 -1
  66. package/lib/nslist.js +6 -1
  67. package/lib/outFormat.js +6 -0
  68. package/lib/outfile.js +5 -0
  69. package/lib/ruleLoader.js +5 -0
  70. package/lib/scaffold.js +6 -1
  71. package/lib/scaffoldRule.js +6 -1
  72. package/lib/schema.js +5 -0
  73. package/lib/scopewalker.js +6 -0
  74. package/lib/spinner.js +5 -0
  75. package/lib/spinnernoop.js +5 -0
  76. package/lib/tabs.js +5 -0
  77. package/lib/xmanual.js +6 -0
  78. package/libext/expparser.js +6 -1
  79. package/meta/10.1.0/jetauditmeta.js +9 -0
  80. package/meta/11.0.0/jetauditmeta.js +9 -0
  81. package/meta/11.1.0/jetauditmeta.js +9 -0
  82. package/meta/metaverlist.json +1 -1
  83. package/package.json +2 -3
  84. package/rulepacks/csp/csp-html-script-unsafe-inline.js +5 -0
  85. package/rulepacks/csp/csp-html-style-unsafe-inline.js +5 -0
  86. package/rulepacks/csp/csp-html-unsafe-expr.js +5 -0
  87. package/rulepacks/csp/csp-js-script-unsafe-eval.js +6 -1
  88. package/rulepacks/csp/csp-js-style-unsafe-inline.js +5 -0
  89. package/rulepacks/csp/csp-ts-script-unsafe-eval.js +6 -0
  90. package/rulepacks/csp/csp-ts-style-unsafe-inline.js +6 -0
  91. package/rulepacks/csp/msgid.json +6 -1
  92. package/rulepacks/csp/rules.json +6 -1
  93. package/rulepacks/jetwc/jetwc-absolute-jetversion.js +6 -1
  94. package/rulepacks/jetwc/jetwc-aria-redefinition.js +6 -1
  95. package/rulepacks/jetwc/jetwc-bootstrap.js +6 -1
  96. package/rulepacks/jetwc/jetwc-compjson-bp-ar.js +6 -1
  97. package/rulepacks/jetwc/jetwc-compjson-bp-obj.js +6 -1
  98. package/rulepacks/jetwc/jetwc-component-dependencies.js +6 -1
  99. package/rulepacks/jetwc/jetwc-component-displayname.js +6 -1
  100. package/rulepacks/jetwc/jetwc-component-foldername.js +6 -1
  101. package/rulepacks/jetwc/jetwc-component-location.js +6 -1
  102. package/rulepacks/jetwc/jetwc-component-type.js +6 -1
  103. package/rulepacks/jetwc/jetwc-data-property-prefix.js +6 -1
  104. package/rulepacks/jetwc/jetwc-deprecated-lifecycle.js +6 -1
  105. package/rulepacks/jetwc/jetwc-disabled-property.js +6 -1
  106. package/rulepacks/jetwc/jetwc-displayname.js +6 -1
  107. package/rulepacks/jetwc/jetwc-dynamic-slot-context.js +6 -1
  108. package/rulepacks/jetwc/jetwc-dynamic-slots-naming.js +6 -1
  109. package/rulepacks/jetwc/jetwc-event-displayname.js +6 -1
  110. package/rulepacks/jetwc/jetwc-events.js +6 -1
  111. package/rulepacks/jetwc/jetwc-jet-version.js +6 -1
  112. package/rulepacks/jetwc/jetwc-loader-file.js +6 -1
  113. package/rulepacks/jetwc/jetwc-method-displayname.js +6 -1
  114. package/rulepacks/jetwc/jetwc-methods.js +6 -1
  115. package/rulepacks/jetwc/jetwc-namespace.js +6 -1
  116. package/rulepacks/jetwc/jetwc-nested-defaults.js +6 -1
  117. package/rulepacks/jetwc/jetwc-nls-languages.js +6 -1
  118. package/rulepacks/jetwc/jetwc-nls-root.js +6 -1
  119. package/rulepacks/jetwc/jetwc-oj-register.js +6 -1
  120. package/rulepacks/jetwc/jetwc-ojcss.js +6 -1
  121. package/rulepacks/jetwc/jetwc-pack-children.js +6 -1
  122. package/rulepacks/jetwc/jetwc-packable-components.js +6 -1
  123. package/rulepacks/jetwc/jetwc-prerelease-dependencies.js +6 -1
  124. package/rulepacks/jetwc/jetwc-prerelease-pattern.js +6 -1
  125. package/rulepacks/jetwc/jetwc-prerelease-version.js +6 -1
  126. package/rulepacks/jetwc/jetwc-property-changed.js +6 -1
  127. package/rulepacks/jetwc/jetwc-property-displayname.js +6 -1
  128. package/rulepacks/jetwc/jetwc-property-nesting.js +6 -1
  129. package/rulepacks/jetwc/jetwc-public-modules.js +6 -1
  130. package/rulepacks/jetwc/jetwc-register-css.js +6 -1
  131. package/rulepacks/jetwc/jetwc-register-with-promises.js +6 -1
  132. package/rulepacks/jetwc/jetwc-require-paths.js +6 -1
  133. package/rulepacks/jetwc/jetwc-required-subproperty.js +6 -0
  134. package/rulepacks/jetwc/jetwc-reserved-property.js +6 -1
  135. package/rulepacks/jetwc/jetwc-schema.js +6 -1
  136. package/rulepacks/jetwc/jetwc-semantic-version.js +6 -1
  137. package/rulepacks/jetwc/jetwc-slot-displayname.js +6 -1
  138. package/rulepacks/jetwc/jetwc-slots.js +6 -1
  139. package/rulepacks/jetwc/jetwc-standard-files.js +6 -1
  140. package/rulepacks/jetwc/jetwc-subproperty-writeback.js +6 -0
  141. package/rulepacks/jetwc/jetwc-template-slots.js +6 -1
  142. package/rulepacks/jetwc/jetwc-unused-events.js +6 -1
  143. package/rulepacks/jetwc/jetwc-unused-slots.js +6 -1
  144. package/rulepacks/jetwc/jetwc-vb-category.js +6 -1
  145. package/rulepacks/jetwc/jetwc-vb-icon.js +6 -1
  146. package/rulepacks/jetwc/jetwc-version-openrange.js +6 -1
  147. package/rulepacks/jetwc/jetwc-writeback-required.js +6 -1
  148. package/rulepacks/jetwc/msgid.json +6 -0
  149. package/rulepacks/jetwc/rules.json +6 -1
  150. package/rulepacks/jetwc-lib/component-audit-utils.js +6 -1
  151. package/rulepacks/jetwco/jetwco-bootstrap.js +6 -1
  152. package/rulepacks/jetwco/jetwco-compjson-ns-reg.js +6 -1
  153. package/rulepacks/jetwco/jetwco-component-api-baseline-changes.js +6 -0
  154. package/rulepacks/jetwco/jetwco-component-api-changes.js +6 -1
  155. package/rulepacks/jetwco/jetwco-component-cdn.js +6 -1
  156. package/rulepacks/jetwco/jetwco-exchange-version-check.js +6 -1
  157. package/rulepacks/jetwco/jetwco-license-info.js +6 -1
  158. package/rulepacks/jetwco/jetwco-prerelease-cdn.js +6 -1
  159. package/rulepacks/jetwco/jetwco-thirdparty-ba.js +6 -1
  160. package/rulepacks/jetwco/msgid.json +6 -0
  161. package/rulepacks/jetwco/rules.json +6 -1
  162. package/rulepacks/spoc/msgid.json +5 -0
  163. package/rulepacks/spoc/rules.json +5 -0
  164. package/rulepacks/spoc/spoc-dom-manip-inv-tag.js +5 -0
  165. package/rulepacks/spoc/spoc-dom-manip-tag-pos.js +5 -0
  166. package/rulepacks/spoc/spoc-dom-manip.js +5 -0
  167. package/rules/jaf/jaf-css-diagnose.js +5 -0
  168. package/rules/jaf/jaf-html-diagnose.js +5 -0
  169. package/rules/jaf/jaf-init-schema.js +5 -0
  170. package/rules/jaf/jaf-js-diagnose.js +5 -0
  171. package/rules/jaf/jaf-ts-diagnose.js +6 -0
  172. package/rules/jaf/msgid.json +6 -1
  173. package/rules/jaf/rules.json +6 -1
  174. package/rules/jet/helpers/acc-aria-label.js +6 -1
  175. package/rules/jet/helpers/bp-checkPropType.js +5 -0
  176. package/rules/jet/helpers/cssHelper.js +6 -1
  177. package/rules/jet/helpers/extractStylesFromClass.js +6 -1
  178. package/rules/jet/helpers/has-slot-name.js +6 -1
  179. package/rules/jet/helpers/has-slot.js +5 -0
  180. package/rules/jet/helpers/json-prop-pos.js +5 -0
  181. package/rules/jet/helpers/json-propname-pos.js +5 -0
  182. package/rules/jet/helpers/style-selector.js +6 -1
  183. package/rules/jet/helpers/valid-attr.js +5 -0
  184. package/rules/jet/helpers/vartrack.js +5 -0
  185. package/rules/jet/jet-css-ojselector.js +5 -0
  186. package/rules/jet/msgid.json +6 -1
  187. package/rules/jet/oj-acc-aria-labelledby.js +5 -0
  188. package/rules/jet/oj-acc-aria-prop.js +5 -0
  189. package/rules/jet/oj-acc-avatar-aria-role.js +5 -0
  190. package/rules/jet/oj-acc-combobox-aria-label.js +6 -1
  191. package/rules/jet/oj-acc-film-strip-aria-label.js +5 -0
  192. package/rules/jet/oj-acc-input-aria-label.js +6 -1
  193. package/rules/jet/oj-acc-select-aria-label.js +6 -1
  194. package/rules/jet/oj-cca-compjson-bp-ar.js +5 -0
  195. package/rules/jet/oj-cca-compjson-bp-dsplyname.js +5 -0
  196. package/rules/jet/oj-cca-compjson-bp-jetver.js +5 -0
  197. package/rules/jet/oj-cca-compjson-bp-obj.js +5 -0
  198. package/rules/jet/oj-cca-compjson-ns-reg.js +5 -0
  199. package/rules/jet/oj-css-bp-border-color.js +5 -0
  200. package/rules/jet/oj-css-bp-dir-flow.js +6 -1
  201. package/rules/jet/oj-css-bp-float.js +5 -0
  202. package/rules/jet/oj-css-bp-textalign.js +5 -0
  203. package/rules/jet/oj-css-style-abs-units.js +5 -0
  204. package/rules/jet/oj-css-style-bp-color.js +6 -1
  205. package/rules/jet/oj-css-style-bp-display.js +6 -1
  206. package/rules/jet/oj-css-style-bp-font-family.js +6 -1
  207. package/rules/jet/oj-css-style-bp-font.js +5 -0
  208. package/rules/jet/oj-css-style-deprecated.js +6 -1
  209. package/rules/jet/oj-css-style-override.js +6 -1
  210. package/rules/jet/oj-css-var-override.js +5 -0
  211. package/rules/jet/oj-form-maxcols.js +6 -0
  212. package/rules/jet/oj-html-5-attr-obs.js +5 -0
  213. package/rules/jet/oj-html-5-tag-obs.js +5 -0
  214. package/rules/jet/oj-html-attr-$unique.js +5 -0
  215. package/rules/jet/oj-html-attr-2def.js +5 -0
  216. package/rules/jet/oj-html-attr-json.js +6 -1
  217. package/rules/jet/oj-html-attr-prefix-expr.js +6 -1
  218. package/rules/jet/oj-html-attr-prefix-ro.js +5 -0
  219. package/rules/jet/oj-html-attr-req.js +5 -0
  220. package/rules/jet/oj-html-bindforeach-data.js +5 -0
  221. package/rules/jet/oj-html-bindif-test.js +5 -0
  222. package/rules/jet/oj-html-binding-attr.js +5 -0
  223. package/rules/jet/oj-html-cca-count.js +5 -0
  224. package/rules/jet/oj-html-cca-tagname.js +6 -1
  225. package/rules/jet/oj-html-cdn.js +5 -0
  226. package/rules/jet/oj-html-combo-converter.js +5 -0
  227. package/rules/jet/oj-html-cspexpr.js +6 -1
  228. package/rules/jet/oj-html-databind-all.js +5 -0
  229. package/rules/jet/oj-html-dlg-title.js +5 -0
  230. package/rules/jet/oj-html-file-pick-accept.js +6 -0
  231. package/rules/jet/oj-html-form-bindif.js +6 -1
  232. package/rules/jet/oj-html-form-layout-maxcols.js +6 -0
  233. package/rules/jet/oj-html-form-noflex.js +5 -0
  234. package/rules/jet/oj-html-input-isodate.js +6 -0
  235. package/rules/jet/oj-html-invalid-doctype.js +6 -1
  236. package/rules/jet/oj-html-jq-databind.js +6 -1
  237. package/rules/jet/oj-html-ko-comment.js +5 -0
  238. package/rules/jet/oj-html-ko-databind.js +5 -0
  239. package/rules/jet/oj-html-label-for-prefix.js +5 -0
  240. package/rules/jet/oj-html-missing-doctype.js +6 -1
  241. package/rules/jet/oj-html-oj-lib.js +5 -0
  242. package/rules/jet/oj-html-ojattr-520.js +6 -1
  243. package/rules/jet/oj-html-ojattr-deprecated.js +6 -1
  244. package/rules/jet/oj-html-ojattr-enum-deprecated.js +6 -1
  245. package/rules/jet/oj-html-ojattr-evt-syntax.js +5 -0
  246. package/rules/jet/oj-html-ojattr-value.js +6 -1
  247. package/rules/jet/oj-html-ojattr.js +6 -1
  248. package/rules/jet/oj-html-ojevent.js +6 -1
  249. package/rules/jet/oj-html-ojslot.js +5 -0
  250. package/rules/jet/oj-html-ojstyle.js +5 -0
  251. package/rules/jet/oj-html-ojtag-datacmd.js +6 -1
  252. package/rules/jet/oj-html-ojtag-datactx.js +5 -0
  253. package/rules/jet/oj-html-ojtag-deprecated.js +6 -1
  254. package/rules/jet/oj-html-ojtag-globattr-noprefix.js +5 -0
  255. package/rules/jet/oj-html-ojtag-id.js +5 -0
  256. package/rules/jet/oj-html-ojtag-nonglobattr-prefix.js +5 -0
  257. package/rules/jet/oj-html-ojtag-ns.js +5 -0
  258. package/rules/jet/oj-html-picker-attrs.js +6 -0
  259. package/rules/jet/oj-html-redwood-cssnovars.js +6 -0
  260. package/rules/jet/oj-html-redwood-cssvars.js +6 -0
  261. package/rules/jet/oj-html-self-close.js +5 -0
  262. package/rules/jet/oj-html-slot-item-minmax.js +6 -0
  263. package/rules/jet/oj-html-slot-name.js +6 -1
  264. package/rules/jet/oj-html-slot-pref-content.js +6 -0
  265. package/rules/jet/oj-html-style-abs-units.js +5 -0
  266. package/rules/jet/oj-html-style-bp-color.js +5 -0
  267. package/rules/jet/oj-html-style-bp-display.js +6 -1
  268. package/rules/jet/oj-html-style-bp-font-family.js +5 -0
  269. package/rules/jet/oj-html-style-bp-font.js +5 -0
  270. package/rules/jet/oj-html-style-deprecated.js +5 -0
  271. package/rules/jet/oj-html-style.js +6 -1
  272. package/rules/jet/oj-html-stylesel.js +6 -1
  273. package/rules/jet/oj-html-tag-attr-noprefix.js +5 -0
  274. package/rules/jet/oj-html-template-index.js +6 -0
  275. package/rules/jet/oj-html-unsup-theme.js +6 -1
  276. package/rules/jet/oj-html-wctag-$props.js +6 -1
  277. package/rules/jet/oj-html-wctag-arialabelledby.js +5 -0
  278. package/rules/jet/oj-html-wctag-for.js +5 -0
  279. package/rules/jet/oj-html-wctag-id.js +5 -0
  280. package/rules/jet/oj-html-wctag-packprivate.js +6 -0
  281. package/rules/jet/oj-js-comp-attr-deprecated.js +5 -0
  282. package/rules/jet/oj-js-comp-meth-deprecated.js +5 -0
  283. package/rules/jet/oj-js-no-ext-final.js +5 -0
  284. package/rules/jet/oj-js-noconsole.js +5 -0
  285. package/rules/jet/oj-js-ojcomp-deprecated.js +6 -1
  286. package/rules/jet/oj-js-ojcomp-exist.js +5 -0
  287. package/rules/jet/oj-js-ojcomp-new.js +5 -0
  288. package/rules/jet/oj-js-poly-promise.js +6 -1
  289. package/rules/jet/oj-js-var-undef.js +5 -0
  290. package/rules/jet/oj-json-syntax.js +6 -1
  291. package/rules/jet/oj-ts-comp-attr-deprecated.js +5 -0
  292. package/rules/jet/oj-ts-comp-meth-deprecated.js +5 -0
  293. package/rules/jet/oj-ts-no-ext-final.js +6 -0
  294. package/rules/jet/oj-ts-noconsole.js +6 -1
  295. package/rules/jet/oj-ts-ojcomp-deprecated.js +6 -1
  296. package/rules/jet/oj-ts-ojcomp-exist.js +6 -1
  297. package/rules/jet/oj-ts-ojcomp-new.js +6 -1
  298. package/rules/jet/oj-ts-poly-promise.js +6 -1
  299. package/rules/jet/rules.json +6 -1
  300. package/schema/component-schema.json +122 -2
  301. package/src/JafCore.js +6 -1
  302. package/types/index.d.ts +144 -35
  303. package/lib/manual.js +0 -1
  304. package/lib/stats.js +0 -1
  305. package/rules/exch/helpers/json-prop-pos.js +0 -1
  306. package/rules/exch/msgid.json +0 -1
  307. package/rules/exch/oj-cca-comp-zip-content-composite.js +0 -1
  308. package/rules/exch/oj-cca-comp-zip-content-pack.js +0 -1
  309. package/rules/exch/oj-cca-comp-zip-expand.js +0 -1
  310. package/rules/exch/oj-cca-compjson-evnames.js +0 -1
  311. package/rules/exch/oj-cca-compjson-file.js +0 -1
  312. package/rules/exch/oj-cca-compjson-prefix.js +0 -1
  313. package/rules/exch/oj-cca-compjson-prop-compdeps.js +0 -1
  314. package/rules/exch/oj-cca-compjson-prop-deps.js +0 -1
  315. package/rules/exch/oj-cca-compjson-prop-jetver.js +0 -1
  316. package/rules/exch/oj-cca-compjson-prop-obs.js +0 -1
  317. package/rules/exch/oj-cca-compjson-prop-type.js +0 -1
  318. package/rules/exch/oj-cca-compjson-prop-types.js +0 -1
  319. package/rules/exch/oj-cca-compjson-prop-undef.js +0 -1
  320. package/rules/exch/oj-cca-compjson-prop-version.js +0 -1
  321. package/rules/exch/oj-cca-compjson-schema.js +0 -1
  322. package/rules/exch/oj-cca-zip-compjson.js +0 -1
  323. package/rules/exch/rules.json +0 -1
  324. package/rules/jet/oj-css-bp-bgcolor.js +0 -1
  325. package/tests/components/attr-req-test/component.json +0 -1
  326. package/tests/components/demo-analog-clock/component.json +0 -1
  327. package/tests/components/demo-analog-clock/demo-analog-clock-viewModel.js +0 -1
  328. package/tests/components/demo-analog-clock/extension/demo/js/viewModels/demo.js +0 -1
  329. package/tests/components/demo-analog-clock/loader.js +0 -1
  330. package/tests/components/demo-card/component.json +0 -1
  331. package/tests/components/demo-chart-orientation-control/component.json +0 -1
  332. package/tests/components/demo-chart-stack-control/component.json +0 -1
  333. package/tests/components/made-up/component.json +0 -1
  334. package/tests/components/oj-made-up/component.json +0 -1
  335. package/tests/components/sp-activity-item/component.json +0 -1
  336. package/tests/config/config_base.json +0 -1
  337. package/tests/golden/10.0.0/golden_base.json +0 -1
  338. package/tests/golden/8.1.0/golden_base.json +0 -1
  339. package/tests/golden/9.0.0/golden_base.json +0 -1
  340. package/tests/rulepacks/hooks/hook-rpext.js +0 -1
  341. package/tests/rulepacks/hooks/hook-start-close-rulepack.js +0 -1
  342. package/tests/rulepacks/hooks/rule-rpext.js +0 -1
  343. package/tests/rulepacks/hooks/rules.json +0 -1
  344. package/tests/rulepacks/tags/proc_directive.js +0 -1
  345. package/tests/rulepacks/tags/rules.json +0 -1
  346. package/tests/rulepacks/tags/tag-count-setup.js +0 -1
  347. package/tests/rulepacks/tags/tag-count.js +0 -1
  348. package/tests/rules/bugs/JET-4770_PASS_1.html +0 -9
  349. package/tests/rules/comments/com_FAIL_1.js +0 -57
  350. package/tests/rules/comments/com_FAIL_2.js +0 -96
  351. package/tests/rules/comments/com_PASS_1.js +0 -42
  352. package/tests/rules/comments/com_PASS_2.js +0 -63
  353. package/tests/rules/comments/com_PASS_3.js +0 -40
  354. package/tests/rules/comments/com_PASS_4.js +0 -36
  355. package/tests/rules/comments/com_PASS_5.js +0 -19
  356. package/tests/rules/csp/html-script-unsafe-inline/FAIL_1.html +0 -11
  357. package/tests/rules/csp/html-script-unsafe-inline/FAIL_2.html +0 -8
  358. package/tests/rules/csp/html-script-unsafe-inline/PASS_1.html +0 -8
  359. package/tests/rules/csp/html-script-unsafe-inline/PASS_2.html +0 -8
  360. package/tests/rules/csp/html-script-unsafe-inline/PASS_3.html +0 -8
  361. package/tests/rules/csp/html-style-unsafe-inline/FAIL_1.html +0 -11
  362. package/tests/rules/csp/html-style-unsafe-inline/PASS_1.html +0 -11
  363. package/tests/rules/csp/html-unsafe-expr/FAIL_1.html +0 -14
  364. package/tests/rules/csp/html-unsafe-expr/PASS_1.html +0 -23
  365. package/tests/rules/csp/js-script-unsafe-eval/FAIL_1.js +0 -17
  366. package/tests/rules/csp/js-script-unsafe-eval/FAIL_2.js +0 -40
  367. package/tests/rules/csp/js-script-unsafe-eval/FAIL_3.js +0 -22
  368. package/tests/rules/csp/js-script-unsafe-eval/PASS_1.js +0 -20
  369. package/tests/rules/csp/js-script-unsafe-eval/PASS_2.js +0 -44
  370. package/tests/rules/csp/js-script-unsafe-eval/PASS_3.js +0 -16
  371. package/tests/rules/csp/js-style-unsafe-inline/FAIL_1.js +0 -25
  372. package/tests/rules/csp/js-style-unsafe-inline/PASS.js +0 -22
  373. package/tests/rules/demo/noself_FAIL_1.js +0 -101
  374. package/tests/rules/import/import_FAIL_1.js +0 -11
  375. package/tests/rules/import/import_PASS_1.js +0 -10
  376. package/tests/rules/jet-composites/demo-buttonset-enum/component.json +0 -57
  377. package/tests/rules/jet-composites/demo-buttonset-enum/loader.js +0 -19
  378. package/tests/rules/jet-composites/demo-buttonset-enum/view.html +0 -48
  379. package/tests/rules/jet-composites/demo-card/component.json +0 -28
  380. package/tests/rules/jet-composites/demo-card/loader.js +0 -16
  381. package/tests/rules/jet-composites/demo-card/view.html +0 -30
  382. package/tests/rules/jet-composites/demo-card/viewModel.js +0 -46
  383. package/tests/rules/jet-composites/demo-card/view_PASS_1.html +0 -21
  384. package/tests/rules/jet-composites/demo-contact-form/component.json +0 -23
  385. package/tests/rules/jet-composites/demo-contact-form/loader.js +0 -16
  386. package/tests/rules/jet-composites/demo-contact-form/view.html +0 -9
  387. package/tests/rules/jet-composites/demo-grocery-list/component.json +0 -18
  388. package/tests/rules/jet-composites/demo-grocery-list/loader.js +0 -19
  389. package/tests/rules/jet-composites/demo-grocery-list/view.html +0 -22
  390. package/tests/rules/jet-composites/demo-grocery-list/viewModel.js +0 -48
  391. package/tests/rules/jet-composites/dummy-component-1/component.json +0 -82
  392. package/tests/rules/jet-composites/dummy-component-2/component.json +0 -72
  393. package/tests/rules/jet-composites/foo-my-cca/component.json +0 -14
  394. package/tests/rules/jet-composites/foo-unsup-theme/component.json +0 -29
  395. package/tests/rules/jet-composites/header/component.json +0 -12
  396. package/tests/rules/jet-composites/oj-cgbu-omc/attribute-selection/component.json +0 -154
  397. package/tests/rules/jet-composites/oj-cgbu-omc/component.json +0 -11
  398. package/tests/rules/jet-composites/oj-cgbu-omc/reference/component.json +0 -185
  399. package/tests/rules/jet-composites/oj-cgbu-omc/wctag_props_FAIL_1.html +0 -34
  400. package/tests/rules/jet-composites/oj-enum-depr/component.json +0 -69
  401. package/tests/rules/jet-composites/oj-html-wctag-id/id_FAIL_1.html +0 -10
  402. package/tests/rules/jet-composites/oj-html-wctag-id/id_PASS_1.html +0 -6
  403. package/tests/rules/misc/oj.js +0 -12
  404. package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_FAIL_1.html +0 -23
  405. package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_FAIL_2.html +0 -22
  406. package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_1.html +0 -23
  407. package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_2.html +0 -22
  408. package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_3.html +0 -22
  409. package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_4.html +0 -22
  410. package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_5.html +0 -22
  411. package/tests/rules/oj-acc-aria-prop/aria_prop_FAIL_1.html +0 -22
  412. package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_FAIL_1.html +0 -20
  413. package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_1.html +0 -23
  414. package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_2.html +0 -24
  415. package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_3.html +0 -21
  416. package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_4.html +0 -22
  417. package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_5.html +0 -22
  418. package/tests/rules/oj-acc-combobox-aria-label/aria_combo_many_FAIL_1.html +0 -20
  419. package/tests/rules/oj-acc-combobox-aria-label/aria_combo_many_FAIL_2.html +0 -21
  420. package/tests/rules/oj-acc-combobox-aria-label/aria_combo_many_PASS_1.html +0 -20
  421. package/tests/rules/oj-acc-combobox-aria-label/aria_combo_one_FAIL_1.html +0 -21
  422. package/tests/rules/oj-acc-combobox-aria-label/aria_combo_one_FAIL_2.html +0 -22
  423. package/tests/rules/oj-acc-combobox-aria-label/aria_combo_one_PASS_1.html +0 -22
  424. package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_FAIL_1.html +0 -18
  425. package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_FAIL_2.html +0 -18
  426. package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_PASS_1.html +0 -18
  427. package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_PASS_2.html +0 -19
  428. package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_PASS_3.html +0 -22
  429. package/tests/rules/oj-acc-input-aria-label/oj_input_date_FAIL_1.html +0 -21
  430. package/tests/rules/oj-acc-input-aria-label/oj_input_date_FAIL_2.html +0 -22
  431. package/tests/rules/oj-acc-input-aria-label/oj_input_date_PASS_1.html +0 -16
  432. package/tests/rules/oj-acc-input-aria-label/oj_input_date_PASS_2.html +0 -17
  433. package/tests/rules/oj-acc-input-aria-label/oj_input_date_PASS_3.html +0 -26
  434. package/tests/rules/oj-acc-input-aria-label/oj_input_date_time_FAIL_1.html +0 -19
  435. package/tests/rules/oj-acc-input-aria-label/oj_input_date_time_FAIL_2.html +0 -20
  436. package/tests/rules/oj-acc-input-aria-label/oj_input_date_time_PASS_1.html +0 -19
  437. package/tests/rules/oj-acc-input-aria-label/oj_input_number_FAIL_1.html +0 -17
  438. package/tests/rules/oj-acc-input-aria-label/oj_input_number_FAIL_2.html +0 -18
  439. package/tests/rules/oj-acc-input-aria-label/oj_input_number_PASS_1.html +0 -17
  440. package/tests/rules/oj-acc-input-aria-label/oj_input_password_FAIL_1.html +0 -17
  441. package/tests/rules/oj-acc-input-aria-label/oj_input_password_FAIL_2.html +0 -17
  442. package/tests/rules/oj-acc-input-aria-label/oj_input_password_PASS_1.html +0 -17
  443. package/tests/rules/oj-acc-input-aria-label/oj_input_text_3_PASS_1.html +0 -20
  444. package/tests/rules/oj-acc-input-aria-label/oj_input_text_FAIL_1.html +0 -20
  445. package/tests/rules/oj-acc-input-aria-label/oj_input_text_FAIL_2.html +0 -21
  446. package/tests/rules/oj-acc-input-aria-label/oj_input_text_PASS_2.html +0 -62
  447. package/tests/rules/oj-acc-input-aria-label/oj_input_text_nolabel_PASS_2.html +0 -17
  448. package/tests/rules/oj-acc-input-aria-label/oj_input_time_FAIL_1.html +0 -19
  449. package/tests/rules/oj-acc-input-aria-label/oj_input_time_FAIL_2.html +0 -20
  450. package/tests/rules/oj-acc-input-aria-label/oj_input_time_PASS_1.html +0 -19
  451. package/tests/rules/oj-acc-select-aria-label/aria_selectmany_FAIL_1.html +0 -19
  452. package/tests/rules/oj-acc-select-aria-label/aria_selectmany_FAIL_2.html +0 -20
  453. package/tests/rules/oj-acc-select-aria-label/aria_selectmany_PASS_1.html +0 -19
  454. package/tests/rules/oj-acc-select-aria-label/aria_selectone_FAIL_1.html +0 -20
  455. package/tests/rules/oj-acc-select-aria-label/aria_selectone_FAIL_2.html +0 -21
  456. package/tests/rules/oj-cca-comp-zip/zip_FAIL_1.zip +0 -1
  457. package/tests/rules/oj-cca-comp-zip/zip_FAIL_2.zip +0 -0
  458. package/tests/rules/oj-cca-comp-zip/zip_FAIL_3.zip +0 -0
  459. package/tests/rules/oj-cca-comp-zip/zip_FAIL_4.zip +0 -0
  460. package/tests/rules/oj-cca-comp-zip/zip_FAIL_5.zip +0 -0
  461. package/tests/rules/oj-cca-comp-zip/zip_FAIL_6.zip +0 -0
  462. package/tests/rules/oj-cca-comp-zip/zip_FAIL_7.zip +0 -0
  463. package/tests/rules/oj-cca-comp-zip/zip_FAIL_8.zip +0 -0
  464. package/tests/rules/oj-cca-comp-zip/zip_PASS_1.zip +0 -0
  465. package/tests/rules/oj-cca-ns-reg/oj-cca-ns-FAIL_1/component.json +0 -19
  466. package/tests/rules/oj-cca-ns-reg/oj-cca-ns-PASS_1/component.json +0 -19
  467. package/tests/rules/oj-cgbu-omc_tests/html_ojevent_FAIL_1.html +0 -15
  468. package/tests/rules/oj-cgbu-omc_tests/html_ojevent_PASS_1.html +0 -17
  469. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_1/component.json +0 -16
  470. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_10/component.json +0 -103
  471. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_11/component.json +0 -24
  472. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_12/component.json +0 -17
  473. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_13/component.json +0 -17
  474. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_14/component.json +0 -40
  475. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_15/component.json +0 -24
  476. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_16/component.json +0 -44
  477. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_17/component.json +0 -8
  478. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_18/component.json +0 -8
  479. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_19/component.json +0 -8
  480. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_2/component.json +0 -15
  481. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_20/component.json +0 -18
  482. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_21/component.json +0 -16
  483. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_22/component.json +0 -19
  484. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_3/component.json +0 -15
  485. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_4/component.json +0 -16
  486. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_5/component.json +0 -16
  487. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_6/component.json +0 -18
  488. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_7/component.json +0 -15
  489. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_8/component.json +0 -15
  490. package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_9/component.json +0 -52
  491. package/tests/rules/oj-compjson-syntax/ojcomp-PASS_1/component.json +0 -17
  492. package/tests/rules/oj-compjson-syntax/ojcomp-PASS_2/component.json +0 -88
  493. package/tests/rules/oj-compjson-syntax/ojcomp-PASS_3/component.json +0 -19
  494. package/tests/rules/oj-css-bp-dir-flow/dirflow_FAIL_1.html +0 -22
  495. package/tests/rules/oj-css-bp-dir-flow/dirflow_FAIL_2.html +0 -22
  496. package/tests/rules/oj-css-diagnose/css_FAIL_1.html +0 -14
  497. package/tests/rules/oj-css-diagnose/css_PASS_1.html +0 -14
  498. package/tests/rules/oj-css-var-override/varovr_FAIL_1.html +0 -8
  499. package/tests/rules/oj-html-5-attr-depr/attrdepr_FAIL_1.html +0 -16
  500. package/tests/rules/oj-html-5-attr-depr/attrdepr_PASS_1.html +0 -16
  501. package/tests/rules/oj-html-5-tag-depr/tagdepr_FAIL_1.html +0 -9
  502. package/tests/rules/oj-html-attr/attr_FAIL_1.html +0 -27
  503. package/tests/rules/oj-html-attr-$unique/attr_$unique1_FAIL_1.html +0 -19
  504. package/tests/rules/oj-html-attr-$unique/attr_$unique_FAIL_2.html +0 -25
  505. package/tests/rules/oj-html-attr-2def/attr2def_FAIL_1.html +0 -10
  506. package/tests/rules/oj-html-attr-2def/attr2def_PASS_1.html +0 -10
  507. package/tests/rules/oj-html-attr-json/attr-json_FAIL_1.html +0 -20
  508. package/tests/rules/oj-html-attr-json/attr-json_FAIL_2.html +0 -20
  509. package/tests/rules/oj-html-attr-json/attr-json_FAIL_3.html +0 -20
  510. package/tests/rules/oj-html-attr-json/attr-json_PASS_1.html +0 -20
  511. package/tests/rules/oj-html-attr-json/attr-json_PASS_2.html +0 -20
  512. package/tests/rules/oj-html-attr-json/attr-json_PASS_3.html +0 -8
  513. package/tests/rules/oj-html-attr-prefix-expr/attrprefixexpr_FAIL_1.html +0 -10
  514. package/tests/rules/oj-html-attr-prefix-expr/attrprefixexpr_PASS_1.html +0 -10
  515. package/tests/rules/oj-html-attr-prefix-ro/attrprefixro_FAIL_1.html +0 -10
  516. package/tests/rules/oj-html-attr-prefix-ro/attrprefixro_PASS_1.html +0 -10
  517. package/tests/rules/oj-html-attr-req/attrreq_FAIL_1.html +0 -17
  518. package/tests/rules/oj-html-attr-req/attrreq_FAIL_2.html +0 -13
  519. package/tests/rules/oj-html-attr-req/attrreq_FAIL_3.html +0 -8
  520. package/tests/rules/oj-html-attr-req/attrreq_FAIL_4.html +0 -13
  521. package/tests/rules/oj-html-attr-req/attrreq_FAIL_5.html +0 -17
  522. package/tests/rules/oj-html-attr-req/attrreq_PASS_1.html +0 -24
  523. package/tests/rules/oj-html-attr-req/attrreq_PASS_2.html +0 -24
  524. package/tests/rules/oj-html-attr-req/attrreq_PASS_3.html +0 -10
  525. package/tests/rules/oj-html-attr-req/attrreq_PASS_4.html +0 -11
  526. package/tests/rules/oj-html-bindforeach-data/bindforeach_data_FAIL_1.html +0 -19
  527. package/tests/rules/oj-html-bindforeach-data/bindforeach_data_PASS_1.html +0 -10
  528. package/tests/rules/oj-html-bindif-test/bindif_test_FAIL_1.html +0 -22
  529. package/tests/rules/oj-html-bindif-test/bindif_test_PASS_1.html +0 -11
  530. package/tests/rules/oj-html-binding-attr/binding-foreach_FAIL_2.html +0 -28
  531. package/tests/rules/oj-html-binding-attr/binding-if_FAIL_1.html +0 -23
  532. package/tests/rules/oj-html-binding-attr/binding-if_PASS_1.html +0 -23
  533. package/tests/rules/oj-html-cca-count/cca-count_FAIL_1.html +0 -119
  534. package/tests/rules/oj-html-cca-tagname/ccatag_FAIL_1.html +0 -7
  535. package/tests/rules/oj-html-cca-tagname/ccatag_PASS_1.html +0 -7
  536. package/tests/rules/oj-html-cca-tagname/tag_ns_FAIL_1.html +0 -8
  537. package/tests/rules/oj-html-cca-tagname/tag_ns_FAIL_2.html +0 -8
  538. package/tests/rules/oj-html-cca-tagname/tag_ns_FAIL_3.html +0 -8
  539. package/tests/rules/oj-html-cca-tagname/tag_ns_PASS_1.html +0 -10
  540. package/tests/rules/oj-html-cdn/html_cdn_FAIL_1.html +0 -18
  541. package/tests/rules/oj-html-cspexpr/cspexpr_FAIL_1.html +0 -14
  542. package/tests/rules/oj-html-cspexpr/cspexpr_FAIL_2.html +0 -10
  543. package/tests/rules/oj-html-cspexpr/cspexpr_PASS_1.html +0 -23
  544. package/tests/rules/oj-html-cspexpr/cspexpr_PASS_2.html +0 -10
  545. package/tests/rules/oj-html-cspexpr/cspexpr_PASS_3.html +0 -13
  546. package/tests/rules/oj-html-dlg-title/dlgtitle_FAIL_1.html +0 -12
  547. package/tests/rules/oj-html-dlg-title/dlgtitle_PASS_1.html +0 -12
  548. package/tests/rules/oj-html-form-noflex/noflex_FAIL_1.html +0 -10
  549. package/tests/rules/oj-html-invalid-doctype/doctype_invalid_FAIL_1.html +0 -20
  550. package/tests/rules/oj-html-invalid-doctype/doctype_invalid_FAIL_2.html +0 -13
  551. package/tests/rules/oj-html-invalid-doctype/doctype_invalid_FAIL_3.html +0 -16
  552. package/tests/rules/oj-html-invalid-doctype/doctype_invalid_FAIL_4.html +0 -13
  553. package/tests/rules/oj-html-invalid-doctype/doctype_invalid_PASS_1.html +0 -6
  554. package/tests/rules/oj-html-invalid-doctype/doctype_invalid_PASS_2.html +0 -7
  555. package/tests/rules/oj-html-invalid-doctype/doctype_invalid_PASS_3.html +0 -7
  556. package/tests/rules/oj-html-jq-databind/jq-databind_FAIL_1.html +0 -37
  557. package/tests/rules/oj-html-jq-databind/jq-databind_FAIL_2.html +0 -34
  558. package/tests/rules/oj-html-jq-databind/jq-databind_FAIL_3.html +0 -27
  559. package/tests/rules/oj-html-jq-databind/jq-databind_PASS_1.html +0 -30
  560. package/tests/rules/oj-html-ko-comment/ko-comment_FAIL_1.html +0 -47
  561. package/tests/rules/oj-html-ko-comment/ko-comment_FAIL_2.html +0 -36
  562. package/tests/rules/oj-html-ko-databind/ko-databind_FAIL_1.html +0 -24
  563. package/tests/rules/oj-html-ko-databind/ko-databind_FAIL_2.html +0 -36
  564. package/tests/rules/oj-html-ko-databind/ko-databind_FAIL_3.html +0 -29
  565. package/tests/rules/oj-html-label-for-prefix/for_FAIL_1.html +0 -8
  566. package/tests/rules/oj-html-label-for-prefix/for_PASS_1.html +0 -8
  567. package/tests/rules/oj-html-missing-doctype/doctype_missing_FAIL_1.html +0 -12
  568. package/tests/rules/oj-html-missing-doctype/doctype_missing_FAIL_2.html +0 -11
  569. package/tests/rules/oj-html-missing-doctype/doctype_missing_PASS_1.html +0 -14
  570. package/tests/rules/oj-html-missing-doctype/doctype_missing_PASS_2.html +0 -5
  571. package/tests/rules/oj-html-missing-doctype/doctype_missing_PASS_3.html +0 -12
  572. package/tests/rules/oj-html-missing-doctype/doctype_missing_PASS_5.html +0 -6
  573. package/tests/rules/oj-html-nonvoid-close/close_FAIL_1.html +0 -28
  574. package/tests/rules/oj-html-nonvoid-close/close_FAIL_2.html +0 -14
  575. package/tests/rules/oj-html-nonvoid-close/close_FAIL_3.html +0 -13
  576. package/tests/rules/oj-html-nonvoid-close/close_FAIL_5.html +0 -28
  577. package/tests/rules/oj-html-nonvoid-close/close_FAIL_6.html +0 -28
  578. package/tests/rules/oj-html-nonvoid-close/close_PASS_1.html +0 -7
  579. package/tests/rules/oj-html-oj-lib/oj_lib_FAIL_1.html +0 -15
  580. package/tests/rules/oj-html-ojattr/ojattr_PASS_1.html +0 -8
  581. package/tests/rules/oj-html-ojattr/ojattr_PASS_2.html +0 -10
  582. package/tests/rules/oj-html-ojattr/ojattr_PASS_3.html +0 -7
  583. package/tests/rules/oj-html-ojattr/ojattr_PASS_4.html +0 -7
  584. package/tests/rules/oj-html-ojattr-deprecated/ojattr-dep_FAIL1.html +0 -156
  585. package/tests/rules/oj-html-ojattr-enum-deprecated/enum_FAIL_1.html +0 -19
  586. package/tests/rules/oj-html-ojattr-enum-deprecated/enum_FAIL_2.html +0 -20
  587. package/tests/rules/oj-html-ojattr-enum-deprecated/enum_PASS_1.html +0 -25
  588. package/tests/rules/oj-html-ojattr-evt-syntax/evt-attr-syntax_FAIL_1.html +0 -6
  589. package/tests/rules/oj-html-ojattr-evt-syntax/evt-attr-syntax_PASS_1.html +0 -6
  590. package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_1.html +0 -26
  591. package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_2.html +0 -26
  592. package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_3.html +0 -8
  593. package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_4.html +0 -8
  594. package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_5.html +0 -8
  595. package/tests/rules/oj-html-ojattr-value/attr-value_PASS_1.html +0 -26
  596. package/tests/rules/oj-html-ojattr-value/attr-value_PASS_2.html +0 -8
  597. package/tests/rules/oj-html-ojattr-value/attr-value_PASS_3.html +0 -7
  598. package/tests/rules/oj-html-ojattr-value/attr-value_PASS_6.html +0 -7
  599. package/tests/rules/oj-html-ojattr-value/attr-value_PASS_7.html +0 -10
  600. package/tests/rules/oj-html-ojattr-value/attr_value_PASS_4.html +0 -7
  601. package/tests/rules/oj-html-ojattr-value/attr_value_PASS_5.html +0 -9
  602. package/tests/rules/oj-html-ojslot/ojslot_FAIL_1.html +0 -11
  603. package/tests/rules/oj-html-ojslot/ojslot_PASS_1.html +0 -12
  604. package/tests/rules/oj-html-ojstyle/style_FAIL_1.html +0 -103
  605. package/tests/rules/oj-html-ojstyle/style_PASS_2.html +0 -7
  606. package/tests/rules/oj-html-ojtag-datacmd/datacmd_FAIL_1.html +0 -10
  607. package/tests/rules/oj-html-ojtag-datacmd/datacmd_FAIL_2.html +0 -18
  608. package/tests/rules/oj-html-ojtag-datacmd/datacmd_FAIL_3.html +0 -10
  609. package/tests/rules/oj-html-ojtag-datacmd/datacmd_PASS_1.html +0 -28
  610. package/tests/rules/oj-html-ojtag-datacmd/datacmd_PASS_2.html +0 -15
  611. package/tests/rules/oj-html-ojtag-datactx/datactx_FAIL_1.html +0 -14
  612. package/tests/rules/oj-html-ojtag-datactx/datactx_PASS_1.html +0 -14
  613. package/tests/rules/oj-html-ojtag-globattr-noprefix/globattr-noprefix_FAIL_1.html +0 -36
  614. package/tests/rules/oj-html-ojtag-nonglobattr-prefix/nonglobattr-prefix_FAIL_1.html +0 -26
  615. package/tests/rules/oj-html-slot-name/slot_name.FAIL_1.html +0 -24
  616. package/tests/rules/oj-html-slot-name/slot_name.FAIL_2.html +0 -46
  617. package/tests/rules/oj-html-slot-name/slot_name.FAIL_3.html +0 -10
  618. package/tests/rules/oj-html-slot-name/slot_name.PASS_1.html +0 -24
  619. package/tests/rules/oj-html-slot-name/slot_name.PASS_2.html +0 -39
  620. package/tests/rules/oj-html-slot-name/slot_name.PASS_3.html +0 -10
  621. package/tests/rules/oj-html-slot-name/slot_name_PASS_4.html +0 -16
  622. package/tests/rules/oj-html-slot-name/slot_name_PASS_5.html +0 -11
  623. package/tests/rules/oj-html-slot-name/slot_name_PASS_6.html +0 -14
  624. package/tests/rules/oj-html-slot-name/slot_name_PASS_7.html +0 -10
  625. package/tests/rules/oj-html-style/style_FAIL_1.html +0 -7
  626. package/tests/rules/oj-html-style/style_PASS_1.html +0 -12
  627. package/tests/rules/oj-html-style/style_PASS_2.html +0 -7
  628. package/tests/rules/oj-html-style-bp-color/color-FAIL_1.html +0 -17
  629. package/tests/rules/oj-html-style-bp-color/color-FAIL_2.html +0 -15
  630. package/tests/rules/oj-html-style-bp-color/color-FAIL_3.html +0 -7
  631. package/tests/rules/oj-html-style-bp-color/color-PASS_1.html +0 -7
  632. package/tests/rules/oj-html-style-bp-font-family/fam_FAIL_1.html +0 -23
  633. package/tests/rules/oj-html-tag-attr-noprefix/attr-noprefix_FAIL_1.html +0 -15
  634. package/tests/rules/oj-html-tag-attr-noprefix/attr-noprefix_FAIL_2.html +0 -9
  635. package/tests/rules/oj-html-tag-attr-noprefix/attr-noprefix_PASS_1.html +0 -9
  636. package/tests/rules/oj-html-unsup-theme/unsup_FAIL_1.html +0 -8
  637. package/tests/rules/oj-html-wctag-for/for_FAIL_1.html +0 -8
  638. package/tests/rules/oj-html-wctag-for/for_PASS_1.html +0 -8
  639. package/tests/rules/oj-js-comp-attr-deprecated/attr-del_FAIL_1.js +0 -20
  640. package/tests/rules/oj-js-comp-attr-deprecated/attr-dep_FAIL_1.js +0 -20
  641. package/tests/rules/oj-js-comp-meth-deprecated/meth-del_FAIL_1.js +0 -20
  642. package/tests/rules/oj-js-comp-meth-deprecated/meth-dep_FAIL_1.js +0 -20
  643. package/tests/rules/oj-js-define-promise/def-prom_FAIL_1.js +0 -16
  644. package/tests/rules/oj-js-define-promise/def-prom_FAIL_2.js +0 -16
  645. package/tests/rules/oj-js-diagnose/es6_PASS_1.js +0 -24
  646. package/tests/rules/oj-js-diagnose/js_FAIL_1.js +0 -12
  647. package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_1.js +0 -30
  648. package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_2.js +0 -23
  649. package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_3.js +0 -22
  650. package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_4.js +0 -20
  651. package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_5.js +0 -24
  652. package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_6.js +0 -30
  653. package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_7.js +0 -15
  654. package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_8.js +0 -16
  655. package/tests/rules/oj-js-no-ext-final/noextfinal_PASS_1.js +0 -17
  656. package/tests/rules/oj-js-no-ext-final/noextfinal_PASS_2.js +0 -17
  657. package/tests/rules/oj-js-noconsole/nocons_FAIL_1.js +0 -11
  658. package/tests/rules/oj-js-ojcomp-deprecated/jscomp_FAIL_1.js +0 -27
  659. package/tests/rules/oj-json-syntax/json_FAIL_1.json +0 -8
  660. package/tests/rules/oj-json-syntax/json_FAIL_2.json +0 -12
  661. package/tests/rules/oj-json-syntax/json_PASS_1.json +0 -25
  662. package/tests/rules/oj-json-syntax/json_PASS_2.json +0 -12
  663. package/tests/rules/oj-json-syntax/json_PASS_3.json +0 -14
  664. package/tests/rules/ojcompjson/attrreq_FAIL_1/component.json +0 -69
  665. package/tests/rules/pack-compjson/audit-pack/component-1/component-1-view.html +0 -6
  666. package/tests/rules/pack-compjson/audit-pack/component-1/component-1-viewModel.js +0 -56
  667. package/tests/rules/pack-compjson/audit-pack/component-1/component.json +0 -13
  668. package/tests/rules/pack-compjson/audit-pack/component-1/loader.js +0 -20
  669. package/tests/rules/pack-compjson/audit-pack/component-1/resources/nls/component-1-strings.js +0 -18
  670. package/tests/rules/pack-compjson/audit-pack/component-2/component-2-view.html +0 -5
  671. package/tests/rules/pack-compjson/audit-pack/component-2/component-2-viewModel.js +0 -56
  672. package/tests/rules/pack-compjson/audit-pack/component-2/component.json +0 -13
  673. package/tests/rules/pack-compjson/audit-pack/component-2/loader.js +0 -20
  674. package/tests/rules/pack-compjson/audit-pack/component-2/resources/nls/component-1-strings.js +0 -18
  675. package/tests/rules/pack-compjson/audit-pack/component.json +0 -12
  676. package/tests/rules/pack-compjson/audit-singleton-1/audit-singleton-1-view.html +0 -5
  677. package/tests/rules/pack-compjson/audit-singleton-1/audit-singleton-1-viewModel.js +0 -56
  678. package/tests/rules/pack-compjson/audit-singleton-1/component.json +0 -20
  679. package/tests/rules/pack-compjson/audit-singleton-1/loader.js +0 -20
  680. package/tests/rules/pack-compjson/audit-singleton-1/resources/nls/audit-singleton-1-strings.js +0 -18
  681. package/tests/rules/pack-compjson/audit-singleton-2/audit-singleton-2-view.html +0 -8
  682. package/tests/rules/pack-compjson/audit-singleton-2/audit-singleton-2-viewModel.js +0 -56
  683. package/tests/rules/pack-compjson/audit-singleton-2/component.json +0 -15
  684. package/tests/rules/pack-compjson/audit-singleton-2/loader.js +0 -20
  685. package/tests/rules/pack-compjson/audit-singleton-2/resources/nls/audit-singleton-2-strings.js +0 -18
  686. package/tests/rules/parse-html/proc_instr.html +0 -9
  687. package/tests/rules/spoc-dom-manip/dom-manip_FAIL_1.js +0 -113
  688. package/tests/rules/spoc-dom-manip/dom-manip_FAIL_2.js +0 -151
  689. package/tests/rules/spoc-dom-manip/dom-manip_PASS_1.js +0 -149
  690. package/tests/rules/spoc-dom-manip/dom-manip_PASS_2.js +0 -147
  691. package/tests/rules/spoc-dom-manip/dom-manip_PASS_3.js +0 -147
  692. package/tests/rules/spoc-dom-manip/dom-manip_PASS_4.js +0 -20
  693. package/tests/rules/spoc-dom-manip/dom-manip_PASS_5.js +0 -246
  694. package/tests/rules/tab-tests/tab-test_FAIL_1.html +0 -37
  695. package/tests/rules/tab-tests/tab-test_FAIL_2.html +0 -8
  696. package/tests/rules/webcomptests/jet-composites/oj-html-wctag-$props/prop_PASS_1.html +0 -8
  697. package/tests/rules/webcomptests/jet-composites/oj-html-wctag-$props/prop_PASS_2.html +0 -8
  698. package/tests/rules/webcomptests/jet-composites/oj-html-wctag-for/for_FAIL_1.html +0 -8
  699. package/tests/rules/webcomptests/jet-composites/oj-html-wctag-for/for_PASS_1.html +0 -8
  700. package/tests/src/JetTest.js +0 -1
  701. package/tests/src/server.js +0 -1
  702. package/tests/test.js +0 -1
@@ -1,147 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) , 2021, Oracle and/or its affiliates.
4
- * Licensed under The Universal Permissive License (UPL), Version 1.0
5
- * as shown at https://oss.oracle.com/licenses/upl/
6
- * @ignore
7
- */
8
- // Taken from ojAnimationUtils
9
-
10
- // Check that setTimeout() at line 105 is not flagged. Its first arg is a function
11
- // declared in a var declaration at line 33
12
-
13
-
14
- oj.AnimationUtils._animate = function (
15
- element, fromState, toState, options, transProps, persistProps
16
- ) {
17
- var propArray = [].concat(transProps);
18
-
19
- // eslint-disable-next-line no-unused-vars
20
- var doAnimate = function (resolve, reject) {
21
- var endListener = function (event) {
22
- // event.propertyName is the hyphenated name. Entries in propArray is the
23
- // camel-case name without prefix. So we drop any prefix and convert
24
- // event.propertyName to camel-case before finding it in propArray.
25
- var basePropName = event.propertyName.indexOf('-webkit-') === 0
26
- ? event.propertyName.substr(8) : event.propertyName;
27
- basePropName = oj.AnimationUtils._getCamelCasePropName(basePropName);
28
- var idx = propArray.indexOf(basePropName);
29
- if (idx > -1) {
30
- if (propArray.length > 1) {
31
- propArray.splice(idx, 1);
32
- } else {
33
- resolvePromise();
34
- }
35
- }
36
- };
37
- var requestId = 0;
38
- var promiseResolved = false;
39
-
40
- var resolvePromise = function() {
41
- if (!promiseResolved) {
42
- if (requestId) {
43
- window.cancelAnimationFrame(requestId);
44
- requestId = 0;
45
- }
46
-
47
- element.removeEventListener(oj.AnimationUtils._getName(element, 'transitionend'), endListener);
48
-
49
- if (resolve) {
50
- resolve(true);
51
- }
52
- promiseResolved = true;
53
- }
54
- }
55
-
56
- // For css transition, specify the transition value when applying the toState
57
- // since we don't want to trigger the transition prematurely.
58
- if (toState == null) {
59
- // eslint-disable-next-line no-param-reassign
60
- toState = {};
61
- }
62
- if (toState.css == null) {
63
- // eslint-disable-next-line no-param-reassign
64
- toState.css = {};
65
- }
66
- // eslint-disable-next-line no-param-reassign
67
- toState.css.transition = oj.AnimationUtils._createTransitionValue(element, transProps, options);
68
-
69
- // Save the orignal style so that we can restore it later if needed
70
- var effectCount = oj.AnimationUtils._saveStyle(element, fromState, toState, options,
71
- persistProps || transProps);
72
-
73
- oj.AnimationUtils._applyState(element, fromState, effectCount > 1);
74
-
75
- element.addEventListener(oj.AnimationUtils._getName(element, 'transitionend'), endListener);
76
-
77
- var duration = options.duration;
78
- var delay = options.delay;
79
- var skipPromise = options._skipPromise;
80
-
81
- function transitionFunc() {
82
- requestId = 0;
83
- oj.AnimationUtils._applyState(element, toState, effectCount > 1);
84
- }
85
-
86
- if (fromState == null) {
87
- // If there is no fromState, assume that we are transitioning from the
88
- // current state to a new state, so just apply toState immediately.
89
- transitionFunc();
90
- } else {
91
- if (!options._noReflow) {
92
- // If the final state is the same as current state,
93
- // requestAnimationFrame may not trigger a transition. Need to force
94
- // a reflow after applying the initial state by getting one of several
95
- // properties that cause reflow.
96
- //
97
- // Assign it to an export object so that Closure compiler will not remove
98
- // this as dead code
99
- oj.AnimationUtils._x = element.offsetWidth;
100
- }
101
-
102
- // Add the toState after a delay. This is necessary to trigger css
103
- // transition.
104
- requestId = window.requestAnimationFrame(transitionFunc);
105
- }
106
-
107
- var totalMs = oj.AnimationUtils._getTotalTiming(duration, delay);
108
- if (!skipPromise) {
109
- // There are situations in which the transitionend event is never
110
- // fired (e.g. removing the transiton property or setting the display
111
- // property to none.)
112
- // Add a timeout to avoid having unresolved promise.
113
- setTimeout(resolvePromise, totalMs + 100);
114
- }
115
- };
116
-
117
- // Special option to skip promise to reduce overhead. A side effect is that
118
- // no clean up will be done on the element, which is fine if the element is
119
- // temporary
120
- if (options._skipPromise) {
121
- doAnimate(null, null);
122
- return null;
123
- }
124
-
125
- var promise = new Promise(doAnimate);
126
- return promise.then(function () {
127
- // Remove any temporary effect class when the promise is fulfilled.
128
- // Do not remove them in the endListener, since the promise fulfillment
129
- // callback is not in the same animation frame and occurs later than
130
- // the endListener. Because any caller cleanup is done on promise
131
- // fulfillment, the element may flash if we remove the class too early.
132
-
133
- if (fromState && fromState.addClass) {
134
- $(element).removeClass(fromState.addClass);
135
- }
136
-
137
- if (toState && toState.addClass) {
138
- $(element).removeClass(toState.addClass);
139
- }
140
-
141
- oj.AnimationUtils._restoreStyle(element);
142
- });
143
- };
144
-
145
-
146
-
147
-
@@ -1,20 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) , 2021, Oracle and/or its affiliates.
4
- * Licensed under The Universal Permissive License (UPL), Version 1.0
5
- * as shown at https://oss.oracle.com/licenses/upl/
6
- * @ignore
7
- */
8
- // Taken from oj.TableDomUtils
9
-
10
- // Check that createElement is not flagged if we can see that in a ternary statement
11
- // neither option is 'script'
12
-
13
-
14
- oj.TableDomUtils.prototype.createContextMenuListItem = function (command, useOjOption) {
15
- var contextMenuListItem = document.createElement(useOjOption ? 'oj-option' : 'li');
16
- contextMenuListItem.setAttribute('data-oj-command', 'oj-table-' + command);
17
- contextMenuListItem.appendChild(this.createContextMenuLabel(command, useOjOption)); // @HTMLUpdateOK
18
-
19
- return contextMenuListItem;
20
- };
@@ -1,246 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) , 2021, Oracle and/or its affiliates.
4
- * Licensed under The Universal Permissive License (UPL), Version 1.0
5
- * as shown at https://oss.oracle.com/licenses/upl/
6
- * @ignore
7
- */
8
- /**
9
- * @license
10
- * Copyright (c) %FIRST_YEAR% 2021, Oracle and/or its affiliates.
11
- * The Universal Permissive License (UPL), Version 1.0
12
- * @ignore
13
- */
14
- /**
15
- * Utility functions for dvt.Timeline tooltips.
16
- * @class
17
- */
18
- var DvtTimelineTooltipUtils = new Object();
19
-
20
- dvt.Obj.createSubclass(DvtTimelineTooltipUtils, dvt.Obj);
21
-
22
- /**
23
- * Returns the datatip color for the tooltip of the target item.
24
- * @param {DvtTimelineSeriesNode} seriesNode
25
- * @return {string} The datatip color.
26
- */
27
- DvtTimelineTooltipUtils.getDatatipColor = function(seriesNode) {
28
- var fillColor = seriesNode.getDurationFillColor();
29
- if (fillColor)
30
- return fillColor;
31
- else
32
- return null;
33
- };
34
-
35
- /**
36
- * Returns the datatip string for the target item.
37
- * @param {DvtTimelineSeriesNode} seriesNode
38
- * @param {boolean} isTabular Whether the datatip is in a table format.
39
- * @param {boolean=} isAria whether the datatip is used for accessibility.
40
- * @return {string|Node|Array<Node>} The datatip string.
41
- */
42
- DvtTimelineTooltipUtils.getDatatip = function(seriesNode, isTabular, isAria) {
43
- var timeline = seriesNode._timeline;
44
-
45
- // Custom Tooltip via Function
46
- var customTooltip = timeline.getOptions()['tooltip'];
47
- var tooltipFunc = customTooltip ? customTooltip['renderer'] : null;
48
-
49
- if (isTabular && tooltipFunc) {
50
- var tooltipManager = timeline.getCtx().getTooltipManager();
51
- var dataContext = seriesNode.getDataContext();
52
- return tooltipManager.getCustomTooltip(tooltipFunc, dataContext);
53
- }
54
-
55
- // Custom Tooltip via Short Desc
56
- var shortDesc = seriesNode.getShortDesc();
57
- if (shortDesc != null)
58
- return shortDesc;
59
-
60
- // Behavior: If someone upgrades from 5.0.0 to 6.0.0 with no code changes (ie, no shortDesc, valueFormat set),
61
- // old aria-label format with the translation options will work as before. If shortDesc or valueFormat is set,
62
- // then new behavior will override the old aria-label format and any translation settings.
63
- if (isAria && !timeline.getCtx().isCustomElement()) {
64
- var translations = timeline.getOptions().translations;
65
- var start = seriesNode.getStartTime();
66
- var formattedStart = timeline.getTimeAxis().formatDate(new Date(start), null, 'general');
67
- var itemDesc = dvt.ResourceUtils.format(translations.accessibleItemStart, [formattedStart]);
68
-
69
- var end = seriesNode.getEndTime();
70
- if (end && end != start)
71
- {
72
- var formattedEnd = timeline.getTimeAxis().formatDate(new Date(end), null, 'general');
73
- itemDesc = itemDesc + ' ' + dvt.ResourceUtils.format(translations.accessibleItemEnd, [formattedEnd]);
74
- }
75
-
76
- var title = seriesNode.getTitle();
77
- if (title && title != '')
78
- itemDesc = itemDesc + ' ' + dvt.ResourceUtils.format(translations.accessibleItemTitle, [title]);
79
-
80
- var description = seriesNode.getDescription();
81
- if (description && description != '')
82
- itemDesc = itemDesc + ' ' + dvt.ResourceUtils.format(translations.accessibleItemDesc, [description]);
83
- return itemDesc;
84
- }
85
-
86
- // Default Tooltip Support
87
- var datatipRows = [];
88
- DvtTimelineTooltipUtils._addItemDatatip(datatipRows, seriesNode, isTabular);
89
-
90
- return DvtTimelineTooltipUtils._processDatatip(datatipRows, timeline, isTabular);
91
- };
92
-
93
- /**
94
- * Final processing for the datatip.
95
- * @param {Array<string|Node>} datatipRows The current datatip.
96
- * @param {dvt.Timeline} timeline The owning timeline instance.
97
- * @param {boolean} isTabular Whether the datatip is in a table format.
98
- * @return {string|Node} The processed datatip.
99
- * @private
100
- */
101
- DvtTimelineTooltipUtils._processDatatip = function(datatipRows, timeline, isTabular) {
102
- // Don't render tooltip if empty
103
- if (datatipRows.length === 0)
104
- return null;
105
-
106
- // Add outer table tags
107
- if (isTabular)
108
- return dvt.HtmlTooltipManager.createElement('table', timeline.getOptions()['styleDefaults']['_tooltipStyle'], datatipRows);
109
- else
110
- return datatipRows.join('');
111
- };
112
-
113
- /**
114
- * Adds the item strings to the datatip.
115
- * @param {Array<string|Node>} datatipRows The current datatip. This array will be mutated.
116
- * @param {DvtTimelineSeriesNode} seriesNode The item node.
117
- * @param {boolean} isTabular Whether the datatip is in a table format.
118
- * @private
119
- */
120
- DvtTimelineTooltipUtils._addItemDatatip = function(datatipRows, seriesNode, isTabular) {
121
- var timeline = seriesNode._timeline;
122
-
123
- var title = seriesNode.getTitle();
124
- if (title)
125
- DvtTimelineTooltipUtils._addDatatipRow(datatipRows, timeline, 'title', 'Title', title, isTabular);
126
-
127
- var description = seriesNode.getDescription();
128
- if (description)
129
- DvtTimelineTooltipUtils._addDatatipRow(datatipRows, timeline, 'description', 'Description', description, isTabular);
130
-
131
- var start = seriesNode.getStartTime();
132
- var end = seriesNode.getEndTime();
133
- if (start && end && end != start)
134
- {
135
- DvtTimelineTooltipUtils._addDatatipRow(datatipRows, timeline, 'start', 'Start', start, isTabular);
136
- DvtTimelineTooltipUtils._addDatatipRow(datatipRows, timeline, 'end', 'End', end, isTabular);
137
- }
138
- else
139
- DvtTimelineTooltipUtils._addDatatipRow(datatipRows, timeline, 'date', 'Date', start, isTabular);
140
-
141
- var series = seriesNode._series.getLabel();
142
- if (series == null)
143
- series = seriesNode._series.getId();
144
- DvtTimelineTooltipUtils._addDatatipRow(datatipRows, timeline, 'series', 'Series', series, isTabular);
145
- };
146
-
147
- /**
148
- * Adds a row of item to the datatip string.
149
- * @param {Array<string|Node>} datatipRows The current datatip. This array will be mutated.
150
- * @param {dvt.Timeline} timeline The timeline instance.
151
- * @param {string} type The item type, e.g. series, start, end, title
152
- * @param {string} defaultLabel The bundle resource string for the default label.
153
- * @param {string|number} value The item value.
154
- * @param {boolean} isTabular Whether the datatip is in a table format.
155
- * @param {number} index (optional) The index of the tooltipLabel string to be used
156
- * @private
157
- */
158
- DvtTimelineTooltipUtils._addDatatipRow = function(datatipRows, timeline, type, defaultLabel, value, isTabular, index) {
159
- if (value == null || value === '')
160
- return;
161
-
162
- var options = timeline.getOptions()['styleDefaults'];
163
- var valueFormat = DvtTimelineTooltipUtils.getValueFormat(timeline, type);
164
- var tooltipDisplay = valueFormat['tooltipDisplay'];
165
- var translations = timeline.getOptions().translations;
166
-
167
- if (tooltipDisplay == 'off')
168
- return;
169
-
170
- // Create tooltip label
171
- var tooltipLabel;
172
- if (typeof valueFormat['tooltipLabel'] === 'string')
173
- tooltipLabel = valueFormat['tooltipLabel'];
174
-
175
- if (tooltipLabel == null)
176
- {
177
- if (defaultLabel == null)
178
- tooltipLabel = '';
179
- else
180
- tooltipLabel = translations['label' + defaultLabel];
181
- }
182
-
183
- // Create tooltip value
184
- value = DvtTimelineTooltipUtils.formatValue(timeline, type, valueFormat, value);
185
-
186
- if (isTabular) {
187
- var isRTL = dvt.Agent.isRightToLeft(timeline.getCtx());
188
- options['tooltipLabelStyle'].setStyle(dvt.CSSStyle.TEXT_ALIGN, isRTL ? 'left' : 'right');
189
- options['tooltipValueStyle'].setStyle(dvt.CSSStyle.TEXT_ALIGN, isRTL ? 'right' : 'left');
190
-
191
- var tds = [dvt.HtmlTooltipManager.createElement('td', options['tooltipLabelStyle'], tooltipLabel),
192
- dvt.HtmlTooltipManager.createElement('td', options['tooltipValueStyle'], value)];
193
- datatipRows.push(dvt.HtmlTooltipManager.createElement('tr', null, tds));
194
- }
195
- else {
196
- datatipRows.push((datatipRows.length > 0 ? '<br>' : '') + dvt.ResourceUtils.format(translations.labelAndValue, [tooltipLabel, value]));
197
- }
198
- };
199
-
200
- /**
201
- * Returns the valueFormat of the specified type.
202
- * @param {dvt.Timeline} timeline
203
- * @param {string} type The valueFormat type, e.g. row, start, end, label.
204
- * @return {object} The valueFormat.
205
- */
206
- DvtTimelineTooltipUtils.getValueFormat = function(timeline, type) {
207
- var valueFormats = timeline.getOptions()['valueFormats'];
208
- if (!valueFormats)
209
- return {};
210
- else if (valueFormats instanceof Array) {
211
- // TODO remove deprecated array support
212
- // Convert the deprecated array syntax to object syntax
213
- var obj = {};
214
- for (var i = 0; i < valueFormats.length; i++) {
215
- var valueFormat = valueFormats[i];
216
- obj[valueFormat['type']] = valueFormat;
217
- }
218
- timeline.getOptions()['valueFormats'] = obj;
219
- valueFormats = obj;
220
- }
221
-
222
- if (valueFormats[type])
223
- return valueFormats[type];
224
-
225
- return {};
226
- };
227
-
228
- /**
229
- * Formats value with the converter from the valueFormat.
230
- * @param {dvt.Timeline} timeline
231
- * @param {string} type The item type, e.g. series, start, end, title
232
- * @param {object} valueFormat
233
- * @param {number} value The value to format.
234
- * @return {string} The formatted value string.
235
- */
236
- DvtTimelineTooltipUtils.formatValue = function(timeline, type, valueFormat, value) {
237
- var converter = valueFormat['converter'];
238
-
239
- if (type == 'start' || type == 'end' || type == 'date')
240
- return timeline.getTimeAxis().formatDate(new Date(value), converter, 'general');
241
-
242
- if (converter && converter['format'])
243
- return converter['format'](value);
244
-
245
- return value;
246
- };
@@ -1,37 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <!-- Failures expected - check <oj-combobox-many> has a matching <oj-label> 'for'.
4
- Multiple <oj-combobox-many> with differeining numbers of tabs.
5
- -->
6
-
7
- <html>
8
- <body>
9
-
10
- <div id="form1">
11
- <!-- no tabs -->
12
- <oj-combobox-many id="combobox1" options="[[suggestions]]"
13
- option-renderer="[[oj.KnockoutTemplateUtils.getRenderer('optionTemplate')]]"
14
- style="max-width: 20em">
15
- </oj-combobox-many>
16
- <!-- one tab at start of line -->
17
- <oj-combobox-many id="combobox1" options="[[suggestions]]"
18
- option-renderer="[[oj.KnockoutTemplateUtils.getRenderer('optionTemplate')]]"
19
- style="max-width: 20em">
20
- </oj-combobox-many>
21
- <!-- two tabs at start of line -->
22
- <oj-combobox-many id="combobox1" options="[[suggestions]]"
23
- option-renderer="[[oj.KnockoutTemplateUtils.getRenderer('optionTemplate')]]"
24
- style="max-width: 20em">
25
- </oj-combobox-many>
26
- <!-- two tabs at start of line and one tab before id=-->
27
- <oj-combobox-many id="combobox1" options="[[suggestions]]"
28
- option-renderer="[[oj.KnockoutTemplateUtils.getRenderer('optionTemplate')]]"
29
- style="max-width: 20em">
30
- </oj-combobox-many>
31
- </div>
32
- <div>
33
- <oj-label for="xcombobox1">Combobox Many</oj-label>
34
- </div>
35
-
36
- </body>
37
- </html>
@@ -1,8 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <body>
4
- <div>
5
- <oj-slot></oj-slot>
6
- </div>
7
- </body>
8
- </html>
@@ -1,8 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <body>
4
- <!-- bug 30829922 -->
5
- <oj-bind-if test="[[$properties.displayMode!=='compact']]">
6
- </oj-bind-if>
7
- </body>
8
- </html>
@@ -1,8 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <body>
4
- <!-- bug 30829922 -->
5
- <oj-bind-if test="[[$properties.displayMode !== 'compact']]">
6
- </oj-bind-if>
7
- </body>
8
- </html>
@@ -1,8 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <body>
4
- <oj-label :for="[[id]]" show-required="[[$properties.required]]">
5
- <oj-label :for="42" show-required="[[$properties.required]]">
6
- </oj-label>
7
- </body>
8
- </html>
@@ -1,8 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <body>
4
- <oj-label for="[[id]]" show-required="[[$properties.required]]">
5
- <oj-bind-text value="[[label]]"></oj-bind-text>
6
- </oj-label>
7
- </body>
8
- </html>
@@ -1 +0,0 @@
1
- const Path=require("path");const Colors=require("../../lib/colors");const VERSION="1.6.0";const INTEST="./tests/reports/base_report.json";const GOLD_BASE="./tests/golden";const GOLD_FILE="golden_base.json";const STAT_DIFF_PTR=" <-- DIFFERENT";const UNIQUE_TEMPLATE="$JET$TEST";const PATH_PREFIX="/tests";const SPACER=" ";function JetTest(){this._in=null;this._gold=null;this._inFile=null;this._goldFile=null;this._aFileMatches=[];this._color=true;this._problems=!this._init();this._statProblems=false;this._metaProblems=false};JetTest.prototype.start=function(jetVer){var ret=true;if(this._problems){return false}if(!this._openFiles(INTEST,Path.join(GOLD_BASE,jetVer,GOLD_FILE))){if(!this._in){this._console("\n[Error]: no test results to analyze - "+this._colorize("did you run npm test ?\n",Colors.BRIGHTYELLOW),Colors.BRIGHTRED)}this._error("terminated due to previous error(s)");return false}if(this._showTitles()&&!this._checkGoldFile()){ret=this._compare()}else ret=false;return ret};JetTest.prototype._compare=function(){this._compareStats();this._ensureUniqueFileNames();this._compareFilesThatShouldNotFail();this._compareIssueFiles();this._compareFileIssues();this._compareFilesThatShouldFail();if(!this._problems){this._console("\nSummary: "+this._in.summary.issues+" issues generated by "+this._in.summary.files+" test files were evaluated/expected",Colors.BRIGHTYELLOW);this._console("SUCCESS - audit/rule tests passed!\n",Colors.BRIGHTCYAN)}else{console.log("\n");this._console("\nFAIL - rule tests did not pass!\n",Colors.BRIGHTRED)}if(this._metaProblems){this._console("\nWARNING - the tests were not run on the same metadata as expected!\n",Colors.BRIGHTRED)}return!(this._problems||this._statProblems)};JetTest.prototype._compareStats=function(){var inSum=this._in.summary;var goldSum=this._gold.summary;var isMismatch=false;var errIssues=inSum.issues!==goldSum.issues;var errIssueFiles=inSum.issueFiles!==goldSum.issueFiles;var errErrorFiles=inSum.errorFiles!==goldSum.errorFiles;var errParseErrors=inSum.parseErrors!==goldSum.parseErrors;var errErrors=inSum.errors!==goldSum.errors;var errAsserts=inSum.asserts!==goldSum.asserts;var errFiles=inSum.errorFiles!==goldSum.errorFiles;var rulesActive=inSum.rulesActive!==goldSum.rulesActive;var rulesFired=inSum.rulesFired!==goldSum.rulesFired;var hooksFired=inSum.hooksFired!==goldSum.hooksFired;var urlsRead=inSum.urls!==goldSum.urls;var filesRead=inSum.files!==goldSum.files;var critical=inSum.severities.critical!==goldSum.severities.critical;var blocker=inSum.severities.blocker!==goldSum.severities.blocker;var major=inSum.severities.major!==goldSum.severities.major;var minor=inSum.severities.minor!==goldSum.severities.minor;var info=inSum.severities.info!==goldSum.severities.info;var sevInTotal=inSum.severities.critical+inSum.severities.blocker+inSum.severities.major+inSum.severities.minor+inSum.severities.info;var sevGoldTotal=goldSum.severities.critical+goldSum.severities.blocker+goldSum.severities.major+goldSum.severities.minor+goldSum.severities.info;var sevProblems=sevInTotal!==sevGoldTotal;var inRun=this._in.run;var goldRun=this._gold.run;this._metaProblems=inRun.jetVersion!==goldRun.jetVersion;if(errIssues||errIssueFiles||errErrorFiles||errParseErrors||errErrors||errAsserts||errFiles||rulesActive||rulesFired||hooksFired||urlsRead||filesRead||this._metaProblems||critical||blocker||major||minor||info||sevProblems){isMismatch=true;this._console("\n------------- Error: Statistics Mismatch -------------\n",Colors.BRIGHTRED);console.log(" ----- Tests---- ---- Golden -----");console.log("Tests run : "+_rightAlign(inSum.files,8)+SPACER+_rightAlign(goldSum.files,8)+(filesRead?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):""));console.log("Issues found : "+_rightAlign(inSum.issues,8)+SPACER+_rightAlign(goldSum.issues,8)+(errIssues?this._colorize(STAT_DIFF_PTR,Colors.BRIGHTRED):""));console.log("Issue Files : "+_rightAlign(inSum.issueFiles,8)+SPACER+_rightAlign(goldSum.issueFiles,8)+(errIssueFiles?this._colorize(STAT_DIFF_PTR,Colors.BRIGHTRED):""));console.log("Error Tests : "+_rightAlign(inSum.errorFiles,8)+SPACER+_rightAlign(goldSum.errorFiles,8)+(errErrorFiles?this._colorize(STAT_DIFF_PTR,Colors.BRIGHTRED):""));console.log("Parse Errors : "+_rightAlign(inSum.parseErrors,8)+SPACER+_rightAlign(goldSum.parseErrors,8)+(errParseErrors?this._colorize(STAT_DIFF_PTR,Colors.BRIGHTRED):""));console.log("Errors : "+_rightAlign(inSum.errors,8)+SPACER+_rightAlign(goldSum.errors,8)+(errErrors?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):""));console.log("Asserts : "+_rightAlign(inSum.asserts,8)+SPACER+_rightAlign(goldSum.asserts,8)+(errAsserts?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):""));console.log("Rules Active : "+_rightAlign(inSum.rulesActive,8)+SPACER+_rightAlign(goldSum.rulesActive,8)+(rulesActive?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):""));console.log("Rules Fired : "+_rightAlign(inSum.rulesFired,8)+SPACER+_rightAlign(goldSum.rulesFired,8)+(rulesFired?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):""));console.log("Hooks Fired : "+_rightAlign(inSum.hooksFired,8)+SPACER+_rightAlign(goldSum.hooksFired,8)+(hooksFired?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):""));console.log("URL's Read : "+_rightAlign(inSum.urls,8)+SPACER+_rightAlign(goldSum.urls,8)+(urlsRead?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):""));console.log("Files Read : "+_rightAlign(inSum.files,8)+SPACER+_rightAlign(goldSum.files,8)+(filesRead?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):""));console.log("Metadata : "+_rightAlign(inRun.jetVersion,8)+SPACER+_rightAlign(goldRun.jetVersion,8)+(this._metaProblems?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):"")+"\n");console.log("Critical : "+_rightAlign(inSum.severities.critical,8)+SPACER+_rightAlign(goldSum.severities.critical,8)+(critical?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):""));console.log("Blocker : "+_rightAlign(inSum.severities.blocker,8)+SPACER+_rightAlign(goldSum.severities.blocker,8)+(blocker?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):""));console.log("Major : "+_rightAlign(inSum.severities.major,8)+SPACER+_rightAlign(goldSum.severities.major,8)+(major?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):""));console.log("Minor : "+_rightAlign(inSum.severities.minor,8)+SPACER+_rightAlign(goldSum.severities.minor,8)+(minor?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):""));console.log("Info : "+_rightAlign(inSum.severities.info,8)+SPACER+_rightAlign(goldSum.severities.info,8)+(info?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):""));console.log("Totals : "+_rightAlign(sevInTotal,8)+SPACER+_rightAlign(sevGoldTotal,8)+(sevProblems?this._colorize(STAT_DIFF_PTR+" - review!",Colors.BRIGHTRED):""));if(inSum.errors){console.log("\n");console.log("-".repeat(60));console.log(this._colorize(" WARNING : AUDIT PASS GENERATED "+inSum.errors+" ERROR"+(inSum.errors!==1?"S":"")+" !!!!!!!!!",Colors.BRIGHTRED));console.log("-".repeat(60)+"\n\n")}if(inSum.asserts){console.log("\n");console.log("-".repeat(60));console.log(this._colorize(" WARNING : AUDIT PASS GENERATED "+inSum.asserts+" ASSERTS"+(inSum.asserts!==1?"S":"")+" !!!!!!!!!",Colors.BRIGHTRED));console.log("-".repeat(60)+"\n\n")}console.log("-------------- End: Statistics Mismatch ---------------\n");this._statProblems=true}return isMismatch};JetTest.prototype._compareFilesThatShouldNotFail=function(){var i,title,count=0;var aIn,aInLen;aIn=this._in.reported;aInLen=aIn?aIn.length:0;for(i=0;i<aInLen;i++){if(aIn[i].file.indexOf("_PASS_")>=0){if(!title){title="\n[Error]: The following file(s) incorrectly threw issues:";this._console(title,Colors.BRIGHTRED)}console.log(" ["+ ++count+"] \""+_norm(aIn[i].file)+"\"")}}if(title){this._problems=true;console.log("\n")}};JetTest.prototype._compareFilesThatShouldFail=function(){var files,file,reported,repFile,repContainer,i,j,x,n,title,len;if(!this._in.fileset){return}files=this._in.fileset;len=files.length;reported=this._in.reported;n=0;for(i=0;i<len;i++){file=files[i];x=file.indexOf("_FAIL_");if(x<0){continue}for(j=0;j<reported.length;j++){repFile=reported[j].file;repContainer=reported[j].container;if(repContainer&&file==repContainer||!repContainer&&repFile===file){break}}if(j>=reported.length){if(!title){title="\n[Error]: The following file(s) were expected to fail but did not (were rules enabled?) :";this._console(title,Colors.BRIGHTRED)}console.log(" ["+ ++n+"] "+file)}}if(title){this._problems=true}};JetTest.prototype._compareIssueFiles=function(){var aIn=this._in.reported;var aGold=this._gold.reported;var aInLen=aIn?aIn.length:0;var aGoldLen=aGold?aGold.length:0;if(aInLen&&aGoldLen===0){console.log("\n");this._error("golden test issue count is 0, but input test issue count is "+aInLen);this._problems=true;return}if(aInLen===0&&aGoldLen){console.log("\n");this._error("input test issue count is 0, but golden test issue count is "+aGoldLen);this._problems=true;return}if(aInLen!==aGoldLen){this._console("\n[Diff]: File mismatch : test : "+_rightAlign(aInLen,3)+" files have issues",Colors.BRIGHTRED);this._console(" golden : "+_rightAlign(aGoldLen,3)+" files have issues",Colors.BRIGHTRED);this._problems=true}this._reportFileMismatches(aIn,aGold)};JetTest.prototype._compareFileIssues=function(){var i,len,file,container;var oIn,oGold;var inIssues,goldIssues;var inReported,goldReported;var inIssues,goldIssues;if(!this._aFileMatches.length){return}inReported=this._in.reported;goldReported=this._gold.reported;len=this._aFileMatches.length;for(i=0;i<len;i++){oIn=inReported[this._aFileMatches[i++]];oGold=goldReported[this._aFileMatches[i]];inIssues=oIn.issues;goldIssues=oGold.issues;file=_norm(oIn.file);container=_norm(oIn.container);if(inIssues.length!==goldIssues.length){console.log("\n");this._error("issue mismatch for file "+(file.startsWith(UNIQUE_TEMPLATE)?null:file));this._console(" Test found "+inIssues.length+", golden has "+goldIssues.length,Colors.BRIGHTRED);this._problems=true}this._reportFileIssueMismatches(inIssues,goldIssues,file,container)}};JetTest.prototype._reportFileMismatches=function(aIn,aGold){var file,container,containedIn;var goldFile,goldContainer;var oIn,oGold,aInLen,aGoldLen,i,j;var aInTestOnly=[];var aInGoldOnly=[];aInLen=aIn.length;aGoldLen=aGold.length;for(i=0;i<aInLen;i++){oIn=aIn[i];file=_norm(oIn.file);container=_norm(oIn.container);for(j=0;j<aGoldLen;j++){goldFile=aGold[j].file;goldContainer=aGold[j].container;if(!container&&!goldContainer||container===goldContainer){if(file===goldFile){this._aFileMatches.push(i);this._aFileMatches.push(j);break}}}if(j>=aGoldLen){aInTestOnly.push(i)}}for(i=0;i<aGoldLen;i++){oGold=aGold[i];goldFile=oGold.file;goldContainer=oGold.container;for(j=0;j<aInLen;j++){file=_norm(aIn[j].file);container=_norm(aIn[j].container);if(!container&&!goldContainer||container===goldContainer){if(goldFile===file){break}}}if(j>=aInLen){aInGoldOnly.push(i)}}if(aInTestOnly.length){this._console("\n[Error]: the following test files with issues were not found in the golden data:\n",Colors.BRIGHTRED);for(i=0;i<aInTestOnly.length;i++){oIn=aIn[aInTestOnly[i]];file=oIn.file;container=oIn.container;containedIn=container&&container!==file?" (contained in "+container+")":"";console.log(" ["+(i+1)+"] "+_norm(file)+containedIn);if(file.startsWith(UNIQUE_TEMPLATE)){file="Unknown - startup/closedown hook issue perhaps? - (issue 1 rule -> "+oIn.issues[0].rule}}this._problems=true}if(aInGoldOnly.length){this._console("\n[Error]: the following golden files with issues were not found in the tests:\n",Colors.BRIGHTRED);for(i=0;i<aInGoldOnly.length;i++){oIn=aGold[aInGoldOnly[i]];file=oIn.file;container=oIn.container;containedIn=container&&container!==file?" (contained in "+container+")":"";if(file.startsWith(UNIQUE_TEMPLATE)){file="Unknown - startup/closedown hook issue perhaps? - (issue 1 rule -> "+oIn.issues[0].rule}console.log(" ["+(i+1)+"] "+file+containedIn)}this._problems=true}};JetTest.prototype._reportFileIssueMismatches=function(inIssues,goldIssues,filename,container){var oIn,oGold,i,j;var errSev,errRowCol,errIndex,errMsg,errRule,errMsgId;for(i=0,j=0;i<inIssues.length;i++){oIn=inIssues[i];if(j<goldIssues.length){oGold=goldIssues[j]}else{this._console("\n[Diff]: Test issue not found in golden issues",Colors.BRIGHTRED);console.log(" "+oIn.severity+" at ("+oIn.position.row+", "+oIn.position.col+") \""+oIn.msg+"\"");this._problems=true;continue}j++;errSev=oIn.severity!==oGold.severity;errRowCol=oIn.position.row!==oGold.position.row||oIn.position.col!==oGold.position.col;errIndex=oIn.position.start!==oGold.position.start||oIn.position.end!==oGold.position.end;errMsg=oIn.msg!==oGold.msg;errRule=oIn.rule!==oGold.rule;errMsgId=oIn.msgId!==oGold.msgId;if(!(errSev||errRowCol||errMsg||errIndex||errRule||errMsgId)){continue}this._console("\n[Diff]: file "+(filename.startsWith(UNIQUE_TEMPLATE)?null:filename)+(container?" (in zip '"+container+"')":""),Colors.BRIGHTRED);if(errSev){this._console(" diff: "+oIn.severity+" -> "+oGold.severity+" [golden]",Colors.BRIGHTRED)}else{console.log(" same: severity -> "+oIn.severity)}if(errRowCol){this._console(" diff: ("+oIn.position.row+", "+oIn.position.col+") -> ("+oGold.position.row+", "+oGold.position.col+") [golden]",Colors.BRIGHTRED)}else{console.log(" same: position -> ("+oIn.position.row+", "+oIn.position.col+")")}if(errIndex){this._console(" diff: ["+oIn.position.start+", "+oIn.position.end+"] -> ["+oGold.position.start+", "+oGold.position.end+"] [golden]",Colors.BRIGHTRED)}else{console.log(" same: index -> ("+oIn.position.startIndex+", "+oIn.position.endIndex+")")}if(errRule){this._console(" diff: "+oIn.rule+" -> "+oGold.rule+" (golden)",Colors.BRIGHTRED)}else{console.log(" same: rule -> \""+oIn.rule+"\"")}if(errMsgId){this._console(" diff: "+oIn.msgId+" -> "+oGold.msgId+" (golden)",Colors.BRIGHTRED)}else{console.log(" same: msgId -> "+oIn.msgId)}if(errMsg){this._console(" test: \""+oIn.msg+"\"",Colors.BRIGHTRED);this._console(" golden: \""+oGold.msg+"\"",Colors.BRIGHTRED)}else{console.log(" same: \""+oIn.msg+"\"")}this._problems=true}for(;j<goldIssues.length;j++){oGold=goldIssues[j];this._console("\n[Diff]: Golden issue not found in test issues",Colors.BRIGHTRED);console.log(" "+oGold.severity+" at ("+oGold.position.row+", "+oGold.position.col+") \""+oGold.msg+"\"");this._problems=true}};JetTest.prototype._checkGoldFile=function(){var aGold=this._gold.reported;var goldLen=aGold?aGold.length:0;var rec,fpath,error,i;for(i=0;i<goldLen;i++){rec=aGold[i];fpath=rec.container?rec.container:rec.file;if(fpath){if(!fpath.startsWith("http")&&fpath.indexOf(PATH_PREFIX)!==0){if(!error)this._console("\n"+"-".repeat(60));this._console("[Error]: Gold file BAD PATH - '"+fpath+"'");error=true}}}if(error)this._console("-".repeat(60));return!!error};JetTest.prototype._ensureUniqueFileNames=function(){var aIn=this._in.reported;var aGold=this._gold.reported;var i;for(i=0;i<aIn.length;i++){if(aIn[i].file===null)aIn[i].file=UNIQUE_TEMPLATE+i}for(i=0;i<aGold.length;i++){if(aGold[i].file===null)aGold[i].file=UNIQUE_TEMPLATE+i}};JetTest.prototype._openFiles=function(inFile,goldFile){var ret=true;this._inFile=Path.normalize(inFile);this._inFile=Path.resolve(this._inFile);this._goldFile=Path.normalize(goldFile);this._goldFile=Path.resolve(this._goldFile);try{this._in=require(this._inFile)}catch(ex1){console.log("\n");this._error("cannot load test results -> "+ex1.message.replace("module","file"));ret=false}try{this._gold=require(this._goldFile)}catch(ex2){console.log("\n");this._error("cannot load golden file -> "+ex2.message);ret=false}return ret};JetTest.prototype._init=function(){var nc=process.env.npm_config_nc;var c;var ret=true;this._console("\nJAF Test Analysis (ver "+VERSION+")",Colors.BRIGHTCYAN);if(nc&&nc.length){c=nc.toLowerCase().charAt(0);if(c==="t"||c==="y"){this._color=false}else if(c==="f"||c==="n"){this._color=true}else{ret=false}}if(!ret){this._error("--nc invalid value '"+nc+"'")}return ret};JetTest.prototype._showTitles=function(){var summary=this._in.summary;var run=this._in.run;if(!summary||!run){this._error("previous tests did not complete! Review.");return false}this._console("JET Ver: "+run.jetVersion);this._console("Tests run: "+run.date);return true};JetTest.prototype._error=function(msg){var s="[Error]: "+msg;s=this._color?Colors.BRIGHTRED(s):s;console.log(s)};JetTest.prototype._info=function(msg){var s="[Info]: "+msg;s=this._color?Colors.BRIGHTYELLOW(s):s;console.log(s)};JetTest.prototype._console=function(msg,color){console.log(this._colorize(msg,color))};JetTest.prototype._colorize=function(s,color){return this._color&&color?color(s):s};function _norm(file){var i;if(!file||file.startsWith("http")){return file};i=file.indexOf("/tests/rules");return i>=0?file.substr(file.indexOf("/tests/rules")):file};function _rightAlign(num,len){var s=""+num;return len>s.length?" ".repeat(len-s.length)+s:s};module.exports=JetTest;
@@ -1 +0,0 @@
1
- (function(){const ServClass=require("mock-http-server");const Path=require("path");const fs=require("fs");const decomment=require("strip-json-comments");const URL_PREFIX="http://localhost:8136";var Server=function(port,filebase,debug){this._filebase=filebase;this._curMethod=null;this._curPath=null;this._debug=debug;this._server=new ServClass({host:"localhost",port:port||8136});this._setRoutes();if(debug){console.log("Server class instantiated")}};Server.prototype.start=function(cb){if(this._debug){console.log("Server START requested")}this._server.start(cb)};Server.prototype.stop=function(cb){if(this._debug){console.log("server STOP requested")}this._server.stop(cb)};Server.prototype._setRoutes=function(){var config,files,route,fileType,hdrs,self;try{config=fs.readFileSync("./tests/config/config_base.json","utf8");config=JSON.parse(decomment(config))}catch(e){console.log("Failed to load test config: "+e)}if(!config){return}files=config.files;if(!files){return}self=this;files.forEach(function(entry){if(entry.startsWith(URL_PREFIX)){route=entry.substr(URL_PREFIX.length);fileType=_isFileType(route);if(fileType){hdrs=_getHeaders(fileType);self._server.on({method:"GET",path:route,reply:{status:200,headers:hdrs,body:self._onRequest.bind(self)},filter:self._filter.bind(self)})}}})};Server.prototype._onRequest=function(req){var obj=this._serveFile(req.method,req.url);return obj.data};Server.prototype._serveFile=function(method,path){var fileType,data;if(this._debug){console.log("_serveFile called ("+method+", \""+path+"\"")}path=this._getFilePath(path);fileType=_isFileType(path);data=_readFile(path,fileType);return{fileType:fileType,mimeType:_getMimeType(fileType),data:data}};function _getHeaders(fileType){var mimeType=_getMimeType(fileType);var hdrs={"content-type":mimeType};if(fileType==="zip"){hdrs["Content-Transfer-Encoding"]="binary";hdrs["Content-Description"]="File Transfer"}return hdrs};function _getMimeType(fileType){var mt;switch(fileType){case"html":mt="text/html";break;case"css":mt="text/css";break;case"js":mt="text/javascript";break;case"zip":mt="application/zip, application/octet-stream";break;case"json":mt="application/json";break;}return mt};Server.prototype.getRequests=function(){return this._server.requests()};Server.prototype._filter=function(req){return this._fileExists(req.url)};Server.prototype._getFilePath=function(filePath){return Path.normalize(Path.join(this._filebase,filePath))};Server.prototype._fileExists=function(url){var filePath,stats,ret=false;filePath=this._getFilePath(url);try{stats=fs.lstatSync(filePath);if(stats.isFile()){ret=true;if(this._debug){console.log("FILE EXISTS "+filePath)}}}catch(e){if(this._debug){console.log("FILE DOESN'T EXIST "+filePath)}}return ret};function _started(){process.send("Server started...")};function _shutdown(){setTimeout(function(){console.log("\nTest server shutdown complete");process.exit(0)},100)};function _readFile(filePath,fileType){var data;try{data=fileType==="zip"?fs.readFileSync(filePath):fs.readFileSync(filePath,"utf8")}catch(e){data=null;console.log("Failed to read file '"+filePath+"' : "+e.message)}return data};function _isFileType(filePath){var suffix=Path.extname(filePath).toLowerCase();suffix=suffix.substr(1);return suffix==="html"||suffix==="js"||suffix==="css"||suffix==="zip"||suffix==="json"?suffix:false};process.on("message",msg=>{if(msg==="shutdown"){server.stop(_shutdown)}});console.log("Test server init...");var server=new Server(8136,Path.join(__dirname,".."),false);server.start(_started)})();
package/tests/test.js DELETED
@@ -1 +0,0 @@
1
- (function(){var auditClass=require("../src/JafCore");const{fork}=require("child_process");var nodeDeps={fs:require("fs"),path:require("path"),glob:require("glob"),process:process,os:require("os"),decomment:require("strip-json-comments"),decache:require("decache"),Config:require("../lib/Config"),metaLoader:require("../lib/metaLoader"),ruleLoader:require("../lib/ruleLoader"),msgidLoader:require("../lib/msgidLoader"),jsonLoader:require("../lib/JsonLoader"),Components:require("../lib/Components"),ComponentSvcs:require("../lib/ComponentSvcs"),schema:require("../lib/schema"),tsparse:require("@typescript-eslint/typescript-estree"),scaffold:require("../lib/scaffold.js"),scaffoldRule:null,fsUtils:require("../lib/FsUtils"),zipUtils:require("../lib/ZipUtils"),colors:require("../lib/colors"),cmdLine:require("../lib/cmdline"),manual:require("../lib/manual"),help:require("../lib/help"),jetver:require("../lib/jetver"),nslist:null,metahist:null,stats:require("../lib/stats"),spinner:require("../lib/spinnernoop")};var forked,audit,rc,jetVer;function _runTestAnalysis(){var compClass=require("./src/JetTest");new compClass().start(jetVer)};audit=new auditClass(nodeDeps);forked=fork("./tests/src/server.js");forked.on("close",function(){setTimeout(function(){if(!rc){console.log("Running test analysis for "+jetVer+" ...");_runTestAnalysis()}else{console.log("Testing terminated")}},100)});forked.on("message",msg=>{if(msg==="Server started..."){setTimeout(function(){rc=audit.start();jetVer=audit.getUnitTestJetVer();forked.send("shutdown")},100)}})})();