@openui5/sap.ui.core 1.122.1 → 1.123.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/.dtsgenrc +7 -1
- package/.eslintrc.json +3 -0
- package/package.json +1 -1
- package/src/jquery.sap.global.js +1 -17
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/Event.js +1 -1
- package/src/sap/base/Eventing.js +1 -1
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/future.js +3 -1
- package/src/sap/base/i18n/Formatting.js +119 -94
- package/src/sap/base/i18n/LanguageTag.js +1 -1
- package/src/sap/base/i18n/date/TimezoneUtils.js +1 -1
- package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
- package/src/sap/base/util/restricted/_castArray.js +1 -1
- package/src/sap/base/util/restricted/_compact.js +1 -1
- package/src/sap/base/util/restricted/_curry.js +1 -1
- package/src/sap/base/util/restricted/_debounce.js +1 -1
- package/src/sap/base/util/restricted/_difference.js +1 -1
- package/src/sap/base/util/restricted/_differenceBy.js +1 -1
- package/src/sap/base/util/restricted/_differenceWith.js +1 -1
- package/src/sap/base/util/restricted/_flatMap.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
- package/src/sap/base/util/restricted/_flatten.js +1 -1
- package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
- package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
- package/src/sap/base/util/restricted/_intersection.js +1 -1
- package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
- package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
- package/src/sap/base/util/restricted/_isEqual.js +1 -1
- package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
- package/src/sap/base/util/restricted/_isNil.js +1 -1
- package/src/sap/base/util/restricted/_max.js +1 -1
- package/src/sap/base/util/restricted/_merge.js +1 -1
- package/src/sap/base/util/restricted/_mergeWith.js +1 -1
- package/src/sap/base/util/restricted/_min.js +1 -1
- package/src/sap/base/util/restricted/_omit.js +1 -1
- package/src/sap/base/util/restricted/_pick.js +1 -1
- package/src/sap/base/util/restricted/_pickBy.js +1 -1
- package/src/sap/base/util/restricted/_throttle.js +1 -1
- package/src/sap/base/util/restricted/_toArray.js +1 -1
- package/src/sap/base/util/restricted/_union.js +1 -1
- package/src/sap/base/util/restricted/_unionBy.js +1 -1
- package/src/sap/base/util/restricted/_unionWith.js +1 -1
- package/src/sap/base/util/restricted/_uniq.js +1 -1
- package/src/sap/base/util/restricted/_uniqBy.js +1 -1
- package/src/sap/base/util/restricted/_uniqWith.js +1 -1
- package/src/sap/base/util/restricted/_without.js +1 -1
- package/src/sap/base/util/restricted/_xor.js +1 -1
- package/src/sap/base/util/restricted/_xorBy.js +1 -1
- package/src/sap/base/util/restricted/_xorWith.js +1 -1
- package/src/sap/base/util/restricted/_zipObject.js +1 -1
- package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +7 -4
- package/src/sap/ui/base/BindingInfo.js +22 -0
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +1 -1
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +5 -14
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- package/src/sap/ui/base/Metadata.js +15 -14
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +1 -1
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +17 -16
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- package/src/sap/ui/core/ComponentMetadata.js +1 -1
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +53 -18
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +58 -21
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/Element.js +1 -1
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +6 -2
- package/src/sap/ui/core/Fragment.js +10 -5
- package/src/sap/ui/core/HTML.js +1 -1
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +1 -1
- package/src/sap/ui/core/IndicationColorSupport.js +1 -1
- package/src/sap/ui/core/IntervalTrigger.js +1 -1
- package/src/sap/ui/core/InvisibleMessage.js +1 -1
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +1 -1
- package/src/sap/ui/core/Item.js +1 -1
- package/src/sap/ui/core/LabelEnablement.js +1 -1
- package/src/sap/ui/core/LayoutData.js +1 -1
- package/src/sap/ui/core/ListItem.js +1 -1
- package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
- package/src/sap/ui/core/Locale.js +1 -1
- package/src/sap/ui/core/LocaleData.js +37 -21
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/RenderManager.js +7 -1
- package/src/sap/ui/core/Renderer.js +4 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +2 -2
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +37 -47
- package/src/sap/ui/core/UIComponent.js +1 -1
- package/src/sap/ui/core/UIComponentMetadata.js +1 -1
- package/src/sap/ui/core/ValueStateSupport.js +1 -1
- package/src/sap/ui/core/VariantLayoutData.js +1 -1
- package/src/sap/ui/core/XMLComposite.js +1 -1
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/XMLTemplateProcessor.js +12 -0
- package/src/sap/ui/core/_IconRegistry.js +1 -0
- package/src/sap/ui/core/date/UI5Date.js +1 -1
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +2 -2
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
- package/src/sap/ui/core/dnd/DragInfo.js +1 -1
- package/src/sap/ui/core/dnd/DropInfo.js +1 -1
- package/src/sap/ui/core/format/FormatUtils.js +1 -1
- package/src/sap/ui/core/format/NumberFormat.js +28 -3
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/getCompatibilityVersion.js +6 -2
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +3 -3
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +1 -1
- package/src/sap/ui/core/message/MessageManager.js +1 -1
- package/src/sap/ui/core/message/MessageParser.js +1 -1
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +1 -1
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +1 -1
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +12 -7
- package/src/sap/ui/core/mvc/XMLView.js +1 -1
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +1 -1
- package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
- package/src/sap/ui/core/postmessage/Bus.js +1 -1
- package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
- package/src/sap/ui/core/rules/CoreHelper.support.js +2 -3
- package/src/sap/ui/core/rules/Misc.support.js +3 -12
- package/src/sap/ui/core/rules/Theming.support.js +5 -9
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
- package/src/sap/ui/core/search/SearchProvider.js +1 -1
- package/src/sap/ui/core/service/Service.js +1 -1
- package/src/sap/ui/core/service/ServiceFactory.js +1 -1
- package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
- package/src/sap/ui/core/support/Plugin.js +1 -1
- package/src/sap/ui/core/support/Support.js +1 -20
- package/src/sap/ui/core/support/plugins/ControlTree.js +1 -1
- package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +1 -1
- package/src/sap/ui/core/support/plugins/Selector.js +1 -1
- package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
- package/src/sap/ui/core/themes/base/.theming +3 -1
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.ttf +0 -0
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
- package/src/sap/ui/core/theming/Parameters.js +5 -1
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +1 -1
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/Export.js +2 -2
- package/src/sap/ui/core/util/ExportCell.js +2 -2
- package/src/sap/ui/core/util/ExportColumn.js +2 -2
- package/src/sap/ui/core/util/ExportRow.js +2 -2
- package/src/sap/ui/core/util/ExportType.js +2 -2
- package/src/sap/ui/core/util/ExportTypeCSV.js +2 -2
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/XMLPreprocessor.js +8 -13
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
- package/src/sap/ui/core/webc/WebComponent.js +1 -1
- package/src/sap/ui/core/webc/WebComponentMetadata.js +1 -1
- package/src/sap/ui/core/ws/ReadyState.js +1 -1
- package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
- package/src/sap/ui/core/ws/WebSocket.js +1 -1
- package/src/sap/ui/debug/ControlTree.js +1 -1
- package/src/sap/ui/debug/DebugEnv.js +1 -1
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/dom/jquery/Aria.js +19 -0
- package/src/sap/ui/events/jquery/EventExtension.js +4 -3
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +4 -4
- package/src/sap/ui/model/DataState.js +2 -2
- package/src/sap/ui/model/ManagedObjectBindingSupport.js +22 -33
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +1 -1
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +1 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalVersionInfo.js +1 -1
- package/src/sap/ui/model/controlhelper/TreeBindingProxy.js +7 -1
- package/src/sap/ui/model/json/JSONModel.js +1 -1
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/AnnotationHelper.js +11 -8
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataExpressionAddons.js +21 -0
- package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
- package/src/sap/ui/model/odata/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/type/Boolean.js +1 -1
- package/src/sap/ui/model/odata/type/Byte.js +1 -1
- package/src/sap/ui/model/odata/type/Currency.js +1 -1
- package/src/sap/ui/model/odata/type/Date.js +1 -1
- package/src/sap/ui/model/odata/type/DateTime.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +1 -1
- package/src/sap/ui/model/odata/type/Decimal.js +1 -1
- package/src/sap/ui/model/odata/type/Double.js +1 -1
- package/src/sap/ui/model/odata/type/Guid.js +1 -1
- package/src/sap/ui/model/odata/type/Int.js +1 -1
- package/src/sap/ui/model/odata/type/Int16.js +1 -1
- package/src/sap/ui/model/odata/type/Int32.js +1 -1
- package/src/sap/ui/model/odata/type/Int64.js +1 -1
- package/src/sap/ui/model/odata/type/ODataType.js +1 -1
- package/src/sap/ui/model/odata/type/Raw.js +1 -1
- package/src/sap/ui/model/odata/type/SByte.js +1 -1
- package/src/sap/ui/model/odata/type/Single.js +1 -1
- package/src/sap/ui/model/odata/type/Stream.js +1 -1
- package/src/sap/ui/model/odata/type/String.js +1 -1
- package/src/sap/ui/model/odata/type/Time.js +1 -1
- package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
- package/src/sap/ui/model/odata/type/Unit.js +1 -1
- package/src/sap/ui/model/odata/v2/Context.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataModel.js +17 -48
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/AnnotationHelper.js +2 -0
- package/src/sap/ui/model/odata/v4/Context.js +66 -22
- package/src/sap/ui/model/odata/v4/ODataBinding.js +10 -11
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +207 -180
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +75 -52
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +9 -11
- package/src/sap/ui/model/odata/v4/ODataModel.js +34 -35
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +9 -9
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +20 -8
- package/src/sap/ui/model/odata/v4/SubmitMode.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +126 -46
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +56 -11
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +21 -34
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +16 -27
- package/src/sap/ui/model/odata/v4/lib/_MetadataConverter.js +2 -6
- package/src/sap/ui/model/odata/v4/lib/_MinMaxHelper.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_Parser.js +6 -5
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +49 -38
- package/src/sap/ui/model/odata/v4/lib/_TreeState.js +75 -24
- package/src/sap/ui/model/odata/v4/lib/_V2MetadataConverter.js +3 -4
- package/src/sap/ui/model/odata/v4/lib/_V2Requestor.js +4 -12
- package/src/sap/ui/model/odata/v4/lib/_V4MetadataConverter.js +1 -1
- package/src/sap/ui/model/resource/ResourceModel.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +48 -4
- package/src/sap/ui/model/type/Date.js +1 -1
- package/src/sap/ui/model/type/DateInterval.js +1 -1
- package/src/sap/ui/model/type/DateTime.js +1 -1
- package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
- package/src/sap/ui/model/type/FileSize.js +1 -1
- package/src/sap/ui/model/type/Float.js +1 -1
- package/src/sap/ui/model/type/Integer.js +1 -1
- package/src/sap/ui/model/type/String.js +1 -1
- package/src/sap/ui/model/type/Time.js +1 -1
- package/src/sap/ui/model/type/TimeInterval.js +1 -1
- package/src/sap/ui/model/type/Unit.js +5 -4
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +4 -1
- package/src/sap/ui/test/ModuleTracking.js +46 -0
- package/src/sap/ui/test/OpaBuilder.js +19 -19
- package/src/sap/ui/test/autowaiter/_jsAnimationWaiter.js +39 -6
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/sap/ui/util/_enforceNoReturnValue.js +3 -1
- package/src/ui5loader-autoconfig.js +22 -16
- package/src/ui5loader.js +38 -1
- package/test/sap/ui/core/demokit/docuindex.json +17 -6
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicMessages/Component.js +1 -1
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicMessages/Controller.controller.js +30 -47
- package/test/sap/ui/core/demokit/sample/Messaging/BasicMessages/MessagePopover.fragment.xml +13 -0
- package/test/sap/ui/core/demokit/sample/Messaging/BasicMessages/View.view.xml +135 -0
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicMessages/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicODataMessages/Component.js +1 -1
- package/test/sap/ui/core/demokit/sample/Messaging/BasicODataMessages/Controller.controller.js +58 -0
- package/test/sap/ui/core/demokit/sample/Messaging/BasicODataMessages/MessagePopover.fragment.xml +13 -0
- package/test/sap/ui/core/demokit/sample/Messaging/BasicODataMessages/View.view.xml +57 -0
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicODataMessages/localService/mockserver.js +11 -13
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicODataMessages/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/Component.js +1 -1
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/package.json +1 -1
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/ui5.yaml +11 -0
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/Component.js +2 -2
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/controller/App.controller.js +12 -0
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/controller/BaseController.js +41 -0
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/controller/Employee.controller.js +54 -0
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/controller/NotFound.controller.js +9 -11
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/fragment/MessagePopover.fragment.xml +13 -0
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/i18n/i18n.properties +9 -0
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/index.html +20 -0
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/index.js +16 -0
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/localService/mockserver.js +27 -27
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/manifest.json +7 -4
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/view/App.view.xml +1 -1
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/view/Employee.view.xml +6 -6
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/view/NotFound.view.xml +13 -0
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/Types.controller.js +1 -1
- package/test/sap/ui/core/demokit/sample/common/Helper.js +8 -9
- package/test/sap/ui/core/demokit/sample/common/SandboxModelHelper.js +1 -1
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithOPA5/GherkinTestRunner.html +2 -2
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithPageObjects/GherkinTestRunner.html +2 -2
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithQUnit/GherkinTestRunner.html +2 -2
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithQUnit/Steps.js +4 -5
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithUIComponent/GherkinTestRunner.html +2 -2
- package/test/sap/ui/core/demokit/sample/matcher/BindingPath/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/Descendant/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/I18NText/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/LabelFor/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v2/AutoExpand/AutoExpand.view.xml +1 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/ConsumeV2Service/Main.controller.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/Draft/ObjectPage.controller.js +2 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/FlatDataAggregation/FlatDataAggregation.controller.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/FlexibleColumnLayout/Main.controller.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBinding/MIT.ListBinding.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBinding/Main.controller.js +5 -7
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBinding/Main.view.xml +2 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBindingTemplate/MIT.ListBindingTemplate.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Main.controller.js +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Main.view.xml +6 -5
- package/test/sap/ui/core/demokit/sample/odata/v4/MusicArtists/ObjectPage.controller.js +5 -7
- package/test/sap/ui/core/demokit/sample/odata/v4/Products/MIT.Products.html +2 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/Products/pages/Main.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/SandboxModel.js +27 -9
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V2/MIT.SalesOrderTP100.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V4/MIT.SalesOrderTP100.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/MIT.Basics.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/MIT.SalesOrderAdditionalTargets.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/MIT.SalesOrderCreate.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/MIT.SalesOrderCreateMultiple.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/MIT.SalesOrderCreateRelative.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/MIT.SalesOrderMessageHandling.html +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Main.controller.js +5 -5
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Main.view.xml +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/pages/Main.js +7 -9
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/MessageHandling.js +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersRTATest/MIT.RTA.html +2 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersTemplate/MIT.SalesOrdersTemplate.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/Sticky/MIT.Sticky.html +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/Sticky/Main.controller.js +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/Sticky/pages/Main.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/12/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/13/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/14/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/15/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/12/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/13/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/14/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/15/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/16/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/17/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/webapp/localService/mockserver.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/webapp/localService/mockserver.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/webapp/controller/App.controller.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/webapp/localService/mockserver.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/webapp/controller/App.controller.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/webapp/localService/mockserver.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/webapp/controller/App.controller.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/webapp/localService/mockserver.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/webapp/controller/App.controller.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/webapp/localService/mockserver.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/ui5.yaml +1 -1
- package/test/sap/ui/core/internal/samples/odata/v2/Products/Main.view.xml +1 -1
- package/test/sap/ui/core/qunit/CustomStyleClassSupport.qunit.js +12 -3
- package/test/sap/ui/core/qunit/CustomThemeFallback.qunit.js +33 -38
- package/test/sap/ui/core/qunit/CustomThemeFallback_unavoidablySync.qunit.js +119 -0
- package/test/sap/ui/core/qunit/EventBus.qunit.js +15 -0
- package/test/sap/ui/core/qunit/Lib_terminologies.qunit.js +109 -0
- package/test/sap/ui/core/qunit/StashedControlSupport_unavoidablySync.qunit.js +19 -0
- package/test/sap/ui/core/qunit/StashedControlSupport_unavoidablySync.view.xml +27 -0
- package/test/sap/ui/core/qunit/app/ThemeClassParameters.qunit.js +105 -140
- package/test/sap/ui/core/qunit/app/testsuite.app.qunit.js +75 -2
- package/test/sap/ui/core/qunit/base/Config.qunit.js +6 -2
- package/test/sap/ui/core/qunit/base/Config_bootstrap.qunit.html +4 -1
- package/test/sap/ui/core/qunit/base/Config_bootstrap.qunit.js +6 -2
- package/test/sap/ui/core/qunit/base/Config_cascade.qunit.js +6 -3
- package/test/sap/ui/core/qunit/base/Config_global.qunit.html +5 -2
- package/test/sap/ui/core/qunit/base/Config_meta.qunit.html +5 -2
- package/test/sap/ui/core/qunit/base/Config_noUrl.qunit.html +5 -2
- package/test/sap/ui/core/qunit/base/Config_noUrl.qunit.js +5 -1
- package/test/sap/ui/core/qunit/base/Config_url.qunit.html +5 -2
- package/test/sap/ui/core/qunit/bootstrap/BootstrapWithNoJQuery-without-jquery-ui-position.qunit.html +2 -1
- package/test/sap/ui/core/qunit/bootstrap/BootstrapWithNoJQuery.qunit.html +2 -1
- package/test/sap/ui/core/qunit/bootstrap/DebugMode.beforeBootstrap.qunit.js +7 -0
- package/test/sap/ui/core/qunit/bootstrap/DebugModeAsync.qunit.html +10 -4
- package/test/sap/ui/core/qunit/bootstrap/testsuite.bootstrap.qunit.js +7 -0
- package/test/sap/ui/core/qunit/component/Component_keepAlive.qunit.js +9 -0
- package/test/sap/ui/core/qunit/gherkin/fixture/testHarnessAmbiguous.html +2 -2
- package/test/sap/ui/core/qunit/gherkin/fixture/testHarnessDuplicate.html +2 -2
- package/test/sap/ui/core/qunit/gherkin/fixture/testHarnessFailing.html +2 -2
- package/test/sap/ui/core/qunit/gherkin/opa5TestHarness.qunit.html +2 -2
- package/test/sap/ui/core/qunit/gherkin/qUnitTestHarness.qunit.html +2 -2
- package/test/sap/ui/core/qunit/gherkin/testHarnessTests.js +1 -1
- package/test/sap/ui/core/qunit/i18n/GenericLocaleData.qunit.js +1 -1
- package/test/sap/ui/core/qunit/i18n/LocaleData.qunit.js +15 -15
- package/test/sap/ui/core/qunit/i18n/testsuite.i18n.qunit.js +7 -1
- package/test/sap/ui/core/qunit/loader/config.qunit.js +14 -6
- package/test/sap/ui/core/qunit/model/PropertyBinding.qunit.js +288 -0
- package/test/sap/ui/core/qunit/model/controlhelper/TreeBindingProxy.qunit.js +12 -0
- package/test/sap/ui/core/qunit/mvc/Controller.qunit.js +7 -2
- package/test/sap/ui/core/qunit/odata/v2/ODataModel.integration.qunit.js +223 -40
- package/test/sap/ui/core/qunit/odata/v2/ODataPropertyBinding.qunit.js +78 -7
- package/test/sap/ui/core/qunit/odata/v4/Context.qunit.js +142 -17
- package/test/sap/ui/core/qunit/odata/v4/ODataContextBinding.qunit.js +93 -87
- package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +116 -86
- package/test/sap/ui/core/qunit/odata/v4/ODataMetaModel.qunit.js +3 -3
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +1828 -548
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.realOData.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/v4/ODataParentBinding.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/v4/ODataPropertyBinding.qunit.js +26 -23
- package/test/sap/ui/core/qunit/odata/v4/data/metadata_special_cases.xml +9 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationCache.qunit.js +251 -113
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationHelper.qunit.js +50 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_Cache.qunit.js +3 -3
- package/test/sap/ui/core/qunit/odata/v4/lib/_Helper.qunit.js +31 -11
- package/test/sap/ui/core/qunit/odata/v4/lib/_Parser.qunit.js +8 -2
- package/test/sap/ui/core/qunit/odata/v4/lib/_Requestor.qunit.js +46 -31
- package/test/sap/ui/core/qunit/odata/v4/lib/_TreeState.qunit.js +144 -45
- package/test/sap/ui/core/qunit/odata/v4/lib/_V2Requestor.qunit.js +5 -5
- package/test/sap/ui/core/qunit/odata/v4/lib/data/v2/QM_INSP_PLAN_SRV/metadata.xml +3 -3
- package/test/sap/ui/core/qunit/odata/v4/lib/data/v2/QM_INSP_PLAN_SRV/metadata_only.xml +3 -3
- package/test/sap/ui/core/qunit/opa/autowaiter/_jsAnimationWaiter.js +82 -0
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/simple/i18n/i18n_fr.properties +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/simple/i18n/terminologies/oil/i18n_fr.properties +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/simple/library-preload.js +2 -2
- package/test/sap/ui/core/qunit/testdata/uilib-custom-theme-fallback/themes/sap_hcb/library.css +3 -0
- package/test/sap/ui/core/qunit/testsuite.core.framework.qunit.js +19 -1
- package/test/sap/ui/core/qunit/testsuites/testsuite.theming.qunit.js +14 -0
- package/test/sap/ui/core/qunit/types/NumberFormat.qunit.js +37 -20
- package/test/sap/ui/core/qunit/types/NumberFormatCurrencies.qunit.js +21 -0
- package/test/sap/ui/core/qunit/types/Types.qunit.js +126 -15
- package/test/sap/ui/core/qunit/ui5classes/ManagedObject.qunit.js +58 -4
- package/test/sap/ui/core/relnotes/changes-1.122.json +0 -22
- package/test/sap/ui/core/relnotes/changes-1.123.json +47 -0
- package/test/sap/ui/core/samples/databinding/DataBindingDeclarativeSyntax.js +55 -56
- package/test/sap/ui/core/samples/databinding/DatabindingDeclarativeSyntax.html +4 -4
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/firstItem-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/initial.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/lastItem-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/leftDownBtn-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/myButtonSample-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/rightDownBtn-contextMenu.ref.lnk +1 -1
- package/test/testsuite/js/testfwk.js +47 -64
- package/test/sap/ui/core/demokit/sample/MessageManager/BasicMessages/MessagePopover.fragment.xml +0 -13
- package/test/sap/ui/core/demokit/sample/MessageManager/BasicMessages/View.view.xml +0 -136
- package/test/sap/ui/core/demokit/sample/MessageManager/BasicODataMessages/Controller.controller.js +0 -74
- package/test/sap/ui/core/demokit/sample/MessageManager/BasicODataMessages/MessagePopover.fragment.xml +0 -13
- package/test/sap/ui/core/demokit/sample/MessageManager/BasicODataMessages/View.view.xml +0 -58
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/ui5.yaml +0 -11
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/controller/App.controller.js +0 -14
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/controller/BaseController.js +0 -55
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/controller/Employee.controller.js +0 -56
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/fragment/MessagePopover.fragment.xml +0 -13
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/i18n/i18n.properties +0 -5
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/index.html +0 -42
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/view/NotFound.view.xml +0 -11
- package/test/sap/ui/core/qunit/app/beforeBootstrap.js +0 -19
- package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.html +0 -24
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicODataMessages/localService/metadata.xml +0 -0
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicODataMessages/localService/mockdata/Employees.json +0 -0
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicODataMessages/localService/response/ODataErrorResponse.json +0 -0
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/localService/metadata.xml +0 -0
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/localService/mockdata/Employees.json +0 -0
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/localService/mockdata/Employees_3.json +0 -0
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/localService/response/ODataErrorResponseTemplate.json +0 -0
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/localService/response/SAP-Message-Header.json +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/*global QUnit */
|
|
2
2
|
sap.ui.define([
|
|
3
3
|
"sap/ui/core/Theming",
|
|
4
|
-
"sap/ui/core/theming/Parameters"
|
|
5
|
-
|
|
6
|
-
], function (Theming, Parameters, jQuery) {
|
|
4
|
+
"sap/ui/core/theming/Parameters"
|
|
5
|
+
], function (Theming, Parameters) {
|
|
7
6
|
"use strict";
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -28,8 +27,8 @@ sap.ui.define([
|
|
|
28
27
|
*/
|
|
29
28
|
function unifyHexNotation(input) {
|
|
30
29
|
if (input.length === 4) {
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
const colorShortNotationRegexp = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
|
|
31
|
+
const sResult = colorShortNotationRegexp.exec(input);
|
|
33
32
|
if (sResult) {
|
|
34
33
|
return "#" + sResult[1] + sResult[1] + sResult[2] + sResult[2] + sResult[3] + sResult[3];
|
|
35
34
|
}
|
|
@@ -46,167 +45,133 @@ sap.ui.define([
|
|
|
46
45
|
|
|
47
46
|
sHex = unifyHexNotation(sHex);
|
|
48
47
|
|
|
49
|
-
|
|
48
|
+
const sResult = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(sHex);
|
|
50
49
|
|
|
51
50
|
return (sResult ? "rgb(" + parseInt(sResult[1], 16) + ", " + parseInt(sResult[2], 16) + ", " + parseInt(sResult[3], 16) + ")" : sHex);
|
|
52
51
|
}
|
|
53
52
|
|
|
53
|
+
function canonicalize(value, cssProperty) {
|
|
54
|
+
if (cssProperty === "font-size") {
|
|
55
|
+
return fontSizeToPx(value);
|
|
56
|
+
}
|
|
57
|
+
return hexToRgb(value);
|
|
58
|
+
}
|
|
59
|
+
|
|
54
60
|
function normalizeValue(sCssPropertyValue) {
|
|
55
61
|
return sCssPropertyValue ? sCssPropertyValue.replace(/\s/g, "").replace(/\"/g, "\'") : sCssPropertyValue;
|
|
56
62
|
}
|
|
57
63
|
|
|
58
64
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* @param {string}
|
|
62
|
-
* @
|
|
63
|
-
* @param {string} sExpectedLessParameter
|
|
65
|
+
* Get a theme parameter by its name.
|
|
66
|
+
*
|
|
67
|
+
* @param {string} name Name of the parameter (without the leading "@" of the less parameter name)
|
|
68
|
+
* @returns {Promise<string|undefined>} Value of the theme parameter
|
|
64
69
|
*/
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
// Assert
|
|
74
|
-
var sThemeParameterValue = Parameters.get(sExpectedLessParameter);
|
|
75
|
-
if (sCSSProperty === "font-size") {
|
|
76
|
-
sThemeParameterValue = fontSizeToPx(sThemeParameterValue);
|
|
77
|
-
} else {
|
|
78
|
-
if (sCSSProperty === "border-color") {
|
|
79
|
-
// fix: firefox does not support reading shorthand CSS properties, so use one of the border properties instead
|
|
80
|
-
sCSSProperty = "borderTopColor";
|
|
70
|
+
function getThemeParameter(name) {
|
|
71
|
+
return new Promise((resolve) => {
|
|
72
|
+
const value = Parameters.get({
|
|
73
|
+
name: name,
|
|
74
|
+
callback: resolve
|
|
75
|
+
});
|
|
76
|
+
if ( value !== undefined ) {
|
|
77
|
+
resolve(value);
|
|
81
78
|
}
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
assert.ok(!!$domElement.css(sCSSProperty), "The class \"" + sClassName + "\" has a non-empty value for CSS property \"" + sCSSProperty + "\" ");
|
|
86
|
-
assert.strictEqual(normalizeValue($domElement.css(sCSSProperty)), normalizeValue(sThemeParameterValue), "The class \"" + sClassName + "\" set CSS property \"" + sCSSProperty + "\" to \"@" + sExpectedLessParameter
|
|
87
|
-
+ "\" (" + Parameters.get(sExpectedLessParameter) + ") - normalized results: " + normalizeValue($domElement.css(sCSSProperty)) + " vs " + normalizeValue(sThemeParameterValue));
|
|
79
|
+
});
|
|
88
80
|
}
|
|
89
81
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
82
|
+
/**
|
|
83
|
+
* Creates a QUnit.module with one QUnit.test for each given scenario.
|
|
84
|
+
* Each test applies the given CSS class and compares the CSS property value with the value of the theme parameter.
|
|
85
|
+
* @param {string} caption Common topic of the scenarios
|
|
86
|
+
* @param {Array<Array<string>>} scenarios Scenarios to test
|
|
87
|
+
* @param {string} scenarios[].0 CSS class to apply
|
|
88
|
+
* @param {string} scenarios[].1 Style property to check
|
|
89
|
+
* @param {string} scenarios[].2 Theme parameter defining the expected value
|
|
90
|
+
*/
|
|
91
|
+
function makeModule(caption, scenarios) {
|
|
92
|
+
|
|
93
|
+
QUnit.module(`Theme-Dependent CSS Classes for "${Theming.getTheme()}" (${caption})`);
|
|
94
|
+
|
|
95
|
+
scenarios.forEach(([sClassName, sCSSProperty, sThemeParameter]) => {
|
|
96
|
+
QUnit.test(`Should set the theme base class "${sClassName}" correctly"`, async function(assert) {
|
|
97
|
+
const expectedValue = await getThemeParameter(sThemeParameter);
|
|
98
|
+
const normalizedExpectedValue = normalizeValue(canonicalize(expectedValue, sCSSProperty));
|
|
99
|
+
|
|
100
|
+
// Arrange
|
|
101
|
+
const domElement = document.createElement("div");
|
|
102
|
+
document.getElementById("qunit-fixture").appendChild(domElement);
|
|
103
|
+
|
|
104
|
+
// Act
|
|
105
|
+
domElement.className = sClassName;
|
|
106
|
+
|
|
107
|
+
// Assert
|
|
108
|
+
const actualValue = window.getComputedStyle(domElement)[sCSSProperty];
|
|
109
|
+
const normalizedActualValue = normalizeValue(actualValue);
|
|
110
|
+
assert.ok(actualValue,
|
|
111
|
+
`The class "${sClassName}" should result in a non-empty value for CSS property "${sCSSProperty}"`);
|
|
112
|
+
assert.strictEqual(normalizedActualValue, normalizedExpectedValue,
|
|
113
|
+
`The class "${sClassName}" should set the CSS property "${sCSSProperty}" to "@${sThemeParameter}"`
|
|
114
|
+
+ ` (= ${expectedValue}) - normalized results: ${normalizedActualValue} vs ${normalizedExpectedValue}`);
|
|
115
|
+
|
|
116
|
+
// cleanup
|
|
117
|
+
domElement.remove();
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
}
|
|
98
121
|
|
|
99
122
|
/* font */
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
QUnit.test("Should set the theme base class \"sapThemeFontFamily\" correctly", function (assert) {
|
|
107
|
-
cssClassTestCase.call(this, assert, "sapThemeFontFamily", "font-family", "sapUiFontFamily");
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
QUnit.test("Should set the theme base class \"sapThemeFontSize\" correctly", function (assert) {
|
|
111
|
-
cssClassTestCase.call(this, assert, "sapThemeFontSize", "font-size", "sapUiFontSize");
|
|
112
|
-
});
|
|
123
|
+
makeModule("font", [
|
|
124
|
+
["sapThemeFont", "font-family", "sapUiFontFamily"],
|
|
125
|
+
["sapThemeFont", "font-size", "sapUiFontSize"],
|
|
126
|
+
["sapThemeFontFamily", "font-family", "sapUiFontFamily"],
|
|
127
|
+
["sapThemeFontSize", "font-size", "sapUiFontSize"]
|
|
128
|
+
]);
|
|
113
129
|
|
|
114
130
|
/* text color */
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
QUnit.test("Should set the theme base class \"sapThemeText-asBackgroundColor\" correctly", function (assert) {
|
|
124
|
-
cssClassTestCase.call(this, assert, "sapThemeText-asBackgroundColor", "background-color", "sapUiBaseText");
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
QUnit.test("Should set the theme base class \"sapThemeText-asBorderColor\" correctly", function (assert) {
|
|
128
|
-
cssClassTestCase.call(this, assert, "sapThemeText-asBorderColor", "border-color", "sapUiBaseText");
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
QUnit.test("Should set the theme base class \"sapThemeText-asOutlineColor\" correctly", function (assert) {
|
|
132
|
-
cssClassTestCase.call(this, assert, "sapThemeText-asOutlineColor", "outline-color", "sapUiBaseText");
|
|
133
|
-
});
|
|
131
|
+
makeModule("text color", [
|
|
132
|
+
["sapThemeText", "color", "sapUiBaseText"],
|
|
133
|
+
["sapThemeText-asColor", "color", "sapUiBaseText"],
|
|
134
|
+
["sapThemeText-asBackgroundColor", "background-color", "sapUiBaseText"],
|
|
135
|
+
["sapThemeText-asBorderColor", "border-color", "sapUiBaseText"],
|
|
136
|
+
["sapThemeText-asOutlineColor", "outline-color", "sapUiBaseText"]
|
|
137
|
+
]);
|
|
134
138
|
|
|
135
139
|
/* text color inverted */
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
QUnit.test("Should set the theme base class \"sapThemeTextInverted-asColor\" correctly", function (assert) {
|
|
141
|
-
cssClassTestCase.call(this, assert, "sapThemeTextInverted-asColor", "color", "sapUiContentContrastTextColor");
|
|
142
|
-
});
|
|
140
|
+
makeModule("ext color inverted", [
|
|
141
|
+
["sapThemeTextInverted", "color", "sapUiContentContrastTextColor"],
|
|
142
|
+
["sapThemeTextInverted-asColor", "color", "sapUiContentContrastTextColor"]
|
|
143
|
+
]);
|
|
143
144
|
|
|
144
145
|
/* background color */
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
QUnit.test("Should set the theme base class \"sapThemeBaseBG-asBackgroundColor\" correctly", function (assert) {
|
|
154
|
-
cssClassTestCase.call(this, assert, "sapThemeBaseBG-asBackgroundColor", "background-color", "sapUiBaseBG");
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
QUnit.test("Should set the theme base class \"sapThemeBaseBG-asBorderColor\" correctly", function (assert) {
|
|
158
|
-
cssClassTestCase.call(this, assert, "sapThemeBaseBG-asBorderColor", "border-color", "sapUiBaseBG");
|
|
159
|
-
});
|
|
146
|
+
makeModule("background color", [
|
|
147
|
+
["sapThemeBaseBG", "background-color", "sapUiBaseBG"],
|
|
148
|
+
["sapThemeBaseBG-asColor", "color", "sapUiBaseBG"],
|
|
149
|
+
["sapThemeBaseBG-asBackgroundColor", "background-color", "sapUiBaseBG"],
|
|
150
|
+
["sapThemeBaseBG-asBorderColor", "border-color", "sapUiBaseBG"]
|
|
151
|
+
]);
|
|
160
152
|
|
|
161
153
|
/* brand color */
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
QUnit.test("Should set the theme base class \"sapThemeBrand-asBackgroundColor\" correctly", function (assert) {
|
|
171
|
-
cssClassTestCase.call(this, assert, "sapThemeBrand-asBackgroundColor", "background-color", "sapUiBrand");
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
QUnit.test("Should set the theme base class \"sapThemeBrand-asBorderColor\" correctly", function (assert) {
|
|
175
|
-
cssClassTestCase.call(this, assert, "sapThemeBrand-asBorderColor", "border-color", "sapUiBrand");
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
QUnit.test("Should set the theme base class \"sapThemeBrand-asOutlineColor\" correctly", function (assert) {
|
|
179
|
-
cssClassTestCase.call(this, assert, "sapThemeBrand-asOutlineColor", "outline-color", "sapUiBrand");
|
|
180
|
-
});
|
|
154
|
+
makeModule("brand color", [
|
|
155
|
+
["sapThemeBrand", "color", "sapUiBrand"],
|
|
156
|
+
["sapThemeBrand-asColor", "color", "sapUiBrand"],
|
|
157
|
+
["sapThemeBrand-asBackgroundColor", "background-color", "sapUiBrand"],
|
|
158
|
+
["sapThemeBrand-asBorderColor", "border-color", "sapUiBrand"],
|
|
159
|
+
["sapThemeBrand-asOutlineColor", "outline-color", "sapUiBrand"]
|
|
160
|
+
]);
|
|
181
161
|
|
|
182
162
|
/* highlight color */
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
QUnit.test("Should set the theme base class \"sapThemeHighlight-asBackgroundColor\" correctly", function (assert) {
|
|
192
|
-
cssClassTestCase.call(this, assert, "sapThemeHighlight-asBackgroundColor", "background-color", "sapUiHighlight");
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
QUnit.test("Should set the theme base class \"sapThemeHighlight-asBorderColor\" correctly", function (assert) {
|
|
196
|
-
cssClassTestCase.call(this, assert, "sapThemeHighlight-asBorderColor", "border-color", "sapUiHighlight");
|
|
197
|
-
});
|
|
198
|
-
|
|
199
|
-
QUnit.test("Should set the theme base class \"sapThemeHighlight-asOutlineColor\" correctly", function (assert) {
|
|
200
|
-
cssClassTestCase.call(this, assert, "sapThemeHighlight-asOutlineColor", "outline-color", "sapUiHighlight");
|
|
201
|
-
});
|
|
163
|
+
makeModule("highlight color", [
|
|
164
|
+
["sapThemeHighlight", "color", "sapUiHighlight"],
|
|
165
|
+
["sapThemeHighlight-asColor", "color", "sapUiHighlight"],
|
|
166
|
+
["sapThemeHighlight-asBackgroundColor", "background-color", "sapUiHighlight"],
|
|
167
|
+
["sapThemeHighlight-asBorderColor", "border-color", "sapUiHighlight"],
|
|
168
|
+
["sapThemeHighlight-asOutlineColor", "outline-color", "sapUiHighlight"]
|
|
169
|
+
]);
|
|
202
170
|
|
|
203
171
|
/* border color */
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
QUnit.test("Should set the theme base class \"sapThemeForegroundBorderColor-asBorderColor\" correctly", function (assert) {
|
|
209
|
-
cssClassTestCase.call(this, assert, "sapThemeForegroundBorderColor-asBorderColor", "border-color", "sapUiContentForegroundBorderColor");
|
|
210
|
-
});
|
|
172
|
+
makeModule("border color", [
|
|
173
|
+
["sapThemeForegroundBorderColor", "border-color", "sapUiContentForegroundBorderColor"],
|
|
174
|
+
["sapThemeForegroundBorderColor-asBorderColor", "border-color", "sapUiContentForegroundBorderColor"]
|
|
175
|
+
]);
|
|
211
176
|
|
|
212
177
|
});
|
|
@@ -8,8 +8,7 @@ sap.ui.define(function () {
|
|
|
8
8
|
resourceroots: {
|
|
9
9
|
"test": "test-resources/sap/ui/core/qunit/app/fixture/"
|
|
10
10
|
}
|
|
11
|
-
}
|
|
12
|
-
beforeBootstrap: "./beforeBootstrap"
|
|
11
|
+
}
|
|
13
12
|
},
|
|
14
13
|
tests: {
|
|
15
14
|
MessageListBinding: {
|
|
@@ -40,6 +39,9 @@ sap.ui.define(function () {
|
|
|
40
39
|
},
|
|
41
40
|
module: "./ThemeClassParameters.qunit"
|
|
42
41
|
},
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated As of version 1.48, the sap_hcb theme has been deprecated.
|
|
44
|
+
*/
|
|
43
45
|
"ThemeClassParameters(sap_hcb)": {
|
|
44
46
|
title: "Tests for sap/ui/core/theming/Parameters (sap_hcb): Theme-Dependent CSS Classes",
|
|
45
47
|
ui5: {
|
|
@@ -48,6 +50,9 @@ sap.ui.define(function () {
|
|
|
48
50
|
},
|
|
49
51
|
module: "./ThemeClassParameters.qunit"
|
|
50
52
|
},
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated As of version 1.40, the sap_bluecrystal theme has been deprecated.
|
|
55
|
+
*/
|
|
51
56
|
"ThemeClassParameters(sap_bluecrystal)": {
|
|
52
57
|
title: "Tests for sap/ui/core/theming/Parameters (sap_bluecrystal): Theme-Dependent CSS Classes",
|
|
53
58
|
ui5: {
|
|
@@ -56,6 +61,9 @@ sap.ui.define(function () {
|
|
|
56
61
|
},
|
|
57
62
|
module: "./ThemeClassParameters.qunit"
|
|
58
63
|
},
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated As of version 1.120.2, the sap_belize theme has been deprecated.
|
|
66
|
+
*/
|
|
59
67
|
"ThemeClassParameters(sap_belize)": {
|
|
60
68
|
title: "Tests for sap/ui/core/theming/Parameters (sap_belize): Theme-Dependent CSS Classes",
|
|
61
69
|
ui5: {
|
|
@@ -64,6 +72,9 @@ sap.ui.define(function () {
|
|
|
64
72
|
},
|
|
65
73
|
module: "./ThemeClassParameters.qunit"
|
|
66
74
|
},
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated As of version 1.120.2, the sap_belize theme has been deprecated.
|
|
77
|
+
*/
|
|
67
78
|
"ThemeClassParameters(sap_belize_plus)": {
|
|
68
79
|
title: "Tests for sap/ui/core/theming/Parameters (sap_belize_plus): Theme-Dependent CSS Classes",
|
|
69
80
|
ui5: {
|
|
@@ -72,6 +83,9 @@ sap.ui.define(function () {
|
|
|
72
83
|
},
|
|
73
84
|
module: "./ThemeClassParameters.qunit"
|
|
74
85
|
},
|
|
86
|
+
/**
|
|
87
|
+
* @deprecated As of version 1.120.2, the sap_belize theme has been deprecated.
|
|
88
|
+
*/
|
|
75
89
|
"ThemeClassParameters(sap_belize_hcb)": {
|
|
76
90
|
title: "Tests for sap/ui/core/theming/Parameters (sap_belize_hcb): Theme-Dependent CSS Classes",
|
|
77
91
|
ui5: {
|
|
@@ -80,6 +94,9 @@ sap.ui.define(function () {
|
|
|
80
94
|
},
|
|
81
95
|
module: "./ThemeClassParameters.qunit"
|
|
82
96
|
},
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated As of version 1.120.2, the sap_belize theme has been deprecated.
|
|
99
|
+
*/
|
|
83
100
|
"ThemeClassParameters(sap_belize_hcw)": {
|
|
84
101
|
title: "Tests for sap/ui/core/theming/Parameters (sap_belize_hcw): Theme-Dependent CSS Classes",
|
|
85
102
|
ui5: {
|
|
@@ -95,6 +112,62 @@ sap.ui.define(function () {
|
|
|
95
112
|
"xx-waitForTheme": "init"
|
|
96
113
|
},
|
|
97
114
|
module: "./ThemeClassParameters.qunit"
|
|
115
|
+
},
|
|
116
|
+
"ThemeClassParameters(sap_fiori_3_dark)": {
|
|
117
|
+
title: "Tests for sap/ui/core/theming/Parameters (sap_fiori_3_dark): Theme-Dependent CSS Classes",
|
|
118
|
+
ui5: {
|
|
119
|
+
theme: "sap_fiori_3_dark",
|
|
120
|
+
"xx-waitForTheme": "init"
|
|
121
|
+
},
|
|
122
|
+
module: "./ThemeClassParameters.qunit"
|
|
123
|
+
},
|
|
124
|
+
"ThemeClassParameters(sap_fiori_3_hcb)": {
|
|
125
|
+
title: "Tests for sap/ui/core/theming/Parameters (sap_fiori_3_hcb): Theme-Dependent CSS Classes",
|
|
126
|
+
ui5: {
|
|
127
|
+
theme: "sap_fiori_3_hcb",
|
|
128
|
+
"xx-waitForTheme": "init"
|
|
129
|
+
},
|
|
130
|
+
module: "./ThemeClassParameters.qunit"
|
|
131
|
+
},
|
|
132
|
+
"ThemeClassParameters(sap_fiori_3_hcw)": {
|
|
133
|
+
title: "Tests for sap/ui/core/theming/Parameters (sap_fiori_3_hcw): Theme-Dependent CSS Classes",
|
|
134
|
+
ui5: {
|
|
135
|
+
theme: "sap_fiori_3_hcw",
|
|
136
|
+
"xx-waitForTheme": "init"
|
|
137
|
+
},
|
|
138
|
+
module: "./ThemeClassParameters.qunit"
|
|
139
|
+
},
|
|
140
|
+
"ThemeClassParameters(sap_horizon)": {
|
|
141
|
+
title: "Tests for sap/ui/core/theming/Parameters (sap_horizon): Theme-Dependent CSS Classes",
|
|
142
|
+
ui5: {
|
|
143
|
+
theme: "sap_horizon",
|
|
144
|
+
"xx-waitForTheme": "init"
|
|
145
|
+
},
|
|
146
|
+
module: "./ThemeClassParameters.qunit"
|
|
147
|
+
},
|
|
148
|
+
"ThemeClassParameters(sap_horizon_dark)": {
|
|
149
|
+
title: "Tests for sap/ui/core/theming/Parameters (sap_horizon_dark): Theme-Dependent CSS Classes",
|
|
150
|
+
ui5: {
|
|
151
|
+
theme: "sap_horizon_dark",
|
|
152
|
+
"xx-waitForTheme": "init"
|
|
153
|
+
},
|
|
154
|
+
module: "./ThemeClassParameters.qunit"
|
|
155
|
+
},
|
|
156
|
+
"ThemeClassParameters(sap_horizon_hcb)": {
|
|
157
|
+
title: "Tests for sap/ui/core/theming/Parameters (sap_horizon_hcb): Theme-Dependent CSS Classes",
|
|
158
|
+
ui5: {
|
|
159
|
+
theme: "sap_horizon_hcb",
|
|
160
|
+
"xx-waitForTheme": "init"
|
|
161
|
+
},
|
|
162
|
+
module: "./ThemeClassParameters.qunit"
|
|
163
|
+
},
|
|
164
|
+
"ThemeClassParameters(sap_horizon_hcw)": {
|
|
165
|
+
title: "Tests for sap/ui/core/theming/Parameters (sap_horizon_hcw): Theme-Dependent CSS Classes",
|
|
166
|
+
ui5: {
|
|
167
|
+
theme: "sap_horizon_hcw",
|
|
168
|
+
"xx-waitForTheme": "init"
|
|
169
|
+
},
|
|
170
|
+
module: "./ThemeClassParameters.qunit"
|
|
98
171
|
}
|
|
99
172
|
}
|
|
100
173
|
};
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* ${copyright}
|
|
3
3
|
*/
|
|
4
4
|
/*global QUnit */
|
|
5
|
-
|
|
5
|
+
QUnit.config.autostart = false;
|
|
6
|
+
|
|
7
|
+
sap.ui.require([
|
|
6
8
|
"sap/base/config",
|
|
7
9
|
"sap/base/Log",
|
|
8
10
|
"sap/ui/thirdparty/sinon"
|
|
@@ -126,4 +128,6 @@ sap.ui.define([
|
|
|
126
128
|
external: true
|
|
127
129
|
}), false, "BaseConfiguration.get for param 'sapUiInitialFalsyValue' returns correct value 'false'");
|
|
128
130
|
});
|
|
129
|
-
|
|
131
|
+
|
|
132
|
+
QUnit.start();
|
|
133
|
+
});
|
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
<!-- Initialization -->
|
|
7
7
|
<script src="../../../../../../resources/ui5loader.js"></script>
|
|
8
8
|
<script id="sap-ui-bootstrap" src="../../../../../../resources/ui5loader-autoconfig.js"
|
|
9
|
+
data-sap-ui-async="true"
|
|
10
|
+
data-sap-ui-compat-version="edge"
|
|
11
|
+
|
|
9
12
|
data-sap-ui-HubelDubel="value1"
|
|
10
13
|
data-sap-ui-Hubeldubel="value2"
|
|
11
14
|
data-sap-ui-fooBar="value3"
|
|
@@ -25,7 +28,7 @@
|
|
|
25
28
|
<link href="../../../../../../resources/sap/ui/thirdparty/qunit-2.css" rel="stylesheet" media="screen">
|
|
26
29
|
<script src="../../../../../../resources/sap/ui/thirdparty/qunit-2.js"></script>
|
|
27
30
|
<script src="../../../../../../resources/sap/ui/qunit/qunit-junit.js"></script>
|
|
28
|
-
<script src="../../../../../../resources/sap/ui/qunit/qunit-coverage.js"></script>
|
|
31
|
+
<script src="../../../../../../resources/sap/ui/qunit/qunit-coverage-istanbul.js"></script>
|
|
29
32
|
|
|
30
33
|
<!-- Test functions -->
|
|
31
34
|
<script src="Config_bootstrap.qunit.js"></script>
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* ${copyright}
|
|
3
3
|
*/
|
|
4
4
|
/*global QUnit */
|
|
5
|
-
|
|
5
|
+
QUnit.config.autostart = false;
|
|
6
|
+
|
|
7
|
+
sap.ui.require([
|
|
6
8
|
"sap/base/config",
|
|
7
9
|
"sap/base/Log",
|
|
8
10
|
"sap/ui/thirdparty/sinon"
|
|
@@ -104,4 +106,6 @@ sap.ui.define([
|
|
|
104
106
|
type: BaseConfiguration.Type.String
|
|
105
107
|
}), "value15", "BaseConfiguration.get for param 'sapUshellFooBar' returns correct value 'value15'");
|
|
106
108
|
});
|
|
107
|
-
|
|
109
|
+
|
|
110
|
+
QUnit.start();
|
|
111
|
+
});
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* ${copyright}
|
|
3
3
|
*/
|
|
4
4
|
/*global QUnit */
|
|
5
|
+
QUnit.config.autostart = false;
|
|
6
|
+
QUnit.config.reorder = false;
|
|
7
|
+
|
|
5
8
|
sap.ui.require([
|
|
6
9
|
"sap/base/config",
|
|
7
10
|
"sap/base/Log",
|
|
@@ -14,10 +17,8 @@ sap.ui.require([
|
|
|
14
17
|
sinon
|
|
15
18
|
) {
|
|
16
19
|
"use strict";
|
|
17
|
-
sap.ui.loader._.logger = Log.getLogger("test", 6);
|
|
18
|
-
|
|
19
|
-
QUnit.config.reorder = false;
|
|
20
20
|
|
|
21
|
+
sap.ui.loader._.logger = Log.getLogger("test", 6);
|
|
21
22
|
QUnit.module("Base Configuration", {
|
|
22
23
|
beforeEach: function() {
|
|
23
24
|
BaseConfiguration._.invalidate();
|
|
@@ -497,4 +498,6 @@ sap.ui.require([
|
|
|
497
498
|
oWritableInstance1.set("sap-ui-param1", true);
|
|
498
499
|
}, new TypeError("Invalid configuration key 'sap-ui-param1'!"), "oWritableInstance1.set for param 'sap-ui-param1' throws error 'Invalid configuration key 'sap-ui-param1'!'");
|
|
499
500
|
});
|
|
501
|
+
|
|
502
|
+
QUnit.start();
|
|
500
503
|
});
|
|
@@ -6,12 +6,15 @@
|
|
|
6
6
|
<!-- Initialization -->
|
|
7
7
|
<script src="./config/GlobalConfig.js"></script>
|
|
8
8
|
<script src="../../../../../../resources/ui5loader.js"></script>
|
|
9
|
-
<script src="../../../../../../resources/ui5loader-autoconfig.js"
|
|
9
|
+
<script src="../../../../../../resources/ui5loader-autoconfig.js"
|
|
10
|
+
data-sap-ui-async="true"
|
|
11
|
+
data-sap-ui-compat-version="edge"
|
|
12
|
+
></script>
|
|
10
13
|
|
|
11
14
|
<link href="../../../../../../resources/sap/ui/thirdparty/qunit-2.css" rel="stylesheet" media="screen">
|
|
12
15
|
<script src="../../../../../../resources/sap/ui/thirdparty/qunit-2.js"></script>
|
|
13
16
|
<script src="../../../../../../resources/sap/ui/qunit/qunit-junit.js"></script>
|
|
14
|
-
<script src="../../../../../../resources/sap/ui/qunit/qunit-coverage.js"></script>
|
|
17
|
+
<script src="../../../../../../resources/sap/ui/qunit/qunit-coverage-istanbul.js"></script>
|
|
15
18
|
|
|
16
19
|
<!-- Test functions -->
|
|
17
20
|
<script src="Config.qunit.js"></script>
|
|
@@ -22,12 +22,15 @@
|
|
|
22
22
|
<meta name="sap-ui-initial-falsy-value" content=true>
|
|
23
23
|
|
|
24
24
|
<script src="../../../../../../resources/ui5loader.js"></script>
|
|
25
|
-
<script src="../../../../../../resources/ui5loader-autoconfig.js"
|
|
25
|
+
<script src="../../../../../../resources/ui5loader-autoconfig.js"
|
|
26
|
+
data-sap-ui-async="true"
|
|
27
|
+
data-sap-ui-compat-version="edge"
|
|
28
|
+
></script>
|
|
26
29
|
|
|
27
30
|
<link href="../../../../../../resources/sap/ui/thirdparty/qunit-2.css" rel="stylesheet" media="screen">
|
|
28
31
|
<script src="../../../../../../resources/sap/ui/thirdparty/qunit-2.js"></script>
|
|
29
32
|
<script src="../../../../../../resources/sap/ui/qunit/qunit-junit.js"></script>
|
|
30
|
-
<script src="../../../../../../resources/sap/ui/qunit/qunit-coverage.js"></script>
|
|
33
|
+
<script src="../../../../../../resources/sap/ui/qunit/qunit-coverage-istanbul.js"></script>
|
|
31
34
|
|
|
32
35
|
<!-- Test functions -->
|
|
33
36
|
<script src="Config.qunit.js"></script>
|
|
@@ -6,12 +6,15 @@
|
|
|
6
6
|
<!-- Initialization -->
|
|
7
7
|
<meta name="sap-ui-ignore-url-params" content="true">
|
|
8
8
|
<script src="../../../../../../resources/ui5loader.js"></script>
|
|
9
|
-
<script src="../../../../../../resources/ui5loader-autoconfig.js"
|
|
9
|
+
<script src="../../../../../../resources/ui5loader-autoconfig.js"
|
|
10
|
+
data-sap-ui-async="true"
|
|
11
|
+
data-sap-ui-compat-version="edge"
|
|
12
|
+
></script>
|
|
10
13
|
|
|
11
14
|
<link href="../../../../../../resources/sap/ui/thirdparty/qunit-2.css" rel="stylesheet" media="screen">
|
|
12
15
|
<script src="../../../../../../resources/sap/ui/thirdparty/qunit-2.js"></script>
|
|
13
16
|
<script src="../../../../../../resources/sap/ui/qunit/qunit-junit.js"></script>
|
|
14
|
-
<script src="../../../../../../resources/sap/ui/qunit/qunit-coverage.js"></script>
|
|
17
|
+
<script src="../../../../../../resources/sap/ui/qunit/qunit-coverage-istanbul.js"></script>
|
|
15
18
|
|
|
16
19
|
<!-- Test functions -->
|
|
17
20
|
<script src="Config_noUrl.qunit.js"></script>
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* ${copyright}
|
|
3
3
|
*/
|
|
4
4
|
/*global QUnit */
|
|
5
|
-
|
|
5
|
+
QUnit.config.autostart = false;
|
|
6
|
+
|
|
7
|
+
sap.ui.require(
|
|
6
8
|
[
|
|
7
9
|
"sap/base/config"
|
|
8
10
|
], function (BaseConfiguration) {
|
|
@@ -20,4 +22,6 @@ sap.ui.define(
|
|
|
20
22
|
external: true
|
|
21
23
|
}), "defaultValue", "BaseConfiguration.get for param 'sapUiFooBar' returns default value 'defaultValue'");
|
|
22
24
|
});
|
|
25
|
+
|
|
26
|
+
QUnit.start();
|
|
23
27
|
});
|
|
@@ -5,12 +5,15 @@
|
|
|
5
5
|
|
|
6
6
|
<!-- Initialization -->
|
|
7
7
|
<script src="../../../../../../resources/ui5loader.js"></script>
|
|
8
|
-
<script src="../../../../../../resources/ui5loader-autoconfig.js"
|
|
8
|
+
<script src="../../../../../../resources/ui5loader-autoconfig.js"
|
|
9
|
+
data-sap-ui-async="true"
|
|
10
|
+
data-sap-ui-compat-version="edge"
|
|
11
|
+
></script>
|
|
9
12
|
|
|
10
13
|
<link href="../../../../../../resources/sap/ui/thirdparty/qunit-2.css" rel="stylesheet" media="screen">
|
|
11
14
|
<script src="../../../../../../resources/sap/ui/thirdparty/qunit-2.js"></script>
|
|
12
15
|
<script src="../../../../../../resources/sap/ui/qunit/qunit-junit.js"></script>
|
|
13
|
-
<script src="../../../../../../resources/sap/ui/qunit/qunit-coverage.js"></script>
|
|
16
|
+
<script src="../../../../../../resources/sap/ui/qunit/qunit-coverage-istanbul.js"></script>
|
|
14
17
|
|
|
15
18
|
<!-- Test functions -->
|
|
16
19
|
<script src="Config.qunit.js"></script>
|
package/test/sap/ui/core/qunit/bootstrap/BootstrapWithNoJQuery-without-jquery-ui-position.qunit.html
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
<script src="../../../../../../resources/sap-ui-core-nojQuery.js"
|
|
12
12
|
id="sap-ui-bootstrap"
|
|
13
13
|
data-sap-ui-libs="sap.m,sap.ui.layout"
|
|
14
|
-
data-sap-ui-compatversion="edge"
|
|
14
|
+
data-sap-ui-compatversion="edge"
|
|
15
|
+
data-sap-ui-async="true">
|
|
15
16
|
</script>
|
|
16
17
|
<!-- end of nojQuery bootstrap code -->
|
|
17
18
|
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
<script src="../../../../../../resources/sap-ui-core-nojQuery.js"
|
|
13
13
|
id="sap-ui-bootstrap"
|
|
14
14
|
data-sap-ui-libs="sap.m,sap.ui.layout"
|
|
15
|
-
data-sap-ui-compatversion="edge"
|
|
15
|
+
data-sap-ui-compatversion="edge"
|
|
16
|
+
data-sap-ui-async="true">
|
|
16
17
|
</script>
|
|
17
18
|
<!-- end of nojQuery bootstrap code -->
|
|
18
19
|
|
|
@@ -11,4 +11,11 @@
|
|
|
11
11
|
if ( oTitle ) {
|
|
12
12
|
oTitle.textContent = oTitle.textContent.replace("{{mode}}", sDebugMode || "off");
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
// set QUnit config early so that it becomes active before QUnit starts even when the test code is loaded async
|
|
16
|
+
globalThis.QUnit = {
|
|
17
|
+
config: {
|
|
18
|
+
autostart: false
|
|
19
|
+
}
|
|
20
|
+
};
|
|
14
21
|
}());
|