@openui5/sap.ui.core 1.123.1 → 1.124.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/jquery.sap.global.js +1 -1
- 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 +66 -6
- package/src/sap/base/i18n/LanguageTag.js +1 -1
- package/src/sap/base/i18n/date/TimezoneUtils.js +11 -5
- package/src/sap/base/util/LoaderExtensions.js +1 -5
- package/src/sap/base/util/Version.js +18 -12
- package/src/sap/base/util/defineCoupledProperty.js +4 -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 +4 -4
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +1 -2
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +2 -2
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- package/src/sap/ui/base/Metadata.js +26 -2
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +3 -3
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +54 -75
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- package/src/sap/ui/core/ComponentMetadata.js +33 -21
- package/src/sap/ui/core/ComponentSupport.js +4 -4
- package/src/sap/ui/core/Configuration.js +1 -1
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +1 -1
- 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 +37 -12
- 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 +1 -1
- package/src/sap/ui/core/ExtensionPoint.js +4 -2
- package/src/sap/ui/core/Fragment.js +2 -2
- 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 +88 -28
- package/src/sap/ui/core/LayoutData.js +1 -1
- package/src/sap/ui/core/Lib.js +36 -11
- 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 +1 -1
- package/src/sap/ui/core/Manifest.js +44 -21
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Popup.js +5 -1
- package/src/sap/ui/core/RenderManager.js +1 -1
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +1 -1
- 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 +1 -1
- package/src/sap/ui/core/UIComponent.js +94 -42
- package/src/sap/ui/core/UIComponentMetadata.js +5 -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 +23 -12
- 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 +1 -1
- 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 +1 -1
- package/src/sap/ui/core/format/TimezoneUtil.js +86 -10
- package/src/sap/ui/core/getCompatibilityVersion.js +1 -1
- 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/messagebundle_sh.properties +65 -65
- package/src/sap/ui/core/mvc/Controller.js +2 -2
- package/src/sap/ui/core/mvc/ControllerExtensionProvider.js +2 -0
- package/src/sap/ui/core/mvc/EventHandlerResolver.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 -3
- package/src/sap/ui/core/mvc/XMLView.js +7 -2
- 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/routing/Targets.js +1 -1
- package/src/sap/ui/core/rules/App.support.js +11 -11
- package/src/sap/ui/core/rules/CoreHelper.support.js +3 -3
- package/src/sap/ui/core/rules/Theming.support.js +3 -3
- 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 -1
- 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/support/techinfo/moduleTreeHelper.js +1 -1
- package/src/sap/ui/core/theming/Parameters.js +23 -27
- 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 +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- 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/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/model/ClientModel.js +1 -1
- package/src/sap/ui/model/ClientTreeBindingAdapter.js +7 -5
- package/src/sap/ui/model/CompositeBinding.js +9 -3
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/Context.js +26 -2
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +1 -1
- package/src/sap/ui/model/PropertyBinding.js +113 -35
- 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/TreeBindingAdapter.js +5 -5
- package/src/sap/ui/model/TreeBindingCompatibilityAdapter.js +6 -6
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalBinding.js +2 -0
- 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/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataMessageParser.js +3 -5
- 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 +24 -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 +24 -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 +6 -9
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +74 -67
- package/src/sap/ui/model/odata/v4/ODataBinding.js +31 -39
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +8 -20
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +162 -95
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataModel.js +8 -5
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +5 -3
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -17
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +204 -177
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +9 -3
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +10 -32
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +18 -0
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +6 -3
- package/src/sap/ui/model/odata/v4/lib/_TreeState.js +35 -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 +6 -3
- 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 +6 -3
- 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 +1 -1
- package/src/sap/ui/test/ModuleTracking.js +1 -2
- package/src/sap/ui/test/autowaiter/_navigationContainerWaiter.js +96 -7
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/gherkin/opa5TestHarness.js +0 -1
- package/src/sap/ui/test/gherkin/qUnitTestHarness.js +0 -1
- package/src/sap/ui/test/starter/_utils.js +27 -1
- package/src/sap/ui/test/starter/createSuite.js +2 -5
- package/src/sap/ui/thirdparty/caja-html-sanitizer.js +1 -1
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-blind.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-bounce.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-clip.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-core.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-drop.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-explode.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-fade.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-fold.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-highlight.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-pulsate.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-scale.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-shake.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-slide.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-transfer.js +4 -0
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/ui5loader.js +11 -5
- package/test/sap/ui/core/demokit/sample/FieldGroup/Page.view.xml +1 -1
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/view/Employee.view.xml +0 -1
- package/test/sap/ui/core/demokit/sample/TypeCurrency/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeCurrency/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/TypeDateAsDate/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeDateAsDate/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/TypeDateAsString/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeDateAsString/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/TypeDateTime/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeDateTime/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/TypeFileSize/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeFileSize/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/TypeFloat/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeFloat/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/TypeInteger/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeInteger/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/TypeTimeAsTime/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeTimeAsTime/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/Opa.qunit.js +3 -3
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/TemplateV2.view.xml +3 -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/matcher/LabelFor/webapp/view/Main.view.xml +0 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/Draft/Error.view.xml +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/Main.controller.js +30 -7
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/Main.view.xml +28 -4
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/data/metadata.xml +38 -52
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Main.controller.js +13 -13
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Opa.qunit.js +2 -4
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Component.js +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Main.controller.js +2 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/MessageHandling.js +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/additionalTargets.js +3 -3
- 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/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/webapp/Component.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/webapp/test/mockServer.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/webapp/Component.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/webapp/test/mockServer.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/webapp/Component.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/webapp/test/mockServer.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/webapp/Component.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/webapp/test/mockServer.html +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/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/webapp/controller/App.controller.js +2 -3
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/Component.js +3 -4
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/Main.controller.js +4 -5
- package/test/sap/ui/core/qunit/BindingParser.qunit.js +68 -5
- package/test/sap/ui/core/qunit/CacheManager.qunit.js +2 -2
- package/test/sap/ui/core/qunit/CommandExecution.qunit.js +1 -1
- package/test/sap/ui/core/qunit/CompositeBinding.qunit.js +173 -7
- package/test/sap/ui/core/qunit/Core.qunit.js +92 -65
- package/test/sap/ui/core/qunit/CustomStyleClassSupport.qunit.js +8 -6
- package/test/sap/ui/core/qunit/Element_closestTo.qunit.js +26 -5
- package/test/sap/ui/core/qunit/Element_data.qunit.js +86 -3
- package/test/sap/ui/core/qunit/Fragment.qunit.js +1 -1
- package/test/sap/ui/core/qunit/HTML.qunit.js +13 -0
- package/test/sap/ui/core/qunit/Lib.qunit.js +160 -42
- package/test/sap/ui/core/qunit/ManagedObjectModel.qunit.js +2 -2
- package/test/sap/ui/core/qunit/ThemeManager.qunit.js +1 -0
- package/test/sap/ui/core/qunit/ThemeParameters.qunit.js +63 -4
- package/test/sap/ui/core/qunit/analytics/AnalyticalBinding.qunit.js +1 -0
- package/test/sap/ui/core/qunit/bootstrap/Configuration.qunit.js +4 -4
- package/test/sap/ui/core/qunit/bootstrap/ThemeVersion.qunit.js +3 -0
- package/test/sap/ui/core/qunit/component/Component.qunit.js +88 -16
- package/test/sap/ui/core/qunit/component/ComponentContainer.qunit.js +26 -2
- package/test/sap/ui/core/qunit/component/ComponentSupport.qunit.js +62 -59
- package/test/sap/ui/core/qunit/component/Component_keepAlive.qunit.js +75 -7
- package/test/sap/ui/core/qunit/component/ExtensionPoint.qunit.js +128 -117
- package/test/sap/ui/core/qunit/component/Manifest.qunit.js +57 -5
- package/test/sap/ui/core/qunit/component/Metadata.qunit.js +72 -7
- package/test/sap/ui/core/qunit/component/Metadata_unavoidablySync.qunit.js +62 -17
- package/test/sap/ui/core/qunit/component/Models.qunit.js +670 -237
- package/test/sap/ui/core/qunit/component/UIComponent.qunit.js +211 -33
- package/test/sap/ui/core/qunit/component/testdata/async/lib2/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/component/testdata/async/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/component/testdata/async/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/component/testdata/async/lib3/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/component/testdata/async/lib4/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/component/testdata/async/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/component/testdata/async/manifestcomp/Component-preload.js +1 -0
- package/test/sap/ui/core/qunit/component/testdata/async/mycomp/Component-preload.js +1 -0
- package/test/sap/ui/core/qunit/component/testdata/async/mysubcomp/Component-preload.js +1 -0
- package/test/sap/ui/core/qunit/component/testdata/customizing/customer/Component.js +1 -2
- package/test/sap/ui/core/qunit/component/testdata/customizing_legacyAPIs/customer/Component.js +1 -2
- package/test/sap/ui/core/qunit/component/testdata/inherit/manifest.json +3 -5
- package/test/sap/ui/core/qunit/component/testdata/inherit/parent/manifest.json +2 -2
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnActivateReturns/App.view.xml +3 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnActivateReturns/Component.js +15 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnActivateReturns/Home.view.xml +5 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnActivateReturns/Other.view.xml +5 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnActivateReturns/manifest.json +54 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnDeactivateReturns/App.view.xml +3 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnDeactivateReturns/Component.js +17 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnDeactivateReturns/Home.view.xml +5 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnDeactivateReturns/Other.view.xml +5 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnDeactivateReturns/manifest.json +54 -0
- package/test/sap/ui/core/qunit/component/testdata/minUI5Version/Component.js +18 -0
- package/test/sap/ui/core/qunit/component/testdata/minUI5Version/Main.controller.js +6 -0
- package/test/sap/ui/core/qunit/component/testdata/minUI5Version/Main.view.xml +6 -0
- package/test/sap/ui/core/qunit/component/testdata/minUI5Version/manifest.json +12 -0
- package/test/sap/ui/core/qunit/component/testdata/mixed/Component.js +3 -1
- package/test/sap/ui/core/qunit/component/testdata/mixed/manifest.json +3 -11
- package/test/sap/ui/core/qunit/component/testdata/mixed_legacyAPIs/Component.js +16 -0
- package/test/sap/ui/core/qunit/component/testdata/{mixed → mixed_legacyAPIs}/component.json +3 -3
- package/test/sap/ui/core/qunit/component/testdata/mixed_legacyAPIs/i18n/i18n.properties +3 -0
- package/test/sap/ui/core/qunit/component/testdata/mixed_legacyAPIs/manifest.json +139 -0
- package/test/sap/ui/core/qunit/component/testdata/mixed_legacyAPIs/style.css +0 -0
- package/test/sap/ui/core/qunit/component/testdata/routerClass/Component.js +33 -0
- package/test/sap/ui/core/qunit/component/testdata/routerClass/Main.view.xml +8 -0
- package/test/sap/ui/core/qunit/component/testdata/routerClass/manifest.json +38 -0
- package/test/sap/ui/core/qunit/component/testdata/v1/component.json +2 -2
- package/test/sap/ui/core/qunit/component/testdata/v1inline/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/v2/manifest.json +3 -5
- package/test/sap/ui/core/qunit/component/testdata/v2asyncRootView/manifest.json +2 -4
- package/test/sap/ui/core/qunit/component/testdata/v2inline/Component.js +2 -4
- package/test/sap/ui/core/qunit/component/testdata/v2models/empty/Component.js +1 -1
- package/test/sap/ui/core/qunit/component/testdata/v2models/extension/Component.js +1 -1
- package/test/sap/ui/core/qunit/component/testdata/v2models/parentValid/Component.js +286 -0
- package/test/sap/ui/core/qunit/component/testdata/v2models/parentValid/i18n.properties +2 -0
- package/test/sap/ui/core/qunit/component/testdata/v2models/parentValid/i18n_de.properties +2 -0
- package/test/sap/ui/core/qunit/component/testdata/v4models/sapSystem/Component.js +16 -0
- package/test/sap/ui/core/qunit/component/testdata/v4models/sapSystem/manifest.json +102 -0
- package/test/sap/ui/core/qunit/i18n/LocaleData.qunit.js +5 -5
- package/test/sap/ui/core/qunit/{types/TimezoneUtil.qunit.js → i18n/TimezoneUtils.qunit.js} +85 -87
- package/test/sap/ui/core/qunit/i18n/testsuite.i18n.qunit.js +6 -0
- package/test/sap/ui/core/qunit/internal/1RingModels.qunit.js +2 -2
- package/test/sap/ui/core/qunit/json/JSONModel.qunit.js +117 -85
- package/test/sap/ui/core/qunit/messages/Message.qunit.js +7 -5
- package/test/sap/ui/core/qunit/messages/messagesDataBinding.qunit.js +3 -5
- package/test/sap/ui/core/qunit/messages/messagesGeneral.qunit.js +41 -4
- package/test/sap/ui/core/qunit/messages/messagesUsage.qunit.js +3 -2
- package/test/sap/ui/core/qunit/model/Context.qunit.js +29 -0
- package/test/sap/ui/core/qunit/model/PropertyBinding.qunit.js +490 -5
- package/test/sap/ui/core/qunit/mvc/Controller.qunit.js +164 -12
- package/test/sap/ui/core/qunit/mvc/EventHandlerResolver.qunit.js +144 -6
- package/test/sap/ui/core/qunit/mvc/View.qunit.js +2 -2
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessor.qunit.js +60 -5
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessorAsync.qunit.js +58 -3
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessorRequireXML.qunit.js +127 -10
- package/test/sap/ui/core/qunit/mvc/XMLView.qunit.js +108 -10
- package/test/sap/ui/core/qunit/mvc/extensions/ControllerMetadata.qunit.js +74 -7
- package/test/sap/ui/core/qunit/mvc/extensions/Controllerextensions.qunit.js +0 -6
- package/test/sap/ui/core/qunit/mvc/extensions/Controllerextensions_legacy.qunit.js +0 -6
- package/test/sap/ui/core/qunit/mvc/extensions/testdata/ExtendMainLegacy.controller.js +15 -0
- package/test/sap/ui/core/qunit/mvc/extensions/testdata/MainContext.controller.js +0 -3
- package/test/sap/ui/core/qunit/mvc/extensions/testdata/MainMemberExtLegacyFinal.controller.js +38 -0
- package/test/sap/ui/core/qunit/mvc/extensions/testdata/ReuseExtension.js +0 -3
- package/test/sap/ui/core/qunit/mvc/extensions/testdata/ReuseExtensionContext.js +0 -3
- package/test/sap/ui/core/qunit/mvc/extensions/testdata/ReuseExtensionFinal.js +47 -0
- package/test/sap/ui/core/qunit/mvc/testdata/HtmlOnRoot.view.xml +8 -0
- package/test/sap/ui/core/qunit/mvc/testdata/XMLViewWithTypes.view.xml +1 -1
- package/test/sap/ui/core/qunit/mvc/testdata/XMLViewWithTypesFailure.view.xml +41 -0
- package/test/sap/ui/core/qunit/mvc/testdata/asyncHooks.view.xml +1 -1
- package/test/sap/ui/core/qunit/mvc/testdata/test.controller.js +4 -0
- package/test/sap/ui/core/qunit/mvc/testdata/test.view.xml +1 -1
- package/test/sap/ui/core/qunit/mvc/testsuite.mvc.qunit.js +12 -2
- package/test/sap/ui/core/qunit/mvc/viewprocessing/ViewProcessing.qunit.js +23 -4
- package/test/sap/ui/core/qunit/mvc_legacyAPIs/XMLTemplateProcessorRequireXML_legacyAPIs.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/ODataMessageParser.qunit.js +3 -5
- package/test/sap/ui/core/qunit/odata/ODataMessageParserNoFakeService.qunit.js +3 -5
- package/test/sap/ui/core/qunit/odata/v2/ODataModel.integration.qunit.js +180 -12
- package/test/sap/ui/core/qunit/odata/v2/V2ODataModel.qunit.js +3 -5
- package/test/sap/ui/core/qunit/odata/v2/V2ODataModelDataState.qunit.js +3 -6
- package/test/sap/ui/core/qunit/odata/v4/Context.qunit.js +149 -122
- package/test/sap/ui/core/qunit/odata/v4/ODataBinding.qunit.js +22 -71
- package/test/sap/ui/core/qunit/odata/v4/ODataContextBinding.qunit.js +19 -42
- package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +351 -174
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +6094 -2827
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.qunit.js +2 -4
- package/test/sap/ui/core/qunit/odata/v4/ODataParentBinding.qunit.js +11 -5
- package/test/sap/ui/core/qunit/odata/v4/ODataPropertyBinding.qunit.js +0 -49
- package/test/sap/ui/core/qunit/odata/v4/data/metadata.json +24 -0
- package/test/sap/ui/core/qunit/odata/v4/data/metadata.xml +14 -2
- package/test/sap/ui/core/qunit/odata/v4/data/metadata_special_cases.xml +16 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationCache.qunit.js +408 -403
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationHelper.qunit.js +11 -1
- package/test/sap/ui/core/qunit/odata/v4/lib/_Cache.qunit.js +56 -51
- package/test/sap/ui/core/qunit/odata/v4/lib/_Helper.qunit.js +30 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_Requestor.qunit.js +68 -59
- package/test/sap/ui/core/qunit/odata/v4/lib/_TreeState.qunit.js +91 -2
- package/test/sap/ui/core/qunit/opa/autowaiter/_navigationContainerWaiter.js +62 -15
- package/test/sap/ui/core/qunit/routing/async/Router.qunit.js +91 -19
- package/test/sap/ui/core/qunit/routing/async/Target.qunit.js +1 -1
- package/test/sap/ui/core/qunit/routing/async/Targets.qunit.js +131 -16
- package/test/sap/ui/core/qunit/routing/async/TitleHistory.qunit.js +111 -3
- package/test/sap/ui/core/qunit/routing/async/Views.qunit.js +3 -0
- package/test/sap/ui/core/qunit/routing/fixture/Async1.view.xml +2 -2
- package/test/sap/ui/core/qunit/routing/fixture/Async2.view.xml +2 -2
- package/test/sap/ui/core/qunit/routing/fixture/Async3.view.xml +2 -2
- package/test/sap/ui/core/qunit/routing/fixture/router/component/titleChanged/Parent/manifest.json +2 -1
- package/test/sap/ui/core/qunit/rule/testsuite.rule.qunit.js +3 -0
- package/test/sap/ui/core/qunit/testdata/fragments/XMLTestFragmentWithXMLView.fragment.xml +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/customCss/lib1/library.js +4 -11
- package/test/sap/ui/core/qunit/testdata/libraries/make.js +8 -1
- package/test/sap/ui/core/qunit/testdata/libraries/myGlobalLib/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib2/intentionally_no_manifest_here.txt +7 -0
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib4/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib5/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib6/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib6/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib7/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario11/lib1/library.js +6 -4
- package/test/sap/ui/core/qunit/testdata/libraries/scenario11/lib1/manifest.json +7 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib4/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib5/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib6/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib6/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib7/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib2/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib4/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib5/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib6/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib6/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib7/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib7/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib8/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib8/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib10/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib10/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib4/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib5/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib6/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib6/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib7/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib7/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib8/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib8/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib9/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib9/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario16/embeddingLib/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario16/embeddingLib/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib4/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib5/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib6/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib6/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib7/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario3/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario3/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario3/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario3/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario3/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario3/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario4/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario4/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario4/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario4/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib2/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib4/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib5/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib6/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib6/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario6/lib1/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario6/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario6/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario6/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib1/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib5/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib1/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib5/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario9/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario9/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/absoluteBundleUrl/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/integration/application/Component-preload.js +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/integration/lib/library-preload.js +2 -2
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/notLoadedYet/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/simple/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib10/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib11/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib12/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib13/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib14/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib15/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib16/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib17/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib6/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib7/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib8/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib9/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/routing/scenario1/RootView.view.xml +1 -2
- package/test/sap/ui/core/qunit/testdata/uilib/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/uilib/themes/test_theme_scoped/library-parameters.json +25 -0
- package/test/sap/ui/core/qunit/testdata/uilib/themes/test_theme_scoped/library.css +28 -0
- package/test/sap/ui/core/qunit/testdata/uilib-custom-theme-fallback/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/uilib-failing-css-import/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/xml-require/view/XMLTemplateProcessorAsync_require_expression.view.xml +0 -1
- package/test/sap/ui/core/qunit/testdata/xml-require/view/XMLTemplateProcessorAsync_require_expressionFaulty.view.xml +40 -0
- package/test/sap/ui/core/qunit/testsuites/testsuite.control.framework.qunit.js +11 -1
- package/test/sap/ui/core/qunit/testsuites/testsuite.eventing.qunit.js +3 -0
- package/test/sap/ui/core/qunit/testsuites/testsuite.foundation.enablement.qunit.js +3 -0
- package/test/sap/ui/core/qunit/types/Date.qunit.js +62 -25
- package/test/sap/ui/core/qunit/types/DateInterval.qunit.js +79 -12
- package/test/sap/ui/core/qunit/types/Types.qunit.js +135 -38
- package/test/sap/ui/core/qunit/types/testsuite.types.qunit.js +0 -6
- package/test/sap/ui/core/qunit/ui5classes/DataType.qunit.js +10 -1
- package/test/sap/ui/core/qunit/ui5classes/ManagedObject.qunit.js +102 -19
- package/test/sap/ui/core/qunit/ui5classes/Object.qunit.js +116 -124
- package/test/sap/ui/core/qunit/util/LabelEnablement.qunit.js +122 -3
- package/test/sap/ui/core/qunit/util/reflection/JsControlTreeModifier.qunit.js +79 -4
- package/test/sap/ui/core/qunit/util/reflection/XmlTreeModifier.qunit.js +0 -1
- package/test/sap/ui/core/relnotes/changes-1.124.json +52 -0
- package/test/sap/ui/core/samples/databinding/UnitTable/README.md +18 -0
- package/test/sap/ui/core/samples/databinding/UnitTable/package.json +13 -0
- package/test/sap/ui/core/samples/databinding/UnitTable/ui5.yaml +12 -0
- package/test/sap/ui/core/samples/databinding/UnitTable/webapp/Component.js +29 -0
- package/test/sap/ui/core/samples/databinding/UnitTable/webapp/controller/UnitTable.controller.js +58 -0
- package/test/sap/ui/core/samples/databinding/{UnitTable.meters.json → UnitTable/webapp/data/UnitTable.meters.json} +42 -42
- package/test/sap/ui/core/samples/databinding/UnitTable/webapp/index.html +28 -0
- package/test/sap/ui/core/samples/databinding/UnitTable/webapp/manifest.json +40 -0
- package/test/sap/ui/core/samples/databinding/UnitTable/webapp/view/UnitTable.view.xml +206 -0
- package/test/sap/ui/core/samples/draganddrop/DragAndDrop.html +2 -2
- package/test/sap/ui/core/samples/draganddrop/dragBetweenLists.html +10 -5
- package/test/sap/ui/core/samples/draganddrop/dragWithinList.html +0 -2
- 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/sap/ui/core/CurrenciesIndia.html +0 -182
- package/test/sap/ui/core/CurrenciesRTL.html +0 -312
- package/test/sap/ui/core/CustomData.html +0 -161
- package/test/sap/ui/core/DataTypeNormalizer.html +0 -44
- package/test/sap/ui/core/Formats.html +0 -384
- package/test/sap/ui/core/Strings.controller.js +0 -90
- package/test/sap/ui/core/Strings.css +0 -8
- package/test/sap/ui/core/Strings.html +0 -25
- package/test/sap/ui/core/Strings.js +0 -20
- package/test/sap/ui/core/Strings.view.xml +0 -86
- package/test/sap/ui/core/Timezones.html +0 -23
- package/test/sap/ui/core/qunit/ODataModelRefresh.qunit.html +0 -236
- package/test/sap/ui/core/qunit/ODataModelThreshold.qunit.html +0 -164
- package/test/sap/ui/core/samples/databinding/DataBindingAsyncType.html +0 -85
- package/test/sap/ui/core/samples/databinding/DataBindingDeclarativeSyntax.js +0 -65
- package/test/sap/ui/core/samples/databinding/DataBindingFragment.html +0 -21
- package/test/sap/ui/core/samples/databinding/DatabindingDeclarativeSyntax.html +0 -38
- package/test/sap/ui/core/samples/databinding/DatabindingMessages.html +0 -193
- package/test/sap/ui/core/samples/databinding/ODatabindingMessages.html +0 -305
- package/test/sap/ui/core/samples/databinding/UnitTable.controller.js +0 -202
- package/test/sap/ui/core/samples/databinding/UnitTable.html +0 -25
- package/test/sap/ui/core/samples/databinding/UnitTable.view.xml +0 -337
- package/test/sap/ui/core/samples/databinding/UnitTableMain.js +0 -21
- package/test/sap/ui/core/samples/databinding/fragment/Fragment.fragment.xml +0 -6
- package/test/sap/ui/core/samples/databinding/fragment/NamedFragment.fragment.xml +0 -6
- package/test/sap/ui/core/samples/databinding/fragment/View.controller.js +0 -36
- package/test/sap/ui/core/samples/databinding/fragment/View.view.xml +0 -12
- package/test/sap/ui/core/samples/databinding/message/Component.js +0 -185
- package/test/sap/ui/core/samples/databinding/message/component.json +0 -12
- package/test/sap/ui/core/samples/databinding/message/comptree/Component.js +0 -186
- package/test/sap/ui/core/samples/databinding/message/comptree/component.json +0 -12
- package/test/sap/ui/core/samples/databinding/message/disabled/Component.js +0 -186
- package/test/sap/ui/core/samples/databinding/message/disabled/component.json +0 -12
- package/test/sap/ui/core/samples/databinding/message/enabled/Component.js +0 -186
- package/test/sap/ui/core/samples/databinding/message/enabled/component.json +0 -12
- package/test/sap/ui/core/samples/databinding/testdata/ComplexSyntax.js +0 -38
- package/test/sap/ui/core/samples/databinding/testdata/complexsyntax.controller.js +0 -26
- package/test/sap/ui/core/samples/databinding/testdata/complexsyntax.view.xml +0 -26
- package/test/sap/ui/core/samples/databinding/testdata/team.xml +0 -12
- package/test/sap/ui/core/samples/databinding/testdata/test.controller.js +0 -39
- package/test/sap/ui/core/samples/databinding/testdata/text.properties +0 -5
- package/test/sap/ui/core/samples/databinding/testdata/text_de.properties +0 -5
- package/test/sap/ui/core/samples/formatting/Component.js +0 -21
- package/test/sap/ui/core/samples/formatting/controller/ChooseFormatOptions.controller.js +0 -96
- package/test/sap/ui/core/samples/formatting/controller/Main.controller.js +0 -9
- package/test/sap/ui/core/samples/formatting/index.html +0 -28
- package/test/sap/ui/core/samples/formatting/manifest.json +0 -68
- package/test/sap/ui/core/samples/formatting/model/Customizing.js +0 -35
- package/test/sap/ui/core/samples/formatting/model/data.json +0 -17
- package/test/sap/ui/core/samples/formatting/types/CustomCurrency.js +0 -14
- package/test/sap/ui/core/samples/formatting/types/CustomUnit.js +0 -14
- package/test/sap/ui/core/samples/formatting/view/App.view.xml +0 -6
- package/test/sap/ui/core/samples/formatting/view/ChooseFormatOptions.view.xml +0 -71
- package/test/sap/ui/core/samples/formatting/view/InputFields.fragment.xml +0 -118
- package/test/sap/ui/core/samples/formatting/view/Main.view.xml +0 -15
- package/test/sap/ui/core/timezones.js +0 -92
- package/test/sap/ui/core/timezones.view.xml +0 -23
- /package/test/sap/ui/core/qunit/component/testdata/{mixed → mixed_legacyAPIs}/script.js +0 -0
|
@@ -3,6 +3,7 @@ sap.ui.define([
|
|
|
3
3
|
"sap/base/Log",
|
|
4
4
|
"sap/base/i18n/Localization",
|
|
5
5
|
"sap/base/util/deepEqual",
|
|
6
|
+
"sap/ui/base/DataType",
|
|
6
7
|
"sap/ui/core/date/UI5Date",
|
|
7
8
|
"sap/ui/model/BindingMode",
|
|
8
9
|
"sap/ui/model/CompositeBinding",
|
|
@@ -17,7 +18,7 @@ sap.ui.define([
|
|
|
17
18
|
"sap/ui/model/type/Float",
|
|
18
19
|
"sap/ui/model/type/Integer",
|
|
19
20
|
"sap/ui/model/type/String"
|
|
20
|
-
], function (Log, Localization, deepEqual, UI5Date, BindingMode, CompositeBinding, CompositeType,
|
|
21
|
+
], function (Log, Localization, deepEqual, DataType, UI5Date, BindingMode, CompositeBinding, CompositeType,
|
|
21
22
|
Context, ParseException, PropertyBinding, StaticBinding, ValidateException, JSONModel,
|
|
22
23
|
TypeDate, TypeFloat, TypeInteger, TypeString
|
|
23
24
|
) {
|
|
@@ -165,6 +166,171 @@ sap.ui.define([
|
|
|
165
166
|
"setExternalValue() does change model values for contained bindings");
|
|
166
167
|
});
|
|
167
168
|
|
|
169
|
+
//*********************************************************************************************
|
|
170
|
+
[{
|
|
171
|
+
sMethod: "_setRawValue",
|
|
172
|
+
bInternalValues: false,
|
|
173
|
+
bRawValues: true
|
|
174
|
+
}, {
|
|
175
|
+
sMethod: "_setInternalValue",
|
|
176
|
+
bInternalValues: true,
|
|
177
|
+
bRawValues: false
|
|
178
|
+
}, {
|
|
179
|
+
sMethod: "_setExternalValue",
|
|
180
|
+
bInternalValues: false,
|
|
181
|
+
bRawValues: false
|
|
182
|
+
}].forEach(function (oFixture) {
|
|
183
|
+
QUnit.test(`setExternalValue /w async type and context changed for method ${oFixture.sMethod}`, function (assert) {
|
|
184
|
+
const oBinding1 = {
|
|
185
|
+
getBindingMode() {},
|
|
186
|
+
getContext() {}
|
|
187
|
+
};
|
|
188
|
+
const oBinding2 = {
|
|
189
|
+
getBindingMode() {},
|
|
190
|
+
getContext() {}
|
|
191
|
+
};
|
|
192
|
+
const oCompositeBinding = {
|
|
193
|
+
aBindings: [oBinding1, oBinding2],
|
|
194
|
+
sInternalType: "string",
|
|
195
|
+
bInternalValues: oFixture.bInternalValues,
|
|
196
|
+
bRawValues: oFixture.bRawValues,
|
|
197
|
+
oType: {
|
|
198
|
+
getParseWithValues() {},
|
|
199
|
+
parseValue() {},
|
|
200
|
+
validateValue() {}
|
|
201
|
+
},
|
|
202
|
+
getDataState() {},
|
|
203
|
+
getValidateValues() {},
|
|
204
|
+
getValue() {}
|
|
205
|
+
};
|
|
206
|
+
const oDataState = {
|
|
207
|
+
setInvalidValue() {},
|
|
208
|
+
setValue() {}
|
|
209
|
+
};
|
|
210
|
+
this.mock(DataType).expects("getType").withExactArgs("string").returns("~oType");
|
|
211
|
+
const oCompositeBindingMock = this.mock(oCompositeBinding);
|
|
212
|
+
oCompositeBindingMock.expects("getDataState").withExactArgs().returns(oDataState);
|
|
213
|
+
const oBindingMock1 = this.mock(oBinding1);
|
|
214
|
+
oBindingMock1.expects("getContext").withExactArgs().returns("~oUpdateContext1");
|
|
215
|
+
const oBindingMock2 = this.mock(oBinding2);
|
|
216
|
+
oBindingMock2.expects("getContext").withExactArgs().returns("~oUpdateContext2");
|
|
217
|
+
const oTypeMock = this.mock(oCompositeBinding.oType);
|
|
218
|
+
oTypeMock.expects("getParseWithValues").withExactArgs().returns(false);
|
|
219
|
+
oTypeMock.expects("parseValue")
|
|
220
|
+
.withExactArgs("~vValue", "string", undefined)
|
|
221
|
+
.returns(["~vParsedValue1", "~vParsedValue2"]);
|
|
222
|
+
oCompositeBindingMock.expects("getValidateValues")
|
|
223
|
+
.withExactArgs(["~vParsedValue1", "~vParsedValue2"])
|
|
224
|
+
.returns("~aValidateValues");
|
|
225
|
+
oTypeMock.expects("validateValue")
|
|
226
|
+
.withExactArgs("~aValidateValues").returns(Promise.resolve());
|
|
227
|
+
|
|
228
|
+
// code under test
|
|
229
|
+
const oPromise = CompositeBinding.prototype.setExternalValue.call(oCompositeBinding, "~vValue");
|
|
230
|
+
|
|
231
|
+
// After validation the contexts have changed due to the async nature of the type's validation
|
|
232
|
+
oBindingMock1.expects("getContext").withExactArgs().returns("~oNewContext1");
|
|
233
|
+
oBindingMock2.expects("getContext").withExactArgs().returns("~oNewContext1");
|
|
234
|
+
oBinding1[oFixture.sMethod] = () => {};
|
|
235
|
+
oBinding2[oFixture.sMethod] = () => {};
|
|
236
|
+
oBindingMock1.expects("getBindingMode").withExactArgs().returns(BindingMode.TwoWay);
|
|
237
|
+
oBindingMock1.expects(oFixture.sMethod).withExactArgs("~vParsedValue1" , "~oUpdateContext1");
|
|
238
|
+
oBindingMock2.expects("getBindingMode").withExactArgs().returns(BindingMode.TwoWay);
|
|
239
|
+
oBindingMock2.expects(oFixture.sMethod).withExactArgs("~vParsedValue2" , "~oUpdateContext2");
|
|
240
|
+
const oDataStateMock = this.mock(oDataState);
|
|
241
|
+
oDataStateMock.expects("setInvalidValue").withExactArgs(undefined);
|
|
242
|
+
oCompositeBindingMock.expects("getValue").withExactArgs().returns("~vValue");
|
|
243
|
+
oDataStateMock.expects("setValue").withExactArgs("~vValue");
|
|
244
|
+
|
|
245
|
+
return oPromise.then((vResult) => {
|
|
246
|
+
assert.strictEqual(vResult, undefined);
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
//*********************************************************************************************
|
|
252
|
+
[{
|
|
253
|
+
sMethod: "_setRawValue",
|
|
254
|
+
bInternalValues: false,
|
|
255
|
+
bRawValues: true
|
|
256
|
+
}, {
|
|
257
|
+
sMethod: "_setInternalValue",
|
|
258
|
+
bInternalValues: true,
|
|
259
|
+
bRawValues: false
|
|
260
|
+
}, {
|
|
261
|
+
sMethod: "_setExternalValue",
|
|
262
|
+
bInternalValues: false,
|
|
263
|
+
bRawValues: false
|
|
264
|
+
}].forEach(function (oFixture) {
|
|
265
|
+
const sTitle = `setExternalValue /w async type and w/o context changed for method ${oFixture.sMethod}`;
|
|
266
|
+
QUnit.test(sTitle, function (assert) {
|
|
267
|
+
const oBinding1 = {
|
|
268
|
+
getBindingMode() {},
|
|
269
|
+
getContext() {}
|
|
270
|
+
};
|
|
271
|
+
const oBinding2 = {
|
|
272
|
+
getBindingMode() {},
|
|
273
|
+
getContext() {}
|
|
274
|
+
};
|
|
275
|
+
const oCompositeBinding = {
|
|
276
|
+
aBindings: [oBinding1, oBinding2],
|
|
277
|
+
sInternalType: "string",
|
|
278
|
+
bInternalValues: oFixture.bInternalValues,
|
|
279
|
+
bRawValues: oFixture.bRawValues,
|
|
280
|
+
oType: {
|
|
281
|
+
getParseWithValues() {},
|
|
282
|
+
parseValue() {},
|
|
283
|
+
validateValue() {}
|
|
284
|
+
},
|
|
285
|
+
getDataState() {},
|
|
286
|
+
getValidateValues() {},
|
|
287
|
+
getValue() {}
|
|
288
|
+
};
|
|
289
|
+
const oDataState = {
|
|
290
|
+
setInvalidValue() {},
|
|
291
|
+
setValue() {}
|
|
292
|
+
};
|
|
293
|
+
this.mock(DataType).expects("getType").withExactArgs("string").returns("~oType");
|
|
294
|
+
const oCompositeBindingMock = this.mock(oCompositeBinding);
|
|
295
|
+
oCompositeBindingMock.expects("getDataState").withExactArgs().returns(oDataState);
|
|
296
|
+
const oBindingMock1 = this.mock(oBinding1);
|
|
297
|
+
oBindingMock1.expects("getContext").withExactArgs().returns("~oUpdateContext1");
|
|
298
|
+
const oBindingMock2 = this.mock(oBinding2);
|
|
299
|
+
oBindingMock2.expects("getContext").withExactArgs().returns("~oUpdateContext2");
|
|
300
|
+
const oTypeMock = this.mock(oCompositeBinding.oType);
|
|
301
|
+
oTypeMock.expects("getParseWithValues").withExactArgs().returns(false);
|
|
302
|
+
oTypeMock.expects("parseValue")
|
|
303
|
+
.withExactArgs("~vValue", "string", undefined)
|
|
304
|
+
.returns(["~vParsedValue1", "~vParsedValue2"]);
|
|
305
|
+
oCompositeBindingMock.expects("getValidateValues")
|
|
306
|
+
.withExactArgs(["~vParsedValue1", "~vParsedValue2"])
|
|
307
|
+
.returns("~aValidateValues");
|
|
308
|
+
oTypeMock.expects("validateValue")
|
|
309
|
+
.withExactArgs("~aValidateValues").returns(Promise.resolve());
|
|
310
|
+
|
|
311
|
+
// code under test
|
|
312
|
+
const oPromise = CompositeBinding.prototype.setExternalValue.call(oCompositeBinding, "~vValue");
|
|
313
|
+
|
|
314
|
+
// After validation the contexts have changed due to the async nature of the type's validation
|
|
315
|
+
oBindingMock1.expects("getContext").withExactArgs().returns("~oUpdateContext1");
|
|
316
|
+
oBindingMock2.expects("getContext").withExactArgs().returns("~oUpdateContext2");
|
|
317
|
+
oBinding1[oFixture.sMethod] = () => {};
|
|
318
|
+
oBinding2[oFixture.sMethod] = () => {};
|
|
319
|
+
oBindingMock1.expects("getBindingMode").withExactArgs().returns(BindingMode.TwoWay);
|
|
320
|
+
oBindingMock1.expects(oFixture.sMethod).withExactArgs("~vParsedValue1" , undefined);
|
|
321
|
+
oBindingMock2.expects("getBindingMode").withExactArgs().returns(BindingMode.TwoWay);
|
|
322
|
+
oBindingMock2.expects(oFixture.sMethod).withExactArgs("~vParsedValue2" , undefined);
|
|
323
|
+
const oDataStateMock = this.mock(oDataState);
|
|
324
|
+
oDataStateMock.expects("setInvalidValue").withExactArgs(undefined);
|
|
325
|
+
oCompositeBindingMock.expects("getValue").withExactArgs().returns("~vValue");
|
|
326
|
+
oDataStateMock.expects("setValue").withExactArgs("~vValue");
|
|
327
|
+
|
|
328
|
+
return oPromise.then((vResult) => {
|
|
329
|
+
assert.strictEqual(vResult, undefined);
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
|
|
168
334
|
QUnit.test("disabled methods", function(assert) {
|
|
169
335
|
assert.equal(this.composite.getContext(), null, "getContext() always returns null");
|
|
170
336
|
assert.equal(this.composite.getModel(), null, "getModel() always returns null");
|
|
@@ -746,17 +912,17 @@ sap.ui.define([
|
|
|
746
912
|
});
|
|
747
913
|
|
|
748
914
|
QUnit.test("Call setInternalValue()", function(assert) {
|
|
749
|
-
var oSpy1 = this.spy(this.binding1, "
|
|
750
|
-
var oSpy2 = this.spy(this.binding2, "
|
|
751
|
-
var oSpy3 = this.spy(this.binding3, "
|
|
915
|
+
var oSpy1 = this.spy(this.binding1, "_setInternalValue");
|
|
916
|
+
var oSpy2 = this.spy(this.binding2, "_setInternalValue");
|
|
917
|
+
var oSpy3 = this.spy(this.binding3, "_setInternalValue");
|
|
752
918
|
|
|
753
919
|
var oTypeSpy = this.spy(this.type, "getModelFormat");
|
|
754
920
|
|
|
755
921
|
this.compositeUseInternalValue.setExternalValue("1 2 3");
|
|
756
922
|
|
|
757
|
-
assert.equal(oSpy1.callCount, 1, "
|
|
758
|
-
assert.equal(oSpy2.callCount, 1, "
|
|
759
|
-
assert.equal(oSpy3.callCount, 1, "
|
|
923
|
+
assert.equal(oSpy1.callCount, 1, "_setInternalValue() function should be called");
|
|
924
|
+
assert.equal(oSpy2.callCount, 1, "_setInternalValue() function should be called");
|
|
925
|
+
assert.equal(oSpy3.callCount, 1, "_setInternalValue() function should be called");
|
|
760
926
|
assert.equal(oTypeSpy.callCount, 1, "getModelFormat() function should be called");
|
|
761
927
|
});
|
|
762
928
|
|
|
@@ -22,7 +22,10 @@ sap.ui.define([
|
|
|
22
22
|
], function(Log, Localization, ResourceBundle, LoaderExtensions, ObjectPath, Device, Interface, VersionInfo, oCore, Supportability, UIArea, Element, Configuration, Library, RenderManager, Theming, ThemeManager, createAndAppendDiv, nextUIUpdate) {
|
|
23
23
|
"use strict";
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated As of version 1.120 as it is used by deprecated tests only
|
|
27
|
+
*/
|
|
28
|
+
const privateLoaderAPI = sap.ui.loader._;
|
|
26
29
|
|
|
27
30
|
function _providesPublicMethods(/**sap.ui.base.Object*/oObject, /** function */ fnClass, /**boolean*/ bFailEarly) {
|
|
28
31
|
var aMethodNames = fnClass.getMetadata().getAllPublicMethods(),
|
|
@@ -45,41 +48,90 @@ sap.ui.define([
|
|
|
45
48
|
// lazy dependency
|
|
46
49
|
var TestButton;
|
|
47
50
|
|
|
48
|
-
// custom assertion
|
|
49
|
-
QUnit.assert.equalControls = function(actual, expected, message) {
|
|
50
|
-
this.ok(actual === expected, message);
|
|
51
|
-
};
|
|
52
51
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
// ---------------------------------------------------------------------------
|
|
53
|
+
// Basic functionality
|
|
54
|
+
// ---------------------------------------------------------------------------
|
|
55
|
+
|
|
56
|
+
QUnit.module("Basic");
|
|
57
|
+
|
|
58
|
+
QUnit.test("Browser Version Test", function(assert) {
|
|
59
|
+
assert.expect(4);
|
|
60
|
+
var browser = Device.browser;
|
|
61
|
+
var value = document.documentElement.getAttribute("data-sap-ui-browser");
|
|
62
|
+
assert.ok(typeof value === "string" && value, "Data attribute is set and is not empty");
|
|
63
|
+
|
|
64
|
+
var version = browser.version;
|
|
65
|
+
assert.ok(typeof version === "number", "Browser version is set");
|
|
66
|
+
|
|
67
|
+
if (browser.firefox) {
|
|
68
|
+
assert.ok(value.indexOf("ff") === 0, "Browser is Firefox and data attribute is set right");
|
|
69
|
+
} else if (browser.webkit) {
|
|
70
|
+
if (browser.chrome) {
|
|
71
|
+
assert.ok(value.indexOf("cr") === 0, "Browser is Chrome and data attribute is set right");
|
|
72
|
+
}
|
|
73
|
+
// Those tests should not be called anymore
|
|
74
|
+
if (browser.safari && browser.mobile) {
|
|
75
|
+
assert.ok(value.indexOf("msf") === 0, "Browser is Mobile Safari and data attribute is set right");
|
|
76
|
+
} else if (browser.safari) {
|
|
77
|
+
assert.ok(value.indexOf("sf") === 0, "Browser is Safari and data attribute is set right");
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (!browser.safari || (!browser.fullscreen && !browser.webview)) {
|
|
82
|
+
assert.ok(value.indexOf(Math.floor(version)) != -1, "Version is set right in data attribute");
|
|
83
|
+
} else {
|
|
84
|
+
assert.ok(!/[0-9]+$/.test(value), "unknown browser versions shouldn't be added to the data attribute");
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
});
|
|
57
88
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
89
|
+
QUnit.test("Locale configuration (via Localization)", function(assert) {
|
|
90
|
+
var oHtml = document.documentElement;
|
|
91
|
+
var sLocale = Localization.getLanguageTag().toString();
|
|
92
|
+
|
|
93
|
+
assert.equal(oHtml.getAttribute("lang"), sLocale, "lang attribute matches locale");
|
|
94
|
+
|
|
95
|
+
sLocale = "de";
|
|
96
|
+
Localization.setLanguage(sLocale);
|
|
97
|
+
assert.equal(oHtml.getAttribute("lang"), sLocale, "lang attribute matches locale");
|
|
98
|
+
});
|
|
65
99
|
|
|
66
100
|
|
|
67
101
|
// ---------------------------------------------------------------------------
|
|
68
|
-
// Basic functionality
|
|
102
|
+
// Basic functionality, deprecated
|
|
69
103
|
// ---------------------------------------------------------------------------
|
|
70
104
|
|
|
71
|
-
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated
|
|
107
|
+
*/
|
|
108
|
+
QUnit.module("Basic (deprecated)", {
|
|
109
|
+
before() {
|
|
110
|
+
// custom assertion
|
|
111
|
+
QUnit.assert.equalControls = function(actual, expected, message) {
|
|
112
|
+
this.ok(actual === expected, message);
|
|
113
|
+
};
|
|
114
|
+
// used to get access to the non-public core parts
|
|
115
|
+
const DummyCorePlugin = {
|
|
116
|
+
startPlugin: (oCore, _bOnInit) => {
|
|
117
|
+
this.oRealCore = oCore;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
oCore.registerPlugin(DummyCorePlugin);
|
|
121
|
+
oCore.unregisterPlugin(DummyCorePlugin);
|
|
122
|
+
}
|
|
123
|
+
});
|
|
72
124
|
|
|
73
125
|
/**
|
|
74
126
|
* @deprecated As of version 1.111, Core facade will be abandoned
|
|
75
127
|
*/
|
|
76
128
|
QUnit.test("facade", function(assert) {
|
|
77
|
-
assert.notStrictEqual(sap.ui.getCore(), oRealCore, "Facade should be different from the implementation");
|
|
78
|
-
assert.notOk(sap.ui.getCore() instanceof oRealCore.constructor, "Facade should not be an instance of sap.ui.core.Core");
|
|
129
|
+
assert.notStrictEqual(sap.ui.getCore(), this.oRealCore, "Facade should be different from the implementation");
|
|
130
|
+
assert.notOk(sap.ui.getCore() instanceof this.oRealCore.constructor, "Facade should not be an instance of sap.ui.core.Core");
|
|
79
131
|
assert.ok(sap.ui.getCore() instanceof Interface, "Facade should be an instance of sap.ui.base.Interface");
|
|
80
132
|
assert.strictEqual(sap.ui.getCore(), sap.ui.getCore(), "consecutive calls to sap.ui.getCore() should return the exact same facade");
|
|
81
133
|
|
|
82
|
-
var aMethodNames = oRealCore.getMetadata().getAllPublicMethods(),
|
|
134
|
+
var aMethodNames = this.oRealCore.getMetadata().getAllPublicMethods(),
|
|
83
135
|
oCoreInterface = sap.ui.getCore(),
|
|
84
136
|
i;
|
|
85
137
|
|
|
@@ -114,12 +166,12 @@ sap.ui.define([
|
|
|
114
166
|
});
|
|
115
167
|
|
|
116
168
|
/**
|
|
117
|
-
* @deprecated Since 1.118, sap.ui.getCore and the
|
|
169
|
+
* @deprecated Since 1.118, sap.ui.getCore and the constructor are deprecated
|
|
118
170
|
*/
|
|
119
171
|
QUnit.test("repeated instantiation", function(assert) {
|
|
120
172
|
this.spy(Log, 'error');
|
|
121
173
|
|
|
122
|
-
assert.strictEqual(new oRealCore.constructor(), sap.ui.getCore(), "consecutive calls to the constructor should return the facade");
|
|
174
|
+
assert.strictEqual(new this.oRealCore.constructor(), sap.ui.getCore(), "consecutive calls to the constructor should return the facade");
|
|
123
175
|
sinon.assert.calledWith(Log.error, sinon.match(/Only.*must create an instance of .*Core/).and(sinon.match(/use the module export directly without using 'new'/)));
|
|
124
176
|
});
|
|
125
177
|
|
|
@@ -304,37 +356,6 @@ sap.ui.define([
|
|
|
304
356
|
assert.equal(corePath, "http://third.preconfig.com/ui5-themes/sap/ui/core/themes/my_third_preconfigured_theme/", "path should be as configured");
|
|
305
357
|
});
|
|
306
358
|
|
|
307
|
-
QUnit.test("Browser Version Test", function(assert) {
|
|
308
|
-
assert.expect(4);
|
|
309
|
-
var browser = Device.browser;
|
|
310
|
-
var value = document.documentElement.getAttribute("data-sap-ui-browser");
|
|
311
|
-
assert.ok(typeof value === "string" && value, "Data attribute is set and is not empty");
|
|
312
|
-
|
|
313
|
-
var version = browser.version;
|
|
314
|
-
assert.ok(typeof version === "number", "Browser version is set");
|
|
315
|
-
|
|
316
|
-
if (browser.firefox) {
|
|
317
|
-
assert.ok(value.indexOf("ff") === 0, "Browser is Firefox and data attribute is set right");
|
|
318
|
-
} else if (browser.webkit) {
|
|
319
|
-
if (browser.chrome) {
|
|
320
|
-
assert.ok(value.indexOf("cr") === 0, "Browser is Chrome and data attribute is set right");
|
|
321
|
-
}
|
|
322
|
-
// Those tests should not be called anymore
|
|
323
|
-
if (browser.safari && browser.mobile) {
|
|
324
|
-
assert.ok(value.indexOf("msf") === 0, "Browser is Mobile Safari and data attribute is set right");
|
|
325
|
-
} else if (browser.safari) {
|
|
326
|
-
assert.ok(value.indexOf("sf") === 0, "Browser is Safari and data attribute is set right");
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
if (!browser.safari || (!browser.fullscreen && !browser.webview)) {
|
|
331
|
-
assert.ok(value.indexOf(Math.floor(version)) != -1, "Version is set right in data attribute");
|
|
332
|
-
} else {
|
|
333
|
-
assert.ok(!/[0-9]+$/.test(value), "unknown browser versions shouldn't be added to the data attribute");
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
});
|
|
337
|
-
|
|
338
359
|
// now check the locale configuration to be applied as lang attribute
|
|
339
360
|
/**
|
|
340
361
|
* @deprecated As of Version 1.120.
|
|
@@ -352,21 +373,16 @@ sap.ui.define([
|
|
|
352
373
|
assert.equal(oHtml.getAttribute("lang"), sLocale, "lang attribute matches locale");
|
|
353
374
|
});
|
|
354
375
|
|
|
355
|
-
QUnit.test("Locale configuration (via Localization)", function(assert) {
|
|
356
|
-
var oHtml = document.documentElement;
|
|
357
|
-
var sLocale = Localization.getLanguageTag().toString();
|
|
358
376
|
|
|
359
|
-
assert.equal(oHtml.getAttribute("lang"), sLocale, "lang attribute matches locale");
|
|
360
377
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
});
|
|
378
|
+
// ---------------------------------------------------------------------------
|
|
379
|
+
// Library Resource Bundles, deprecated
|
|
380
|
+
// ---------------------------------------------------------------------------
|
|
365
381
|
|
|
366
382
|
/**
|
|
367
383
|
* @deprecated Since 1.119.
|
|
368
384
|
*/
|
|
369
|
-
QUnit.module('getLibraryResourceBundle');
|
|
385
|
+
QUnit.module('getLibraryResourceBundle (deprecated)');
|
|
370
386
|
|
|
371
387
|
QUnit.test("async: testGetLibraryResourceBundle", function(assert) {
|
|
372
388
|
var oSpy = this.spy(ResourceBundle, 'create'),
|
|
@@ -574,14 +590,22 @@ sap.ui.define([
|
|
|
574
590
|
return pBundle;
|
|
575
591
|
});
|
|
576
592
|
|
|
593
|
+
|
|
594
|
+
|
|
577
595
|
// ---------------------------------------------------------------------------
|
|
578
|
-
// loadLibrary
|
|
596
|
+
// loadLibrary, deprecated
|
|
579
597
|
// ---------------------------------------------------------------------------
|
|
580
598
|
|
|
581
599
|
/**
|
|
582
600
|
* @deprecated Since 1.119.
|
|
583
601
|
*/
|
|
584
|
-
QUnit.module("loadLibrary", {
|
|
602
|
+
QUnit.module("loadLibrary (deprecated)", {
|
|
603
|
+
before() {
|
|
604
|
+
QUnit.assert.isLibLoaded = function(libName) {
|
|
605
|
+
this.ok(ObjectPath.get(libName), "namespace for " + libName + " should exist");
|
|
606
|
+
this.ok(Library.all()[libName], "Core should know and list " + libName + " as 'loaded'");
|
|
607
|
+
};
|
|
608
|
+
},
|
|
585
609
|
beforeEach: function(assert) {
|
|
586
610
|
assert.notOk(Supportability.isDebugModeEnabled(), "debug mode must be deactivated to properly test library loading");
|
|
587
611
|
this.oLibraryGetPreloadStub = this.stub(Library, "getPreloadMode").returns("sync");
|
|
@@ -589,6 +613,9 @@ sap.ui.define([
|
|
|
589
613
|
afterEach: function(assert) {
|
|
590
614
|
this.oLibraryGetPreloadStub.restore();
|
|
591
615
|
delete window.testlibs;
|
|
616
|
+
},
|
|
617
|
+
after() {
|
|
618
|
+
delete QUnit.assert.isLibLoaded;
|
|
592
619
|
}
|
|
593
620
|
});
|
|
594
621
|
|
|
@@ -16,13 +16,15 @@ sap.ui.define([
|
|
|
16
16
|
// this should normally happen in the control which listens to the event
|
|
17
17
|
// also wait for the result so that the scope check in CustomStyleClassSupport can work
|
|
18
18
|
await new Promise((resolve) => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
Theming.attachApplied(() => {
|
|
20
|
+
const value = Parameters.get({
|
|
21
|
+
name : "sapUiTstTextColor", // a parameter which is defined by sap.ui.testlib only
|
|
22
|
+
callback: resolve
|
|
23
|
+
});
|
|
24
|
+
if ( value !== undefined ) {
|
|
25
|
+
resolve();
|
|
26
|
+
}
|
|
22
27
|
});
|
|
23
|
-
if ( value !== undefined ) {
|
|
24
|
-
resolve();
|
|
25
|
-
}
|
|
26
28
|
});
|
|
27
29
|
|
|
28
30
|
// define control
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/*global QUnit, sinon*/
|
|
2
2
|
sap.ui.define([
|
|
3
|
+
"sap/base/future",
|
|
3
4
|
"sap/base/Log",
|
|
4
5
|
"sap/ui/core/Element",
|
|
5
6
|
"sap/ui/qunit/utils/createAndAppendDiv",
|
|
6
7
|
"sap/ui/thirdparty/jquery"
|
|
7
|
-
], function(Log, Element, createAndAppendDiv, jQuery) {
|
|
8
|
+
], function(future, Log, Element, createAndAppendDiv, jQuery) {
|
|
8
9
|
"use strict";
|
|
9
10
|
|
|
10
11
|
QUnit.module("Element.closestTo()");
|
|
@@ -125,7 +126,11 @@ sap.ui.define([
|
|
|
125
126
|
oUI5Element.destroy();
|
|
126
127
|
});
|
|
127
128
|
|
|
128
|
-
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated As of version 1.120
|
|
131
|
+
*/
|
|
132
|
+
QUnit.test("Should support jQuery object given as parameter (future=false)", function(assert) {
|
|
133
|
+
future.active = false;
|
|
129
134
|
var oErrorLogSpy = this.spy(Log, "error");
|
|
130
135
|
var sId = "el1";
|
|
131
136
|
var oContainer = createAndAppendDiv(sId);
|
|
@@ -139,11 +144,27 @@ sap.ui.define([
|
|
|
139
144
|
var oUI5ElementFound = Element.closestTo(jQuery("#startPoint"));
|
|
140
145
|
assert.strictEqual(oUI5ElementFound, oUI5Element);
|
|
141
146
|
|
|
142
|
-
sinon.assert.calledWithExactly(oErrorLogSpy, "[FUTURE FATAL] Do not call Element.closestTo() with jQuery object as parameter.
|
|
143
|
-
The function should be called with either a DOM Element or a CSS selector. \
|
|
144
|
-
(future error, ignored for now)");
|
|
147
|
+
sinon.assert.calledWithExactly(oErrorLogSpy, "[FUTURE FATAL] Do not call Element.closestTo() with jQuery object as parameter. The function should be called with either a DOM Element or a CSS selector.");
|
|
145
148
|
|
|
146
149
|
oContainer.remove();
|
|
147
150
|
oUI5Element.destroy();
|
|
151
|
+
future.active = undefined;
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
QUnit.test("Should support jQuery object given as parameter (future=true)", function(assert) {
|
|
155
|
+
future.active = true;
|
|
156
|
+
var sId = "el1";
|
|
157
|
+
var oContainer = createAndAppendDiv(sId);
|
|
158
|
+
oContainer.setAttribute("data-sap-ui", sId);
|
|
159
|
+
oContainer.innerHTML = "<div id='el2' data-sap-ui-related='el2'> \
|
|
160
|
+
<span id='startPoint'></span> \
|
|
161
|
+
</div>";
|
|
162
|
+
|
|
163
|
+
assert.throws(() => {
|
|
164
|
+
Element.closestTo(jQuery("#startPoint"));
|
|
165
|
+
}, new Error("Do not call Element.closestTo() with jQuery object as parameter. The function should be called with either a DOM Element or a CSS selector."), "Error thrown because jQuery object is provided as argument.");
|
|
166
|
+
|
|
167
|
+
oContainer.remove();
|
|
168
|
+
future.active = undefined;
|
|
148
169
|
});
|
|
149
170
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*global QUnit, sinon */
|
|
2
2
|
sap.ui.define([
|
|
3
|
+
"sap/base/future",
|
|
3
4
|
"sap/base/Log",
|
|
4
5
|
"sap/ui/core/Element",
|
|
5
6
|
"sap/ui/core/library",
|
|
@@ -7,7 +8,7 @@ sap.ui.define([
|
|
|
7
8
|
"sap/ui/model/json/JSONModel",
|
|
8
9
|
"sap/m/Button",
|
|
9
10
|
"sap/ui/qunit/utils/nextUIUpdate"
|
|
10
|
-
], function(Log, Element, library, View, JSONModel, Button, nextUIUpdate) {
|
|
11
|
+
], function(future, Log, Element, library, View, JSONModel, Button, nextUIUpdate) {
|
|
11
12
|
"use strict";
|
|
12
13
|
|
|
13
14
|
var ViewType = library.mvc.ViewType;
|
|
@@ -173,7 +174,12 @@ sap.ui.define([
|
|
|
173
174
|
assert.equal(object_data_ori.two, 3, "The object data of the original object should be changed as well, as only the reference to it is cloned");
|
|
174
175
|
});
|
|
175
176
|
|
|
176
|
-
|
|
177
|
+
/**
|
|
178
|
+
* @deprecated As of version 1.120
|
|
179
|
+
*/
|
|
180
|
+
QUnit.test("Calling data() after destroy (future=false)", function(assert) {
|
|
181
|
+
future.active = false;
|
|
182
|
+
|
|
177
183
|
// Setup: create an element, add some custom data and destroy it
|
|
178
184
|
this.stub(Log, "error");
|
|
179
185
|
var element = new Element();
|
|
@@ -227,6 +233,62 @@ sap.ui.define([
|
|
|
227
233
|
assert.strictEqual(element.data({a:"b",b:"c"}), element, "data({data}) should return the element itself");
|
|
228
234
|
assert.strictEqual(element.getAggregation("customData"), null, "data({data}) should not have modified aggregation 'customData'");
|
|
229
235
|
assert.ok(Log.error.calledWith(sinon.match(/Cannot create custom data on an already destroyed element/)));
|
|
236
|
+
|
|
237
|
+
future.active = undefined;
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
QUnit.test("Calling data() after destroy (future=true)", function(assert) {
|
|
241
|
+
future.active = true;
|
|
242
|
+
// Setup: create an element, add some custom data and destroy it
|
|
243
|
+
|
|
244
|
+
this.stub(Log, "error");
|
|
245
|
+
var element = new Element({
|
|
246
|
+
id: "myElement"
|
|
247
|
+
});
|
|
248
|
+
element.data("test", "value");
|
|
249
|
+
element.destroy();
|
|
250
|
+
|
|
251
|
+
// Act/Assert
|
|
252
|
+
|
|
253
|
+
// get value for a single key
|
|
254
|
+
Log.error.resetHistory();
|
|
255
|
+
assert.strictEqual(element.data("test"), null, "no more custom data after destroy");
|
|
256
|
+
assert.strictEqual(Log.error.callCount, 0);
|
|
257
|
+
|
|
258
|
+
// get all key/value pairs
|
|
259
|
+
Log.error.resetHistory();
|
|
260
|
+
assert.deepEqual(element.data(), {}, "no more custom data after destroy");
|
|
261
|
+
assert.strictEqual(Log.error.callCount, 0);
|
|
262
|
+
|
|
263
|
+
// destroy all
|
|
264
|
+
Log.error.resetHistory();
|
|
265
|
+
assert.strictEqual(element.data(null), element, "data(null) should return the element itself");
|
|
266
|
+
assert.strictEqual(element.getAggregation("customData"), null, "data(null) should not have modified aggregation 'customData'");
|
|
267
|
+
assert.strictEqual(Log.error.callCount, 0);
|
|
268
|
+
|
|
269
|
+
// add single key/value pairs
|
|
270
|
+
Log.error.resetHistory();
|
|
271
|
+
assert.throws(() => { element.data("a", "b"); }, new Error("Cannot create custom data on an already destroyed element 'Element sap.ui.core.Element#myElement'"), "Error thrown because calling data(key,value) after destroy");
|
|
272
|
+
|
|
273
|
+
// remove single key/value pairs
|
|
274
|
+
Log.error.resetHistory();
|
|
275
|
+
assert.strictEqual(element.data("a", null), element, "data(key,null) should return the element itself");
|
|
276
|
+
assert.strictEqual(element.getAggregation("customData"), null, "data(key,value) should not have modified aggregation 'customData'");
|
|
277
|
+
assert.strictEqual(Log.error.callCount, 0);
|
|
278
|
+
|
|
279
|
+
// add single key/value pair with DOM
|
|
280
|
+
Log.error.resetHistory();
|
|
281
|
+
assert.throws(() => { element.data("a", "b", false); }, new Error("Cannot create custom data on an already destroyed element 'Element sap.ui.core.Element#myElement'"), "Error thrown because calling data(key,value,bool) after destroy");
|
|
282
|
+
|
|
283
|
+
// add single key/value pair with DOM
|
|
284
|
+
Log.error.resetHistory();
|
|
285
|
+
assert.throws(() => { element.data("a", "b", true); }, new Error("Cannot create custom data on an already destroyed element 'Element sap.ui.core.Element#myElement'"), "Error thrown because calling data(key,value,bool) after destroy");
|
|
286
|
+
|
|
287
|
+
// add multiple key/value pairs
|
|
288
|
+
Log.error.resetHistory();
|
|
289
|
+
assert.throws(() => { element.data({a:"b",b:"c"}); }, new Error("Cannot create custom data on an already destroyed element 'Element sap.ui.core.Element#myElement'"), "Error thrown because calling data({data}) after destroy");
|
|
290
|
+
|
|
291
|
+
future.active = undefined;
|
|
230
292
|
});
|
|
231
293
|
|
|
232
294
|
// Data Binding
|
|
@@ -283,8 +345,12 @@ sap.ui.define([
|
|
|
283
345
|
|
|
284
346
|
});
|
|
285
347
|
|
|
348
|
+
/**
|
|
349
|
+
* @deprecated As of version 1.120
|
|
350
|
+
*/
|
|
351
|
+
QUnit.test("Write Data to HTML (future=false)", async function(assert) {
|
|
352
|
+
future.active = false;
|
|
286
353
|
|
|
287
|
-
QUnit.test("Write Data to HTML", async function(assert) {
|
|
288
354
|
var btn = new Button({text:"Hello"});
|
|
289
355
|
|
|
290
356
|
btn.data("test", "some payload", true);
|
|
@@ -302,6 +368,23 @@ sap.ui.define([
|
|
|
302
368
|
assert.equal($btn.attr("data-test3"), undefined, "the 'test3' data should NOT be written to DOM");
|
|
303
369
|
assert.equal($btn.attr("data-test4"), undefined, "the 'test4' data should NOT be written to DOM");
|
|
304
370
|
assert.equal($btn.attr("data-test5"), undefined, "the 'test5' data should NOT be written to DOM");
|
|
371
|
+
|
|
372
|
+
future.active = undefined;
|
|
305
373
|
});
|
|
306
374
|
|
|
375
|
+
QUnit.test("Write Data to HTML (future=true)", async function(assert) {
|
|
376
|
+
future.active = true;
|
|
377
|
+
var btn = new Button({text:"Hello"});
|
|
378
|
+
|
|
379
|
+
btn.data("test", "some payload", true);
|
|
380
|
+
btn.data("test2", "some other payload");
|
|
381
|
+
btn.data("test3", 42, true);
|
|
382
|
+
btn.data("test4", true, true);
|
|
383
|
+
btn.data("test5", {"test":"nope"}, true);
|
|
384
|
+
|
|
385
|
+
btn.placeAt("content");
|
|
386
|
+
await assert.rejects(nextUIUpdate(), "nextUIUpdate rejected because no string value was provided to CustomData");
|
|
387
|
+
|
|
388
|
+
future.active = undefined;
|
|
389
|
+
});
|
|
307
390
|
});
|
|
@@ -688,7 +688,7 @@ sap.ui.define([
|
|
|
688
688
|
});
|
|
689
689
|
|
|
690
690
|
QUnit.test("Fragment.load with properties 'name' and 'definition' provided at the same time", function (assert) {
|
|
691
|
-
var myXml = '<Button xmlns="sap.m" id="xmlfragbtn2" text="This is an XML Fragment"
|
|
691
|
+
var myXml = '<Button xmlns="sap.m" id="xmlfragbtn2" text="This is an XML Fragment"></Button>';
|
|
692
692
|
var oLogErrorSpy = this.spy(Log, "error");
|
|
693
693
|
return Fragment.load({
|
|
694
694
|
name: "testdata.fragments.XMLTestFragmentNoController",
|