@oracle/oraclejet-audit 10.1.0 → 12.0.0
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.
- package/LICENSE.md +1 -1
- package/jaf-amd.js +12 -4
- package/jaf.js +6 -1
- package/jafapi.js +6 -1
- package/lib/AST.js +6 -1
- package/lib/AST_Ts.js +6 -1
- package/lib/AstJson.js +6 -1
- package/lib/AstMd.js +6 -0
- package/lib/AstNodeTypes.js +6 -1
- package/lib/Comments.js +6 -1
- package/lib/ComponentSvcs.js +5 -0
- package/lib/Components.js +6 -1
- package/lib/Config.js +6 -1
- package/lib/ConfigLib.js +6 -1
- package/lib/CssLib.js +5 -0
- package/lib/CssUtils.js +5 -0
- package/lib/DomUtils.js +6 -1
- package/lib/FileIndex.js +5 -0
- package/lib/FileSet.js +5 -0
- package/lib/FsUtils.js +6 -1
- package/lib/Histo.js +6 -0
- package/lib/HtmlTree.js +6 -1
- package/lib/HtmlUtils.js +5 -0
- package/lib/Issue.js +6 -1
- package/lib/JafEvents.js +5 -0
- package/lib/JafLib.js +6 -1
- package/lib/Json.js +6 -0
- package/lib/JsonLoader.js +6 -1
- package/lib/Md.js +6 -0
- package/lib/MetaLib.js +6 -1
- package/lib/NetUtils.js +5 -0
- package/lib/NodeTypes.js +5 -0
- package/lib/Parser.js +6 -1
- package/lib/RegTypes.js +6 -1
- package/lib/Registry.js +6 -1
- package/lib/Reporter.js +6 -1
- package/lib/RuleContext.js +5 -0
- package/lib/RulePack.js +5 -0
- package/lib/RuleSet.js +6 -1
- package/lib/Rules.js +6 -1
- package/lib/Scope.js +6 -1
- package/lib/SemVer.js +5 -0
- package/lib/Server.js +5 -0
- package/lib/SevLib.js +5 -0
- package/lib/Severity.js +6 -1
- package/lib/Stats.js +6 -0
- package/lib/Ts.js +6 -1
- package/lib/Utils.js +6 -1
- package/lib/Watch.js +5 -0
- package/lib/Writer.js +5 -0
- package/lib/ZipUtils.js +5 -0
- package/lib/api.js +6 -0
- package/lib/builtinpacks.js +6 -0
- package/lib/cliStats.js +6 -0
- package/lib/clone.js +6 -1
- package/lib/cmdline.js +6 -1
- package/lib/colors.js +6 -1
- package/lib/defaults.js +6 -0
- package/lib/deflist.js +6 -0
- package/lib/dislist.js +6 -0
- package/lib/exportRules.js +6 -0
- package/lib/extends.js +6 -0
- package/lib/filetypes.js +6 -0
- package/lib/grouplist.js +6 -0
- package/lib/groups.js +6 -0
- package/lib/help.js +6 -1
- package/lib/jetver.js +6 -1
- package/lib/macros.js +6 -0
- package/lib/manual.js +6 -1
- package/lib/metaLoader.js +5 -0
- package/lib/metahist.js +5 -0
- package/lib/msgidLoader.js +6 -1
- package/lib/ns.js +6 -1
- package/lib/nslist.js +5 -0
- package/lib/outFormat.js +6 -0
- package/lib/outfile.js +5 -0
- package/lib/ruleLoader.js +5 -0
- package/lib/scaffold.js +6 -1
- package/lib/scaffoldRule.js +6 -1
- package/lib/schema.js +6 -1
- package/lib/scopewalker.js +6 -0
- package/lib/spinner.js +6 -1
- package/lib/spinnernoop.js +5 -0
- package/lib/tabs.js +5 -0
- package/libext/expparser.js +6 -1
- package/meta/11.0.0/jetauditmeta.js +9 -0
- package/meta/11.1.0/jetauditmeta.js +9 -0
- package/meta/12.0.0/jetauditmeta.js +9 -0
- package/meta/metaverlist.json +1 -1
- package/package.json +72 -69
- package/rulepacks/csp/csp-html-script-unsafe-inline.js +5 -0
- package/rulepacks/csp/csp-html-style-unsafe-inline.js +5 -0
- package/rulepacks/csp/csp-html-unsafe-expr.js +5 -0
- package/rulepacks/csp/csp-js-script-unsafe-eval.js +6 -1
- package/rulepacks/csp/csp-js-style-unsafe-inline.js +5 -0
- package/rulepacks/csp/csp-ts-script-unsafe-eval.js +6 -0
- package/rulepacks/csp/csp-ts-style-unsafe-inline.js +6 -0
- package/rulepacks/csp/msgid.json +6 -1
- package/rulepacks/csp/rules.json +6 -1
- package/rulepacks/jetwc/jetwc-absolute-jetversion.js +6 -1
- package/rulepacks/jetwc/jetwc-aria-redefinition.js +6 -1
- package/rulepacks/jetwc/jetwc-bootstrap.js +6 -1
- package/rulepacks/jetwc/jetwc-compjson-bp-ar.js +6 -1
- package/rulepacks/jetwc/jetwc-compjson-bp-obj.js +6 -1
- package/rulepacks/jetwc/jetwc-component-dependencies.js +6 -1
- package/rulepacks/jetwc/jetwc-component-displayname.js +6 -1
- package/rulepacks/jetwc/jetwc-component-foldername.js +6 -1
- package/rulepacks/jetwc/jetwc-component-location.js +6 -1
- package/rulepacks/jetwc/jetwc-component-type.js +6 -1
- package/rulepacks/jetwc/jetwc-css-oj-complete.js +6 -0
- package/rulepacks/jetwc/jetwc-data-property-prefix.js +6 -1
- package/rulepacks/jetwc/jetwc-deprecated-lifecycle.js +6 -1
- package/rulepacks/jetwc/jetwc-disabled-property.js +6 -1
- package/rulepacks/jetwc/jetwc-displayname.js +6 -1
- package/rulepacks/jetwc/jetwc-dynamic-slot-context.js +6 -1
- package/rulepacks/jetwc/jetwc-dynamic-slots-naming.js +6 -1
- package/rulepacks/jetwc/jetwc-event-displayname.js +6 -1
- package/rulepacks/jetwc/jetwc-events.js +6 -1
- package/rulepacks/jetwc/jetwc-jet-version.js +6 -1
- package/rulepacks/jetwc/jetwc-loader-file.js +6 -1
- package/rulepacks/jetwc/jetwc-markdown-link.js +6 -0
- package/rulepacks/jetwc/jetwc-method-displayname.js +6 -1
- package/rulepacks/jetwc/jetwc-methods.js +6 -1
- package/rulepacks/jetwc/jetwc-namespace.js +6 -1
- package/rulepacks/jetwc/jetwc-nested-defaults.js +6 -1
- package/rulepacks/jetwc/jetwc-nls-languages.js +6 -1
- package/rulepacks/jetwc/jetwc-nls-root.js +6 -1
- package/rulepacks/jetwc/jetwc-oj-register.js +6 -1
- package/rulepacks/jetwc/jetwc-ojcss.js +6 -1
- package/rulepacks/jetwc/jetwc-pack-children.js +6 -1
- package/rulepacks/jetwc/jetwc-packable-components.js +6 -1
- package/rulepacks/jetwc/jetwc-prerelease-dependencies.js +6 -1
- package/rulepacks/jetwc/jetwc-prerelease-pattern.js +6 -1
- package/rulepacks/jetwc/jetwc-prerelease-version.js +6 -1
- package/rulepacks/jetwc/jetwc-property-changed.js +6 -1
- package/rulepacks/jetwc/jetwc-property-displayname.js +6 -1
- package/rulepacks/jetwc/jetwc-property-nesting.js +6 -1
- package/rulepacks/jetwc/jetwc-public-modules.js +6 -1
- package/rulepacks/jetwc/jetwc-register-css.js +6 -1
- package/rulepacks/jetwc/jetwc-register-with-promises.js +6 -1
- package/rulepacks/jetwc/jetwc-require-paths.js +6 -1
- package/rulepacks/jetwc/jetwc-required-subproperty.js +6 -0
- package/rulepacks/jetwc/jetwc-reserved-property.js +6 -1
- package/rulepacks/jetwc/jetwc-schema.js +6 -1
- package/rulepacks/jetwc/jetwc-semantic-version.js +6 -1
- package/rulepacks/jetwc/jetwc-slot-displayname.js +6 -1
- package/rulepacks/jetwc/jetwc-slots.js +6 -1
- package/rulepacks/jetwc/jetwc-standard-files.js +6 -1
- package/rulepacks/jetwc/jetwc-subproperty-writeback.js +6 -0
- package/rulepacks/jetwc/jetwc-template-slots.js +6 -1
- package/rulepacks/jetwc/jetwc-unused-events.js +6 -1
- package/rulepacks/jetwc/jetwc-unused-slots.js +6 -1
- package/rulepacks/jetwc/jetwc-vb-category.js +6 -1
- package/rulepacks/jetwc/jetwc-vb-icon.js +6 -1
- package/rulepacks/jetwc/jetwc-vcomponent-jetversion.js +6 -0
- package/rulepacks/jetwc/jetwc-vcomponent-loader.js +6 -0
- package/rulepacks/jetwc/jetwc-vcomponent-version.js +6 -0
- package/rulepacks/jetwc/jetwc-version-openrange.js +6 -1
- package/rulepacks/jetwc/jetwc-writeback-required.js +6 -1
- package/rulepacks/jetwc/msgid.json +6 -0
- package/rulepacks/jetwc/rules.json +6 -1
- package/rulepacks/jetwc-lib/jetwcutils-auditComponentCacheManager.js +6 -0
- package/rulepacks/jetwc-lib/jetwcutils-commonListenerImpls.js +6 -0
- package/rulepacks/jetwc-lib/jetwcutils-componentAuditUtils.js +6 -0
- package/rulepacks/jetwc-lib/jetwcutils-componentFinder.js +6 -0
- package/rulepacks/jetwc-lib/jetwcutils-preCompiler.js +6 -0
- package/rulepacks/jetwc-lib/jetwcutils-tsxUtils.js +6 -0
- package/rulepacks/jetwco/jetwco-bootstrap.js +6 -1
- package/rulepacks/jetwco/jetwco-cacc-auditConstraints.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-dependencies.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-dynamicSlots.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-eventBubbles.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-eventCancelable.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-eventPayload.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-events.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-helpers.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-jetVer.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-methodParamTypes.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-methodParams.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-methodReturnType.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-methods.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-packBundle.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-packBundleContent.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-packContent.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-properties.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-propertyDefault.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-propertyEnumeration.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-propertyReadOnly.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-propertyRequired.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-propertyType.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-propertyWriteback.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-publicModules.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-slotDataVariable.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-slotDataVariableType.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-slots.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-styleClasses.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-styleVariables.js +6 -0
- package/rulepacks/jetwco/jetwco-compjson-ns-reg.js +6 -1
- package/rulepacks/jetwco/jetwco-component-api-baseline-changes.js +6 -0
- package/rulepacks/jetwco/jetwco-component-api-changes.js +6 -1
- package/rulepacks/jetwco/jetwco-component-api-controlled-changes.js +6 -0
- package/rulepacks/jetwco/jetwco-component-cdn.js +6 -1
- package/rulepacks/jetwco/jetwco-description-standards.js +6 -0
- package/rulepacks/jetwco/jetwco-displayname-standards.js +6 -0
- package/rulepacks/jetwco/jetwco-exchange-version-check.js +6 -1
- package/rulepacks/jetwco/jetwco-license-info.js +6 -1
- package/rulepacks/jetwco/jetwco-prerelease-cdn.js +6 -1
- package/rulepacks/jetwco/jetwco-thirdparty-ba.js +6 -1
- package/rulepacks/jetwco/msgid.json +6 -0
- package/rulepacks/jetwco/rules.json +6 -1
- package/rulepacks/spoc/msgid.json +5 -0
- package/rulepacks/spoc/rules.json +5 -0
- package/rulepacks/spoc/spoc-dom-manip-inv-tag.js +5 -0
- package/rulepacks/spoc/spoc-dom-manip-tag-pos.js +5 -0
- package/rulepacks/spoc/spoc-dom-manip.js +5 -0
- package/{tests/rules/oj-js-diagnose/js_FAIL_1.js → rulepacks/wdt/msgid.json} +3 -9
- package/rulepacks/wdt/rules.json +6 -0
- package/rulepacks/wdt/wd-driver-sleep.js +6 -0
- package/rulepacks/wdt/wd-xpath.js +6 -0
- package/rules/jaf/jaf-css-diagnose.js +5 -0
- package/rules/jaf/jaf-html-diagnose.js +5 -0
- package/rules/jaf/jaf-init-schema.js +5 -0
- package/rules/jaf/jaf-js-diagnose.js +5 -0
- package/rules/jaf/jaf-ts-diagnose.js +6 -0
- package/rules/jaf/msgid.json +6 -1
- package/rules/jaf/rules.json +6 -1
- package/rules/jet/helpers/acc-aria-label.js +6 -1
- package/rules/jet/helpers/bp-checkPropType.js +5 -0
- package/rules/jet/helpers/cssHelper.js +6 -1
- package/rules/jet/helpers/extractStylesFromClass.js +6 -1
- package/rules/jet/helpers/has-slot-name.js +6 -1
- package/rules/jet/helpers/has-slot.js +5 -0
- package/rules/jet/helpers/json-prop-pos.js +5 -0
- package/rules/jet/helpers/json-propname-pos.js +5 -0
- package/rules/jet/helpers/style-selector.js +6 -1
- package/rules/jet/helpers/valid-attr.js +5 -0
- package/rules/jet/helpers/vartrack.js +5 -0
- package/rules/jet/jet-css-ojselector.js +5 -0
- package/rules/jet/msgid.json +6 -1
- package/rules/jet/oj-acc-aria-labelledby.js +5 -0
- package/rules/jet/oj-acc-aria-prop.js +6 -1
- package/rules/jet/oj-acc-avatar-aria-role.js +6 -1
- package/rules/jet/oj-acc-combobox-aria-label.js +6 -1
- package/rules/jet/oj-acc-film-strip-aria-label.js +6 -1
- package/rules/jet/oj-acc-input-aria-label.js +6 -1
- package/rules/jet/oj-acc-select-aria-label.js +6 -1
- package/rules/jet/oj-cca-compjson-bp-ar.js +5 -0
- package/rules/jet/oj-cca-compjson-bp-dsplyname.js +5 -0
- package/rules/jet/oj-cca-compjson-bp-jetver.js +5 -0
- package/rules/jet/oj-cca-compjson-bp-obj.js +5 -0
- package/rules/jet/oj-cca-compjson-ns-reg.js +5 -0
- package/rules/jet/oj-css-bp-border-color.js +5 -0
- package/rules/jet/oj-css-bp-dir-flow.js +6 -1
- package/rules/jet/oj-css-bp-float.js +5 -0
- package/rules/jet/oj-css-bp-textalign.js +5 -0
- package/rules/jet/oj-css-style-abs-units.js +6 -1
- package/rules/jet/oj-css-style-bp-color.js +5 -0
- package/rules/jet/oj-css-style-bp-display.js +6 -1
- package/rules/jet/oj-css-style-bp-font-family.js +6 -1
- package/rules/jet/oj-css-style-bp-font.js +5 -0
- package/rules/jet/oj-css-style-deprecated.js +6 -1
- package/rules/jet/oj-css-style-override.js +6 -1
- package/rules/jet/oj-css-var-override.js +5 -0
- package/rules/jet/oj-form-maxcols.js +6 -1
- package/rules/jet/oj-html-5-attr-obs.js +5 -0
- package/rules/jet/oj-html-5-tag-obs.js +5 -0
- package/rules/jet/oj-html-alta-deprecated.js +6 -0
- package/rules/jet/oj-html-attr-$unique.js +5 -0
- package/rules/jet/oj-html-attr-2def.js +5 -0
- package/rules/jet/oj-html-attr-json.js +6 -1
- package/rules/jet/oj-html-attr-prefix-expr.js +6 -1
- package/rules/jet/oj-html-attr-prefix-ro.js +5 -0
- package/rules/jet/oj-html-attr-req.js +5 -0
- package/rules/jet/oj-html-bindforeach-data.js +6 -1
- package/rules/jet/oj-html-bindif-test.js +6 -1
- package/rules/jet/oj-html-binding-attr.js +6 -1
- package/rules/jet/oj-html-cca-count.js +5 -0
- package/rules/jet/oj-html-cca-tagname.js +6 -1
- package/rules/jet/oj-html-cdn.js +5 -0
- package/rules/jet/oj-html-combo-converter.js +5 -0
- package/rules/jet/oj-html-cspexpr.js +6 -1
- package/rules/jet/oj-html-databind-all.js +5 -0
- package/rules/jet/oj-html-dlg-title.js +6 -1
- package/rules/jet/oj-html-file-pick-accept.js +6 -1
- package/rules/jet/oj-html-form-bindif.js +6 -1
- package/rules/jet/oj-html-form-layout-maxcols.js +6 -1
- package/rules/jet/oj-html-form-noflex.js +5 -0
- package/rules/jet/oj-html-input-isodate.js +6 -0
- package/rules/jet/oj-html-invalid-doctype.js +6 -1
- package/rules/jet/oj-html-jq-databind.js +6 -1
- package/rules/jet/oj-html-ko-comment.js +5 -0
- package/rules/jet/oj-html-ko-databind.js +6 -1
- package/rules/jet/oj-html-label-for-prefix.js +5 -0
- package/rules/jet/oj-html-missing-doctype.js +6 -1
- package/rules/jet/oj-html-msgs-cat-text.js +6 -0
- package/rules/jet/oj-html-no-style-tag.js +6 -0
- package/rules/jet/oj-html-notag-style.js +6 -0
- package/rules/jet/oj-html-oj-lib.js +5 -0
- package/rules/jet/oj-html-ojattr-520.js +6 -1
- package/rules/jet/oj-html-ojattr-deprecated.js +6 -1
- package/rules/jet/oj-html-ojattr-enum-deprecated.js +6 -1
- package/rules/jet/oj-html-ojattr-evt-syntax.js +6 -1
- package/rules/jet/oj-html-ojattr-value.js +6 -1
- package/rules/jet/oj-html-ojattr.js +6 -1
- package/rules/jet/oj-html-ojevent.js +6 -1
- package/rules/jet/oj-html-ojslot.js +6 -1
- package/rules/jet/oj-html-ojstyle.js +5 -0
- package/rules/jet/oj-html-ojtag-datacmd.js +6 -1
- package/rules/jet/oj-html-ojtag-datactx.js +5 -0
- package/rules/jet/oj-html-ojtag-deprecated.js +6 -1
- package/rules/jet/oj-html-ojtag-globattr-noprefix.js +6 -1
- package/rules/jet/oj-html-ojtag-id.js +5 -0
- package/rules/jet/oj-html-ojtag-nonglobattr-prefix.js +6 -1
- package/rules/jet/oj-html-ojtag-ns.js +5 -0
- package/rules/jet/oj-html-picker-attrs.js +6 -0
- package/rules/jet/oj-html-redwood-cssnovars.js +6 -0
- package/rules/jet/oj-html-redwood-cssvars.js +6 -0
- package/rules/jet/oj-html-self-close.js +5 -0
- package/rules/jet/oj-html-slot-item-minmax.js +6 -0
- package/rules/jet/oj-html-slot-name.js +6 -1
- package/rules/jet/oj-html-slot-pref-content.js +6 -0
- package/rules/jet/oj-html-style-abs-units.js +5 -0
- package/rules/jet/oj-html-style-bp-color.js +5 -0
- package/rules/jet/oj-html-style-bp-display.js +6 -1
- package/rules/jet/oj-html-style-bp-font-family.js +5 -0
- package/rules/jet/oj-html-style-bp-font.js +5 -0
- package/rules/jet/oj-html-style-deprecated.js +6 -1
- package/rules/jet/oj-html-style.js +6 -1
- package/rules/jet/oj-html-stylesel.js +6 -1
- package/rules/jet/oj-html-tag-attr-noprefix.js +6 -1
- package/rules/jet/oj-html-template-index.js +6 -1
- package/rules/jet/oj-html-unsup-theme.js +6 -1
- package/rules/jet/oj-html-wctag-$props.js +6 -1
- package/rules/jet/oj-html-wctag-arialabelledby.js +5 -0
- package/rules/jet/oj-html-wctag-for.js +5 -0
- package/rules/jet/oj-html-wctag-id.js +6 -1
- package/rules/jet/oj-html-wctag-nested.js +6 -0
- package/rules/jet/oj-html-wctag-packprivate.js +6 -0
- package/rules/jet/oj-js-comp-attr-deprecated.js +6 -1
- package/rules/jet/oj-js-comp-meth-deprecated.js +6 -1
- package/rules/jet/oj-js-no-ext-final.js +5 -0
- package/rules/jet/oj-js-noconsole.js +5 -0
- package/rules/jet/oj-js-ojcomp-deprecated.js +6 -1
- package/rules/jet/oj-js-ojcomp-exist.js +5 -0
- package/rules/jet/oj-js-ojcomp-new.js +5 -0
- package/rules/jet/oj-js-poly-promise.js +6 -1
- package/rules/jet/oj-js-var-undef.js +5 -0
- package/rules/jet/oj-json-syntax.js +5 -0
- package/rules/jet/oj-ts-comp-attr-deprecated.js +6 -1
- package/rules/jet/oj-ts-comp-meth-deprecated.js +6 -1
- package/rules/jet/oj-ts-no-ext-final.js +6 -0
- package/rules/jet/oj-ts-noconsole.js +6 -1
- package/rules/jet/oj-ts-ojcomp-deprecated.js +6 -1
- package/rules/jet/oj-ts-ojcomp-exist.js +6 -1
- package/rules/jet/oj-ts-ojcomp-new.js +6 -1
- package/rules/jet/oj-ts-poly-promise.js +6 -1
- package/rules/jet/rules.json +6 -1
- package/schema/component-schema.json +125 -2
- package/src/JafCore.js +6 -1
- package/types/index.d.ts +175 -37
- package/lib/stats.js +0 -1
- package/rulepacks/jetwc-lib/component-audit-utils.js +0 -1
- package/rules/exch/helpers/json-prop-pos.js +0 -1
- package/rules/exch/msgid.json +0 -1
- package/rules/exch/oj-cca-comp-zip-content-composite.js +0 -1
- package/rules/exch/oj-cca-comp-zip-content-pack.js +0 -1
- package/rules/exch/oj-cca-comp-zip-expand.js +0 -1
- package/rules/exch/oj-cca-compjson-evnames.js +0 -1
- package/rules/exch/oj-cca-compjson-file.js +0 -1
- package/rules/exch/oj-cca-compjson-prefix.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-compdeps.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-deps.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-jetver.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-obs.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-type.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-types.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-undef.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-version.js +0 -1
- package/rules/exch/oj-cca-compjson-schema.js +0 -1
- package/rules/exch/oj-cca-zip-compjson.js +0 -1
- package/rules/exch/rules.json +0 -1
- package/rules/jet/oj-css-bp-bgcolor.js +0 -1
- package/tests/components/attr-req-test/component.json +0 -1
- package/tests/components/demo-analog-clock/component.json +0 -1
- package/tests/components/demo-analog-clock/demo-analog-clock-viewModel.js +0 -1
- package/tests/components/demo-analog-clock/extension/demo/js/viewModels/demo.js +0 -1
- package/tests/components/demo-analog-clock/loader.js +0 -1
- package/tests/components/demo-card/component.json +0 -1
- package/tests/components/demo-chart-orientation-control/component.json +0 -1
- package/tests/components/demo-chart-stack-control/component.json +0 -1
- package/tests/components/made-up/component.json +0 -1
- package/tests/components/oj-made-up/component.json +0 -1
- package/tests/components/sp-activity-item/component.json +0 -1
- package/tests/config/config_base.json +0 -1
- package/tests/golden/10.0.0/golden_base.json +0 -1
- package/tests/golden/8.1.0/golden_base.json +0 -1
- package/tests/golden/9.0.0/golden_base.json +0 -1
- package/tests/rulepacks/hooks/hook-rpext.js +0 -1
- package/tests/rulepacks/hooks/hook-start-close-rulepack.js +0 -1
- package/tests/rulepacks/hooks/rule-rpext.js +0 -1
- package/tests/rulepacks/hooks/rules.json +0 -1
- package/tests/rulepacks/tags/proc_directive.js +0 -1
- package/tests/rulepacks/tags/rules.json +0 -1
- package/tests/rulepacks/tags/tag-count-setup.js +0 -1
- package/tests/rulepacks/tags/tag-count.js +0 -1
- package/tests/rules/bugs/JET-4770_PASS_1.html +0 -9
- package/tests/rules/comments/com_FAIL_1.js +0 -57
- package/tests/rules/comments/com_FAIL_2.js +0 -96
- package/tests/rules/comments/com_PASS_1.js +0 -42
- package/tests/rules/comments/com_PASS_2.js +0 -63
- package/tests/rules/comments/com_PASS_3.js +0 -40
- package/tests/rules/comments/com_PASS_4.js +0 -36
- package/tests/rules/comments/com_PASS_5.js +0 -19
- package/tests/rules/csp/html-script-unsafe-inline/FAIL_1.html +0 -11
- package/tests/rules/csp/html-script-unsafe-inline/FAIL_2.html +0 -8
- package/tests/rules/csp/html-script-unsafe-inline/PASS_1.html +0 -8
- package/tests/rules/csp/html-script-unsafe-inline/PASS_2.html +0 -8
- package/tests/rules/csp/html-script-unsafe-inline/PASS_3.html +0 -8
- package/tests/rules/csp/html-style-unsafe-inline/FAIL_1.html +0 -11
- package/tests/rules/csp/html-style-unsafe-inline/PASS_1.html +0 -11
- package/tests/rules/csp/html-unsafe-expr/FAIL_1.html +0 -14
- package/tests/rules/csp/html-unsafe-expr/PASS_1.html +0 -23
- package/tests/rules/csp/js-script-unsafe-eval/FAIL_1.js +0 -17
- package/tests/rules/csp/js-script-unsafe-eval/FAIL_2.js +0 -40
- package/tests/rules/csp/js-script-unsafe-eval/FAIL_3.js +0 -22
- package/tests/rules/csp/js-script-unsafe-eval/PASS_1.js +0 -20
- package/tests/rules/csp/js-script-unsafe-eval/PASS_2.js +0 -44
- package/tests/rules/csp/js-script-unsafe-eval/PASS_3.js +0 -16
- package/tests/rules/csp/js-style-unsafe-inline/FAIL_1.js +0 -25
- package/tests/rules/csp/js-style-unsafe-inline/PASS.js +0 -22
- package/tests/rules/demo/noself_FAIL_1.js +0 -101
- package/tests/rules/import/import_FAIL_1.js +0 -11
- package/tests/rules/import/import_PASS_1.js +0 -10
- package/tests/rules/jet-composites/demo-buttonset-enum/component.json +0 -57
- package/tests/rules/jet-composites/demo-buttonset-enum/loader.js +0 -19
- package/tests/rules/jet-composites/demo-buttonset-enum/view.html +0 -48
- package/tests/rules/jet-composites/demo-card/component.json +0 -28
- package/tests/rules/jet-composites/demo-card/loader.js +0 -16
- package/tests/rules/jet-composites/demo-card/view.html +0 -30
- package/tests/rules/jet-composites/demo-card/viewModel.js +0 -46
- package/tests/rules/jet-composites/demo-card/view_PASS_1.html +0 -21
- package/tests/rules/jet-composites/demo-contact-form/component.json +0 -23
- package/tests/rules/jet-composites/demo-contact-form/loader.js +0 -16
- package/tests/rules/jet-composites/demo-contact-form/view.html +0 -9
- package/tests/rules/jet-composites/demo-grocery-list/component.json +0 -18
- package/tests/rules/jet-composites/demo-grocery-list/loader.js +0 -19
- package/tests/rules/jet-composites/demo-grocery-list/view.html +0 -22
- package/tests/rules/jet-composites/demo-grocery-list/viewModel.js +0 -48
- package/tests/rules/jet-composites/dummy-component-1/component.json +0 -82
- package/tests/rules/jet-composites/dummy-component-2/component.json +0 -72
- package/tests/rules/jet-composites/foo-my-cca/component.json +0 -14
- package/tests/rules/jet-composites/foo-unsup-theme/component.json +0 -29
- package/tests/rules/jet-composites/header/component.json +0 -12
- package/tests/rules/jet-composites/oj-cgbu-omc/attribute-selection/component.json +0 -154
- package/tests/rules/jet-composites/oj-cgbu-omc/component.json +0 -11
- package/tests/rules/jet-composites/oj-cgbu-omc/reference/component.json +0 -185
- package/tests/rules/jet-composites/oj-cgbu-omc/wctag_props_FAIL_1.html +0 -34
- package/tests/rules/jet-composites/oj-enum-depr/component.json +0 -69
- package/tests/rules/jet-composites/oj-html-wctag-id/id_FAIL_1.html +0 -10
- package/tests/rules/jet-composites/oj-html-wctag-id/id_PASS_1.html +0 -6
- package/tests/rules/misc/oj.js +0 -12
- package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_FAIL_1.html +0 -23
- package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_FAIL_2.html +0 -22
- package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_1.html +0 -23
- package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_2.html +0 -22
- package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_3.html +0 -22
- package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_4.html +0 -22
- package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_5.html +0 -22
- package/tests/rules/oj-acc-aria-prop/aria_prop_FAIL_1.html +0 -22
- package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_FAIL_1.html +0 -20
- package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_1.html +0 -23
- package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_2.html +0 -24
- package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_3.html +0 -21
- package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_4.html +0 -22
- package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_5.html +0 -22
- package/tests/rules/oj-acc-combobox-aria-label/aria_combo_many_FAIL_1.html +0 -20
- package/tests/rules/oj-acc-combobox-aria-label/aria_combo_many_FAIL_2.html +0 -21
- package/tests/rules/oj-acc-combobox-aria-label/aria_combo_many_PASS_1.html +0 -20
- package/tests/rules/oj-acc-combobox-aria-label/aria_combo_one_FAIL_1.html +0 -21
- package/tests/rules/oj-acc-combobox-aria-label/aria_combo_one_FAIL_2.html +0 -22
- package/tests/rules/oj-acc-combobox-aria-label/aria_combo_one_PASS_1.html +0 -22
- package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_FAIL_1.html +0 -18
- package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_FAIL_2.html +0 -18
- package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_PASS_1.html +0 -18
- package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_PASS_2.html +0 -19
- package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_PASS_3.html +0 -22
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_FAIL_1.html +0 -21
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_FAIL_2.html +0 -22
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_PASS_1.html +0 -16
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_PASS_2.html +0 -17
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_PASS_3.html +0 -26
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_time_FAIL_1.html +0 -19
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_time_FAIL_2.html +0 -20
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_time_PASS_1.html +0 -19
- package/tests/rules/oj-acc-input-aria-label/oj_input_number_FAIL_1.html +0 -17
- package/tests/rules/oj-acc-input-aria-label/oj_input_number_FAIL_2.html +0 -18
- package/tests/rules/oj-acc-input-aria-label/oj_input_number_PASS_1.html +0 -17
- package/tests/rules/oj-acc-input-aria-label/oj_input_password_FAIL_1.html +0 -17
- package/tests/rules/oj-acc-input-aria-label/oj_input_password_FAIL_2.html +0 -17
- package/tests/rules/oj-acc-input-aria-label/oj_input_password_PASS_1.html +0 -17
- package/tests/rules/oj-acc-input-aria-label/oj_input_text_3_PASS_1.html +0 -20
- package/tests/rules/oj-acc-input-aria-label/oj_input_text_FAIL_1.html +0 -20
- package/tests/rules/oj-acc-input-aria-label/oj_input_text_FAIL_2.html +0 -21
- package/tests/rules/oj-acc-input-aria-label/oj_input_text_PASS_2.html +0 -62
- package/tests/rules/oj-acc-input-aria-label/oj_input_text_nolabel_PASS_2.html +0 -17
- package/tests/rules/oj-acc-input-aria-label/oj_input_time_FAIL_1.html +0 -19
- package/tests/rules/oj-acc-input-aria-label/oj_input_time_FAIL_2.html +0 -20
- package/tests/rules/oj-acc-input-aria-label/oj_input_time_PASS_1.html +0 -19
- package/tests/rules/oj-acc-select-aria-label/aria_selectmany_FAIL_1.html +0 -19
- package/tests/rules/oj-acc-select-aria-label/aria_selectmany_FAIL_2.html +0 -20
- package/tests/rules/oj-acc-select-aria-label/aria_selectmany_PASS_1.html +0 -19
- package/tests/rules/oj-acc-select-aria-label/aria_selectone_FAIL_1.html +0 -20
- package/tests/rules/oj-acc-select-aria-label/aria_selectone_FAIL_2.html +0 -21
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_1.zip +0 -1
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_2.zip +0 -0
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_3.zip +0 -0
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_4.zip +0 -0
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_5.zip +0 -0
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_6.zip +0 -0
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_7.zip +0 -0
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_8.zip +0 -0
- package/tests/rules/oj-cca-comp-zip/zip_PASS_1.zip +0 -0
- package/tests/rules/oj-cca-ns-reg/oj-cca-ns-FAIL_1/component.json +0 -19
- package/tests/rules/oj-cca-ns-reg/oj-cca-ns-PASS_1/component.json +0 -19
- package/tests/rules/oj-cgbu-omc_tests/html_ojevent_FAIL_1.html +0 -15
- package/tests/rules/oj-cgbu-omc_tests/html_ojevent_PASS_1.html +0 -17
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_1/component.json +0 -16
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_10/component.json +0 -103
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_11/component.json +0 -24
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_12/component.json +0 -17
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_13/component.json +0 -17
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_14/component.json +0 -40
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_15/component.json +0 -24
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_16/component.json +0 -44
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_17/component.json +0 -8
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_18/component.json +0 -8
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_19/component.json +0 -8
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_2/component.json +0 -15
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_20/component.json +0 -18
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_21/component.json +0 -16
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_22/component.json +0 -19
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_3/component.json +0 -15
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_4/component.json +0 -16
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_5/component.json +0 -16
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_6/component.json +0 -18
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_7/component.json +0 -15
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_8/component.json +0 -15
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_9/component.json +0 -52
- package/tests/rules/oj-compjson-syntax/ojcomp-PASS_1/component.json +0 -17
- package/tests/rules/oj-compjson-syntax/ojcomp-PASS_2/component.json +0 -88
- package/tests/rules/oj-compjson-syntax/ojcomp-PASS_3/component.json +0 -19
- package/tests/rules/oj-css-bp-dir-flow/dirflow_FAIL_1.html +0 -22
- package/tests/rules/oj-css-bp-dir-flow/dirflow_FAIL_2.html +0 -22
- package/tests/rules/oj-css-diagnose/css_FAIL_1.html +0 -14
- package/tests/rules/oj-css-diagnose/css_PASS_1.html +0 -14
- package/tests/rules/oj-css-var-override/varovr_FAIL_1.html +0 -8
- package/tests/rules/oj-html-5-attr-depr/attrdepr_FAIL_1.html +0 -16
- package/tests/rules/oj-html-5-attr-depr/attrdepr_PASS_1.html +0 -16
- package/tests/rules/oj-html-5-tag-depr/tagdepr_FAIL_1.html +0 -9
- package/tests/rules/oj-html-attr/attr_FAIL_1.html +0 -27
- package/tests/rules/oj-html-attr-$unique/attr_$unique1_FAIL_1.html +0 -19
- package/tests/rules/oj-html-attr-$unique/attr_$unique_FAIL_2.html +0 -25
- package/tests/rules/oj-html-attr-2def/attr2def_FAIL_1.html +0 -10
- package/tests/rules/oj-html-attr-2def/attr2def_PASS_1.html +0 -10
- package/tests/rules/oj-html-attr-json/attr-json_FAIL_1.html +0 -20
- package/tests/rules/oj-html-attr-json/attr-json_FAIL_2.html +0 -20
- package/tests/rules/oj-html-attr-json/attr-json_FAIL_3.html +0 -20
- package/tests/rules/oj-html-attr-json/attr-json_PASS_1.html +0 -20
- package/tests/rules/oj-html-attr-json/attr-json_PASS_2.html +0 -20
- package/tests/rules/oj-html-attr-json/attr-json_PASS_3.html +0 -8
- package/tests/rules/oj-html-attr-prefix-expr/attrprefixexpr_FAIL_1.html +0 -10
- package/tests/rules/oj-html-attr-prefix-expr/attrprefixexpr_PASS_1.html +0 -10
- package/tests/rules/oj-html-attr-prefix-ro/attrprefixro_FAIL_1.html +0 -10
- package/tests/rules/oj-html-attr-prefix-ro/attrprefixro_PASS_1.html +0 -10
- package/tests/rules/oj-html-attr-req/attrreq_FAIL_1.html +0 -17
- package/tests/rules/oj-html-attr-req/attrreq_FAIL_2.html +0 -13
- package/tests/rules/oj-html-attr-req/attrreq_FAIL_3.html +0 -8
- package/tests/rules/oj-html-attr-req/attrreq_FAIL_4.html +0 -13
- package/tests/rules/oj-html-attr-req/attrreq_FAIL_5.html +0 -17
- package/tests/rules/oj-html-attr-req/attrreq_PASS_1.html +0 -24
- package/tests/rules/oj-html-attr-req/attrreq_PASS_2.html +0 -24
- package/tests/rules/oj-html-attr-req/attrreq_PASS_3.html +0 -10
- package/tests/rules/oj-html-attr-req/attrreq_PASS_4.html +0 -11
- package/tests/rules/oj-html-bindforeach-data/bindforeach_data_FAIL_1.html +0 -19
- package/tests/rules/oj-html-bindforeach-data/bindforeach_data_PASS_1.html +0 -10
- package/tests/rules/oj-html-bindif-test/bindif_test_FAIL_1.html +0 -22
- package/tests/rules/oj-html-bindif-test/bindif_test_PASS_1.html +0 -11
- package/tests/rules/oj-html-binding-attr/binding-foreach_FAIL_2.html +0 -28
- package/tests/rules/oj-html-binding-attr/binding-if_FAIL_1.html +0 -23
- package/tests/rules/oj-html-binding-attr/binding-if_PASS_1.html +0 -23
- package/tests/rules/oj-html-cca-count/cca-count_FAIL_1.html +0 -119
- package/tests/rules/oj-html-cca-tagname/ccatag_FAIL_1.html +0 -7
- package/tests/rules/oj-html-cca-tagname/ccatag_PASS_1.html +0 -7
- package/tests/rules/oj-html-cca-tagname/tag_ns_FAIL_1.html +0 -8
- package/tests/rules/oj-html-cca-tagname/tag_ns_FAIL_2.html +0 -8
- package/tests/rules/oj-html-cca-tagname/tag_ns_FAIL_3.html +0 -8
- package/tests/rules/oj-html-cca-tagname/tag_ns_PASS_1.html +0 -10
- package/tests/rules/oj-html-cdn/html_cdn_FAIL_1.html +0 -18
- package/tests/rules/oj-html-cspexpr/cspexpr_FAIL_1.html +0 -14
- package/tests/rules/oj-html-cspexpr/cspexpr_FAIL_2.html +0 -10
- package/tests/rules/oj-html-cspexpr/cspexpr_PASS_1.html +0 -23
- package/tests/rules/oj-html-cspexpr/cspexpr_PASS_2.html +0 -10
- package/tests/rules/oj-html-cspexpr/cspexpr_PASS_3.html +0 -13
- package/tests/rules/oj-html-dlg-title/dlgtitle_FAIL_1.html +0 -12
- package/tests/rules/oj-html-dlg-title/dlgtitle_PASS_1.html +0 -12
- package/tests/rules/oj-html-form-noflex/noflex_FAIL_1.html +0 -10
- package/tests/rules/oj-html-invalid-doctype/doctype_invalid_FAIL_1.html +0 -20
- package/tests/rules/oj-html-invalid-doctype/doctype_invalid_FAIL_2.html +0 -13
- package/tests/rules/oj-html-invalid-doctype/doctype_invalid_FAIL_3.html +0 -16
- package/tests/rules/oj-html-invalid-doctype/doctype_invalid_FAIL_4.html +0 -13
- package/tests/rules/oj-html-invalid-doctype/doctype_invalid_PASS_1.html +0 -6
- package/tests/rules/oj-html-invalid-doctype/doctype_invalid_PASS_2.html +0 -7
- package/tests/rules/oj-html-invalid-doctype/doctype_invalid_PASS_3.html +0 -7
- package/tests/rules/oj-html-jq-databind/jq-databind_FAIL_1.html +0 -37
- package/tests/rules/oj-html-jq-databind/jq-databind_FAIL_2.html +0 -34
- package/tests/rules/oj-html-jq-databind/jq-databind_FAIL_3.html +0 -27
- package/tests/rules/oj-html-jq-databind/jq-databind_PASS_1.html +0 -30
- package/tests/rules/oj-html-ko-comment/ko-comment_FAIL_1.html +0 -47
- package/tests/rules/oj-html-ko-comment/ko-comment_FAIL_2.html +0 -36
- package/tests/rules/oj-html-ko-databind/ko-databind_FAIL_1.html +0 -24
- package/tests/rules/oj-html-ko-databind/ko-databind_FAIL_2.html +0 -36
- package/tests/rules/oj-html-ko-databind/ko-databind_FAIL_3.html +0 -29
- package/tests/rules/oj-html-label-for-prefix/for_FAIL_1.html +0 -8
- package/tests/rules/oj-html-label-for-prefix/for_PASS_1.html +0 -8
- package/tests/rules/oj-html-missing-doctype/doctype_missing_FAIL_1.html +0 -12
- package/tests/rules/oj-html-missing-doctype/doctype_missing_FAIL_2.html +0 -11
- package/tests/rules/oj-html-missing-doctype/doctype_missing_PASS_1.html +0 -14
- package/tests/rules/oj-html-missing-doctype/doctype_missing_PASS_2.html +0 -5
- package/tests/rules/oj-html-missing-doctype/doctype_missing_PASS_3.html +0 -12
- package/tests/rules/oj-html-missing-doctype/doctype_missing_PASS_5.html +0 -6
- package/tests/rules/oj-html-nonvoid-close/close_FAIL_1.html +0 -28
- package/tests/rules/oj-html-nonvoid-close/close_FAIL_2.html +0 -14
- package/tests/rules/oj-html-nonvoid-close/close_FAIL_3.html +0 -13
- package/tests/rules/oj-html-nonvoid-close/close_FAIL_5.html +0 -28
- package/tests/rules/oj-html-nonvoid-close/close_FAIL_6.html +0 -28
- package/tests/rules/oj-html-nonvoid-close/close_PASS_1.html +0 -7
- package/tests/rules/oj-html-oj-lib/oj_lib_FAIL_1.html +0 -15
- package/tests/rules/oj-html-ojattr/ojattr_PASS_1.html +0 -8
- package/tests/rules/oj-html-ojattr/ojattr_PASS_2.html +0 -10
- package/tests/rules/oj-html-ojattr/ojattr_PASS_3.html +0 -7
- package/tests/rules/oj-html-ojattr/ojattr_PASS_4.html +0 -7
- package/tests/rules/oj-html-ojattr-deprecated/ojattr-dep_FAIL1.html +0 -156
- package/tests/rules/oj-html-ojattr-enum-deprecated/enum_FAIL_1.html +0 -19
- package/tests/rules/oj-html-ojattr-enum-deprecated/enum_FAIL_2.html +0 -20
- package/tests/rules/oj-html-ojattr-enum-deprecated/enum_PASS_1.html +0 -25
- package/tests/rules/oj-html-ojattr-evt-syntax/evt-attr-syntax_FAIL_1.html +0 -6
- package/tests/rules/oj-html-ojattr-evt-syntax/evt-attr-syntax_PASS_1.html +0 -6
- package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_1.html +0 -26
- package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_2.html +0 -26
- package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_3.html +0 -8
- package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_4.html +0 -8
- package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_5.html +0 -8
- package/tests/rules/oj-html-ojattr-value/attr-value_PASS_1.html +0 -26
- package/tests/rules/oj-html-ojattr-value/attr-value_PASS_2.html +0 -8
- package/tests/rules/oj-html-ojattr-value/attr-value_PASS_3.html +0 -7
- package/tests/rules/oj-html-ojattr-value/attr-value_PASS_6.html +0 -7
- package/tests/rules/oj-html-ojattr-value/attr-value_PASS_7.html +0 -10
- package/tests/rules/oj-html-ojattr-value/attr_value_PASS_4.html +0 -7
- package/tests/rules/oj-html-ojattr-value/attr_value_PASS_5.html +0 -9
- package/tests/rules/oj-html-ojslot/ojslot_FAIL_1.html +0 -11
- package/tests/rules/oj-html-ojslot/ojslot_PASS_1.html +0 -12
- package/tests/rules/oj-html-ojstyle/style_FAIL_1.html +0 -103
- package/tests/rules/oj-html-ojstyle/style_PASS_2.html +0 -7
- package/tests/rules/oj-html-ojtag-datacmd/datacmd_FAIL_1.html +0 -10
- package/tests/rules/oj-html-ojtag-datacmd/datacmd_FAIL_2.html +0 -18
- package/tests/rules/oj-html-ojtag-datacmd/datacmd_FAIL_3.html +0 -10
- package/tests/rules/oj-html-ojtag-datacmd/datacmd_PASS_1.html +0 -28
- package/tests/rules/oj-html-ojtag-datacmd/datacmd_PASS_2.html +0 -15
- package/tests/rules/oj-html-ojtag-datactx/datactx_FAIL_1.html +0 -14
- package/tests/rules/oj-html-ojtag-datactx/datactx_PASS_1.html +0 -14
- package/tests/rules/oj-html-ojtag-globattr-noprefix/globattr-noprefix_FAIL_1.html +0 -36
- package/tests/rules/oj-html-ojtag-nonglobattr-prefix/nonglobattr-prefix_FAIL_1.html +0 -26
- package/tests/rules/oj-html-slot-name/slot_name.FAIL_1.html +0 -24
- package/tests/rules/oj-html-slot-name/slot_name.FAIL_2.html +0 -46
- package/tests/rules/oj-html-slot-name/slot_name.FAIL_3.html +0 -10
- package/tests/rules/oj-html-slot-name/slot_name.PASS_1.html +0 -24
- package/tests/rules/oj-html-slot-name/slot_name.PASS_2.html +0 -39
- package/tests/rules/oj-html-slot-name/slot_name.PASS_3.html +0 -10
- package/tests/rules/oj-html-slot-name/slot_name_PASS_4.html +0 -16
- package/tests/rules/oj-html-slot-name/slot_name_PASS_5.html +0 -11
- package/tests/rules/oj-html-slot-name/slot_name_PASS_6.html +0 -14
- package/tests/rules/oj-html-slot-name/slot_name_PASS_7.html +0 -10
- package/tests/rules/oj-html-style/style_FAIL_1.html +0 -7
- package/tests/rules/oj-html-style/style_PASS_1.html +0 -12
- package/tests/rules/oj-html-style/style_PASS_2.html +0 -7
- package/tests/rules/oj-html-style-bp-color/color-FAIL_1.html +0 -17
- package/tests/rules/oj-html-style-bp-color/color-FAIL_2.html +0 -15
- package/tests/rules/oj-html-style-bp-color/color-FAIL_3.html +0 -7
- package/tests/rules/oj-html-style-bp-color/color-PASS_1.html +0 -7
- package/tests/rules/oj-html-style-bp-font-family/fam_FAIL_1.html +0 -23
- package/tests/rules/oj-html-tag-attr-noprefix/attr-noprefix_FAIL_1.html +0 -15
- package/tests/rules/oj-html-tag-attr-noprefix/attr-noprefix_FAIL_2.html +0 -9
- package/tests/rules/oj-html-tag-attr-noprefix/attr-noprefix_PASS_1.html +0 -9
- package/tests/rules/oj-html-unsup-theme/unsup_FAIL_1.html +0 -8
- package/tests/rules/oj-html-wctag-for/for_FAIL_1.html +0 -8
- package/tests/rules/oj-html-wctag-for/for_PASS_1.html +0 -8
- package/tests/rules/oj-js-comp-attr-deprecated/attr-del_FAIL_1.js +0 -20
- package/tests/rules/oj-js-comp-attr-deprecated/attr-dep_FAIL_1.js +0 -20
- package/tests/rules/oj-js-comp-meth-deprecated/meth-del_FAIL_1.js +0 -20
- package/tests/rules/oj-js-comp-meth-deprecated/meth-dep_FAIL_1.js +0 -20
- package/tests/rules/oj-js-define-promise/def-prom_FAIL_1.js +0 -16
- package/tests/rules/oj-js-define-promise/def-prom_FAIL_2.js +0 -16
- package/tests/rules/oj-js-diagnose/es6_PASS_1.js +0 -24
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_1.js +0 -30
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_2.js +0 -23
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_3.js +0 -22
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_4.js +0 -20
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_5.js +0 -24
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_6.js +0 -30
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_7.js +0 -15
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_8.js +0 -16
- package/tests/rules/oj-js-no-ext-final/noextfinal_PASS_1.js +0 -17
- package/tests/rules/oj-js-no-ext-final/noextfinal_PASS_2.js +0 -17
- package/tests/rules/oj-js-noconsole/nocons_FAIL_1.js +0 -11
- package/tests/rules/oj-js-ojcomp-deprecated/jscomp_FAIL_1.js +0 -27
- package/tests/rules/oj-json-syntax/json_FAIL_1.json +0 -8
- package/tests/rules/oj-json-syntax/json_FAIL_2.json +0 -12
- package/tests/rules/oj-json-syntax/json_PASS_1.json +0 -25
- package/tests/rules/oj-json-syntax/json_PASS_2.json +0 -12
- package/tests/rules/oj-json-syntax/json_PASS_3.json +0 -14
- package/tests/rules/ojcompjson/attrreq_FAIL_1/component.json +0 -69
- package/tests/rules/pack-compjson/audit-pack/component-1/component-1-view.html +0 -6
- package/tests/rules/pack-compjson/audit-pack/component-1/component-1-viewModel.js +0 -56
- package/tests/rules/pack-compjson/audit-pack/component-1/component.json +0 -13
- package/tests/rules/pack-compjson/audit-pack/component-1/loader.js +0 -20
- package/tests/rules/pack-compjson/audit-pack/component-1/resources/nls/component-1-strings.js +0 -18
- package/tests/rules/pack-compjson/audit-pack/component-2/component-2-view.html +0 -5
- package/tests/rules/pack-compjson/audit-pack/component-2/component-2-viewModel.js +0 -56
- package/tests/rules/pack-compjson/audit-pack/component-2/component.json +0 -13
- package/tests/rules/pack-compjson/audit-pack/component-2/loader.js +0 -20
- package/tests/rules/pack-compjson/audit-pack/component-2/resources/nls/component-1-strings.js +0 -18
- package/tests/rules/pack-compjson/audit-pack/component.json +0 -12
- package/tests/rules/pack-compjson/audit-singleton-1/audit-singleton-1-view.html +0 -5
- package/tests/rules/pack-compjson/audit-singleton-1/audit-singleton-1-viewModel.js +0 -56
- package/tests/rules/pack-compjson/audit-singleton-1/component.json +0 -20
- package/tests/rules/pack-compjson/audit-singleton-1/loader.js +0 -20
- package/tests/rules/pack-compjson/audit-singleton-1/resources/nls/audit-singleton-1-strings.js +0 -18
- package/tests/rules/pack-compjson/audit-singleton-2/audit-singleton-2-view.html +0 -8
- package/tests/rules/pack-compjson/audit-singleton-2/audit-singleton-2-viewModel.js +0 -56
- package/tests/rules/pack-compjson/audit-singleton-2/component.json +0 -15
- package/tests/rules/pack-compjson/audit-singleton-2/loader.js +0 -20
- package/tests/rules/pack-compjson/audit-singleton-2/resources/nls/audit-singleton-2-strings.js +0 -18
- package/tests/rules/parse-html/proc_instr.html +0 -9
- package/tests/rules/spoc-dom-manip/dom-manip_FAIL_1.js +0 -113
- package/tests/rules/spoc-dom-manip/dom-manip_FAIL_2.js +0 -151
- package/tests/rules/spoc-dom-manip/dom-manip_PASS_1.js +0 -149
- package/tests/rules/spoc-dom-manip/dom-manip_PASS_2.js +0 -147
- package/tests/rules/spoc-dom-manip/dom-manip_PASS_3.js +0 -147
- package/tests/rules/spoc-dom-manip/dom-manip_PASS_4.js +0 -20
- package/tests/rules/spoc-dom-manip/dom-manip_PASS_5.js +0 -246
- package/tests/rules/tab-tests/tab-test_FAIL_1.html +0 -37
- package/tests/rules/tab-tests/tab-test_FAIL_2.html +0 -8
- package/tests/rules/webcomptests/jet-composites/oj-html-wctag-$props/prop_PASS_1.html +0 -8
- package/tests/rules/webcomptests/jet-composites/oj-html-wctag-$props/prop_PASS_2.html +0 -8
- package/tests/rules/webcomptests/jet-composites/oj-html-wctag-for/for_FAIL_1.html +0 -8
- package/tests/rules/webcomptests/jet-composites/oj-html-wctag-for/for_PASS_1.html +0 -8
- package/tests/src/JetTest.js +0 -1
- package/tests/src/server.js +0 -1
- 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>
|
package/tests/src/JetTest.js
DELETED
|
@@ -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;
|
package/tests/src/server.js
DELETED
|
@@ -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)}})})();
|