@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
|
@@ -1,34 +1,10 @@
|
|
|
1
1
|
sap.ui.define([
|
|
2
2
|
"sap/ui/core/UIComponent"
|
|
3
|
-
],
|
|
3
|
+
], (UIComponent) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
|
|
6
|
-
var Component = UIComponent.extend("sap.ui.core.tutorial.odatav4.11.Component", {
|
|
7
|
-
|
|
5
|
+
return UIComponent.extend("sap.ui.core.tutorial.odatav4.11.Component", {
|
|
8
6
|
metadata : {
|
|
9
|
-
|
|
10
|
-
sample : {
|
|
11
|
-
iframe : "webapp/index.html",
|
|
12
|
-
stretch : true,
|
|
13
|
-
files : [
|
|
14
|
-
"webapp/controller/App.controller.js",
|
|
15
|
-
"webapp/i18n/i18n.properties",
|
|
16
|
-
"webapp/view/App.view.xml",
|
|
17
|
-
"webapp/model/models.js",
|
|
18
|
-
"webapp/Component.js",
|
|
19
|
-
"webapp/index.html",
|
|
20
|
-
"webapp/initMockServer.js",
|
|
21
|
-
"webapp/manifest.json",
|
|
22
|
-
"webapp/localService/mockdata/people.json",
|
|
23
|
-
"webapp/localService/metadata.xml",
|
|
24
|
-
"webapp/localService/mockserver.js",
|
|
25
|
-
"ui5.yaml",
|
|
26
|
-
"package.json"
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
}
|
|
7
|
+
manifest : "json"
|
|
30
8
|
}
|
|
31
9
|
});
|
|
32
|
-
|
|
33
|
-
return Component;
|
|
34
10
|
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sap.app": {
|
|
3
|
+
"id": "sap.ui.core.tutorial.odatav4.11"
|
|
4
|
+
},
|
|
5
|
+
"sap.ui5": {
|
|
6
|
+
"config": {
|
|
7
|
+
"sample": {
|
|
8
|
+
"iframe": "webapp/index.html",
|
|
9
|
+
"stretch": true,
|
|
10
|
+
"files": [
|
|
11
|
+
"webapp/controller/App.controller.js",
|
|
12
|
+
"webapp/i18n/i18n.properties",
|
|
13
|
+
"webapp/view/App.view.xml",
|
|
14
|
+
"webapp/model/models.js",
|
|
15
|
+
"webapp/Component.js",
|
|
16
|
+
"webapp/index.html",
|
|
17
|
+
"webapp/initMockServer.js",
|
|
18
|
+
"webapp/manifest.json",
|
|
19
|
+
"webapp/localService/mockdata/people.json",
|
|
20
|
+
"webapp/localService/metadata.xml",
|
|
21
|
+
"webapp/localService/mockserver.js",
|
|
22
|
+
"ui5.yaml",
|
|
23
|
+
"package.json"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
sap.ui.define([
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
sample: {
|
|
10
|
-
iframe: "webapp/index.html",
|
|
11
|
-
stretch: true,
|
|
12
|
-
files: [
|
|
13
|
-
"webapp/Component.js",
|
|
14
|
-
"webapp/controller/App.controller.js",
|
|
15
|
-
"webapp/css/style.css",
|
|
16
|
-
"webapp/i18n/i18n.properties",
|
|
17
|
-
"webapp/index.html",
|
|
18
|
-
"webapp/manifest.json",
|
|
19
|
-
"webapp/model/models.js",
|
|
20
|
-
"webapp/view/App.view.xml",
|
|
21
|
-
"ui5.yaml",
|
|
22
|
-
"package.json"
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
return Component;
|
|
1
|
+
sap.ui.define([
|
|
2
|
+
"sap/ui/core/UIComponent"
|
|
3
|
+
], (UIComponent) => {
|
|
4
|
+
"use strict";
|
|
5
|
+
return UIComponent.extend("sap.ui.core.tutorial.troubleshooting.01.Component", {
|
|
6
|
+
metadata : {
|
|
7
|
+
manifest : "json"
|
|
8
|
+
}
|
|
30
9
|
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sap.app": {
|
|
3
|
+
"id": "sap.ui.core.tutorial.troubleshooting.01"
|
|
4
|
+
},
|
|
5
|
+
"sap.ui5": {
|
|
6
|
+
"config": {
|
|
7
|
+
"sample": {
|
|
8
|
+
"iframe": "webapp/index.html",
|
|
9
|
+
"stretch": true,
|
|
10
|
+
"files": [
|
|
11
|
+
"webapp/Component.js",
|
|
12
|
+
"webapp/controller/App.controller.js",
|
|
13
|
+
"webapp/css/style.css",
|
|
14
|
+
"webapp/i18n/i18n.properties",
|
|
15
|
+
"webapp/index.html",
|
|
16
|
+
"webapp/manifest.json",
|
|
17
|
+
"webapp/model/models.js",
|
|
18
|
+
"webapp/view/App.view.xml",
|
|
19
|
+
"ui5.yaml",
|
|
20
|
+
"package.json"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -22,17 +22,17 @@ sap.ui.define([
|
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
QUnit.test("Empty Arguments", function(assert) {
|
|
25
|
-
this.oModel.
|
|
25
|
+
this.oModel.checkFilter();
|
|
26
26
|
assert.ok(true, "No arguments lead to a positive result");
|
|
27
27
|
|
|
28
|
-
this.oModel.
|
|
28
|
+
this.oModel.checkFilter([]);
|
|
29
29
|
assert.ok(true, "Empty array lead to a positive result");
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
QUnit.test("Simple Filters - Supported are OK", function(assert) {
|
|
33
33
|
// comma separated syntax
|
|
34
34
|
var oSupported = new Filter("x", FilterOperator.NE, "Foo");
|
|
35
|
-
this.oModel.
|
|
35
|
+
this.oModel.checkFilter(oSupported);
|
|
36
36
|
assert.ok(true, "Valid operators are supported");
|
|
37
37
|
|
|
38
38
|
// object syntax
|
|
@@ -41,12 +41,12 @@ sap.ui.define([
|
|
|
41
41
|
operator: FilterOperator.NE,
|
|
42
42
|
value1: "FooBar"
|
|
43
43
|
});
|
|
44
|
-
this.oModel.
|
|
44
|
+
this.oModel.checkFilter(oSupported2);
|
|
45
45
|
assert.ok(true, "Valid operators are supported");
|
|
46
46
|
|
|
47
47
|
// local fnTest - comma separated (should be ignored)
|
|
48
48
|
var oSupported3 = new Filter("z", function() {});
|
|
49
|
-
this.oModel.
|
|
49
|
+
this.oModel.checkFilter(oSupported3);
|
|
50
50
|
assert.ok(true, true, "local fnTest is ignored (comma separated syntax)");
|
|
51
51
|
|
|
52
52
|
// local fnTest - object syntax (should be ignored)
|
|
@@ -54,7 +54,7 @@ sap.ui.define([
|
|
|
54
54
|
path: "z",
|
|
55
55
|
test: function() {}
|
|
56
56
|
});
|
|
57
|
-
this.oModel.
|
|
57
|
+
this.oModel.checkFilter(oSupported4);
|
|
58
58
|
assert.ok(true, "local fnTest is ignored (object syntax)");
|
|
59
59
|
});
|
|
60
60
|
|
|
@@ -68,7 +68,7 @@ sap.ui.define([
|
|
|
68
68
|
});
|
|
69
69
|
assert.throws(
|
|
70
70
|
function() {
|
|
71
|
-
this.oModel.
|
|
71
|
+
this.oModel.checkFilter(oUnsupported3);
|
|
72
72
|
}.bind(this),
|
|
73
73
|
this.getErrorWithMessage(FilterOperator.Any),
|
|
74
74
|
"Invalid operators are not supported (object syntax)"
|
|
@@ -83,7 +83,7 @@ sap.ui.define([
|
|
|
83
83
|
});
|
|
84
84
|
assert.throws(
|
|
85
85
|
function() {
|
|
86
|
-
this.oModel.
|
|
86
|
+
this.oModel.checkFilter(oUnsupported4);
|
|
87
87
|
}.bind(this),
|
|
88
88
|
this.getErrorWithMessage(FilterOperator.All),
|
|
89
89
|
"Invalid operators are not supported (object syntax)"
|
|
@@ -100,7 +100,7 @@ sap.ui.define([
|
|
|
100
100
|
});
|
|
101
101
|
assert.throws(
|
|
102
102
|
function() {
|
|
103
|
-
this.oModel.
|
|
103
|
+
this.oModel.checkFilter(oUnsupported3);
|
|
104
104
|
}.bind(this),
|
|
105
105
|
this.getErrorWithMessage(FilterOperator.Any),
|
|
106
106
|
"Invalid operators are not supported (object syntax)"
|
|
@@ -115,7 +115,7 @@ sap.ui.define([
|
|
|
115
115
|
});
|
|
116
116
|
assert.throws(
|
|
117
117
|
function() {
|
|
118
|
-
this.oModel.
|
|
118
|
+
this.oModel.checkFilter(oUnsupported4);
|
|
119
119
|
}.bind(this),
|
|
120
120
|
this.getErrorWithMessage(FilterOperator.All),
|
|
121
121
|
"Invalid operators are not supported (object syntax)"
|
|
@@ -128,7 +128,7 @@ sap.ui.define([
|
|
|
128
128
|
|
|
129
129
|
// Comma separated syntax
|
|
130
130
|
var oMultiFilter2 = new Filter([oFilter1, oFilter2], false);
|
|
131
|
-
this.oModel.
|
|
131
|
+
this.oModel.checkFilter(oMultiFilter2);
|
|
132
132
|
assert.ok(true, "Valid operators in multi-filter are supported (comma separated syntax)");
|
|
133
133
|
|
|
134
134
|
// Object Syntax
|
|
@@ -137,7 +137,7 @@ sap.ui.define([
|
|
|
137
137
|
and: true
|
|
138
138
|
});
|
|
139
139
|
|
|
140
|
-
this.oModel.
|
|
140
|
+
this.oModel.checkFilter(oMultiFilter);
|
|
141
141
|
assert.ok(true, "Valid operators in multi-filter are supported (object syntax)");
|
|
142
142
|
});
|
|
143
143
|
|
|
@@ -154,7 +154,7 @@ sap.ui.define([
|
|
|
154
154
|
});
|
|
155
155
|
assert.throws(
|
|
156
156
|
function() {
|
|
157
|
-
this.oModel.
|
|
157
|
+
this.oModel.checkFilter(oMultiFilter);
|
|
158
158
|
}.bind(this),
|
|
159
159
|
this.getErrorWithMessage(FilterOperator.All),
|
|
160
160
|
"Invalid operators in multi-filter are unsupported (object syntax)"
|
|
@@ -167,7 +167,7 @@ sap.ui.define([
|
|
|
167
167
|
});
|
|
168
168
|
assert.throws(
|
|
169
169
|
function() {
|
|
170
|
-
this.oModel.
|
|
170
|
+
this.oModel.checkFilter(oMultiFilter);
|
|
171
171
|
}.bind(this),
|
|
172
172
|
this.getErrorWithMessage(FilterOperator.All),
|
|
173
173
|
"Invalid operators in multi-filter are unsupported (object syntax)"
|
|
@@ -177,7 +177,7 @@ sap.ui.define([
|
|
|
177
177
|
var oMultiFilter2 = new Filter([oFilter1, oFilter2], true);
|
|
178
178
|
assert.throws(
|
|
179
179
|
function() {
|
|
180
|
-
this.oModel.
|
|
180
|
+
this.oModel.checkFilter(oMultiFilter2);
|
|
181
181
|
}.bind(this),
|
|
182
182
|
this.getErrorWithMessage(FilterOperator.All),
|
|
183
183
|
"Invalid operators in multi-filter are unsupported (comma separated syntax)"
|
|
@@ -191,7 +191,7 @@ sap.ui.define([
|
|
|
191
191
|
oMultiFilter2 = new Filter([oFilter1, oFilter2], true);
|
|
192
192
|
assert.throws(
|
|
193
193
|
function() {
|
|
194
|
-
this.oModel.
|
|
194
|
+
this.oModel.checkFilter(oMultiFilter2);
|
|
195
195
|
}.bind(this),
|
|
196
196
|
this.getErrorWithMessage(FilterOperator.Any),
|
|
197
197
|
"Invalid operators in multi-filter are unsupported (comma separated syntax)"
|
|
@@ -210,7 +210,7 @@ sap.ui.define([
|
|
|
210
210
|
});
|
|
211
211
|
assert.throws(
|
|
212
212
|
function() {
|
|
213
|
-
this.oModel.
|
|
213
|
+
this.oModel.checkFilter(oMultiFilter);
|
|
214
214
|
}.bind(this),
|
|
215
215
|
this.getErrorWithMessage(FilterOperator.All),
|
|
216
216
|
"Invalid operators in multi-filter are unsupported (object syntax)"
|
|
@@ -223,7 +223,7 @@ sap.ui.define([
|
|
|
223
223
|
});
|
|
224
224
|
assert.throws(
|
|
225
225
|
function() {
|
|
226
|
-
this.oModel.
|
|
226
|
+
this.oModel.checkFilter(oMultiFilter);
|
|
227
227
|
}.bind(this),
|
|
228
228
|
this.getErrorWithMessage(FilterOperator.All),
|
|
229
229
|
"Invalid operators in multi-filter are unsupported (object syntax)"
|
|
@@ -233,7 +233,7 @@ sap.ui.define([
|
|
|
233
233
|
var oMultiFilter2 = new Filter([oFilter1, oFilter2], true);
|
|
234
234
|
assert.throws(
|
|
235
235
|
function() {
|
|
236
|
-
this.oModel.
|
|
236
|
+
this.oModel.checkFilter(oMultiFilter2);
|
|
237
237
|
}.bind(this),
|
|
238
238
|
this.getErrorWithMessage(FilterOperator.All),
|
|
239
239
|
"Invalid operators in multi-filter are unsupported (comma separated syntax)"
|
|
@@ -248,7 +248,7 @@ sap.ui.define([
|
|
|
248
248
|
|
|
249
249
|
assert.throws(
|
|
250
250
|
function() {
|
|
251
|
-
this.oModel.
|
|
251
|
+
this.oModel.checkFilter(oMultiFilter2);
|
|
252
252
|
}.bind(this),
|
|
253
253
|
this.getErrorWithMessage(FilterOperator.Any),
|
|
254
254
|
"Invalid operators in multi-filter are unsupported (comma separated syntax)"
|
|
@@ -269,7 +269,7 @@ sap.ui.define([
|
|
|
269
269
|
|
|
270
270
|
var oMultiFilter3 = new Filter([oMultiFilter2, oFilter4]);
|
|
271
271
|
|
|
272
|
-
this.oModel.
|
|
272
|
+
this.oModel.checkFilter(oMultiFilter3);
|
|
273
273
|
assert.ok(true, "Valid operators in multi-filter are supported");
|
|
274
274
|
});
|
|
275
275
|
|
|
@@ -292,7 +292,7 @@ sap.ui.define([
|
|
|
292
292
|
|
|
293
293
|
assert.throws(
|
|
294
294
|
function() {
|
|
295
|
-
this.oModel.
|
|
295
|
+
this.oModel.checkFilter(oMultiFilter3);
|
|
296
296
|
}.bind(this),
|
|
297
297
|
this.getErrorWithMessage(FilterOperator.All),
|
|
298
298
|
"Invalid operators in multi-filter are unsupported"
|
|
@@ -326,7 +326,7 @@ sap.ui.define([
|
|
|
326
326
|
|
|
327
327
|
assert.throws(
|
|
328
328
|
function() {
|
|
329
|
-
this.oModel.
|
|
329
|
+
this.oModel.checkFilter(oMultiFilter3);
|
|
330
330
|
}.bind(this),
|
|
331
331
|
this.getErrorWithMessage(FilterOperator.All),
|
|
332
332
|
"Invalid operators in multi-filter are unsupported"
|
|
@@ -352,7 +352,7 @@ sap.ui.define([
|
|
|
352
352
|
|
|
353
353
|
QUnit.test("Own model supports the Any operator (Simple)", function(assert) {
|
|
354
354
|
var oSupportedFilter = new Filter({path: "y", operator: FilterOperator.Any, variable: "x", condition: new Filter("z", FilterOperator.EQ, 100)});
|
|
355
|
-
this.oModel.
|
|
355
|
+
this.oModel.checkFilter(oSupportedFilter);
|
|
356
356
|
assert.ok(true, "Supported lambda operator provided");
|
|
357
357
|
});
|
|
358
358
|
|
|
@@ -360,7 +360,7 @@ sap.ui.define([
|
|
|
360
360
|
var oSupportedFilter = new Filter({path: "y", operator: FilterOperator.All, variable: "x", condition: new Filter("z", FilterOperator.EQ, 100)});
|
|
361
361
|
assert.throws(
|
|
362
362
|
function() {
|
|
363
|
-
this.oModel.
|
|
363
|
+
this.oModel.checkFilter(oSupportedFilter);
|
|
364
364
|
}.bind(this),
|
|
365
365
|
this.getErrorWithMessage(FilterOperator.All),
|
|
366
366
|
"Unsupported lambda operator provided"
|
|
@@ -381,7 +381,7 @@ sap.ui.define([
|
|
|
381
381
|
var oMultiFilter2 = new Filter([oAnyFilter, oFilter3], false);
|
|
382
382
|
var oMultiFilter3 = new Filter([oMultiFilter2, oFilter4]);
|
|
383
383
|
|
|
384
|
-
this.oModel.
|
|
384
|
+
this.oModel.checkFilter(oMultiFilter3);
|
|
385
385
|
assert.ok(true, "Valid operators in multi-filter are supported");
|
|
386
386
|
});
|
|
387
387
|
|
|
@@ -401,7 +401,7 @@ sap.ui.define([
|
|
|
401
401
|
|
|
402
402
|
assert.throws(
|
|
403
403
|
function() {
|
|
404
|
-
this.oModel.
|
|
404
|
+
this.oModel.checkFilter(oMultiFilter3);
|
|
405
405
|
}.bind(this),
|
|
406
406
|
this.getErrorWithMessage(FilterOperator.All),
|
|
407
407
|
"Invalid operators in multi-filter are unsupported"
|
|
@@ -420,7 +420,7 @@ sap.ui.define([
|
|
|
420
420
|
|
|
421
421
|
assert.throws(
|
|
422
422
|
function() {
|
|
423
|
-
this.oModel.
|
|
423
|
+
this.oModel.checkFilter(oFilter1);
|
|
424
424
|
}.bind(this),
|
|
425
425
|
this.getErrorWithMessage(FilterOperator.All),
|
|
426
426
|
"Invalid operators in multi-filter are unsupported"
|
|
@@ -446,4 +446,46 @@ sap.ui.define([
|
|
|
446
446
|
}, reject);
|
|
447
447
|
});
|
|
448
448
|
});
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* @deprecated since 1.120
|
|
452
|
+
*/
|
|
453
|
+
QUnit.module("Pseudo Module Deprecation", {});
|
|
454
|
+
|
|
455
|
+
QUnit.test("", async function(assert) {
|
|
456
|
+
let oErrorLogSpy;
|
|
457
|
+
|
|
458
|
+
assert.expect(3);
|
|
459
|
+
|
|
460
|
+
sap.ui.predefine('testing/pseudo/modules/deprecation/library', ["sap/ui/core/Lib"], function(Library) {
|
|
461
|
+
const oThisLib = Library.init({
|
|
462
|
+
name: 'testing.pseudo.modules.deprecation',
|
|
463
|
+
noLibraryCSS: true,
|
|
464
|
+
types: ["testing.pseudo.modules.deprecation.Type1"]
|
|
465
|
+
});
|
|
466
|
+
|
|
467
|
+
oThisLib.Type1 = {
|
|
468
|
+
"A": "A",
|
|
469
|
+
"B": "B"
|
|
470
|
+
};
|
|
471
|
+
});
|
|
472
|
+
|
|
473
|
+
await Library.load({
|
|
474
|
+
name: "testing.pseudo.modules.deprecation"
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
await new Promise((resolve, reject) => {
|
|
478
|
+
oErrorLogSpy = this.spy(Log, "error");
|
|
479
|
+
const sExpectedErrorMessage = "Deprecation: Import the type 'testing.pseudo.modules.deprecation.Type1' as a module is deprecated. Please require the corresponding 'library.js' containing the type directly. You can then reference the type via the library's module export.";
|
|
480
|
+
|
|
481
|
+
sap.ui.require(["testing/pseudo/modules/deprecation/Type1"], (Type1) => {
|
|
482
|
+
assert.ok(oErrorLogSpy.calledWith(sExpectedErrorMessage), "Error Message for pseudo module deprecation logged.");
|
|
483
|
+
assert.ok(Type1.A, "A", "pseudo type module export is correct (A).");
|
|
484
|
+
assert.ok(Type1.B, "B", "pseudo type module export is correct (B).");
|
|
485
|
+
resolve();
|
|
486
|
+
}, reject);
|
|
487
|
+
}).finally(() => {
|
|
488
|
+
oErrorLogSpy.restore();
|
|
489
|
+
});
|
|
490
|
+
});
|
|
449
491
|
});
|
|
@@ -15,8 +15,9 @@ sap.ui.define([
|
|
|
15
15
|
"sap/ui/model/Sorter",
|
|
16
16
|
"sap/ui/base/ManagedObjectMetadata",
|
|
17
17
|
"sap/base/strings/escapeRegExp",
|
|
18
|
-
"sap/base/util/isEmptyObject"
|
|
19
|
-
|
|
18
|
+
"sap/base/util/isEmptyObject",
|
|
19
|
+
"sap/base/util/ObjectPath"
|
|
20
|
+
], function(BindingInfo, BindingParser, DataType, ManagedObject, Element, JSONModel, Context, ManagedObjectModel, StringType, Control, Component, UIComponent, Sorter, ManagedObjectMetadata, escapeRegExp, isEmptyObject, ObjectPath) {
|
|
20
21
|
"use strict";
|
|
21
22
|
var mObjects = {};
|
|
22
23
|
|
|
@@ -29,6 +30,15 @@ sap.ui.define([
|
|
|
29
30
|
|
|
30
31
|
DataType.registerEnum("MyEnum", MyEnum);
|
|
31
32
|
|
|
33
|
+
// sample item object, will be used as aggregation content for defaultClass test
|
|
34
|
+
const TestItem = ManagedObject.extend("sap.ui.core.TestItem", {
|
|
35
|
+
metadata: {
|
|
36
|
+
properties: {
|
|
37
|
+
name: { type: "string", defaultValue: "hello" }
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
32
42
|
// define new types for testing
|
|
33
43
|
var TestManagedObject = ManagedObject.extend("sap.ui.core.TestManagedObject", {
|
|
34
44
|
metadata : {
|
|
@@ -54,7 +64,8 @@ sap.ui.define([
|
|
|
54
64
|
singleBindableAggr : { type : "sap.ui.core.TestManagedObject", multiple : false, bindable: "bindable" },
|
|
55
65
|
subObjects : { type : "sap.ui.core.TestManagedObject", multiple : true, singularName : "subObj"},
|
|
56
66
|
elements : { type : "sap.ui.core.Element", multiple : true, bindable: "bindable"},
|
|
57
|
-
skippedPropagation : { type: "sap.ui.core.Element", multiple: false }
|
|
67
|
+
skippedPropagation : { type: "sap.ui.core.Element", multiple: false },
|
|
68
|
+
itemsWithDefaultClass: { type: "sap.ui.core.TestItem", defaultClass: TestItem, multiple: true}
|
|
58
69
|
},
|
|
59
70
|
associations : {
|
|
60
71
|
selectedObject : { type : "sap.ui.core.TestManagedObject", multiple : false},
|
|
@@ -1952,6 +1963,78 @@ sap.ui.define([
|
|
|
1952
1963
|
assert.ok(bThrown, "Must throw error on unknown aggregation bind");
|
|
1953
1964
|
});
|
|
1954
1965
|
|
|
1966
|
+
QUnit.module("defaultClass");
|
|
1967
|
+
|
|
1968
|
+
QUnit.test("ManagedObjects created from object-literals", function(assert) {
|
|
1969
|
+
// spy ObjectPath.get() to check if aggregations with default class don't probe the global namespace
|
|
1970
|
+
const oObjectPathGetSpy = this.spy(ObjectPath, "get");
|
|
1971
|
+
|
|
1972
|
+
// Create aggregation content from object literals
|
|
1973
|
+
const oContainer = new TestManagedObject({
|
|
1974
|
+
itemsWithDefaultClass: [{
|
|
1975
|
+
name: "item 0"
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
name: "item 1"
|
|
1979
|
+
}]
|
|
1980
|
+
});
|
|
1981
|
+
|
|
1982
|
+
assert.equal(oObjectPathGetSpy.callCount, 0, "No access to global namespace for aggregations with 'defaultClass'");
|
|
1983
|
+
|
|
1984
|
+
// check aggregation content
|
|
1985
|
+
oContainer.getItemsWithDefaultClass().forEach((obj, i) => {
|
|
1986
|
+
assert.ok(obj instanceof TestItem, "Aggregation Item was correctly instantiated from 'defaultClass'");
|
|
1987
|
+
assert.ok(obj.getName(), `item ${i}`, "Aggregation Item properties correctly passed to 'defaultClass' constructor");
|
|
1988
|
+
});
|
|
1989
|
+
|
|
1990
|
+
oObjectPathGetSpy.restore();
|
|
1991
|
+
});
|
|
1992
|
+
|
|
1993
|
+
QUnit.test("validation: defaultClass does not match aggregation type", function(assert) {
|
|
1994
|
+
assert.throws(() => {
|
|
1995
|
+
// sample item object, will be used as aggregation content for defaultClass test
|
|
1996
|
+
ManagedObject.extend("sap.ui.core.FaultyTestClass", {
|
|
1997
|
+
metadata: {
|
|
1998
|
+
aggregations: {
|
|
1999
|
+
items: { type: "sap.ui.core.TestItem", defaultClass: ManagedObject }
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
});
|
|
2003
|
+
},
|
|
2004
|
+
new TypeError("The 'defaultClass' of the aggregation 'items' in 'sap.ui.core.FaultyTestClass' is not of type 'sap.ui.core.TestItem'."),
|
|
2005
|
+
"'defaultClass' definition not matching aggregation type leads to a TypeError");
|
|
2006
|
+
});
|
|
2007
|
+
|
|
2008
|
+
QUnit.test("validation: defaultClass is defined together with altTypes containing 'object'", function(assert) {
|
|
2009
|
+
assert.throws(() => {
|
|
2010
|
+
// sample item object, will be used as aggregation content for defaultClass test
|
|
2011
|
+
ManagedObject.extend("sap.ui.core.FaultyTestClass", {
|
|
2012
|
+
metadata: {
|
|
2013
|
+
aggregations: {
|
|
2014
|
+
items: { type: "sap.ui.base.ManagedObject", defaultClass: ManagedObject, altTypes: ["string", "object"] }
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
});
|
|
2018
|
+
},
|
|
2019
|
+
new TypeError("The aggregation 'items' in 'sap.ui.core.FaultyTestClass' must not defined a 'defaultClass' together with the altType 'object'."),
|
|
2020
|
+
"'defaultClass' definition together with 'altTypes' definition containing 'object' leads to a TypeError");
|
|
2021
|
+
});
|
|
2022
|
+
|
|
2023
|
+
QUnit.test("validation: defaultClass property is defined, but nullish", function(assert) {
|
|
2024
|
+
assert.throws(() => {
|
|
2025
|
+
// sample item object, will be used as aggregation content for defaultClass test
|
|
2026
|
+
ManagedObject.extend("sap.ui.core.FaultyTestClass", {
|
|
2027
|
+
metadata: {
|
|
2028
|
+
aggregations: {
|
|
2029
|
+
items: { type: "sap.ui.base.ManagedObject", defaultClass: undefined }
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
});
|
|
2033
|
+
},
|
|
2034
|
+
new TypeError("The 'defaultClass' of the aggregation 'items' in 'sap.ui.core.FaultyTestClass' is defined with a nullish value (undefined)."),
|
|
2035
|
+
"'defaultClass' definition with nullish value leads to a TypeError");
|
|
2036
|
+
});
|
|
2037
|
+
|
|
1955
2038
|
QUnit.module("Hidden Aggregations", {
|
|
1956
2039
|
beforeEach: function() {
|
|
1957
2040
|
this.testObj = new sapTestTestManagedObject("testObj", {
|
|
@@ -274,4 +274,23 @@ sap.ui.define([
|
|
|
274
274
|
|
|
275
275
|
Formatting.detachChange(formattingChanged);
|
|
276
276
|
});
|
|
277
|
+
|
|
278
|
+
QUnit.test("CustomIslamicCalendarData", function(assert) {
|
|
279
|
+
var aData = [{
|
|
280
|
+
"dateFormat": "A",
|
|
281
|
+
"islamicMonthStart": "14351201",
|
|
282
|
+
"gregDate": "20140925"
|
|
283
|
+
}, {
|
|
284
|
+
"dateFormat": "A",
|
|
285
|
+
"islamicMonthStart": "14360101",
|
|
286
|
+
"gregDate": "20141024"
|
|
287
|
+
}, {
|
|
288
|
+
"dateFormat": "A",
|
|
289
|
+
"islamicMonthStart": "14360201",
|
|
290
|
+
"gregDate": "20141123"
|
|
291
|
+
}];
|
|
292
|
+
|
|
293
|
+
Formatting.setCustomIslamicCalendarData(aData);
|
|
294
|
+
assert.deepEqual(Formatting.getCustomIslamicCalendarData(), aData, "The customizing data set can be retrieved");
|
|
295
|
+
});
|
|
277
296
|
});
|
|
@@ -129,7 +129,7 @@ sap.ui.define([
|
|
|
129
129
|
|
|
130
130
|
QUnit.test("Factory Function", function(assert){
|
|
131
131
|
var oComp = this.oComp;
|
|
132
|
-
var oComponent = Component.
|
|
132
|
+
var oComponent = Component.getComponentById(oComp.getId());
|
|
133
133
|
assert.equal(oComponent, oComp, "Factory function returns the same instance!");
|
|
134
134
|
|
|
135
135
|
return Component.create({
|
|
@@ -434,7 +434,7 @@ sap.ui.define([
|
|
|
434
434
|
// check the nested component having the ID of the parent component
|
|
435
435
|
var oNestedComponentContainer = this.oComp.byId("ContButton");
|
|
436
436
|
var sNestedComponentId = oNestedComponentContainer.getComponent();
|
|
437
|
-
var oNestedComponent = Component.
|
|
437
|
+
var oNestedComponent = Component.getComponentById(sNestedComponentId);
|
|
438
438
|
assert.equal(sRefComponentId, Component.getOwnerIdFor(oNestedComponent), "The nested component has the correct component context");
|
|
439
439
|
// check the control in the nested component to have the correct component context
|
|
440
440
|
var oNestedControl = oNestedComponent.byId("mybutn");
|
|
@@ -739,7 +739,7 @@ sap.ui.define([
|
|
|
739
739
|
manifest: "anylocation/manifest.json"
|
|
740
740
|
}).then(function(oComponent) {
|
|
741
741
|
assert.ok(true, "Component is loaded properly!");
|
|
742
|
-
assert.equal(oComponent, Component.
|
|
742
|
+
assert.equal(oComponent, Component.getComponentById("myTestComp"), "Component.get returns right component");
|
|
743
743
|
}, function(oError) {
|
|
744
744
|
assert.ok(false, "Component should be loaded!");
|
|
745
745
|
});
|
|
@@ -1540,6 +1540,29 @@ sap.ui.define([
|
|
|
1540
1540
|
|
|
1541
1541
|
});
|
|
1542
1542
|
|
|
1543
|
+
QUnit.test("Component.create with loaded manifest content", function(assert) {
|
|
1544
|
+
var oProcessI18nSpy = this.spy(Manifest.prototype, "_processI18n");
|
|
1545
|
+
// there's still one sync path where the i18n file is processed synchronously
|
|
1546
|
+
// it's documented in BLI CPOUI5FRAMEWORK-286
|
|
1547
|
+
var iExpectedSyncCallCount = 1;
|
|
1548
|
+
return LoaderExtensions.loadResource(
|
|
1549
|
+
"sap/ui/test/mixed/manifest.json",
|
|
1550
|
+
{async: true}
|
|
1551
|
+
).then(function(oManifest) {
|
|
1552
|
+
return Component.create({
|
|
1553
|
+
manifest: oManifest
|
|
1554
|
+
});
|
|
1555
|
+
}).then(function(oComponent) {
|
|
1556
|
+
assert.ok(oComponent, "Component instance is created");
|
|
1557
|
+
var iSyncCall = oProcessI18nSpy.getCalls().reduce(function(acc, oCall) {
|
|
1558
|
+
if (oCall.args.length === 0 || !oCall.args[0]) {
|
|
1559
|
+
acc++;
|
|
1560
|
+
}
|
|
1561
|
+
return acc;
|
|
1562
|
+
}, 0);
|
|
1563
|
+
assert.equal(iSyncCall, iExpectedSyncCallCount, "The number of sync loading of i18n file is the same as expectation");
|
|
1564
|
+
});
|
|
1565
|
+
});
|
|
1543
1566
|
|
|
1544
1567
|
QUnit.module("Models", {
|
|
1545
1568
|
beforeEach : function() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*global QUnit, sinon */
|
|
2
2
|
sap.ui.define([
|
|
3
3
|
"sap/base/Log",
|
|
4
|
-
"sap/
|
|
4
|
+
"sap/base/i18n/Formatting",
|
|
5
5
|
"sap/ui/core/date/Islamic",
|
|
6
6
|
"sap/ui/core/date/UI5Date"
|
|
7
|
-
], function(Log,
|
|
7
|
+
], function(Log, Formatting, Islamic, UI5Date) {
|
|
8
8
|
"use strict";
|
|
9
9
|
/* eslint-disable camelcase */
|
|
10
10
|
|
|
@@ -172,8 +172,8 @@ sap.ui.define([
|
|
|
172
172
|
this.oLogMock.expects("error").never();
|
|
173
173
|
this.oLogMock.expects("warning").never();
|
|
174
174
|
// set to "1" and it will fall-back to "A"
|
|
175
|
-
this.stub(
|
|
176
|
-
this.stub(
|
|
175
|
+
this.stub(Formatting, "getABAPDateFormat").returns("1");
|
|
176
|
+
this.stub(Formatting, "getCustomIslamicCalendarData")
|
|
177
177
|
.returns(customizingInfo);
|
|
178
178
|
}
|
|
179
179
|
});
|
|
@@ -34,10 +34,10 @@ sap.ui.define([
|
|
|
34
34
|
var oBinding,
|
|
35
35
|
aFilters = [],
|
|
36
36
|
oModel = {
|
|
37
|
-
|
|
37
|
+
checkFilter : function () {}
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
this.mock(oModel).expects("
|
|
40
|
+
this.mock(oModel).expects("checkFilter").withExactArgs(sinon.match.same(aFilters));
|
|
41
41
|
this.mock(FilterProcessor).expects("combineFilters")
|
|
42
42
|
.withExactArgs([], sinon.match.same(aFilters))
|
|
43
43
|
.returns("~combinedFilters");
|