@openui5/sap.ui.core 1.120.8 → 1.120.10
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 +1 -1
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +1 -1
- 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 +1 -1
- 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 +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 +1 -1
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +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/Lib.js +3 -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 +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/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/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/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/ODataBinding.js +5 -3
- 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 +1 -1
- package/src/sap/ui/model/odata/v4/ODataModel.js +23 -1
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/resource/ResourceModel.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +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/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/Lib.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/v4/ODataBinding.qunit.js +43 -15
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.qunit.js +39 -0
- package/test/sap/ui/core/qunit/util/XMLPreprocessor.qunit.js +137 -26
- package/test/sap/ui/core/relnotes/changes-1.120.json +10 -0
|
@@ -474,7 +474,7 @@ sap.ui.define([
|
|
|
474
474
|
name: "testing.pseudo.modules.deprecation"
|
|
475
475
|
});
|
|
476
476
|
|
|
477
|
-
const sExpectedErrorMessage = "Deprecation: Importing the type 'testing.pseudo.modules.deprecation.Type1' as a module is deprecated. Please
|
|
477
|
+
const sExpectedErrorMessage = "Deprecation: Importing the type 'testing.pseudo.modules.deprecation.Type1' as a pseudo module is deprecated. Please import the type from the module 'testing/pseudo/modules/deprecation/library'. You can then reference this type via the library's module export. For more information, see documentation under 'Best Practices for Loading Modules'.";
|
|
478
478
|
|
|
479
479
|
// Anonymous require: Log does not contain the requesting module
|
|
480
480
|
await new Promise((resolve, reject) => {
|
|
@@ -1086,7 +1086,8 @@ sap.ui.define([
|
|
|
1086
1086
|
ready : function () { return SyncPromise.resolve(); }
|
|
1087
1087
|
},
|
|
1088
1088
|
mUriParameters : {},
|
|
1089
|
-
getReporter : getForbiddenReporter
|
|
1089
|
+
getReporter : getForbiddenReporter,
|
|
1090
|
+
waitForKeepAliveBinding : mustBeMocked
|
|
1090
1091
|
},
|
|
1091
1092
|
sPath : "/absolute",
|
|
1092
1093
|
bRelative : false
|
|
@@ -1108,10 +1109,15 @@ sap.ui.define([
|
|
|
1108
1109
|
.returns(false);
|
|
1109
1110
|
oBindingMock.expects("fetchResourcePath").withExactArgs(undefined)
|
|
1110
1111
|
.returns(SyncPromise.resolve("absolute"));
|
|
1111
|
-
|
|
1112
|
-
.withExactArgs(sinon.match.same(
|
|
1113
|
-
|
|
1114
|
-
|
|
1112
|
+
this.mock(oBinding.oModel).expects("waitForKeepAliveBinding")
|
|
1113
|
+
.withExactArgs(sinon.match.same(oBinding))
|
|
1114
|
+
.callsFake(async function () {
|
|
1115
|
+
await "next tick";
|
|
1116
|
+
oBindingMock.expects("createAndSetCache")
|
|
1117
|
+
.withExactArgs(sinon.match.same(mLocalQueryOptions), "absolute", undefined,
|
|
1118
|
+
"~sGroupId~", sinon.match.same(oOldCache))
|
|
1119
|
+
.returns(oNewCache);
|
|
1120
|
+
});
|
|
1115
1121
|
|
|
1116
1122
|
// code under test
|
|
1117
1123
|
oBinding.fetchCache(oContext, bIgnoreParentCache, undefined, "~sGroupId~");
|
|
@@ -1141,7 +1147,8 @@ sap.ui.define([
|
|
|
1141
1147
|
ready : function () { return SyncPromise.resolve(); }
|
|
1142
1148
|
},
|
|
1143
1149
|
mUriParameters : {},
|
|
1144
|
-
getReporter : getForbiddenReporter
|
|
1150
|
+
getReporter : getForbiddenReporter,
|
|
1151
|
+
waitForKeepAliveBinding : mustBeMocked
|
|
1145
1152
|
},
|
|
1146
1153
|
sPath : "relative",
|
|
1147
1154
|
bRelative : true
|
|
@@ -1172,12 +1179,17 @@ sap.ui.define([
|
|
|
1172
1179
|
oBindingMock.expects("fetchResourcePath")
|
|
1173
1180
|
.withExactArgs(sinon.match.same(oContext))
|
|
1174
1181
|
.returns(oResourcePathPromise);
|
|
1175
|
-
|
|
1176
|
-
.withExactArgs(sinon.match.same(
|
|
1177
|
-
sinon.match.same(oContext), undefined, null)
|
|
1182
|
+
this.mock(oBinding.oModel).expects("waitForKeepAliveBinding")
|
|
1183
|
+
.withExactArgs(sinon.match.same(oBinding))
|
|
1178
1184
|
.callsFake(function () {
|
|
1179
|
-
|
|
1180
|
-
|
|
1185
|
+
oBindingMock.expects("createAndSetCache")
|
|
1186
|
+
.withExactArgs(sinon.match.same(mLocalQueryOptions), "resourcePath",
|
|
1187
|
+
sinon.match.same(oContext), undefined, null)
|
|
1188
|
+
.callsFake(function () {
|
|
1189
|
+
oBinding.oCache = oCache;
|
|
1190
|
+
return oCache;
|
|
1191
|
+
});
|
|
1192
|
+
return SyncPromise.resolve();
|
|
1181
1193
|
});
|
|
1182
1194
|
|
|
1183
1195
|
// code under test
|
|
@@ -1209,14 +1221,16 @@ sap.ui.define([
|
|
|
1209
1221
|
oModel : {
|
|
1210
1222
|
oRequestor : oRequestor,
|
|
1211
1223
|
mUriParameters : {},
|
|
1212
|
-
getReporter : getForbiddenReporter
|
|
1224
|
+
getReporter : getForbiddenReporter,
|
|
1225
|
+
waitForKeepAliveBinding : mustBeMocked
|
|
1213
1226
|
},
|
|
1214
1227
|
sPath : "/absolute",
|
|
1215
1228
|
bRelative : false
|
|
1216
1229
|
}),
|
|
1217
1230
|
oBindingMock = this.mock(oBinding),
|
|
1218
1231
|
oCache = {},
|
|
1219
|
-
mLocalQueryOptions = {}
|
|
1232
|
+
mLocalQueryOptions = {},
|
|
1233
|
+
that = this;
|
|
1220
1234
|
|
|
1221
1235
|
oBindingMock.expects("fetchOrGetQueryOptionsForOwnCache")
|
|
1222
1236
|
.withExactArgs(undefined, undefined)
|
|
@@ -1233,10 +1247,20 @@ sap.ui.define([
|
|
|
1233
1247
|
.returns(false);
|
|
1234
1248
|
oBindingMock.expects("fetchResourcePath").withExactArgs(undefined)
|
|
1235
1249
|
.returns(SyncPromise.resolve("absolute"));
|
|
1250
|
+
let bWaitedForKeepAliveBinding = false;
|
|
1251
|
+
that.mock(oBinding.oModel).expects("waitForKeepAliveBinding")
|
|
1252
|
+
.withExactArgs(sinon.match.same(oBinding))
|
|
1253
|
+
.callsFake(function () {
|
|
1254
|
+
bWaitedForKeepAliveBinding = true;
|
|
1255
|
+
return SyncPromise.resolve();
|
|
1256
|
+
});
|
|
1236
1257
|
oBindingMock.expects("createAndSetCache")
|
|
1237
1258
|
.withExactArgs(sinon.match.same(mLocalQueryOptions), "absolute", undefined,
|
|
1238
1259
|
undefined, null)
|
|
1239
|
-
.
|
|
1260
|
+
.callsFake(function () {
|
|
1261
|
+
assert.strictEqual(bWaitedForKeepAliveBinding, true);
|
|
1262
|
+
return oCache;
|
|
1263
|
+
});
|
|
1240
1264
|
})));
|
|
1241
1265
|
|
|
1242
1266
|
// code under test
|
|
@@ -1405,7 +1429,8 @@ sap.ui.define([
|
|
|
1405
1429
|
oRequestor : {
|
|
1406
1430
|
ready : function () { return SyncPromise.resolve(); }
|
|
1407
1431
|
},
|
|
1408
|
-
mUriParameters : {}
|
|
1432
|
+
mUriParameters : {},
|
|
1433
|
+
waitForKeepAliveBinding : mustBeMocked
|
|
1409
1434
|
},
|
|
1410
1435
|
sPath : "relative",
|
|
1411
1436
|
mParameters : {$$canonicalPath : true},
|
|
@@ -1453,6 +1478,9 @@ sap.ui.define([
|
|
|
1453
1478
|
oBindingMock.expects("fetchResourcePath")
|
|
1454
1479
|
.withExactArgs(sinon.match.same(oContext1))
|
|
1455
1480
|
.returns(SyncPromise.resolve(Promise.resolve("resourcePath1")));
|
|
1481
|
+
this.mock(oBinding.oModel).expects("waitForKeepAliveBinding")
|
|
1482
|
+
.withExactArgs(sinon.match.same(oBinding))
|
|
1483
|
+
.returns(SyncPromise.resolve());
|
|
1456
1484
|
oBindingMock.expects("createAndSetCache")
|
|
1457
1485
|
.withExactArgs(sinon.match.same(mLocalQueryOptions), "resourcePath1",
|
|
1458
1486
|
sinon.match.same(oContext1), "~sGroupId~", sinon.match.same(oOldCache))
|
|
@@ -36,6 +36,8 @@ sap.ui.define([
|
|
|
36
36
|
MessageType = library.MessageType,
|
|
37
37
|
sServiceUrl = "/sap/opu/odata4/IWBEP/TEA/default/IWBEP/TEA_BUSI/0001/";
|
|
38
38
|
|
|
39
|
+
function mustBeMocked() { throw new Error("Must be mocked"); }
|
|
40
|
+
|
|
39
41
|
//*********************************************************************************************
|
|
40
42
|
QUnit.module("sap.ui.model.odata.v4.ODataModel", {
|
|
41
43
|
beforeEach : function () {
|
|
@@ -2923,6 +2925,43 @@ sap.ui.define([
|
|
|
2923
2925
|
assert.notOk("/EMPLOYEES" in oModel.mKeepAliveBindingsByPath);
|
|
2924
2926
|
});
|
|
2925
2927
|
|
|
2928
|
+
//*********************************************************************************************
|
|
2929
|
+
QUnit.test("waitForKeepAliveBinding", function (assert) {
|
|
2930
|
+
const oModel = this.createModel("", {autoExpandSelect : true});
|
|
2931
|
+
|
|
2932
|
+
oModel.mKeepAliveBindingsByPath["/EMPLOYEES"] = {
|
|
2933
|
+
oCachePromise : "~oCachePromise~"
|
|
2934
|
+
};
|
|
2935
|
+
|
|
2936
|
+
// code under test
|
|
2937
|
+
assert.strictEqual(oModel.waitForKeepAliveBinding({}), SyncPromise.resolve());
|
|
2938
|
+
|
|
2939
|
+
const oBinding0 = {
|
|
2940
|
+
mParameters : {} // just having parameters is not sufficient
|
|
2941
|
+
};
|
|
2942
|
+
|
|
2943
|
+
// code under test
|
|
2944
|
+
assert.strictEqual(oModel.waitForKeepAliveBinding(oBinding0), SyncPromise.resolve());
|
|
2945
|
+
|
|
2946
|
+
const oBinding1 = {
|
|
2947
|
+
mParameters : {$$getKeepAliveContext : true},
|
|
2948
|
+
getResolvedPath : mustBeMocked
|
|
2949
|
+
};
|
|
2950
|
+
this.mock(oBinding1).expects("getResolvedPath").withExactArgs().returns("/EMPLOYEES");
|
|
2951
|
+
|
|
2952
|
+
// code under test
|
|
2953
|
+
assert.strictEqual(oModel.waitForKeepAliveBinding(oBinding1), "~oCachePromise~");
|
|
2954
|
+
|
|
2955
|
+
const oBinding2 = {
|
|
2956
|
+
mParameters : {$$getKeepAliveContext : true},
|
|
2957
|
+
getResolvedPath : mustBeMocked
|
|
2958
|
+
};
|
|
2959
|
+
this.mock(oBinding2).expects("getResolvedPath").withExactArgs().returns("/TEAMS");
|
|
2960
|
+
|
|
2961
|
+
// code under test
|
|
2962
|
+
assert.strictEqual(oModel.waitForKeepAliveBinding(oBinding2), SyncPromise.resolve());
|
|
2963
|
+
});
|
|
2964
|
+
|
|
2926
2965
|
//*********************************************************************************************
|
|
2927
2966
|
QUnit.test("set+getOptimisticBatchEnabler, success", function (assert) {
|
|
2928
2967
|
var fnEnabler = function () {},
|