@openui5/sap.ui.core 1.120.9 → 1.120.11
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/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 +4 -4
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +11 -5
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +5 -3
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- package/src/sap/ui/base/Metadata.js +1 -1
- 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 +31 -3
- 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 +1 -1
- package/src/sap/ui/core/Control.js +19 -3
- 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 +28 -3
- 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/Fragment.js +1 -1
- 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 +1 -1
- 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 +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 +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/date/UI5Date.js +1 -1
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +4 -4
- 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/TimezoneUtil.js +1 -1
- 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/mvc/Controller.js +42 -7
- 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 +1 -1
- 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/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/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/XMLPreprocessor.js +59 -65
- package/src/sap/ui/core/util/_LocalizationHelper.js +2 -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/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- 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/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/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 +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 +1 -1
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +2 -2
- package/src/sap/ui/model/odata/v4/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +36 -24
- 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 +1 -1
- 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 +1 -1
- 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/generic/TestBase.js +1 -1
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/sap/ui/util/_enforceNoReturnValue.js +27 -0
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/ui5.yaml +1 -1
- 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/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/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/qunit/EventProvider.qunit.js +30 -2
- package/test/sap/ui/core/qunit/ManagedObject.qunit.js +45 -3
- package/test/sap/ui/core/qunit/app/DesignMode_suppressedDeactivation.qunit.js +8 -4
- package/test/sap/ui/core/qunit/app/_createDesignModeTests_legacyAPIs.qunit.js +8 -4
- package/test/sap/ui/core/qunit/app/fixture/designmode/test01.controller.js +4 -4
- package/test/sap/ui/core/qunit/component/Component_keepAlive.qunit.js +33 -2
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3/App.view.xml +3 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3/Component.js +20 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3/Home.view.xml +5 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3/Other.view.xml +5 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3/manifest.json +54 -0
- package/test/sap/ui/core/qunit/mvc/Controller.qunit.js +104 -49
- package/test/sap/ui/core/qunit/mvc/testdata/asyncHooks.view.xml +7 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_Requestor.qunit.js +34 -19
- package/test/sap/ui/core/qunit/util/XMLPreprocessor.qunit.js +137 -26
- package/test/sap/ui/core/relnotes/changes-1.120.json +27 -0
|
@@ -341,9 +341,10 @@ sap.ui.define([
|
|
|
341
341
|
this.oXMLTemplateProcessorMock.expects("loadTemplatePromise").never();
|
|
342
342
|
|
|
343
343
|
this.oSapUiMock = this.mock(sap.ui);
|
|
344
|
-
// @see sap.ui.base.Event#init
|
|
345
|
-
|
|
346
|
-
|
|
344
|
+
// @see sap.ui.base.Event#init: "sap/ui/core/Messaging"
|
|
345
|
+
// also "sap/ui/model/type/Boolean" ends up here
|
|
346
|
+
this.oSapUiMock.expects(`require`).on(sap.ui).atLeast(0)
|
|
347
|
+
.withExactArgs(sinon.match.string).callThrough();
|
|
347
348
|
},
|
|
348
349
|
|
|
349
350
|
/**
|
|
@@ -757,9 +758,6 @@ sap.ui.define([
|
|
|
757
758
|
*/
|
|
758
759
|
QUnit.test("XML with template:if test='{/flag}', truthy, async = false, flag = " + oFlag,
|
|
759
760
|
function (assert) {
|
|
760
|
-
this.oSapUiMock.expects("require").on(sap.ui)
|
|
761
|
-
.atLeast(0) // only for the 1st run
|
|
762
|
-
.withArgs("sap/ui/model/type/Boolean").callThrough();
|
|
763
761
|
return this.check(assert, [
|
|
764
762
|
mvcView("t"),
|
|
765
763
|
'<t:if test="{path: \'/flag\', type: \'sap.ui.model.type.Boolean\'}">',
|
|
@@ -955,22 +953,24 @@ sap.ui.define([
|
|
|
955
953
|
]
|
|
956
954
|
}].forEach(function (oFixture) {
|
|
957
955
|
[false, true].forEach(function (bWarn) {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
956
|
+
[false, true].forEach(function (bAsync) {
|
|
957
|
+
var aViewContent = oFixture.aViewContent,
|
|
958
|
+
vExpected = oFixture.vExpected && oFixture.vExpected.slice();
|
|
959
|
+
|
|
960
|
+
QUnit.test(aViewContent[1] + `, warn = ` + bWarn + `, async = ` + bAsync, function (assert) {
|
|
961
|
+
this.mock(Component).expects(`getCustomizing`).never();
|
|
962
|
+
if (!bWarn) {
|
|
963
|
+
Log.setLevel(Log.Level.ERROR, sComponent);
|
|
964
|
+
}
|
|
965
|
+
warn(this.oLogMock,
|
|
966
|
+
oFixture.sMessage || sinon.match(/\[ \d\] Binding not ready/),
|
|
967
|
+
aViewContent[1])
|
|
968
|
+
.exactly(bWarn ? 1 : 0); // do not construct arguments in vain!
|
|
970
969
|
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
970
|
+
return this.check(assert, aViewContent, {
|
|
971
|
+
models : new JSONModel()
|
|
972
|
+
}, vExpected, bAsync);
|
|
973
|
+
});
|
|
974
974
|
});
|
|
975
975
|
});
|
|
976
976
|
});
|
|
@@ -1266,7 +1266,7 @@ sap.ui.define([
|
|
|
1266
1266
|
+ ' path: \'/com.sap.vocabularies.UI.v1.HeaderInfo/Title/Value\'}"/>',
|
|
1267
1267
|
'<Label text="A \\{ is a special character"/>', // escaping MUST NOT be changed!
|
|
1268
1268
|
'<Text text="{unrelated>/some/path}"/>', // unrelated binding MUST NOT be changed!
|
|
1269
|
-
// avoid
|
|
1269
|
+
// avoid warning "Function name(s) .someMethod not found"
|
|
1270
1270
|
'<Text text="' + "{path:'/some/path',formatter:'.someMethod'}" + '"/>',
|
|
1271
1271
|
'<html:img src="{formatter: \'foo.Helper.help\','
|
|
1272
1272
|
+ ' path: \'/com.sap.vocabularies.UI.v1.HeaderInfo/TypeImageUrl\'}"/>',
|
|
@@ -3074,7 +3074,7 @@ sap.ui.define([
|
|
|
3074
3074
|
/**
|
|
3075
3075
|
* @deprecated As of version 1.120.0
|
|
3076
3076
|
*/
|
|
3077
|
-
QUnit.test("template:alias", function (assert) {
|
|
3077
|
+
QUnit.test("@deprecated template:alias", function (assert) {
|
|
3078
3078
|
var oObjectPathMock = this.mock(ObjectPath);
|
|
3079
3079
|
|
|
3080
3080
|
window.foo = {
|
|
@@ -3110,7 +3110,7 @@ sap.ui.define([
|
|
|
3110
3110
|
.withExactArgs(sinon.match.string.or(sinon.match.array), sinon.match.object)
|
|
3111
3111
|
.callThrough();
|
|
3112
3112
|
this.mock(BindingParser).expects("complexParser").atLeast(1)
|
|
3113
|
-
.
|
|
3113
|
+
.withArgs(sinon.match.string, sinon.match.object, sinon.match.bool,
|
|
3114
3114
|
/*bTolerateFunctionsNotFound*/true, /*bStaticContext*/true, /*bPreferContext*/true)
|
|
3115
3115
|
.callThrough();
|
|
3116
3116
|
|
|
@@ -3201,7 +3201,7 @@ sap.ui.define([
|
|
|
3201
3201
|
.withExactArgs(sinon.match.string.or(sinon.match.array), sinon.match.object)
|
|
3202
3202
|
.callThrough();
|
|
3203
3203
|
this.mock(BindingParser).expects("complexParser").atLeast(1)
|
|
3204
|
-
.
|
|
3204
|
+
.withArgs(sinon.match.string, sinon.match.object, sinon.match.bool,
|
|
3205
3205
|
/*bTolerateFunctionsNotFound*/true, /*bStaticContext*/true, /*bPreferContext*/true)
|
|
3206
3206
|
.callThrough();
|
|
3207
3207
|
|
|
@@ -4146,7 +4146,7 @@ sap.ui.define([
|
|
|
4146
4146
|
'</template:if>',
|
|
4147
4147
|
'</template:with>', // context goes out of scope
|
|
4148
4148
|
'</template:alias>', // alias goes out of scope
|
|
4149
|
-
'<
|
|
4149
|
+
'<Label text="{here>flag}"/>',
|
|
4150
4150
|
"<Label text=\"{formatter: '.bar', path: '/'}\"/>",
|
|
4151
4151
|
'</mvc:View>'
|
|
4152
4152
|
];
|
|
@@ -4535,6 +4535,117 @@ sap.ui.define([
|
|
|
4535
4535
|
models : new JSONModel()
|
|
4536
4536
|
});
|
|
4537
4537
|
});
|
|
4538
|
+
|
|
4539
|
+
//*********************************************************************************************
|
|
4540
|
+
QUnit.test(`Code coverage for binding info's wait/resolved`, function (assert) {
|
|
4541
|
+
const oAverageSpy = this.spy(Measurement, `average`)
|
|
4542
|
+
.withArgs(`sap.ui.core.util.XMLPreprocessor/getResolvedBinding`);
|
|
4543
|
+
const oEndSpy = this.spy(Measurement, `end`)
|
|
4544
|
+
.withArgs(`sap.ui.core.util.XMLPreprocessor/getResolvedBinding`);
|
|
4545
|
+
this.oSapUiMock.expects(`require`).on(sap.ui).atLeast(0) // only for the 1st run
|
|
4546
|
+
.withArgs([`sap/ui/model/type/Boolean`]).callThrough();
|
|
4547
|
+
|
|
4548
|
+
const aViewContent = [
|
|
4549
|
+
mvcView(``, {
|
|
4550
|
+
join : function () {
|
|
4551
|
+
return Array.prototype.join.call(arguments, `, `);
|
|
4552
|
+
}
|
|
4553
|
+
}, this),
|
|
4554
|
+
// avoid warning "Function name(s) .missing not found"
|
|
4555
|
+
`<Label text="{formatter: '.missing', path: '/'`
|
|
4556
|
+
+ `, type: 'sap.ui.model.type.Boolean'}"/>`,
|
|
4557
|
+
// binding not ready => false
|
|
4558
|
+
`<template:if test="{formatter:'.notFound', path: '/'`
|
|
4559
|
+
+ `, type: 'sap.ui.model.type.Boolean'}">`,
|
|
4560
|
+
`<Out/>`,
|
|
4561
|
+
`</template:if>`,
|
|
4562
|
+
// automatically expected warning "Constant test condition" (@see #check)
|
|
4563
|
+
`<template:if test="{= false }">`,
|
|
4564
|
+
`<Out/>`,
|
|
4565
|
+
`</template:if>`,
|
|
4566
|
+
`<template:if test="{path: '/flag', type: 'sap.ui.model.type.Boolean'}">`,
|
|
4567
|
+
`<In id="flag"/>`,
|
|
4568
|
+
`</template:if>`,
|
|
4569
|
+
`<ExtensionPoint name="{path: 'unrelated>/', type: 'sap.ui.model.type.Boolean'}"/>`,
|
|
4570
|
+
// NO warning "Constant test condition" (yet); "_type" must be ignored
|
|
4571
|
+
`<template:if test="{_type: 'Constant', value : false}">`,
|
|
4572
|
+
`<Out/>`,
|
|
4573
|
+
`</template:if>`,
|
|
4574
|
+
`<Label text="{formatter: 'join'`
|
|
4575
|
+
+ `, parts: [{value: 'Hello'}, {value: 'world!'}]}"/>`,
|
|
4576
|
+
`<Label text="{_type: 'Constant', value : 5}"/>`,
|
|
4577
|
+
`</mvc:View>`
|
|
4578
|
+
];
|
|
4579
|
+
warn(this.oLogMock, `[ 1] Function name(s) .notFound not found`, aViewContent[2]);
|
|
4580
|
+
warn(this.oLogMock, `[ 0] Binding not ready`, aViewContent[11]);
|
|
4581
|
+
//TODO? warn(this.oLogMock, `[ 0] Constant test condition`, aViewContent[12]);
|
|
4582
|
+
|
|
4583
|
+
return this.checkTracing(assert, true, [
|
|
4584
|
+
{m : `[ 0] Start processing qux`},
|
|
4585
|
+
{m : `[ 0] Binding not ready for attribute text`, d : 1},
|
|
4586
|
+
{m : `[ 1] test == false --> false`, d : 2},
|
|
4587
|
+
{m : `[ 1] Finished`, d : 4},
|
|
4588
|
+
{m : `[ 1] test == "false" --> false`, d : 5},
|
|
4589
|
+
{m : `[ 1] Finished`, d : 7},
|
|
4590
|
+
{m : `[ 1] test == true --> true`, d : 8},
|
|
4591
|
+
{m : `[ 1] Finished`, d : 10},
|
|
4592
|
+
{m : `[ 0] Binding not ready for attribute name`, d : 11},
|
|
4593
|
+
{m : `[ 1] test == false --> false`, d : 12},
|
|
4594
|
+
{m : `[ 1] Finished`, d : 14},
|
|
4595
|
+
{m : `[ 0] text = Hello, world!`, d : 15},
|
|
4596
|
+
{m : `[ 0] text = 5`, d : 16},
|
|
4597
|
+
{m : `[ 0] Finished processing qux`}
|
|
4598
|
+
], aViewContent, {
|
|
4599
|
+
models : new JSONModel({flag : true})
|
|
4600
|
+
}, [
|
|
4601
|
+
aViewContent[1], // <Label .../>
|
|
4602
|
+
aViewContent[9], // <In .../>
|
|
4603
|
+
// Note: XML serializer outputs > encoding...
|
|
4604
|
+
aViewContent[11].replace(`>`, `>`), // <ExtensionPoint .../>
|
|
4605
|
+
`<Label text="Hello, world!"/>`,
|
|
4606
|
+
`<Label text="5"/>`
|
|
4607
|
+
], /*bAsync*/true)
|
|
4608
|
+
.finally(function () {
|
|
4609
|
+
// Note: each attribute of <mvc:View> or <In> is also counted here...
|
|
4610
|
+
assert.strictEqual(oAverageSpy.callCount, oEndSpy.callCount);
|
|
4611
|
+
});
|
|
4612
|
+
});
|
|
4613
|
+
//TODO static binding for "Constant test condition" with type?!
|
|
4614
|
+
|
|
4615
|
+
//*********************************************************************************************
|
|
4616
|
+
QUnit.test(`DINC0032093, DINC0074061`, function (assert) {
|
|
4617
|
+
const oModel = new JSONModel({});
|
|
4618
|
+
oModel.$$valueAsPromise = true;
|
|
4619
|
+
this.oSapUiMock.expects(`require`).on(sap.ui).atLeast(0) // only for the 1st run
|
|
4620
|
+
.withArgs([`sap/ui/model/type/Boolean`]).callThrough();
|
|
4621
|
+
|
|
4622
|
+
return this.checkTracing(assert, true, [
|
|
4623
|
+
{m : `[ 0] Start processing qux`},
|
|
4624
|
+
{m : `[ 0] Binding not ready for attribute text`, d : 1},
|
|
4625
|
+
{m : `[ 0] Binding not ready for attribute text`, d : 2},
|
|
4626
|
+
{m : `[ 0] Removed attribute text`, d : 3},
|
|
4627
|
+
{m : `[ 0] Finished processing qux`}
|
|
4628
|
+
], [
|
|
4629
|
+
mvcView(``, {
|
|
4630
|
+
nil : function () {
|
|
4631
|
+
return null;
|
|
4632
|
+
}
|
|
4633
|
+
}, this),
|
|
4634
|
+
`<Text text="{missing>/flag}"/>`,
|
|
4635
|
+
// async type loading must not make a difference here!
|
|
4636
|
+
`<Text text="{path: 'missing>/flag', type: 'sap.ui.model.type.Boolean'}"/>`,
|
|
4637
|
+
// async view and model with $$valueAsPromise must not make a difference here!
|
|
4638
|
+
`<Text text="{formatter: 'nil', path: '/'}"/>`,
|
|
4639
|
+
`</mvc:View>`
|
|
4640
|
+
], {
|
|
4641
|
+
models : oModel
|
|
4642
|
+
}, [
|
|
4643
|
+
// Note: XML serializer outputs > encoding...
|
|
4644
|
+
`<Text text="{missing>/flag}"/>`,
|
|
4645
|
+
`<Text text="{path: 'missing>/flag', type: 'sap.ui.model.type.Boolean'}"/>`,
|
|
4646
|
+
`<Text/>`
|
|
4647
|
+
], /*bAsync*/true);
|
|
4648
|
+
});
|
|
4538
4649
|
});
|
|
4539
4650
|
//TODO we have completely missed support for unique IDs in fragments via the "id" property!
|
|
4540
4651
|
//TODO somehow trace ex.stack, but do not duplicate ex.message
|
|
@@ -745,5 +745,32 @@
|
|
|
745
745
|
"text": " core/Lib: Improve Error Message reg. Pseudo Modules"
|
|
746
746
|
}
|
|
747
747
|
]
|
|
748
|
+
},
|
|
749
|
+
"1.120.11": {
|
|
750
|
+
"date": "March 2024",
|
|
751
|
+
"notes": [
|
|
752
|
+
{
|
|
753
|
+
"id": "8613e5fe17531c33cda0a4f8fe2d28ae02eead41",
|
|
754
|
+
"type": "FIX",
|
|
755
|
+
"text": " mvc/Controller: Replace function call with apply",
|
|
756
|
+
"references": [
|
|
757
|
+
{
|
|
758
|
+
"type": "BCP",
|
|
759
|
+
"reference": ""
|
|
760
|
+
}
|
|
761
|
+
]
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"id": "001540a9f49c56046a716e21fcc1f2ce120d99ef",
|
|
765
|
+
"type": "FIX",
|
|
766
|
+
"text": " sap.ui.core: Allow for async control event handlers",
|
|
767
|
+
"references": [
|
|
768
|
+
{
|
|
769
|
+
"type": "BCP",
|
|
770
|
+
"reference": ""
|
|
771
|
+
}
|
|
772
|
+
]
|
|
773
|
+
}
|
|
774
|
+
]
|
|
748
775
|
}
|
|
749
776
|
}
|