@openui5/sap.ui.core 1.120.0 → 1.120.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 +2 -2
- package/src/sap/base/Eventing.js +1 -1
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/i18n/Formatting.js +30 -14
- package/src/sap/base/i18n/LanguageTag.js +1 -1
- package/src/sap/base/i18n/Localization.js +1 -2
- 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 -57
- package/src/sap/ui/base/ManagedObjectMetadata.js +25 -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 +27 -8
- package/src/sap/ui/core/ComponentContainer.js +3 -3
- 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 +9 -7
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +14 -68
- 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 +7 -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 +3 -3
- 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 +59 -29
- 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 +5 -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/Islamic.js +4 -4
- 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/ControllerExtensionProvider.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 +2 -2
- 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 +2 -1
- package/src/sap/ui/core/search/SearchProvider.js +2 -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 +2 -2
- 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/_LocalizationHelper.js +122 -0
- 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/ClientListBinding.js +6 -3
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/ClientTreeBinding.js +6 -3
- 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/FilterProcessor.js +17 -17
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +10 -8
- 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/ODataListBinding.js +5 -2
- 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/ODataListBinding.js +5 -2
- package/src/sap/ui/model/odata/v2/ODataModel.js +6 -55
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +6 -3
- package/src/sap/ui/model/odata/v4/Context.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataBinding.js +3 -0
- 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/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/performance/trace/Interaction.js +20 -16
- 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/actions/EnterText.js +4 -0
- 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/manifest.json +3 -10
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/package.json +13 -0
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/ui5.yaml +11 -0
- package/test/sap/ui/core/demokit/sample/matcher/BindingPath/manifest.json +3 -11
- package/test/sap/ui/core/demokit/sample/matcher/BindingPath/package.json +13 -0
- package/test/sap/ui/core/demokit/sample/matcher/BindingPath/ui5.yaml +11 -0
- package/test/sap/ui/core/demokit/sample/matcher/Descendant/Component.js +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/Descendant/manifest.json +3 -11
- package/test/sap/ui/core/demokit/sample/matcher/Descendant/package.json +13 -0
- package/test/sap/ui/core/demokit/sample/matcher/Descendant/ui5.yaml +11 -0
- package/test/sap/ui/core/demokit/sample/matcher/I18NText/manifest.json +3 -11
- package/test/sap/ui/core/demokit/sample/matcher/I18NText/package.json +13 -0
- package/test/sap/ui/core/demokit/sample/matcher/I18NText/ui5.yaml +11 -0
- package/test/sap/ui/core/demokit/sample/matcher/LabelFor/manifest.json +3 -11
- package/test/sap/ui/core/demokit/sample/matcher/LabelFor/package.json +13 -0
- package/test/sap/ui/core/demokit/sample/matcher/LabelFor/ui5.yaml +11 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/01/Component.js +9 -25
- package/test/sap/ui/core/demokit/tutorial/databinding/01/manifest.json +20 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/01/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/02/Component.js +9 -25
- package/test/sap/ui/core/demokit/tutorial/databinding/02/manifest.json +20 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/02/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/03/Component.js +9 -25
- package/test/sap/ui/core/demokit/tutorial/databinding/03/manifest.json +20 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/03/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/04/Component.js +9 -26
- package/test/sap/ui/core/demokit/tutorial/databinding/04/manifest.json +21 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/04/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/05/Component.js +9 -26
- package/test/sap/ui/core/demokit/tutorial/databinding/05/manifest.json +21 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/05/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/06/Component.js +9 -27
- package/test/sap/ui/core/demokit/tutorial/databinding/06/manifest.json +22 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/06/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/07/Component.js +9 -28
- package/test/sap/ui/core/demokit/tutorial/databinding/07/manifest.json +23 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/07/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/08/Component.js +9 -28
- package/test/sap/ui/core/demokit/tutorial/databinding/08/manifest.json +23 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/08/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/09/Component.js +9 -29
- package/test/sap/ui/core/demokit/tutorial/databinding/09/manifest.json +24 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/09/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/10/Component.js +9 -29
- package/test/sap/ui/core/demokit/tutorial/databinding/10/manifest.json +24 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/10/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/11/Component.js +9 -29
- package/test/sap/ui/core/demokit/tutorial/databinding/11/manifest.json +24 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/11/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/12/Component.js +9 -30
- package/test/sap/ui/core/demokit/tutorial/databinding/12/manifest.json +25 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/12/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/12/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/13/Component.js +9 -30
- package/test/sap/ui/core/demokit/tutorial/databinding/13/manifest.json +25 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/13/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/13/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/14/Component.js +9 -30
- package/test/sap/ui/core/demokit/tutorial/databinding/14/manifest.json +25 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/14/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/14/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/15/Component.js +9 -32
- package/test/sap/ui/core/demokit/tutorial/databinding/15/manifest.json +27 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/15/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/15/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/Component.js +9 -30
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/manifest.json +24 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/Component.js +9 -33
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/manifest.json +27 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/Component.js +9 -33
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/manifest.json +27 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/Component.js +9 -33
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/manifest.json +27 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/01/Component.js +9 -33
- package/test/sap/ui/core/demokit/tutorial/navigation/01/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/02/Component.js +9 -35
- package/test/sap/ui/core/demokit/tutorial/navigation/02/manifest.json +30 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/03/Component.js +9 -37
- package/test/sap/ui/core/demokit/tutorial/navigation/03/manifest.json +32 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/04/Component.js +9 -38
- package/test/sap/ui/core/demokit/tutorial/navigation/04/manifest.json +33 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/05/Component.js +9 -38
- package/test/sap/ui/core/demokit/tutorial/navigation/05/manifest.json +33 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/06/Component.js +9 -40
- package/test/sap/ui/core/demokit/tutorial/navigation/06/manifest.json +35 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/07/Component.js +9 -42
- package/test/sap/ui/core/demokit/tutorial/navigation/07/manifest.json +37 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/08/Component.js +9 -45
- package/test/sap/ui/core/demokit/tutorial/navigation/08/manifest.json +40 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/09/Component.js +9 -45
- package/test/sap/ui/core/demokit/tutorial/navigation/09/manifest.json +40 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/10/Component.js +9 -47
- package/test/sap/ui/core/demokit/tutorial/navigation/10/manifest.json +42 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/11/Component.js +9 -52
- package/test/sap/ui/core/demokit/tutorial/navigation/11/manifest.json +47 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/12/Component.js +9 -52
- package/test/sap/ui/core/demokit/tutorial/navigation/12/manifest.json +47 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/12/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/13/Component.js +9 -52
- package/test/sap/ui/core/demokit/tutorial/navigation/13/manifest.json +47 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/13/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/14/Component.js +9 -52
- package/test/sap/ui/core/demokit/tutorial/navigation/14/manifest.json +47 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/14/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/15/Component.js +9 -52
- package/test/sap/ui/core/demokit/tutorial/navigation/15/manifest.json +47 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/15/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/16/Component.js +9 -52
- package/test/sap/ui/core/demokit/tutorial/navigation/16/manifest.json +47 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/16/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/17/Component.js +9 -52
- package/test/sap/ui/core/demokit/tutorial/navigation/17/manifest.json +47 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/17/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/01/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/01/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/02/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/02/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/03/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/03/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/04/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/04/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/05/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/05/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/Component.js +9 -29
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/manifest.json +25 -0
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/ui5.yaml +1 -1
- package/test/sap/ui/core/qunit/ClientModel.qunit.js +28 -28
- package/test/sap/ui/core/qunit/Lib.qunit.js +42 -0
- package/test/sap/ui/core/qunit/ManagedObject.qunit.js +86 -3
- package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.js +19 -0
- package/test/sap/ui/core/qunit/component/Component.qunit.js +26 -3
- package/test/sap/ui/core/qunit/i18n/Islamic.qunit.js +4 -4
- package/test/sap/ui/core/qunit/model/ClientListBinding.qunit.js +2 -2
- package/test/sap/ui/core/qunit/model/ClientTreeBinding.qunit.js +2 -2
- package/test/sap/ui/core/qunit/model/FilterProcessor.qunit.js +46 -18
- package/test/sap/ui/core/qunit/model/Model.qunit.js +43 -2
- package/test/sap/ui/core/qunit/odata/ODataModel_legacyAPIs.qunit.js +22 -22
- package/test/sap/ui/core/qunit/odata/ODataTreeBindingAdapter.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/v2/ODataListBindingNoFakeService.qunit.js +16 -16
- package/test/sap/ui/core/qunit/odata/v2/ODataModelNoFakeService.qunit.js +2 -11
- package/test/sap/ui/core/qunit/odata/v2/ODataTreeBindingNoFakeService.qunit.js +17 -17
- package/test/sap/ui/core/qunit/odata/v2/ODataV2Model.qunit.js +32 -36
- package/test/sap/ui/core/qunit/odata/v4/ODataBinding.qunit.js +19 -9
- package/test/sap/ui/core/qunit/odata/v4/ODataMetaModel.qunit.js +5 -5
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +37 -0
- package/test/sap/ui/core/qunit/opa/actions/EnterText.qunit.js +15 -0
- package/test/sap/ui/core/qunit/performance/trace/FESR.qunit.js +11 -2
- package/test/sap/ui/core/qunit/performance/trace/Interaction.qunit.js +4 -7
- package/test/sap/ui/core/relnotes/changes-1.120.json +82 -0
|
@@ -178,10 +178,10 @@ sap.ui.define([
|
|
|
178
178
|
aFilters = ["~anyFilter"],
|
|
179
179
|
oModel = {
|
|
180
180
|
_getObject : function () {},
|
|
181
|
-
|
|
181
|
+
checkFilter : function () {}
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
-
this.mock(oModel).expects("
|
|
184
|
+
this.mock(oModel).expects("checkFilter").withExactArgs(sinon.match.same(aFilters));
|
|
185
185
|
this.mock(oModel).expects("_getObject")
|
|
186
186
|
.withExactArgs("~path", "~oContext")
|
|
187
187
|
.returns({/*any data*/});
|
|
@@ -402,38 +402,66 @@ sap.ui.define([
|
|
|
402
402
|
});
|
|
403
403
|
|
|
404
404
|
//*********************************************************************************************
|
|
405
|
-
QUnit.test("groupFilters
|
|
406
|
-
|
|
405
|
+
QUnit.test("groupFilters: early exit wíthout grouping, check Filter.NONE", function (assert) {
|
|
406
|
+
// code under test: early exit
|
|
407
|
+
assert.strictEqual(FilterProcessor.groupFilters(), undefined);
|
|
408
|
+
assert.strictEqual(FilterProcessor.groupFilters([]), undefined);
|
|
407
409
|
|
|
408
410
|
// code under test
|
|
409
|
-
assert.strictEqual(FilterProcessor.groupFilters(
|
|
411
|
+
assert.strictEqual(FilterProcessor.groupFilters(["~oFilter"]), "~oFilter");
|
|
412
|
+
|
|
413
|
+
const aFilters = ["~oFilter", Filter.NONE];
|
|
414
|
+
const oError = new Error("~Filter.NONE error");
|
|
415
|
+
this.mock(Filter).expects("checkFilterNone").withExactArgs(sinon.match.same(aFilters)).throws(oError);
|
|
416
|
+
|
|
417
|
+
// code under test
|
|
418
|
+
assert.throws(() => {
|
|
419
|
+
FilterProcessor.groupFilters(aFilters);
|
|
420
|
+
}, oError);
|
|
421
|
+
|
|
410
422
|
});
|
|
411
423
|
|
|
412
424
|
//*********************************************************************************************
|
|
413
|
-
QUnit.test("combineFilters
|
|
414
|
-
|
|
415
|
-
|
|
425
|
+
QUnit.test("combineFilters: filter c'tor throws error", function (assert) {
|
|
426
|
+
// code under test
|
|
427
|
+
assert.throws(() => {
|
|
428
|
+
FilterProcessor.combineFilters([Filter.NONE], [Filter.NONE]);
|
|
429
|
+
}, new Error("Filter.NONE not allowed in multiple filter"));
|
|
430
|
+
});
|
|
431
|
+
|
|
432
|
+
//*********************************************************************************************
|
|
433
|
+
QUnit.test("combineFilters: groupFilter throws error", function (assert) {
|
|
434
|
+
const aApplicationFilters = "~ApplicationFilters";
|
|
435
|
+
const oError = new Error("~Filter.NONE error");
|
|
436
|
+
const aFilters = "~Filters";
|
|
416
437
|
const oFilterProcessorMock = this.mock(FilterProcessor);
|
|
417
438
|
|
|
418
|
-
oFilterProcessorMock.expects("groupFilters").withExactArgs(
|
|
419
|
-
|
|
439
|
+
oFilterProcessorMock.expects("groupFilters").withExactArgs(aFilters).throws(oError);
|
|
440
|
+
|
|
441
|
+
// code under test
|
|
442
|
+
assert.throws(() => {
|
|
443
|
+
FilterProcessor.combineFilters(aFilters, aApplicationFilters);
|
|
444
|
+
}, oError);
|
|
445
|
+
|
|
446
|
+
oFilterProcessorMock.expects("groupFilters").withExactArgs(aFilters).returns("~someGroupedFilter");
|
|
447
|
+
oFilterProcessorMock.expects("groupFilters").withExactArgs(aApplicationFilters).throws(oError);
|
|
420
448
|
|
|
421
449
|
// code under test
|
|
422
|
-
assert.
|
|
450
|
+
assert.throws(() => {
|
|
451
|
+
FilterProcessor.combineFilters(aFilters, aApplicationFilters);
|
|
452
|
+
}, oError);
|
|
423
453
|
});
|
|
424
454
|
|
|
425
455
|
//*********************************************************************************************
|
|
426
|
-
QUnit.test("
|
|
427
|
-
const
|
|
428
|
-
const
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
oFilterProcessorMock.expects("groupFilters").withExactArgs(aControlFilters).returns(Filter.NONE);
|
|
432
|
-
oFilterProcessorMock.expects("groupFilters").withExactArgs(aApplicationFilters)
|
|
433
|
-
.returns("~oGroupedApplicationFilter");
|
|
456
|
+
QUnit.test("apply: propagates error from groupFilters", function (assert) {
|
|
457
|
+
const aFilters = ["~oFilter", Filter.NONE];
|
|
458
|
+
const oError = new Error("~Filter.NONE error");
|
|
459
|
+
this.mock(FilterProcessor).expects("groupFilters").withExactArgs(sinon.match.same(aFilters)).throws(oError);
|
|
434
460
|
|
|
435
461
|
// code under test
|
|
436
|
-
assert.
|
|
462
|
+
assert.throws(() => {
|
|
463
|
+
FilterProcessor.apply([/*aData*/], aFilters);
|
|
464
|
+
}, oError);
|
|
437
465
|
});
|
|
438
466
|
|
|
439
467
|
QUnit.test("apply: values contain 'toString' value", function (assert) {
|
|
@@ -5,9 +5,11 @@ sap.ui.define([
|
|
|
5
5
|
"sap/base/Log",
|
|
6
6
|
"sap/ui/core/message/Message",
|
|
7
7
|
"sap/ui/model/BindingMode",
|
|
8
|
+
"sap/ui/model/Filter",
|
|
9
|
+
"sap/ui/model/FilterOperator",
|
|
8
10
|
"sap/ui/model/Model"
|
|
9
|
-
], function (Log, Message, BindingMode, Model) {
|
|
10
|
-
/*global QUnit,
|
|
11
|
+
], function (Log, Message, BindingMode, Filter, FilterOperator, Model) {
|
|
12
|
+
/*global QUnit, sinon*/
|
|
11
13
|
/*eslint max-nested-callbacks: 0*/
|
|
12
14
|
"use strict";
|
|
13
15
|
|
|
@@ -241,4 +243,43 @@ sap.ui.define([
|
|
|
241
243
|
assert.strictEqual(oModel.bForceUpdate, undefined);
|
|
242
244
|
assert.strictEqual(oModel.sUpdateTimer, null);
|
|
243
245
|
});
|
|
246
|
+
|
|
247
|
+
//*********************************************************************************************
|
|
248
|
+
QUnit.test("checkFilter: success", function (assert) {
|
|
249
|
+
const oFilter = new Filter({path: 'Price', operator: FilterOperator.EQ, value1: 100});
|
|
250
|
+
this.mock(Filter).expects("checkFilterNone").withExactArgs(sinon.match.same(oFilter));
|
|
251
|
+
const oModel = new Model();
|
|
252
|
+
this.mock(Model).expects("_traverseFilter").withExactArgs(sinon.match.same(oFilter), sinon.match.func)
|
|
253
|
+
.callsArgOnWith(1, oModel, oFilter);
|
|
254
|
+
|
|
255
|
+
// code under test
|
|
256
|
+
oModel.checkFilter(oFilter);
|
|
257
|
+
});
|
|
258
|
+
|
|
259
|
+
//*********************************************************************************************
|
|
260
|
+
QUnit.test("checkFilter: throws error", function (assert) {
|
|
261
|
+
const oError = new Error("~Error");
|
|
262
|
+
const oFilter = new Filter({path: 'Price', operator: FilterOperator.EQ, value1: 100});
|
|
263
|
+
const oFilterMock = this.mock(Filter);
|
|
264
|
+
oFilterMock.expects("checkFilterNone").withExactArgs(sinon.match.same(oFilter))
|
|
265
|
+
.throws(oError);
|
|
266
|
+
const oModelMock = this.mock(Model);
|
|
267
|
+
oModelMock.expects("_traverseFilter").never();
|
|
268
|
+
|
|
269
|
+
const oModel = new Model();
|
|
270
|
+
// code under test
|
|
271
|
+
assert.throws(function () {
|
|
272
|
+
oModel.checkFilter(oFilter);
|
|
273
|
+
}, oError);
|
|
274
|
+
|
|
275
|
+
oModel.mUnsupportedFilterOperators["EQ"] = true;
|
|
276
|
+
oFilterMock.expects("checkFilterNone").withExactArgs(sinon.match.same(oFilter));
|
|
277
|
+
oModelMock.expects("_traverseFilter").withExactArgs(oFilter, sinon.match.func)
|
|
278
|
+
.callsArgOnWith(1, oModel, oFilter);
|
|
279
|
+
|
|
280
|
+
// code under test
|
|
281
|
+
assert.throws(function () {
|
|
282
|
+
oModel.checkFilter(oFilter);
|
|
283
|
+
}, new Error("Filter instances contain an unsupported FilterOperator: EQ"));
|
|
284
|
+
});
|
|
244
285
|
});
|
|
@@ -1939,17 +1939,17 @@ sap.ui.define([
|
|
|
1939
1939
|
});
|
|
1940
1940
|
|
|
1941
1941
|
QUnit.test("Empty Arguments", function(assert) {
|
|
1942
|
-
this.oModel.
|
|
1942
|
+
this.oModel.checkFilter();
|
|
1943
1943
|
assert.ok(true, "No arguments lead to a positive result");
|
|
1944
1944
|
|
|
1945
|
-
this.oModel.
|
|
1945
|
+
this.oModel.checkFilter([]);
|
|
1946
1946
|
assert.ok(true, "Empty array lead to a positive result");
|
|
1947
1947
|
});
|
|
1948
1948
|
|
|
1949
1949
|
QUnit.test("Simple Filters - Supported are OK", function(assert) {
|
|
1950
1950
|
// comma separated syntax
|
|
1951
1951
|
var oSupported = new Filter("x", FilterOperator.NE, "Foo");
|
|
1952
|
-
this.oModel.
|
|
1952
|
+
this.oModel.checkFilter(oSupported);
|
|
1953
1953
|
assert.ok(true, "Valid operators are supported");
|
|
1954
1954
|
|
|
1955
1955
|
// object syntax
|
|
@@ -1958,12 +1958,12 @@ sap.ui.define([
|
|
|
1958
1958
|
operator: FilterOperator.NE,
|
|
1959
1959
|
value1: "FooBar"
|
|
1960
1960
|
});
|
|
1961
|
-
this.oModel.
|
|
1961
|
+
this.oModel.checkFilter(oSupported2);
|
|
1962
1962
|
assert.ok(true, "Valid operators are supported");
|
|
1963
1963
|
|
|
1964
1964
|
// local fnTest - comma separated (should be ignored)
|
|
1965
1965
|
var oSupported3 = new Filter("z", function() {});
|
|
1966
|
-
this.oModel.
|
|
1966
|
+
this.oModel.checkFilter(oSupported3);
|
|
1967
1967
|
assert.ok(true, true, "local fnTest is ignored (comma separated syntax)");
|
|
1968
1968
|
|
|
1969
1969
|
// local fnTest - object syntax (should be ignored)
|
|
@@ -1971,7 +1971,7 @@ sap.ui.define([
|
|
|
1971
1971
|
path: "z",
|
|
1972
1972
|
test: function() {}
|
|
1973
1973
|
});
|
|
1974
|
-
this.oModel.
|
|
1974
|
+
this.oModel.checkFilter(oSupported4);
|
|
1975
1975
|
assert.ok(true, "local fnTest is ignored (object syntax)");
|
|
1976
1976
|
});
|
|
1977
1977
|
|
|
@@ -1985,7 +1985,7 @@ sap.ui.define([
|
|
|
1985
1985
|
});
|
|
1986
1986
|
assert.throws(
|
|
1987
1987
|
function() {
|
|
1988
|
-
this.oModel.
|
|
1988
|
+
this.oModel.checkFilter(oUnsupported3);
|
|
1989
1989
|
}.bind(this),
|
|
1990
1990
|
this.getErrorWithMessage(FilterOperator.Any),
|
|
1991
1991
|
"Invalid operators are not supported (object syntax)"
|
|
@@ -2000,7 +2000,7 @@ sap.ui.define([
|
|
|
2000
2000
|
});
|
|
2001
2001
|
assert.throws(
|
|
2002
2002
|
function() {
|
|
2003
|
-
this.oModel.
|
|
2003
|
+
this.oModel.checkFilter(oUnsupported4);
|
|
2004
2004
|
}.bind(this),
|
|
2005
2005
|
this.getErrorWithMessage(FilterOperator.All),
|
|
2006
2006
|
"Invalid operators are not supported (object syntax)"
|
|
@@ -2017,7 +2017,7 @@ sap.ui.define([
|
|
|
2017
2017
|
});
|
|
2018
2018
|
assert.throws(
|
|
2019
2019
|
function() {
|
|
2020
|
-
this.oModel.
|
|
2020
|
+
this.oModel.checkFilter(oUnsupported3);
|
|
2021
2021
|
}.bind(this),
|
|
2022
2022
|
this.getErrorWithMessage(FilterOperator.Any),
|
|
2023
2023
|
"Invalid operators are not supported (object syntax)"
|
|
@@ -2032,7 +2032,7 @@ sap.ui.define([
|
|
|
2032
2032
|
});
|
|
2033
2033
|
assert.throws(
|
|
2034
2034
|
function() {
|
|
2035
|
-
this.oModel.
|
|
2035
|
+
this.oModel.checkFilter(oUnsupported4);
|
|
2036
2036
|
}.bind(this),
|
|
2037
2037
|
this.getErrorWithMessage(FilterOperator.All),
|
|
2038
2038
|
"Invalid operators are not supported (object syntax)"
|
|
@@ -2049,7 +2049,7 @@ sap.ui.define([
|
|
|
2049
2049
|
and: true
|
|
2050
2050
|
});
|
|
2051
2051
|
|
|
2052
|
-
this.oModel.
|
|
2052
|
+
this.oModel.checkFilter(oMultiFilter);
|
|
2053
2053
|
assert.ok(true, "Valid operators in multi-filter are supported (object syntax)");
|
|
2054
2054
|
});
|
|
2055
2055
|
|
|
@@ -2065,7 +2065,7 @@ sap.ui.define([
|
|
|
2065
2065
|
});
|
|
2066
2066
|
assert.throws(
|
|
2067
2067
|
function() {
|
|
2068
|
-
this.oModel.
|
|
2068
|
+
this.oModel.checkFilter(oMultiFilter);
|
|
2069
2069
|
}.bind(this),
|
|
2070
2070
|
this.getErrorWithMessage(FilterOperator.All),
|
|
2071
2071
|
"Invalid operators in multi-filter are unsupported (object syntax)"
|
|
@@ -2078,7 +2078,7 @@ sap.ui.define([
|
|
|
2078
2078
|
});
|
|
2079
2079
|
assert.throws(
|
|
2080
2080
|
function() {
|
|
2081
|
-
this.oModel.
|
|
2081
|
+
this.oModel.checkFilter(oMultiFilter);
|
|
2082
2082
|
}.bind(this),
|
|
2083
2083
|
this.getErrorWithMessage(FilterOperator.All),
|
|
2084
2084
|
"Invalid operators in multi-filter are unsupported (object syntax)"
|
|
@@ -2088,7 +2088,7 @@ sap.ui.define([
|
|
|
2088
2088
|
var oMultiFilter2 = new Filter([oFilter1, oFilter2], true);
|
|
2089
2089
|
assert.throws(
|
|
2090
2090
|
function() {
|
|
2091
|
-
this.oModel.
|
|
2091
|
+
this.oModel.checkFilter(oMultiFilter2);
|
|
2092
2092
|
}.bind(this),
|
|
2093
2093
|
this.getErrorWithMessage(FilterOperator.All),
|
|
2094
2094
|
"Invalid operators in multi-filter are unsupported (comma separated syntax)"
|
|
@@ -2102,7 +2102,7 @@ sap.ui.define([
|
|
|
2102
2102
|
oMultiFilter2 = new Filter([oFilter1, oFilter2], true);
|
|
2103
2103
|
assert.throws(
|
|
2104
2104
|
function() {
|
|
2105
|
-
this.oModel.
|
|
2105
|
+
this.oModel.checkFilter(oMultiFilter2);
|
|
2106
2106
|
}.bind(this),
|
|
2107
2107
|
this.getErrorWithMessage(FilterOperator.Any),
|
|
2108
2108
|
"Invalid operators in multi-filter are unsupported (comma separated syntax)"
|
|
@@ -2121,7 +2121,7 @@ sap.ui.define([
|
|
|
2121
2121
|
});
|
|
2122
2122
|
assert.throws(
|
|
2123
2123
|
function() {
|
|
2124
|
-
this.oModel.
|
|
2124
|
+
this.oModel.checkFilter(oMultiFilter);
|
|
2125
2125
|
}.bind(this),
|
|
2126
2126
|
this.getErrorWithMessage(FilterOperator.All),
|
|
2127
2127
|
"Invalid operators in multi-filter are unsupported (object syntax)"
|
|
@@ -2134,7 +2134,7 @@ sap.ui.define([
|
|
|
2134
2134
|
});
|
|
2135
2135
|
assert.throws(
|
|
2136
2136
|
function() {
|
|
2137
|
-
this.oModel.
|
|
2137
|
+
this.oModel.checkFilter(oMultiFilter);
|
|
2138
2138
|
}.bind(this),
|
|
2139
2139
|
this.getErrorWithMessage(FilterOperator.All),
|
|
2140
2140
|
"Invalid operators in multi-filter are unsupported (object syntax)"
|
|
@@ -2144,7 +2144,7 @@ sap.ui.define([
|
|
|
2144
2144
|
var oMultiFilter2 = new Filter([oFilter1, oFilter2], true);
|
|
2145
2145
|
assert.throws(
|
|
2146
2146
|
function() {
|
|
2147
|
-
this.oModel.
|
|
2147
|
+
this.oModel.checkFilter(oMultiFilter2);
|
|
2148
2148
|
}.bind(this),
|
|
2149
2149
|
this.getErrorWithMessage(FilterOperator.All),
|
|
2150
2150
|
"Invalid operators in multi-filter are unsupported (comma separated syntax)"
|
|
@@ -2159,7 +2159,7 @@ sap.ui.define([
|
|
|
2159
2159
|
|
|
2160
2160
|
assert.throws(
|
|
2161
2161
|
function() {
|
|
2162
|
-
this.oModel.
|
|
2162
|
+
this.oModel.checkFilter(oMultiFilter2);
|
|
2163
2163
|
}.bind(this),
|
|
2164
2164
|
this.getErrorWithMessage(FilterOperator.Any),
|
|
2165
2165
|
"Invalid operators in multi-filter are unsupported (comma separated syntax)"
|
|
@@ -2180,7 +2180,7 @@ sap.ui.define([
|
|
|
2180
2180
|
|
|
2181
2181
|
var oMultiFilter3 = new Filter([oMultiFilter2, oFilter4]);
|
|
2182
2182
|
|
|
2183
|
-
this.oModel.
|
|
2183
|
+
this.oModel.checkFilter(oMultiFilter3);
|
|
2184
2184
|
assert.ok(true, "Valid operators in multi-filter are supported");
|
|
2185
2185
|
});
|
|
2186
2186
|
|
|
@@ -2203,7 +2203,7 @@ sap.ui.define([
|
|
|
2203
2203
|
|
|
2204
2204
|
assert.throws(
|
|
2205
2205
|
function() {
|
|
2206
|
-
this.oModel.
|
|
2206
|
+
this.oModel.checkFilter(oMultiFilter3);
|
|
2207
2207
|
}.bind(this),
|
|
2208
2208
|
this.getErrorWithMessage(FilterOperator.All),
|
|
2209
2209
|
"Invalid operators in multi-filter are unsupported"
|
|
@@ -2237,7 +2237,7 @@ sap.ui.define([
|
|
|
2237
2237
|
|
|
2238
2238
|
assert.throws(
|
|
2239
2239
|
function() {
|
|
2240
|
-
this.oModel.
|
|
2240
|
+
this.oModel.checkFilter(oMultiFilter3);
|
|
2241
2241
|
}.bind(this),
|
|
2242
2242
|
this.getErrorWithMessage(FilterOperator.All),
|
|
2243
2243
|
"Invalid operators in multi-filter are unsupported"
|
|
@@ -2135,7 +2135,7 @@ sap.ui.define([
|
|
|
2135
2135
|
"sap/ui/model/odata/v2/ODataTreeBinding", "sap/ui/model/odata/ODataTreeBindingAdapter"],
|
|
2136
2136
|
function(ODataTreeBinding, ODataTreeBindingAdapter) {
|
|
2137
2137
|
var oBinding = new ODataTreeBinding({
|
|
2138
|
-
|
|
2138
|
+
checkFilter: function() { }
|
|
2139
2139
|
}, "/");
|
|
2140
2140
|
ODataTreeBindingAdapter.apply(oBinding);
|
|
2141
2141
|
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
var oBinding, oRemoveExpectation, oResetDataExpectation,
|
|
41
41
|
oContext = {},
|
|
42
42
|
oModel = {
|
|
43
|
-
|
|
43
|
+
checkFilter : function () {},
|
|
44
44
|
createCustomParams : function () {},
|
|
45
45
|
read : function () {},
|
|
46
46
|
resolveDeep : function () {}
|
|
@@ -51,7 +51,7 @@ sap.ui.define([
|
|
|
51
51
|
this.mock(oModel).expects("resolveDeep")
|
|
52
52
|
.withExactArgs("path", sinon.match.same(oContext))
|
|
53
53
|
.returns("~deep");
|
|
54
|
-
this.mock(oModel).expects("
|
|
54
|
+
this.mock(oModel).expects("checkFilter").withExactArgs([]);
|
|
55
55
|
this.mock(ODataListBinding.prototype).expects("checkExpandedList")
|
|
56
56
|
.withExactArgs()
|
|
57
57
|
.returns(false);
|
|
@@ -708,7 +708,7 @@ sap.ui.define([
|
|
|
708
708
|
var oBinding,
|
|
709
709
|
oModel = {
|
|
710
710
|
read : function () {},
|
|
711
|
-
|
|
711
|
+
checkFilter : function () {},
|
|
712
712
|
createCustomParams : function () {},
|
|
713
713
|
resolve : function () {},
|
|
714
714
|
resolveDeep : function () {}
|
|
@@ -718,7 +718,7 @@ sap.ui.define([
|
|
|
718
718
|
.withExactArgs(sinon.match.same(oFixture.parameters))
|
|
719
719
|
.returns("~custom");
|
|
720
720
|
this.mock(oModel).expects("resolveDeep").withExactArgs("path", "context").returns("~deep");
|
|
721
|
-
this.mock(oModel).expects("
|
|
721
|
+
this.mock(oModel).expects("checkFilter").withExactArgs([]);
|
|
722
722
|
this.mock(ODataListBinding.prototype).expects("checkExpandedList").withExactArgs()
|
|
723
723
|
.returns(true);
|
|
724
724
|
this.mock(ODataListBinding.prototype).expects("_reassignCreateActivate").withExactArgs();
|
|
@@ -735,14 +735,14 @@ sap.ui.define([
|
|
|
735
735
|
QUnit.test("constructor: remove persisted created contexts without expanded list",
|
|
736
736
|
function (assert) {
|
|
737
737
|
var oModel = {
|
|
738
|
-
|
|
738
|
+
checkFilter : function () {},
|
|
739
739
|
createCustomParams : function () {},
|
|
740
740
|
resolveDeep : function () {}
|
|
741
741
|
};
|
|
742
742
|
|
|
743
743
|
this.mock(oModel).expects("createCustomParams").withExactArgs(undefined).returns("~custom");
|
|
744
744
|
this.mock(oModel).expects("resolveDeep").withExactArgs("path", "context").returns("~deep");
|
|
745
|
-
this.mock(oModel).expects("
|
|
745
|
+
this.mock(oModel).expects("checkFilter").withExactArgs([]);
|
|
746
746
|
this.mock(ODataListBinding.prototype).expects("checkExpandedList")
|
|
747
747
|
.withExactArgs()
|
|
748
748
|
.returns(false);
|
|
@@ -766,7 +766,7 @@ sap.ui.define([
|
|
|
766
766
|
var oBinding,
|
|
767
767
|
oModel = {
|
|
768
768
|
read : function () {},
|
|
769
|
-
|
|
769
|
+
checkFilter : function () {},
|
|
770
770
|
createCustomParams : function () {},
|
|
771
771
|
resolve : function () {},
|
|
772
772
|
resolveDeep : function () {}
|
|
@@ -776,7 +776,7 @@ sap.ui.define([
|
|
|
776
776
|
.withExactArgs(sinon.match.same(oFixture.parameters))
|
|
777
777
|
.returns("~custom");
|
|
778
778
|
this.mock(oModel).expects("resolveDeep").withExactArgs("path", "context").returns("~deep");
|
|
779
|
-
this.mock(oModel).expects("
|
|
779
|
+
this.mock(oModel).expects("checkFilter").withExactArgs([]);
|
|
780
780
|
this.mock(ODataListBinding.prototype).expects("checkExpandedList").withExactArgs()
|
|
781
781
|
.returns(true);
|
|
782
782
|
this.mock(ODataListBinding.prototype).expects("_reassignCreateActivate").withExactArgs();
|
|
@@ -796,7 +796,7 @@ sap.ui.define([
|
|
|
796
796
|
sDefaultCountMode : "~sDefaultCountMode",
|
|
797
797
|
sDefaultOperationMode : "~sDefaultOperationMode",
|
|
798
798
|
bPreliminaryContext : "~bPreliminaryContext",
|
|
799
|
-
|
|
799
|
+
checkFilter : function () {},
|
|
800
800
|
createCustomParams : function () {},
|
|
801
801
|
resolveDeep : function () {}
|
|
802
802
|
};
|
|
@@ -805,7 +805,7 @@ sap.ui.define([
|
|
|
805
805
|
this.mock(oModel).expects("resolveDeep")
|
|
806
806
|
.withExactArgs("~sPath", "~oContext")
|
|
807
807
|
.returns("~sDeepPath");
|
|
808
|
-
this.mock(oModel).expects("
|
|
808
|
+
this.mock(oModel).expects("checkFilter").withExactArgs([]);
|
|
809
809
|
this.mock(ODataListBinding.prototype).expects("checkExpandedList")
|
|
810
810
|
.withExactArgs()
|
|
811
811
|
.returns(true);
|
|
@@ -864,7 +864,7 @@ sap.ui.define([
|
|
|
864
864
|
isPreliminary : function () {}
|
|
865
865
|
},
|
|
866
866
|
oModel = {
|
|
867
|
-
|
|
867
|
+
checkFilter : function () {},
|
|
868
868
|
createCustomParams : function () {},
|
|
869
869
|
resolve : function () {},
|
|
870
870
|
resolveDeep : function () {}
|
|
@@ -876,7 +876,7 @@ sap.ui.define([
|
|
|
876
876
|
this.mock(oModel).expects("resolveDeep")
|
|
877
877
|
.withExactArgs("relativePath", bUsePreliminary ? sinon.match.same(oContext) : undefined)
|
|
878
878
|
.returns("~deepPath"); // resolveDeep returns undefined for oContext === undefined
|
|
879
|
-
this.mock(oModel).expects("
|
|
879
|
+
this.mock(oModel).expects("checkFilter").withExactArgs([]);
|
|
880
880
|
this.mock(ODataListBinding.prototype).expects("checkExpandedList").withExactArgs().returns(true);
|
|
881
881
|
this.mock(ODataListBinding.prototype).expects("_reassignCreateActivate").withExactArgs();
|
|
882
882
|
|
|
@@ -3364,7 +3364,7 @@ sap.ui.define([
|
|
|
3364
3364
|
oBinding = {
|
|
3365
3365
|
aApplicationFilters : aApplicationFilters,
|
|
3366
3366
|
bInitial : false,
|
|
3367
|
-
oModel : {
|
|
3367
|
+
oModel : {checkFilter : function () {}},
|
|
3368
3368
|
_fireRefresh : function () {},
|
|
3369
3369
|
_removePersistedCreatedContexts : function () {},
|
|
3370
3370
|
addComparators : function () {},
|
|
@@ -3376,7 +3376,7 @@ sap.ui.define([
|
|
|
3376
3376
|
oBindingMock = this.mock(oBinding),
|
|
3377
3377
|
aFilters = bFilterNone ? [Filter.NONE] : [];
|
|
3378
3378
|
|
|
3379
|
-
this.mock(oBinding.oModel).expects("
|
|
3379
|
+
this.mock(oBinding.oModel).expects("checkFilter")
|
|
3380
3380
|
.withExactArgs(sinon.match.same(aFilters));
|
|
3381
3381
|
/** @deprecated As of version 1.22.0, reason sap.ui.model.odata.Filter.js */
|
|
3382
3382
|
(function() {
|
|
@@ -3416,7 +3416,7 @@ sap.ui.define([
|
|
|
3416
3416
|
var oBinding = {
|
|
3417
3417
|
aAllKeys : [],
|
|
3418
3418
|
bInitial : false,
|
|
3419
|
-
oModel : {
|
|
3419
|
+
oModel : {checkFilter : function () {}},
|
|
3420
3420
|
_moveCreatedPersistedToAllKeys : function () {},
|
|
3421
3421
|
_fireChange : function () {},
|
|
3422
3422
|
addComparators : function () {},
|
|
@@ -3425,7 +3425,7 @@ sap.ui.define([
|
|
|
3425
3425
|
useClientMode : function () {}
|
|
3426
3426
|
};
|
|
3427
3427
|
|
|
3428
|
-
this.mock(oBinding.oModel).expects("
|
|
3428
|
+
this.mock(oBinding.oModel).expects("checkFilter").withExactArgs([]);
|
|
3429
3429
|
/** @deprecated As of version 1.22.0, reason sap.ui.model.odata.Filter.js */
|
|
3430
3430
|
(function() {
|
|
3431
3431
|
oBinding.convertFilters = function () {};
|
|
@@ -4796,7 +4796,7 @@ sap.ui.define([
|
|
|
4796
4796
|
}
|
|
4797
4797
|
},
|
|
4798
4798
|
bFunctionHasParameter
|
|
4799
|
-
? {"~name0" :
|
|
4799
|
+
? {"~name0" : undefined, "~name1" : "foo"}
|
|
4800
4800
|
: undefined),
|
|
4801
4801
|
oMetadata = {
|
|
4802
4802
|
_getCanonicalPathOfFunctionImport : function () {},
|
|
@@ -4810,7 +4810,6 @@ sap.ui.define([
|
|
|
4810
4810
|
bUseBatch : "~bUseBatch",
|
|
4811
4811
|
sServiceUrl : "/service/url",
|
|
4812
4812
|
_addEntity : function () {},
|
|
4813
|
-
_createPropertyValue : function () {},
|
|
4814
4813
|
_createRequest : function () {},
|
|
4815
4814
|
_createRequestUrlWithNormalizedPath : function () {},
|
|
4816
4815
|
_getHeaders : function () {},
|
|
@@ -4867,20 +4866,12 @@ sap.ui.define([
|
|
|
4867
4866
|
.returns(oFunctionMetadataFixture.oFunctionMetadata);
|
|
4868
4867
|
|
|
4869
4868
|
if (bFunctionHasParameter) {
|
|
4870
|
-
oModelMock.expects("_createPropertyValue")
|
|
4871
|
-
.withExactArgs("~type0")
|
|
4872
|
-
.returns("~defaultValue0");
|
|
4873
|
-
oModelMock.expects("_createPropertyValue")
|
|
4874
|
-
.withExactArgs("~type1")
|
|
4875
|
-
.returns("~defaultValue1");
|
|
4876
4869
|
this.oLogMock.expects("warning")
|
|
4877
4870
|
.withExactArgs("No value given for parameter '~name0' of function import"
|
|
4878
4871
|
+ " '/~sFunctionName'", sinon.match.same(oModel), sClassName);
|
|
4879
4872
|
this.mock(ODataUtils).expects("formatValue")
|
|
4880
4873
|
.withExactArgs("foo", "~type1")
|
|
4881
4874
|
.returns("~value1");
|
|
4882
|
-
} else {
|
|
4883
|
-
oModelMock.expects("_createPropertyValue").never();
|
|
4884
4875
|
}
|
|
4885
4876
|
|
|
4886
4877
|
oModelMock.expects("_addEntity").withExactArgs(oExpectedOData)
|
|
@@ -5290,7 +5281,7 @@ sap.ui.define([
|
|
|
5290
5281
|
oModel = {
|
|
5291
5282
|
// used by ODataListBinding and ODataTreeBinding
|
|
5292
5283
|
_getCreatedContextsCache : function () {},
|
|
5293
|
-
|
|
5284
|
+
checkFilter : function () {},
|
|
5294
5285
|
createCustomParams : function () { return {}; }, // used by ODataListBinding
|
|
5295
5286
|
resolveDeep : function () {},
|
|
5296
5287
|
resolveFromCache : function () {}
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
oBinding,
|
|
33
33
|
oContext = {},
|
|
34
34
|
oModel = {
|
|
35
|
-
|
|
35
|
+
checkFilter : function () {},
|
|
36
36
|
bPreliminaryContext : "bPreliminaryContextFromModel"
|
|
37
37
|
},
|
|
38
38
|
mParameters = {
|
|
@@ -48,7 +48,7 @@ sap.ui.define([
|
|
|
48
48
|
},
|
|
49
49
|
aSorters = [new Sorter("propertyPath")];
|
|
50
50
|
|
|
51
|
-
this.mock(oModel).expects("
|
|
51
|
+
this.mock(oModel).expects("checkFilter")
|
|
52
52
|
.withExactArgs(sinon.match.same(aApplicationFilters));
|
|
53
53
|
|
|
54
54
|
// code under test
|
|
@@ -102,19 +102,19 @@ sap.ui.define([
|
|
|
102
102
|
oBinding,
|
|
103
103
|
oContext = {},
|
|
104
104
|
oModel = {
|
|
105
|
-
|
|
105
|
+
checkFilter : function () {}
|
|
106
106
|
},
|
|
107
107
|
oModelMock = this.mock(oModel),
|
|
108
108
|
oNotAFilter = {/*not a Filter*/};
|
|
109
109
|
|
|
110
|
-
oModelMock.expects("
|
|
110
|
+
oModelMock.expects("checkFilter").withExactArgs([oApplicationFilter]);
|
|
111
111
|
|
|
112
112
|
// code under test
|
|
113
113
|
oBinding = new ODataTreeBinding(oModel, "path", oContext, oApplicationFilter);
|
|
114
114
|
|
|
115
115
|
assert.deepEqual(oBinding.aApplicationFilters, [oApplicationFilter]);
|
|
116
116
|
|
|
117
|
-
oModelMock.expects("
|
|
117
|
+
oModelMock.expects("checkFilter").withExactArgs(sinon.match.same(oNotAFilter));
|
|
118
118
|
|
|
119
119
|
// code under test
|
|
120
120
|
oBinding = new ODataTreeBinding(oModel, "path", oContext, oNotAFilter);
|
|
@@ -126,12 +126,12 @@ sap.ui.define([
|
|
|
126
126
|
QUnit.test("constructor: multiple Application filters are grouped", function (assert) {
|
|
127
127
|
var oBinding,
|
|
128
128
|
aFilters = ["~filter0", "~filter1"],
|
|
129
|
-
oModel = {
|
|
129
|
+
oModel = {checkFilter: function () {}};
|
|
130
130
|
|
|
131
131
|
this.mock(FilterProcessor).expects("groupFilters")
|
|
132
132
|
.withExactArgs(sinon.match.same(aFilters))
|
|
133
133
|
.returns("~groupedFilters");
|
|
134
|
-
this.mock(oModel).expects("
|
|
134
|
+
this.mock(oModel).expects("checkFilter").withExactArgs(["~groupedFilters"]);
|
|
135
135
|
|
|
136
136
|
// code under test
|
|
137
137
|
oBinding = new ODataTreeBinding(oModel, "path", /*oContext*/{}, aFilters);
|
|
@@ -144,14 +144,14 @@ sap.ui.define([
|
|
|
144
144
|
var oBinding,
|
|
145
145
|
oContext = {},
|
|
146
146
|
oModel = {
|
|
147
|
-
|
|
147
|
+
checkFilter : function () {},
|
|
148
148
|
sDefaultCountMode : "ModelDefaultCountMode",
|
|
149
149
|
sDefaultOperationMode : OperationMode.Default,
|
|
150
150
|
bPreliminaryContext : "bPreliminaryContext"
|
|
151
151
|
},
|
|
152
152
|
oModelMock = this.mock(oModel);
|
|
153
153
|
|
|
154
|
-
oModelMock.expects("
|
|
154
|
+
oModelMock.expects("checkFilter").withExactArgs([]);
|
|
155
155
|
|
|
156
156
|
// code under test
|
|
157
157
|
oBinding = new ODataTreeBinding(oModel, "path", oContext);
|
|
@@ -171,7 +171,7 @@ sap.ui.define([
|
|
|
171
171
|
assert.strictEqual(oBinding.bUsePreliminaryContext, "bPreliminaryContext");
|
|
172
172
|
assert.strictEqual(oBinding.bTransitionMessagesOnly, false);
|
|
173
173
|
|
|
174
|
-
oModelMock.expects("
|
|
174
|
+
oModelMock.expects("checkFilter").withExactArgs([]);
|
|
175
175
|
|
|
176
176
|
// code under test
|
|
177
177
|
oBinding = new ODataTreeBinding(oModel, "path", oContext, undefined,
|
|
@@ -179,7 +179,7 @@ sap.ui.define([
|
|
|
179
179
|
|
|
180
180
|
assert.strictEqual(oBinding.sGroupId, "group");
|
|
181
181
|
|
|
182
|
-
oModelMock.expects("
|
|
182
|
+
oModelMock.expects("checkFilter").withExactArgs([]);
|
|
183
183
|
this.oLogMock.expects("fatal").withExactArgs("To use an ODataTreeBinding at least "
|
|
184
184
|
+ "one CountMode must be supported by the service!");
|
|
185
185
|
|
|
@@ -1179,12 +1179,12 @@ sap.ui.define([
|
|
|
1179
1179
|
QUnit.test("filter: group filters of type Application #" + i, function (assert) {
|
|
1180
1180
|
var oBinding = {
|
|
1181
1181
|
aApplicationFilters: "~oldFilters",
|
|
1182
|
-
oModel: {
|
|
1182
|
+
oModel: {checkFilter: function () {}},
|
|
1183
1183
|
_fireRefresh: function () {},
|
|
1184
1184
|
resetData: function () {}
|
|
1185
1185
|
};
|
|
1186
1186
|
|
|
1187
|
-
this.mock(oBinding.oModel).expects("
|
|
1187
|
+
this.mock(oBinding.oModel).expects("checkFilter").withExactArgs(oFixture.filter);
|
|
1188
1188
|
this.mock(FilterProcessor).expects("groupFilters")
|
|
1189
1189
|
.withExactArgs(sinon.match.same(oFixture.filter))
|
|
1190
1190
|
.exactly(oFixture.groupFilter ? 1 : 0)
|
|
@@ -1227,11 +1227,11 @@ sap.ui.define([
|
|
|
1227
1227
|
oBinding,
|
|
1228
1228
|
oContext = {},
|
|
1229
1229
|
oModel = {
|
|
1230
|
-
|
|
1230
|
+
checkFilter : function () {}
|
|
1231
1231
|
},
|
|
1232
1232
|
oModelMock = this.mock(oModel);
|
|
1233
1233
|
|
|
1234
|
-
oModelMock.expects("
|
|
1234
|
+
oModelMock.expects("checkFilter").withExactArgs([oApplicationFilter]);
|
|
1235
1235
|
|
|
1236
1236
|
oBinding = new ODataTreeBinding(oModel, "path", oContext, oApplicationFilter);
|
|
1237
1237
|
|
|
@@ -1245,7 +1245,7 @@ sap.ui.define([
|
|
|
1245
1245
|
assert.deepEqual(oBinding.aApplicationFilters, [oApplicationFilter]);
|
|
1246
1246
|
|
|
1247
1247
|
oApplicationFilter = new Filter("propertyPath", "LE", "bar");
|
|
1248
|
-
oModelMock.expects("
|
|
1248
|
+
oModelMock.expects("checkFilter").withExactArgs(oApplicationFilter);
|
|
1249
1249
|
|
|
1250
1250
|
oBinding.filter(oApplicationFilter, FilterType.Application);
|
|
1251
1251
|
|
|
@@ -1258,7 +1258,7 @@ sap.ui.define([
|
|
|
1258
1258
|
});
|
|
1259
1259
|
assert.deepEqual(oBinding.aApplicationFilters, [oApplicationFilter]);
|
|
1260
1260
|
|
|
1261
|
-
oModelMock.expects("
|
|
1261
|
+
oModelMock.expects("checkFilter").withExactArgs(undefined);
|
|
1262
1262
|
|
|
1263
1263
|
oBinding.filter(undefined, FilterType.Application);
|
|
1264
1264
|
|