@openui5/sap.ui.core 1.117.0 → 1.118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/jquery.sap.global.js +1 -1
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/Event.js +1 -1
- package/src/sap/base/Eventing.js +1 -1
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/i18n/LanguageTag.js +1 -1
- package/src/sap/base/i18n/Localization.js +42 -39
- 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/BindingParser.js +2 -1
- 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 +7 -3
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +9 -1
- package/src/sap/ui/core/AnimationMode.js +1 -1
- package/src/sap/ui/core/BlockLayerUtils.js +1 -1
- package/src/sap/ui/core/BusyIndicator.js +2 -2
- package/src/sap/ui/core/Component.js +22 -15
- package/src/sap/ui/core/ComponentContainer.js +2 -2
- package/src/sap/ui/core/ComponentMetadata.js +1 -1
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +1 -13
- package/src/sap/ui/core/Control.js +21 -1
- package/src/sap/ui/core/Core.js +67 -41
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/Element.js +1 -1
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/Fragment.js +1 -1
- package/src/sap/ui/core/HTML.js +1 -1
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +2 -2
- package/src/sap/ui/core/IndicationColorSupport.js +2 -2
- 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 +3 -6
- 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 +9 -13
- 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 +2 -2
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Messaging.js +472 -0
- package/src/sap/ui/core/RenderManager.js +1 -1
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/Rendering.js +3 -2
- package/src/sap/ui/core/ResizeHandler.js +1 -4
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/ShortcutHint.js +1 -1
- package/src/sap/ui/core/Theming.js +28 -31
- 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 +85 -17
- 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 +2 -2
- 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/_IconRegistry.js +1 -1
- package/src/sap/ui/core/boot.js +9 -0
- 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/DragAndDrop.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/DateFormat.js +4 -0
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +18 -47
- 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 +37 -459
- package/src/sap/ui/core/message/MessageMixin.js +3 -3
- package/src/sap/ui/core/message/MessageParser.js +1 -1
- package/src/sap/ui/core/message/MessageProcessor.js +9 -9
- package/src/sap/ui/core/message/MessageType.js +53 -0
- package/src/sap/ui/core/messagebundle.properties +3 -0
- package/src/sap/ui/core/messagebundle_ar.properties +1 -1
- package/src/sap/ui/core/messagebundle_bg.properties +1 -1
- package/src/sap/ui/core/messagebundle_ca.properties +1 -1
- package/src/sap/ui/core/messagebundle_cs.properties +1 -1
- package/src/sap/ui/core/messagebundle_cy.properties +1 -1
- package/src/sap/ui/core/messagebundle_da.properties +1 -1
- package/src/sap/ui/core/messagebundle_de.properties +1 -1
- package/src/sap/ui/core/messagebundle_el.properties +1 -1
- package/src/sap/ui/core/messagebundle_es.properties +1 -1
- package/src/sap/ui/core/messagebundle_es_MX.properties +1 -1
- package/src/sap/ui/core/messagebundle_et.properties +1 -1
- package/src/sap/ui/core/messagebundle_fi.properties +1 -1
- package/src/sap/ui/core/messagebundle_fr.properties +1 -1
- package/src/sap/ui/core/messagebundle_fr_CA.properties +1 -1
- package/src/sap/ui/core/messagebundle_hi.properties +1 -1
- package/src/sap/ui/core/messagebundle_hr.properties +1 -1
- package/src/sap/ui/core/messagebundle_hu.properties +1 -1
- package/src/sap/ui/core/messagebundle_id.properties +1 -1
- package/src/sap/ui/core/messagebundle_it.properties +1 -1
- package/src/sap/ui/core/messagebundle_iw.properties +1 -1
- package/src/sap/ui/core/messagebundle_ja.properties +1 -1
- package/src/sap/ui/core/messagebundle_kk.properties +1 -1
- package/src/sap/ui/core/messagebundle_ko.properties +1 -1
- package/src/sap/ui/core/messagebundle_lt.properties +1 -1
- package/src/sap/ui/core/messagebundle_lv.properties +1 -1
- package/src/sap/ui/core/messagebundle_ms.properties +1 -1
- package/src/sap/ui/core/messagebundle_nl.properties +1 -1
- package/src/sap/ui/core/messagebundle_no.properties +1 -1
- package/src/sap/ui/core/messagebundle_pl.properties +1 -1
- package/src/sap/ui/core/messagebundle_pt.properties +1 -1
- package/src/sap/ui/core/messagebundle_pt_PT.properties +1 -1
- package/src/sap/ui/core/messagebundle_ro.properties +1 -1
- package/src/sap/ui/core/messagebundle_ru.properties +1 -1
- package/src/sap/ui/core/messagebundle_sh.properties +1 -1
- package/src/sap/ui/core/messagebundle_sk.properties +1 -1
- package/src/sap/ui/core/messagebundle_sl.properties +1 -1
- package/src/sap/ui/core/messagebundle_sv.properties +9 -9
- package/src/sap/ui/core/messagebundle_th.properties +1 -1
- package/src/sap/ui/core/messagebundle_tr.properties +1 -1
- package/src/sap/ui/core/messagebundle_uk.properties +1 -1
- package/src/sap/ui/core/messagebundle_vi.properties +1 -1
- package/src/sap/ui/core/messagebundle_zh_CN.properties +1 -1
- package/src/sap/ui/core/messagebundle_zh_TW.properties +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +1 -1
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +1 -1
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +1 -1
- package/src/sap/ui/core/mvc/XMLView.js +9 -2
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +1 -1
- package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
- package/src/sap/ui/core/postmessage/Bus.js +1 -1
- package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
- package/src/sap/ui/core/routing/Router.js +7 -1
- package/src/sap/ui/core/routing/async/Route.js +1 -0
- package/src/sap/ui/core/routing/sync/Route.js +1 -0
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
- package/src/sap/ui/core/search/SearchProvider.js +1 -1
- package/src/sap/ui/core/service/Service.js +1 -1
- package/src/sap/ui/core/service/ServiceFactory.js +1 -1
- package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
- package/src/sap/ui/core/support/Plugin.js +25 -5
- package/src/sap/ui/core/support/Support.js +34 -4
- package/src/sap/ui/core/support/ToolsAPI.js +6 -16
- package/src/sap/ui/core/support/controls/InteractionTree.js +0 -4
- package/src/sap/ui/core/support/plugins/Breakpoint.js +0 -2
- package/src/sap/ui/core/support/plugins/ControlTree.js +10 -12
- package/src/sap/ui/core/support/plugins/Debugging.js +10 -9
- package/src/sap/ui/core/support/plugins/Interaction.js +12 -13
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -3
- package/src/sap/ui/core/support/plugins/Performance.js +1 -3
- package/src/sap/ui/core/support/plugins/Selector.js +1 -1
- package/src/sap/ui/core/support/plugins/TechInfo.js +32 -42
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +27 -13
- package/src/sap/ui/core/support/techinfo/TechnicalInfo.js +4 -4
- package/src/sap/ui/core/theming/ThemeHelper.js +100 -0
- package/src/sap/ui/core/theming/ThemeManager.js +18 -18
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +1 -1
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/Export.js +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/XMLPreprocessor.js +53 -29
- 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 +659 -0
- package/src/sap/ui/core/webc/WebComponentMetadata.js +253 -0
- package/src/sap/ui/core/webc/WebComponentRenderer.js +323 -0
- 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 +4 -3
- package/src/sap/ui/debug/DebugEnv.js +4 -4
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/model/Binding.js +6 -6
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/ClientPropertyBinding.js +3 -3
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/Context.js +1 -1
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/ManagedObjectBindingSupport.js +4 -4
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +4 -4
- 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/controlhelper/TreeBindingProxy.js +27 -13
- 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 +24 -0
- package/src/sap/ui/model/odata/ODataMessageParser.js +4 -4
- 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/ODataTreeBindingFlat.js +6 -0
- 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 +7 -2
- 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 +6 -2
- 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 +23 -3
- package/src/sap/ui/model/odata/v2/ODataModel.js +6 -6
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +33 -6
- package/src/sap/ui/model/odata/v4/Context.js +26 -16
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +6 -2
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +62 -29
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataModel.js +17 -10
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +5 -1
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +129 -6
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +102 -57
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +30 -4
- package/src/sap/ui/model/odata/v4/lib/_Parser.js +3 -0
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +14 -4
- package/src/sap/ui/model/odata/v4/lib/_V2Requestor.js +28 -35
- package/src/sap/ui/model/odata/v4/ts.js +44 -0
- 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 +5 -4
- 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 +11 -2
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +10 -11
- package/src/sap/ui/qunit/utils/nextUIUpdate.js +51 -0
- package/src/sap/ui/test/ModuleTracking.js +326 -0
- package/src/sap/ui/test/TestUtils.js +7 -6
- package/src/sap/ui/test/autowaiter/_UIUpdatesWaiter.js +3 -2
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/selectors/_ControlSelectorGenerator.js +2 -0
- package/src/sap/ui/test/selectors/_DropdownItem.js +1 -0
- package/src/sap/ui/test/selectors/_TableRowItem.js +1 -0
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/ui5loader-autoconfig.js +14 -10
- package/src/ui5loader.js +2 -2
- package/test/sap/ui/core/ComponentCleanup.html +228 -225
- package/test/sap/ui/core/ComponentConfig.html +1 -1
- package/test/sap/ui/core/ComponentExtensibility_CustomizingDisabled.html +1 -1
- package/test/sap/ui/core/ComponentExtensibility_legacyAPIs.html +1 -1
- package/test/sap/ui/core/ComponentSimple.html +1 -1
- package/test/sap/ui/core/ComponentSimpleModel.html +1 -1
- package/test/sap/ui/core/ComponentSupport.html +1 -1
- package/test/sap/ui/core/DateFormat.js +3 -3
- package/test/sap/ui/core/EventBroadcaster.html +62 -62
- package/test/sap/ui/core/Formats.html +4 -2
- package/test/sap/ui/core/GenericEventBinding.html +53 -52
- package/test/sap/ui/core/ListFormat.js +3 -3
- package/test/sap/ui/core/NumberFormat.js +3 -3
- package/test/sap/ui/core/ODataAnnotationsPerformance.html +28 -28
- package/test/sap/ui/core/ODataV2CanonicalRequests.html +3 -2
- package/test/sap/ui/core/ODataV2Messages.html +4 -3
- package/test/sap/ui/core/PopupWithUserSelection.html +1 -1
- package/test/sap/ui/core/Strings.js +3 -3
- package/test/sap/ui/core/ValidateURL.html +143 -143
- package/test/sap/ui/core/demokit/sample/Commands/Commands.html +1 -1
- package/test/sap/ui/core/demokit/sample/MessageManager/BasicMessages/Controller.controller.js +10 -10
- package/test/sap/ui/core/demokit/sample/MessageManager/BasicODataMessages/Controller.controller.js +7 -7
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/Component.js +3 -2
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/controller/Employee.controller.js +3 -2
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/index.html +7 -8
- package/test/sap/ui/core/demokit/sample/OpaGetStarted/applicationUnderTest/index.html +9 -6
- package/test/sap/ui/core/demokit/sample/OpaWithSupportAssistant/applicationUnderTest/index.html +13 -10
- package/test/sap/ui/core/demokit/sample/PatternMatching/Patterns.html +11 -8
- package/test/sap/ui/core/demokit/sample/RoutingFullscreen/RoutingFullscreen.html +11 -8
- package/test/sap/ui/core/demokit/sample/RoutingMasterDetail/RoutingMasterDetail.html +11 -8
- package/test/sap/ui/core/demokit/sample/RoutingNestedComponent/RoutingNestedComponent.html +1 -1
- package/test/sap/ui/core/demokit/sample/RoutingNestedComponent/test/integration/opaTests.qunit.html +1 -1
- package/test/sap/ui/core/demokit/sample/RoutingNestedComponent/test/integration/opaTests.qunit.js +5 -4
- package/test/sap/ui/core/demokit/sample/TargetsStandalone/TargetsStandalone.html +11 -8
- package/test/sap/ui/core/demokit/sample/ViewTemplate/scenario/Opa.qunit.js +9 -8
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/Opa.qunit.js +12 -11
- package/test/sap/ui/core/demokit/sample/common/Controller.js +6 -7
- package/test/sap/ui/core/demokit/sample/common/Helper.js +6 -2
- package/test/sap/ui/core/demokit/sample/common/init.js +25 -21
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithOPA5/WebsiteCode.js +8 -7
- package/test/sap/ui/core/demokit/sample/odata/v4/DataAggregation/Opa.qunit.js +9 -8
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/ObjectPage.controller.js +3 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Opa.qunit.js +12 -10
- package/test/sap/ui/core/demokit/sample/odata/v4/Draft/ListReport.controller.js +3 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/Draft/Opa.qunit.js +10 -9
- package/test/sap/ui/core/demokit/sample/odata/v4/FieldGroups/Opa.qunit.js +10 -9
- package/test/sap/ui/core/demokit/sample/odata/v4/FlatDataAggregation/Component.js +4 -4
- package/test/sap/ui/core/demokit/sample/odata/v4/FlexibleColumnLayout/Main.controller.js +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/FlexibleColumnLayout/Opa.qunit.js +10 -9
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/Component.js +19 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/Main.controller.js +93 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/Main.view.xml +85 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/SandboxModel.js +10 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/data/all.json +396 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/data/metadata.xml +423 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/manifest.json +70 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/LateProperties/Opa.OptimisticBatch.qunit.js +11 -10
- package/test/sap/ui/core/demokit/sample/odata/v4/LateProperties/Opa.qunit.js +9 -8
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBinding/Opa.qunit.js +10 -9
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBindingTemplate/Opa.qunit.js +8 -7
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Main.controller.js +8 -10
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Opa.qunit.js +12 -11
- package/test/sap/ui/core/demokit/sample/odata/v4/Products/Main.controller.js +3 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/Products/Opa.qunit.js +11 -10
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/MIT.RecursiveHierarchy maintenance.html +408 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/Opa.qunit.js +26 -8
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/RecursiveHierarchy.controller.js +54 -14
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/RecursiveHierarchy.view.xml +24 -10
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/SandboxModel.js +352 -287
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/pages/Main.js +38 -5
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/tests/createEdit.js +128 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/tests/pageExpandCollapse.js +23 -22
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V2/Opa.qunit.js +10 -9
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V4/Opa.qunit.js +9 -8
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Component.js +3 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Opa.qunit.js +15 -14
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersRTATest/Opa.qunit.js +9 -8
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersTemplate/Opa.qunit.js +9 -8
- package/test/sap/ui/core/demokit/sample/odata/v4/ServerDrivenPaging/Opa.qunit.js +10 -9
- package/test/sap/ui/core/demokit/sample/odata/v4/Sticky/Opa.qunit.js +10 -9
- package/test/sap/ui/core/demokit/tutorial/databinding/01/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/01/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/01/webapp/index.js +7 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/02/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/02/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/02/webapp/index.js +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/03/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/03/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/03/webapp/index.js +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/04/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/04/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/04/webapp/index.js +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/05/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/05/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/05/webapp/index.js +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/06/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/06/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/06/webapp/index.js +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/07/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/07/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/07/webapp/index.js +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/08/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/08/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/08/webapp/index.js +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/09/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/09/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/09/webapp/index.js +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/10/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/10/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/10/webapp/index.js +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/11/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/11/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/11/webapp/index.js +6 -4
- package/test/sap/ui/core/demokit/tutorial/databinding/12/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/12/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/12/webapp/index.js +6 -4
- package/test/sap/ui/core/demokit/tutorial/databinding/13/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/13/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/13/webapp/index.js +6 -4
- package/test/sap/ui/core/demokit/tutorial/databinding/14/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/14/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/14/webapp/index.js +6 -4
- package/test/sap/ui/core/demokit/tutorial/databinding/15/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/databinding/15/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/15/webapp/index.js +6 -4
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/01/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/01/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/01/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/02/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/02/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/02/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/03/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/03/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/03/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/04/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/04/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/04/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/05/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/05/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/05/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/06/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/06/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/06/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/07/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/07/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/07/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/08/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/08/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/08/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/09/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/09/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/09/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/10/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/10/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/10/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/11/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/11/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/11/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/12/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/12/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/12/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/13/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/13/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/13/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/14/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/14/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/14/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/15/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/15/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/15/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/16/package.json +2 -4
- package/test/sap/ui/core/demokit/tutorial/navigation/16/ui5.yaml +7 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/16/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/17/package.json +4 -6
- package/test/sap/ui/core/demokit/tutorial/navigation/17/ui5.yaml +8 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/17/webapp/index.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/index.html +2 -2
- package/test/sap/ui/core/demokit/tutorial/odatav4/01/package.json +2 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/01/ui5.yaml +9 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/02/package.json +2 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/02/ui5.yaml +9 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/03/package.json +2 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/03/ui5.yaml +9 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/04/package.json +2 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/04/ui5.yaml +9 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/05/package.json +2 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/05/ui5.yaml +9 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/package.json +2 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/ui5.yaml +9 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/webapp/controller/App.controller.js +5 -5
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/package.json +2 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/ui5.yaml +9 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/webapp/controller/App.controller.js +7 -7
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/package.json +2 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/ui5.yaml +9 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/webapp/controller/App.controller.js +7 -7
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/webapp/test/integration/opaTests.qunit.js +5 -5
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/webapp/test/integration/pages/Tutorial.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/package.json +2 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/ui5.yaml +9 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/webapp/controller/App.controller.js +7 -7
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/package.json +2 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/ui5.yaml +9 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/webapp/controller/App.controller.js +7 -7
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/package.json +2 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/ui5.yaml +9 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/webapp/controller/App.controller.js +7 -7
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/webapp/test/integration/opaTests.qunit.js +5 -5
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/webapp/test/integration/pages/Tutorial.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/package.json +2 -5
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/ui5.yaml +8 -0
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/webapp/test/integration/opaTests.qunit.js +6 -6
- package/test/sap/ui/core/frameoptions/createcontent.js +7 -6
- package/test/sap/ui/core/internal/samples/client/MusicCollection/index.html +1 -1
- package/test/sap/ui/core/internal/samples/composite/xmlcomposite/exStringAndFloat/Test.controller.js +3 -2
- package/test/sap/ui/core/internal/samples/odata/twoFields/Opa.qunit.html +1 -1
- package/test/sap/ui/core/internal/samples/odata/twoFields/Opa.qunit.js +8 -8
- package/test/sap/ui/core/internal/samples/odata/twoFields/index.html +1 -1
- package/test/sap/ui/core/internal/samples/odata/v2/Products/Opa.qunit.html +1 -1
- package/test/sap/ui/core/internal/samples/odata/v2/Products/Opa.qunit.js +7 -7
- package/test/sap/ui/core/internal/samples/odata/v2/Products/index.html +1 -1
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/Component.js +3 -2
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/MIT.SalesOrders(V2).ODLB.create.html +2 -0
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/Main.controller.js +3 -3
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/Opa.qunit.html +1 -1
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/Opa.qunit.js +9 -6
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/SandboxModel.js +3 -0
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/data/ODLB.create/TC3/SalesOrderSet_desc_4-1.json +16 -0
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/index.html +1 -1
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/tests/ODataListBinding.create/TC3_SalesOrders_InlineCreationRow.js +9 -0
- package/test/sap/ui/core/internal/samples/odata/v2/TreeTable/Component.js +3 -2
- package/test/sap/ui/core/internal/samples/odata/v2/TreeTable/Main.controller.js +3 -3
- package/test/sap/ui/core/internal/samples/odata/v2/TreeTable/index.html +1 -1
- package/test/sap/ui/core/qunit/BlockLayerUtils.qunit.js +9 -7
- package/test/sap/ui/core/qunit/CalculatedFields.qunit.js +4 -2
- package/test/sap/ui/core/qunit/ContextMenuSupport.qunit.js +3 -2
- package/test/sap/ui/core/qunit/ControlDefinition.qunit.js +11 -10
- package/test/sap/ui/core/qunit/ControlRenderer.qunit.js +218 -223
- package/test/sap/ui/core/qunit/Core.qunit.js +35 -31
- package/test/sap/ui/core/qunit/CoreEvents.qunit.js +17 -15
- package/test/sap/ui/core/qunit/Core_repeatedExecution.qunit.js +3 -3
- package/test/sap/ui/core/qunit/CustomStyleClassSupport.qunit.js +4 -3
- package/test/sap/ui/core/qunit/Element_data.qunit.js +5 -5
- package/test/sap/ui/core/qunit/Element_destroy.qunit.js +6 -4
- package/test/sap/ui/core/qunit/Element_focus.qunit.js +25 -24
- package/test/sap/ui/core/qunit/Element_metadata_selector.qunit.js +3 -2
- package/test/sap/ui/core/qunit/EnabledPropagator.qunit.js +7 -6
- package/test/sap/ui/core/qunit/ExpressionParser.qunit.js +1 -1
- package/test/sap/ui/core/qunit/FastNavigationWithWebComponents.qunit.js +5 -5
- package/test/sap/ui/core/qunit/FieldGroup.qunit.js +9 -6
- package/test/sap/ui/core/qunit/FocusHandler.qunit.js +7 -6
- package/test/sap/ui/core/qunit/Fragment.qunit.js +35 -34
- package/test/sap/ui/core/qunit/Fragment_legacyAPIs.qunit.js +51 -50
- package/test/sap/ui/core/qunit/HTML.qunit.js +32 -32
- package/test/sap/ui/core/qunit/Icon.qunit.js +66 -65
- package/test/sap/ui/core/qunit/IconPool.qunit.js +2 -1
- package/test/sap/ui/core/qunit/InvisibleText.qunit.js +13 -12
- package/test/sap/ui/core/qunit/Lib.qunit.js +8 -8
- package/test/sap/ui/core/qunit/LocalBusyIndicator.qunit.js +24 -24
- package/test/sap/ui/core/qunit/RenderManager.qunit.js +54 -53
- package/test/sap/ui/core/qunit/ResizeHandler.qunit.js +8 -9
- package/test/sap/ui/core/qunit/ScrollBar.qunit.js +7 -6
- package/test/sap/ui/core/qunit/ShortcutHints.qunit.js +13 -11
- package/test/sap/ui/core/qunit/StashedControlSupport.qunit.js +6 -5
- package/test/sap/ui/core/qunit/ThemeParameters.qunit.js +5 -4
- package/test/sap/ui/core/qunit/Theming.qunit.js +88 -50
- package/test/sap/ui/core/qunit/Theming_default_and_fallback.qunit.js +130 -0
- package/test/sap/ui/core/qunit/TooltipBase.qunit.js +4 -3
- package/test/sap/ui/core/qunit/UIArea.qunit.js +248 -18
- package/test/sap/ui/core/qunit/analytics/testsuite4analytics.qunit.js +9 -8
- package/test/sap/ui/core/qunit/app/MessageListBinding.qunit.js +10 -10
- package/test/sap/ui/core/qunit/base/Config.qunit.js +12 -2
- package/test/sap/ui/core/qunit/base/Config_cascade.qunit.js +123 -52
- package/test/sap/ui/core/qunit/base/Config_meta.qunit.html +2 -0
- package/test/sap/ui/core/qunit/base/config/GlobalConfig.js +3 -1
- package/test/sap/ui/core/qunit/base/config/GlobalConfigForCascade.js +4 -1
- package/test/sap/ui/core/qunit/bootstrap/BootstrapMinimal.qunit.js +3 -3
- package/test/sap/ui/core/qunit/bootstrap/BootstrapMinimal_legacyAPIs.qunit.js +13 -11
- package/test/sap/ui/core/qunit/bootstrap/BootstrapPreload.qunit.js +1 -1
- package/test/sap/ui/core/qunit/bootstrap/BootstrapWithCustomScript_legacyAPIs.qunit.js +13 -11
- package/test/sap/ui/core/qunit/bootstrap/BootstrapWithNoJQuery_legacyAPIs.qunit.js +7 -5
- package/test/sap/ui/core/qunit/bootstrap/CalendarClassLoadingWithCustomBootTaskAndPreload.qunit.js +12 -14
- package/test/sap/ui/core/qunit/bootstrap/CfgDefaults.qunit.js +3 -2
- package/test/sap/ui/core/qunit/bootstrap/CfgFromTagAttributes.qunit.js +1 -1
- package/test/sap/ui/core/qunit/bootstrap/_checkCoreAndLibraryBooted.qunit.js +1 -1
- package/test/sap/ui/core/qunit/bootstrap/testsuite.bootstrap.qunit.js +12 -6
- package/test/sap/ui/core/qunit/component/Component.qunit.js +14 -15
- package/test/sap/ui/core/qunit/component/Component_unavoidablySync.qunit.js +4 -3
- package/test/sap/ui/core/qunit/component/Customizing.qunit.js +4 -5
- package/test/sap/ui/core/qunit/component/Customizing_async.qunit.js +4 -3
- package/test/sap/ui/core/qunit/component/Customizing_disabled.qunit.js +4 -6
- package/test/sap/ui/core/qunit/component/Customizing_legacyAPIs.qunit.js +3 -5
- package/test/sap/ui/core/qunit/component/Customizing_multi.qunit.js +3 -6
- package/test/sap/ui/core/qunit/component/Customizing_unavoidablySync.qunit.js +5 -8
- package/test/sap/ui/core/qunit/component/ExtensionPoint.qunit.js +4 -5
- package/test/sap/ui/core/qunit/component/ExtensionPoint_unavoidablySync.qunit.js +4 -3
- package/test/sap/ui/core/qunit/component/UIComponent.qunit.js +19 -19
- package/test/sap/ui/core/qunit/component/UIComponent_unavoidablySync.qunit.js +19 -19
- package/test/sap/ui/core/qunit/composite/XMLComposite.qunit.js +43 -43
- package/test/sap/ui/core/qunit/csp/ContentSecurityPolicy.qunit.js +18 -13
- package/test/sap/ui/core/qunit/dnd/DragAndDrop.qunit.js +19 -18
- package/test/sap/ui/core/qunit/dnd/DragInfo.qunit.js +13 -12
- package/test/sap/ui/core/qunit/dnd/DropInfo.qunit.js +5 -4
- package/test/sap/ui/core/qunit/generic/ControlMemoryLeaks.qunit.js +7 -6
- package/test/sap/ui/core/qunit/generic/DuplicateIdCheck.qunit.js +7 -6
- package/test/sap/ui/core/qunit/generic/legacy/ControlIterator.qunit.js +6 -6
- package/test/sap/ui/core/qunit/generic/legacy/ControlMemoryLeaks.qunit.js +20 -17
- package/test/sap/ui/core/qunit/generic/legacy/DuplicateIdCheck.qunit.js +8 -7
- package/test/sap/ui/core/qunit/i18n/LocaleData.qunit.js +1 -2
- package/test/sap/ui/core/qunit/internal/1Ring.qunit.html +14 -19
- package/test/sap/ui/core/qunit/internal/1Ring.qunit.js +34 -22
- package/test/sap/ui/core/qunit/internal/ODataV4.qunit.html +6 -6
- package/test/sap/ui/core/qunit/internal/testsuite.feature-odata-v4.qunit.js +4 -0
- package/test/sap/ui/core/qunit/isBehindOtherElement.qunit.js +7 -7
- package/test/sap/ui/core/qunit/jquery-mobile-custom.qunit.js +3 -3
- package/test/sap/ui/core/qunit/jquery.sap.events.qunit.js +3 -2
- package/test/sap/ui/core/qunit/jquery.sap.ui.qunit.js +16 -16
- package/test/sap/ui/core/qunit/messages/{MessageManager.qunit.js → Messaging.qunit.js} +46 -49
- package/test/sap/ui/core/qunit/messages/messagesDataBinding.qunit.js +3 -1
- package/test/sap/ui/core/qunit/messages/messagesEnd2End.qunit.js +10 -10
- package/test/sap/ui/core/qunit/messages/messagesGeneral.qunit.js +36 -46
- package/test/sap/ui/core/qunit/messages/messagesUsage.qunit.js +25 -36
- package/test/sap/ui/core/qunit/messages/testsuite.messaging.base.qunit.js +2 -2
- package/test/sap/ui/core/qunit/model/Binding.qunit.js +8 -8
- package/test/sap/ui/core/qunit/model/controlhelper/TreeBindingProxy.qunit.js +24 -14
- package/test/sap/ui/core/qunit/mvc/AnyView.qunit.js +7 -6
- package/test/sap/ui/core/qunit/mvc/AnyViewAsync.qunit.js +3 -2
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessorAsync_unavoidablyUsingInlineStyle.qunit.js +5 -4
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessorRequireXML.qunit.js +8 -9
- package/test/sap/ui/core/qunit/mvc/XMLView.qunit.js +45 -40
- package/test/sap/ui/core/qunit/mvc/testdata/stashed/OP.html +1 -1
- package/test/sap/ui/core/qunit/mvc/viewprocessing/ViewProcessing.qunit.js +15 -20
- package/test/sap/ui/core/qunit/mvc/viewprocessing/ViewProcessing_legacyAPIs.qunit.js +20 -25
- package/test/sap/ui/core/qunit/mvc_legacyAPIs/AnyViewAsync_legacyAPIs.qunit.js +10 -11
- package/test/sap/ui/core/qunit/mvc_legacyAPIs/AnyView_legacyAPIs.qunit.js +7 -6
- package/test/sap/ui/core/qunit/mvc_legacyAPIs/HTMLView_legacyAPIs.qunit.js +8 -7
- package/test/sap/ui/core/qunit/mvc_legacyAPIs/XMLTemplateProcessorRequireXML_legacyAPIs.qunit.js +7 -7
- package/test/sap/ui/core/qunit/mvc_legacyAPIs/XMLView_legacyAPIs.qunit.js +40 -47
- package/test/sap/ui/core/qunit/odata/ODataAnnotations.qunit.js +52 -20
- package/test/sap/ui/core/qunit/odata/{ODataListBinding.qunit.js → ODataListBinding_legacyAPIs.qunit.js} +27 -0
- package/test/sap/ui/core/qunit/odata/ODataMessageParser.qunit.js +44 -48
- package/test/sap/ui/core/qunit/odata/ODataMessageParserNoFakeService.qunit.js +8 -8
- package/test/sap/ui/core/qunit/odata/ODataMetaModel.qunit.js +66 -29
- package/test/sap/ui/core/qunit/odata/ODataMetadata.qunit.js +17 -7
- package/test/sap/ui/core/qunit/odata/ODataTreeBindingAdapter.qunit.js +147 -89
- package/test/sap/ui/core/qunit/odata/ODataUtils.qunit.js +1 -0
- package/test/sap/ui/core/qunit/odata/type/DateTimeBase.qunit.js +33 -12
- package/test/sap/ui/core/qunit/odata/type/TimeOfDay.qunit.js +33 -12
- package/test/sap/ui/core/qunit/odata/v2/CanonicalRequests.qunit.js +5 -4
- package/test/sap/ui/core/qunit/odata/v2/ODataListBindingNoFakeService.qunit.js +63 -13
- package/test/sap/ui/core/qunit/odata/v2/ODataModel.integration.qunit.js +281 -59
- package/test/sap/ui/core/qunit/odata/v2/ODataModelNoFakeService.qunit.js +28 -4
- package/test/sap/ui/core/qunit/odata/v2/ODataTreeBindingFlatNoFakeService.qunit.js +21 -0
- package/test/sap/ui/core/qunit/odata/v2/ODataTreeBindingNoFakeService.qunit.js +1 -2
- package/test/sap/ui/core/qunit/odata/v2/ODataV2ListBinding.qunit.js +7 -207
- package/test/sap/ui/core/qunit/odata/v2/ODataV2ListBinding_Filter_legacyAPIs.qunit.js +281 -0
- package/test/sap/ui/core/qunit/odata/v2/ODataV2Model.qunit.js +9 -8
- package/test/sap/ui/core/qunit/odata/v2/ODataV2TreeBinding.qunit.js +1 -0
- package/test/sap/ui/core/qunit/odata/v2/V2ODataModel.qunit.js +95 -85
- package/test/sap/ui/core/qunit/odata/v2/V2ODataModelB.qunit.js +70 -67
- package/test/sap/ui/core/qunit/odata/v2/V2ODataModelDataState.qunit.js +19 -20
- package/test/sap/ui/core/qunit/odata/v2/testsuite.odatav2.qunit.js +4 -0
- package/test/sap/ui/core/qunit/odata/v4/Context.qunit.js +50 -27
- package/test/sap/ui/core/qunit/odata/v4/ODataBinding.qunit.js +5 -0
- package/test/sap/ui/core/qunit/odata/v4/ODataContextBinding.qunit.js +4 -3
- package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +103 -14
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +1027 -31
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.qunit.js +18 -17
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationCache.qunit.js +272 -36
- package/test/sap/ui/core/qunit/odata/v4/lib/_Cache.qunit.js +115 -82
- package/test/sap/ui/core/qunit/odata/v4/lib/_Helper.qunit.js +10 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_Requestor.qunit.js +108 -10
- package/test/sap/ui/core/qunit/odata/v4/lib/_V2Requestor.qunit.js +1 -1
- package/test/sap/ui/core/qunit/opa/Opa5PageObject.qunit.js +5 -6
- package/test/sap/ui/core/qunit/opa/OpaPlugin.qunit.js +29 -42
- package/test/sap/ui/core/qunit/opa/RecordReplay.qunit.js +13 -14
- package/test/sap/ui/core/qunit/opa/_ControlFinder.qunit.js +5 -4
- package/test/sap/ui/core/qunit/opa/actions/Action.qunit.js +6 -5
- package/test/sap/ui/core/qunit/opa/actions/EnterText.qunit.js +22 -21
- package/test/sap/ui/core/qunit/opa/actions/Press.qunit.js +60 -56
- package/test/sap/ui/core/qunit/opa/autowaiter/_cssAnimationWaiter.js +5 -7
- package/test/sap/ui/core/qunit/opa/autowaiter/_cssTransitionWaiter.js +5 -9
- package/test/sap/ui/core/qunit/opa/autowaiter/_jsAnimationWaiter.js +5 -6
- package/test/sap/ui/core/qunit/opa/autowaiter/_navigationContainerWaiter.js +5 -4
- package/test/sap/ui/core/qunit/opa/autowaiter/_resourceWaiter.js +21 -20
- package/test/sap/ui/core/qunit/opa/fixture/bindingPath.js +6 -5
- package/test/sap/ui/core/qunit/opa/matchers/Interactable.qunit.js +7 -5
- package/test/sap/ui/core/qunit/opa/matchers/LabelFor.qunit.js +4 -3
- package/test/sap/ui/core/qunit/opa/matchers/Sibling.qunit.js +4 -3
- package/test/sap/ui/core/qunit/opa/matchers/Visible.qunit.js +6 -5
- package/test/sap/ui/core/qunit/opa/matchers/_Busy.qunit.js +28 -27
- package/test/sap/ui/core/qunit/opa/matchers/_Editable.qunit.js +11 -10
- package/test/sap/ui/core/qunit/opa/matchers/_Enabled.qunit.js +11 -10
- package/test/sap/ui/core/qunit/opa/matchers/_Visitor.qunit.js +5 -4
- package/test/sap/ui/core/qunit/opa/opa5/actions.qunit.js +8 -7
- package/test/sap/ui/core/qunit/opa/opa5/basics.qunit.js +12 -17
- package/test/sap/ui/core/qunit/opa/opa5/logging.qunit.js +5 -6
- package/test/sap/ui/core/qunit/opa/opa5/matchers.qunit.js +6 -5
- package/test/sap/ui/core/qunit/opa/selectors/_BindingPath.js +10 -9
- package/test/sap/ui/core/qunit/opa/selectors/_ControlSelectorGenerator.js +6 -7
- package/test/sap/ui/core/qunit/opa/selectors/_ControlSelectorValidator.js +4 -3
- package/test/sap/ui/core/qunit/opa/selectors/_DropdownItem.js +4 -3
- package/test/sap/ui/core/qunit/opa/selectors/_GlobalID.js +4 -3
- package/test/sap/ui/core/qunit/opa/selectors/_LabelFor.js +4 -3
- package/test/sap/ui/core/qunit/opa/selectors/_Properties.js +33 -27
- package/test/sap/ui/core/qunit/opa/selectors/_Selector.js +7 -10
- package/test/sap/ui/core/qunit/opa/selectors/_TableRowItem.js +5 -7
- package/test/sap/ui/core/qunit/opa/selectors/_ViewID.js +5 -7
- package/test/sap/ui/core/qunit/performance/trace/Interaction.qunit.js +35 -28
- package/test/sap/ui/core/qunit/routing/Placeholder.qunit.js +11 -9
- package/test/sap/ui/core/qunit/routing/PlaceholderOptOut.qunit.js +5 -3
- package/test/sap/ui/core/qunit/routing/async/Router.qunit.js +57 -0
- package/test/sap/ui/core/qunit/routing/fixture/historyIframe/iframe/index.html +1 -1
- package/test/sap/ui/core/qunit/routing/fixture/router/component/2LevelsMultiNavTo/Child/Component.js +30 -0
- package/test/sap/ui/core/qunit/routing/fixture/router/component/2LevelsMultiNavTo/Child/manifest.json +25 -0
- package/test/sap/ui/core/qunit/routing/fixture/router/component/2LevelsMultiNavTo/Parent/Component.js +14 -0
- package/test/sap/ui/core/qunit/routing/fixture/router/component/2LevelsMultiNavTo/Parent/manifest.json +51 -0
- package/test/sap/ui/core/qunit/routing/fixture/router/component/2LevelsMultiNavTo/Parent/view/NotFound.view.xml +3 -0
- package/test/sap/ui/core/qunit/routing/fixture/router/component/2LevelsMultiNavTo/Parent/view/RootView.view.xml +5 -0
- package/test/sap/ui/core/qunit/rule/app/syncXHR.qunit.js +24 -17
- package/test/sap/ui/core/qunit/rule/app/syncXHRBootstrap.qunit.js +3 -3
- package/test/sap/ui/core/qunit/rule/app/syncXHRBootstrapDebug.qunit.js +3 -3
- package/test/sap/ui/core/qunit/rule/config/asynchronousXMLViews.qunit.js +9 -18
- package/test/sap/ui/core/qunit/support/techinfo/TechnicalInfoTestbench.html +3 -1
- package/test/sap/ui/core/qunit/test/starter/find/index.html +1 -1
- package/test/sap/ui/core/qunit/test/starter/find/main.js +3 -2
- package/test/sap/ui/core/qunit/testsuite.core.framework.qunit.js +0 -6
- package/test/sap/ui/core/qunit/testsuites/testsuite.base.configuration.qunit.js +1 -1
- package/test/sap/ui/core/qunit/testsuites/testsuite.databinding.qunit.js +10 -6
- package/test/sap/ui/core/qunit/testsuites/testsuite.theming.qunit.js +27 -4
- package/test/sap/ui/core/qunit/tmpl/Template.qunit.js +36 -35
- package/test/sap/ui/core/qunit/types/DateFormat.qunit.js +13 -0
- package/test/sap/ui/core/qunit/types/DateInterval.qunit.js +2 -2
- package/test/sap/ui/core/qunit/util/BusyIndicatorNoCore.qunit.js +2 -2
- package/test/sap/ui/core/qunit/util/InvisibleMessage.qunit.js +4 -4
- package/test/sap/ui/core/qunit/util/LabelEnablement.qunit.js +27 -31
- package/test/sap/ui/core/qunit/util/Popup.qunit.js +27 -27
- package/test/sap/ui/core/qunit/util/ResponsivePaddingsEnablement.qunit.js +13 -9
- package/test/sap/ui/core/qunit/util/XMLPreprocessor.qunit.js +37 -6
- package/test/sap/ui/core/qunit/util/jQuery.sap.measure.qunit.js +1 -1
- package/test/sap/ui/core/qunit/util/jquery.sap.dom.qunit.js +3 -2
- package/test/sap/ui/core/qunit/util/reflection/JsControlTreeModifier.qunit.js +8 -8
- package/test/sap/ui/core/qunit/util/reflection/XmlTreeModifier.qunit.js +24 -24
- package/test/sap/ui/core/qunit/util/static/TechnicalInfoTestbenchInit.js +8 -2
- package/test/sap/ui/core/qunit/webc/WebComponent.qunit.js +188 -0
- package/test/sap/ui/core/qunit/webc/testsuite.webc.qunit.html +14 -0
- package/test/sap/ui/core/qunit/webc/testsuite.webc.qunit.js +22 -0
- package/test/sap/ui/core/relnotes/changes-1.117.json +1 -34
- package/test/sap/ui/core/relnotes/changes-1.118.json +143 -0
- package/test/sap/ui/core/samples/components/resourcesCSS/index.html +1 -1
- package/test/sap/ui/core/samples/databinding/DataBinding.html +3 -1
- package/test/sap/ui/core/samples/databinding/DataBindingAsyncType.html +3 -2
- package/test/sap/ui/core/samples/databinding/DataBindingCalculatedFields.html +3 -1
- package/test/sap/ui/core/samples/databinding/DataBindingList.html +3 -1
- package/test/sap/ui/core/samples/databinding/DataBindingListNamedModel.html +3 -1
- package/test/sap/ui/core/samples/databinding/DataBindingListXML.html +3 -1
- package/test/sap/ui/core/samples/databinding/DataBindingMultiModel.html +3 -1
- package/test/sap/ui/core/samples/databinding/DataBindingSortingFiltering.html +3 -1
- package/test/sap/ui/core/samples/databinding/DataBindingTreeLarge.html +102 -113
- package/test/sap/ui/core/samples/databinding/DataBindingTwoWay.html +3 -1
- package/test/sap/ui/core/samples/databinding/DataBindingTwoWayTable.html +90 -89
- package/test/sap/ui/core/samples/databinding/DataBindingValidation.html +149 -148
- package/test/sap/ui/core/samples/databinding/DataBindingXML.html +3 -2
- package/test/sap/ui/core/samples/databinding/DatabindingMessages.html +158 -153
- package/test/sap/ui/core/samples/databinding/ODatabindingMessages.html +4 -6
- package/test/sap/ui/core/samples/databinding/UnitTableMain.js +3 -4
- package/test/sap/ui/core/samples/extensions/index_legacyAPIs.html +15 -13
- package/test/sap/ui/core/samples/formatting/controller/ChooseFormatOptions.controller.js +3 -2
- package/test/sap/ui/core/samples/mvc/ExtendedXMLViewEventHandlerSyntax.html +5 -3
- package/test/sap/ui/core/samples/mvc/XMLViewBindableAggregation.html +1 -1
- package/test/testsuite/testframe.html +4 -4
- package/src/ui5-boot.js +0 -50
- package/test/sap/ui/core/qunit/CoreLock.qunit.js +0 -61
- package/test/sap/ui/core/qunit/internal/ODataV4.qunit.js +0 -30
- /package/test/sap/ui/core/qunit/{MasterDetail.qunit.js → MasterDetail_legacyAPIs.qunit.js} +0 -0
- /package/test/sap/ui/core/qunit/odata/{ODataModel.qunit.js → ODataModel_legacyAPIs.qunit.js} +0 -0
- /package/test/sap/ui/core/qunit/odata/{ODataSharedMetadata.qunit.js → ODataSharedMetadata_legacyAPIs.qunit.js} +0 -0
- /package/test/sap/ui/core/qunit/odata/{ODataTreeBinding.qunit.js → ODataTreeBinding_legacyAPIs.qunit.js} +0 -0
|
@@ -59,6 +59,7 @@ sap.ui.define([
|
|
|
59
59
|
assert.ok(oContext.hasOwnProperty("fnOnBeforeDestroy"));
|
|
60
60
|
assert.strictEqual(oContext.fnOnBeforeDestroy, undefined);
|
|
61
61
|
assert.strictEqual(oContext.oDeletePromise, null);
|
|
62
|
+
assert.strictEqual(oContext.bFiringCreateActivate, false);
|
|
62
63
|
|
|
63
64
|
// code under test
|
|
64
65
|
oContext = Context.create(oModel, oBinding, sPath, 42, undefined, false);
|
|
@@ -1114,7 +1115,7 @@ sap.ui.define([
|
|
|
1114
1115
|
getHeaderContext : function () {},
|
|
1115
1116
|
lockGroup : function () {},
|
|
1116
1117
|
onKeepAliveChanged : function () {},
|
|
1117
|
-
mParameters :
|
|
1118
|
+
mParameters : "~mParameters~"
|
|
1118
1119
|
},
|
|
1119
1120
|
oContext = Context.create("~oModel~", oBinding, "/Foo/Bar('42')", 42,
|
|
1120
1121
|
oFixture.transient ? new SyncPromise(function () {}) : /*oCreatePromise*/undefined),
|
|
@@ -1123,6 +1124,8 @@ sap.ui.define([
|
|
|
1123
1124
|
bSelected = !!oFixture.groupId;
|
|
1124
1125
|
|
|
1125
1126
|
oContext.setSelected(bSelected);
|
|
1127
|
+
this.mock(_Helper).expects("isDataAggregation")
|
|
1128
|
+
.withExactArgs("~mParameters~").returns(false);
|
|
1126
1129
|
this.mock(oBinding).expects("checkSuspended").withExactArgs();
|
|
1127
1130
|
this.mock(_Helper).expects("checkGroupId").exactly(oFixture.transient ? 0 : 1)
|
|
1128
1131
|
.withExactArgs("myGroup");
|
|
@@ -1168,13 +1171,15 @@ sap.ui.define([
|
|
|
1168
1171
|
checkSuspended : function () {},
|
|
1169
1172
|
delete : function () {},
|
|
1170
1173
|
lockGroup : function () {},
|
|
1171
|
-
mParameters :
|
|
1174
|
+
mParameters : "~mParameters~"
|
|
1172
1175
|
},
|
|
1173
1176
|
oGroupLock = {
|
|
1174
1177
|
unlock : function () {}
|
|
1175
1178
|
},
|
|
1176
1179
|
oContext = Context.create("~oModel~", oBinding, "/Foo/Bar('42')");
|
|
1177
1180
|
|
|
1181
|
+
this.mock(_Helper).expects("isDataAggregation")
|
|
1182
|
+
.withExactArgs("~mParameters~").returns(false);
|
|
1178
1183
|
this.mock(oBinding).expects("checkSuspended").withExactArgs();
|
|
1179
1184
|
this.mock(oContext).expects("isKeepAlive").exactly(sGroupId ? 0 : 1)
|
|
1180
1185
|
.withExactArgs().returns(true);
|
|
@@ -1206,13 +1211,15 @@ sap.ui.define([
|
|
|
1206
1211
|
checkSuspended : function () {},
|
|
1207
1212
|
delete : function () {},
|
|
1208
1213
|
lockGroup : function () {},
|
|
1209
|
-
mParameters :
|
|
1214
|
+
mParameters : "~mParameters~"
|
|
1210
1215
|
},
|
|
1211
1216
|
oContext = Context.create("~oModel~", oBinding, "/Foo/Bar('42')", 42),
|
|
1212
1217
|
oGroupLock = {
|
|
1213
1218
|
unlock : function () {}
|
|
1214
1219
|
};
|
|
1215
1220
|
|
|
1221
|
+
this.mock(_Helper).expects("isDataAggregation")
|
|
1222
|
+
.withExactArgs("~mParameters~").returns(false);
|
|
1216
1223
|
this.mock(oBinding).expects("checkSuspended").withExactArgs();
|
|
1217
1224
|
this.mock(_Helper).expects("checkGroupId").withExactArgs("myGroup");
|
|
1218
1225
|
this.mock(oContext).expects("fetchCanonicalPath").withExactArgs()
|
|
@@ -1231,14 +1238,15 @@ sap.ui.define([
|
|
|
1231
1238
|
});
|
|
1232
1239
|
|
|
1233
1240
|
//*********************************************************************************************
|
|
1234
|
-
QUnit.test("delete:
|
|
1241
|
+
QUnit.test("delete: data aggregation", function (assert) {
|
|
1235
1242
|
var oBinding = {
|
|
1236
|
-
mParameters :
|
|
1237
|
-
$$aggregation : {}
|
|
1238
|
-
}
|
|
1243
|
+
mParameters : "~mParameters~"
|
|
1239
1244
|
},
|
|
1240
1245
|
oContext = Context.create({/*oModel*/}, oBinding, "/EMPLOYEES/42", 42);
|
|
1241
1246
|
|
|
1247
|
+
this.mock(_Helper).expects("isDataAggregation")
|
|
1248
|
+
.withExactArgs("~mParameters~").returns(true);
|
|
1249
|
+
|
|
1242
1250
|
assert.throws(function () {
|
|
1243
1251
|
// code under test
|
|
1244
1252
|
oContext.delete();
|
|
@@ -1249,10 +1257,12 @@ sap.ui.define([
|
|
|
1249
1257
|
QUnit.test("delete: no lock, but not a kept-alive context", function (assert) {
|
|
1250
1258
|
var oBinding = {
|
|
1251
1259
|
checkSuspended : function () {},
|
|
1252
|
-
mParameters :
|
|
1260
|
+
mParameters : "~mParameters~"
|
|
1253
1261
|
},
|
|
1254
1262
|
oContext = Context.create({/*oModel*/}, oBinding, "/EMPLOYEES/42", 42);
|
|
1255
1263
|
|
|
1264
|
+
this.mock(_Helper).expects("isDataAggregation")
|
|
1265
|
+
.withExactArgs("~mParameters~").returns(false);
|
|
1256
1266
|
this.mock(oBinding).expects("checkSuspended").withExactArgs();
|
|
1257
1267
|
|
|
1258
1268
|
// code under test
|
|
@@ -1265,10 +1275,12 @@ sap.ui.define([
|
|
|
1265
1275
|
QUnit.test("delete: no lock, but kept-alive context in the collection", function (assert) {
|
|
1266
1276
|
var oBinding = {
|
|
1267
1277
|
checkSuspended : function () {},
|
|
1268
|
-
mParameters :
|
|
1278
|
+
mParameters : "~mParameters~"
|
|
1269
1279
|
},
|
|
1270
1280
|
oContext = Context.create({/*oModel*/}, oBinding, "/EMPLOYEES/0", 0);
|
|
1271
1281
|
|
|
1282
|
+
this.mock(_Helper).expects("isDataAggregation")
|
|
1283
|
+
.withExactArgs("~mParameters~").returns(false);
|
|
1272
1284
|
this.mock(oBinding).expects("checkSuspended").withExactArgs();
|
|
1273
1285
|
this.mock(oContext).expects("isKeepAlive").withExactArgs().returns(true);
|
|
1274
1286
|
|
|
@@ -1282,11 +1294,13 @@ sap.ui.define([
|
|
|
1282
1294
|
QUnit.test("delete: error in checkSuspended", function (assert) {
|
|
1283
1295
|
var oBinding = {
|
|
1284
1296
|
checkSuspended : function () {},
|
|
1285
|
-
mParameters :
|
|
1297
|
+
mParameters : "~mParameters~"
|
|
1286
1298
|
},
|
|
1287
1299
|
oContext = Context.create({/*oModel*/}, oBinding, "/EMPLOYEES/42", 42),
|
|
1288
1300
|
oError = new Error("suspended");
|
|
1289
1301
|
|
|
1302
|
+
this.mock(_Helper).expects("isDataAggregation")
|
|
1303
|
+
.withExactArgs("~mParameters~").returns(false);
|
|
1290
1304
|
this.mock(oBinding).expects("checkSuspended").withExactArgs().throws(oError);
|
|
1291
1305
|
|
|
1292
1306
|
assert.throws(function () {
|
|
@@ -1298,12 +1312,14 @@ sap.ui.define([
|
|
|
1298
1312
|
QUnit.test("delete: error in checkGroupId", function (assert) {
|
|
1299
1313
|
var oBinding = {
|
|
1300
1314
|
checkSuspended : function () {},
|
|
1301
|
-
mParameters :
|
|
1315
|
+
mParameters : "~mParameters~"
|
|
1302
1316
|
},
|
|
1303
1317
|
oModel = {},
|
|
1304
1318
|
oContext = Context.create(oModel, oBinding, "/EMPLOYEES/42", 42),
|
|
1305
1319
|
oError = new Error("invalid group");
|
|
1306
1320
|
|
|
1321
|
+
this.mock(_Helper).expects("isDataAggregation")
|
|
1322
|
+
.withExactArgs("~mParameters~").returns(false);
|
|
1307
1323
|
this.mock(oBinding).expects("checkSuspended").withExactArgs();
|
|
1308
1324
|
this.mock(_Helper).expects("checkGroupId").withExactArgs("$invalid").throws(oError);
|
|
1309
1325
|
|
|
@@ -2883,7 +2899,7 @@ sap.ui.define([
|
|
|
2883
2899
|
|
|
2884
2900
|
return Promise.resolve("n/a"); // #update succeeds after retry
|
|
2885
2901
|
}].forEach(function (fnScenario, i) {
|
|
2886
|
-
[undefined, {activate : true}, {activate : false}].forEach(function (oInactive, j) {
|
|
2902
|
+
[undefined, {}, {activate : true}, {activate : false}].forEach(function (oInactive, j) {
|
|
2887
2903
|
var sTitle = "doSetProperty: scenario: " + i + ", " + j;
|
|
2888
2904
|
|
|
2889
2905
|
QUnit.test(sTitle, function (assert) {
|
|
@@ -2900,7 +2916,9 @@ sap.ui.define([
|
|
|
2900
2916
|
},
|
|
2901
2917
|
oBindingMock = this.mock(oBinding),
|
|
2902
2918
|
oError = new Error("This call intentionally failed"),
|
|
2919
|
+
bFireCreateActivate = oInactive && "activate" in oInactive,
|
|
2903
2920
|
oFireCreateActivateExpectation,
|
|
2921
|
+
bFiringCreateActivate = !(oInactive === undefined || "activate" in oInactive),
|
|
2904
2922
|
oGroupLock = {},
|
|
2905
2923
|
bInactive,
|
|
2906
2924
|
oMetaModel = {
|
|
@@ -2927,14 +2945,14 @@ sap.ui.define([
|
|
|
2927
2945
|
|
|
2928
2946
|
if (oInactive) {
|
|
2929
2947
|
bInactive = oInactive.activate ? false : 1;
|
|
2930
|
-
|
|
2931
2948
|
assert.strictEqual(
|
|
2932
2949
|
// code under test
|
|
2933
2950
|
oContext.toString(),
|
|
2934
2951
|
"/BusinessPartnerList('0100000000')[42;inactive]");
|
|
2935
2952
|
}
|
|
2936
|
-
|
|
2937
|
-
|
|
2953
|
+
oContext.bFiringCreateActivate = bFiringCreateActivate;
|
|
2954
|
+
this.mock(oContext).expects("isDeleted").exactly(bFireCreateActivate ? 4 : 3)
|
|
2955
|
+
.withExactArgs().returns(false);
|
|
2938
2956
|
this.mock(oContext).expects("getValue").never();
|
|
2939
2957
|
this.mock(oContext).expects("isEffectivelyKeptAlive").withExactArgs().on(oContext)
|
|
2940
2958
|
.exactly(i === 1 ? 1 : 0).returns("~bKeepAlive~");
|
|
@@ -2942,8 +2960,9 @@ sap.ui.define([
|
|
|
2942
2960
|
"some/relative/path", /*bSync*/false, /*bWithOrWithoutCache*/true)
|
|
2943
2961
|
.callsFake(function (fnProcessor) {
|
|
2944
2962
|
var oCache = {
|
|
2945
|
-
|
|
2946
|
-
|
|
2963
|
+
setInactive : mustBeMocked,
|
|
2964
|
+
setProperty : mustBeMocked,
|
|
2965
|
+
update : mustBeMocked
|
|
2947
2966
|
},
|
|
2948
2967
|
bPatchWithoutSideEffects = {/*false,true*/},
|
|
2949
2968
|
oUpdatePromise;
|
|
@@ -2970,7 +2989,7 @@ sap.ui.define([
|
|
|
2970
2989
|
that.mock(_Helper).expects("getRelativePath")
|
|
2971
2990
|
.withExactArgs("/entity/path", "/resolved/binding/path")
|
|
2972
2991
|
.returns("helper/path");
|
|
2973
|
-
if (
|
|
2992
|
+
if (bFireCreateActivate) {
|
|
2974
2993
|
oSetPropertyExpectation = that.mock(oCache).expects("setProperty")
|
|
2975
2994
|
.withExactArgs("property/path", "new value", "helper/path", undefined)
|
|
2976
2995
|
.returns(SyncPromise.reject("~error~"));
|
|
@@ -2978,7 +2997,12 @@ sap.ui.define([
|
|
|
2978
2997
|
.returns(fnReporter);
|
|
2979
2998
|
oFireCreateActivateExpectation = oBindingMock.expects("fireCreateActivate")
|
|
2980
2999
|
.withExactArgs(sinon.match.same(oContext))
|
|
3000
|
+
.callsFake(function () {
|
|
3001
|
+
assert.strictEqual(oContext.bFiringCreateActivate, true);
|
|
3002
|
+
})
|
|
2981
3003
|
.returns(oInactive.activate);
|
|
3004
|
+
that.mock(oCache).expects("setInactive")
|
|
3005
|
+
.withExactArgs("helper/path", bInactive);
|
|
2982
3006
|
}
|
|
2983
3007
|
that.mock(oMetaModel).expects("getUnitOrCurrencyPath")
|
|
2984
3008
|
.withExactArgs("/resolved/data/path")
|
|
@@ -2988,9 +3012,11 @@ sap.ui.define([
|
|
|
2988
3012
|
/*fnErrorCallback*/bSkipRetry ? undefined : sinon.match.func, "/edit/url",
|
|
2989
3013
|
"helper/path", "unit/or/currency/path",
|
|
2990
3014
|
sinon.match.same(bPatchWithoutSideEffects), /*fnPatchSent*/sinon.match.func,
|
|
2991
|
-
/*fnIsKeepAlive*/sinon.match.func
|
|
3015
|
+
/*fnIsKeepAlive*/sinon.match.func)
|
|
2992
3016
|
.callsFake(function () {
|
|
2993
|
-
assert.strictEqual(oContext.
|
|
3017
|
+
assert.strictEqual(oContext.bFiringCreateActivate, bFiringCreateActivate);
|
|
3018
|
+
assert.strictEqual(oContext.isInactive(),
|
|
3019
|
+
bFiringCreateActivate || bInactive);
|
|
2994
3020
|
return SyncPromise.resolve(
|
|
2995
3021
|
fnScenario(assert, that.mock(oModel), oBinding, oBindingMock,
|
|
2996
3022
|
/*fnErrorCallback*/arguments[3], /*fnPatchSent*/arguments[8],
|
|
@@ -3026,7 +3052,7 @@ sap.ui.define([
|
|
|
3026
3052
|
} else {
|
|
3027
3053
|
assert.ok(false, "Unexpected success");
|
|
3028
3054
|
}
|
|
3029
|
-
if (
|
|
3055
|
+
if (bFireCreateActivate) {
|
|
3030
3056
|
assert.ok(oSetPropertyExpectation.calledBefore(oFireCreateActivateExpectation));
|
|
3031
3057
|
sinon.assert.calledOnceWithExactly(fnReporter, "~error~");
|
|
3032
3058
|
}
|
|
@@ -3104,8 +3130,7 @@ sap.ui.define([
|
|
|
3104
3130
|
.withExactArgs(sinon.match.same(oGroupLock), "property/path", "new value",
|
|
3105
3131
|
/*fnErrorCallback*/sinon.match.func, "/edit/url", "helper/path",
|
|
3106
3132
|
"unit/or/currency/path", sinon.match.same(bPatchWithoutSideEffects),
|
|
3107
|
-
/*fnPatchSent*/sinon.match.func, /*fnIsKeepAlive*/sinon.match.func
|
|
3108
|
-
undefined)
|
|
3133
|
+
/*fnPatchSent*/sinon.match.func, /*fnIsKeepAlive*/sinon.match.func)
|
|
3109
3134
|
.resolves();
|
|
3110
3135
|
|
|
3111
3136
|
return fnProcessor(oCache, "some/relative/path", oBinding);
|
|
@@ -3188,8 +3213,7 @@ sap.ui.define([
|
|
|
3188
3213
|
.withExactArgs(sinon.match.same(oGroupLock), "property/path", "new value",
|
|
3189
3214
|
/*fnErrorCallback*/sinon.match.func, "/edit/url", "helper/path",
|
|
3190
3215
|
"unit/or/currency/path", sinon.match.same(bPatchWithoutSideEffects),
|
|
3191
|
-
/*fnPatchSent*/sinon.match.func, /*fnIsKeepAlive*/sinon.match.func
|
|
3192
|
-
undefined)
|
|
3216
|
+
/*fnPatchSent*/sinon.match.func, /*fnIsKeepAlive*/sinon.match.func)
|
|
3193
3217
|
.resolves();
|
|
3194
3218
|
|
|
3195
3219
|
return fnProcessor(oCache, "/reduced/path", oBinding);
|
|
@@ -3330,8 +3354,7 @@ sap.ui.define([
|
|
|
3330
3354
|
/*fnErrorCallback*/bSkipRetry ? undefined : sinon.match.func,
|
|
3331
3355
|
"/edit/url", "helper/path", "unit/or/currency/path",
|
|
3332
3356
|
sinon.match.same(bPatchWithoutSideEffects),
|
|
3333
|
-
/*fnPatchSent*/sinon.match.func, /*fnIsKeepAlive*/sinon.match.func
|
|
3334
|
-
undefined)
|
|
3357
|
+
/*fnPatchSent*/sinon.match.func, /*fnIsKeepAlive*/sinon.match.func)
|
|
3335
3358
|
.resolves();
|
|
3336
3359
|
}
|
|
3337
3360
|
|
|
@@ -686,6 +686,11 @@ sap.ui.define([
|
|
|
686
686
|
return oPromise;
|
|
687
687
|
});
|
|
688
688
|
|
|
689
|
+
//*********************************************************************************************
|
|
690
|
+
QUnit.test("resetInvalidDataState", function () {
|
|
691
|
+
new ODataBinding().resetInvalidDataState(); // the function exists and does not fail
|
|
692
|
+
});
|
|
693
|
+
|
|
689
694
|
//*********************************************************************************************
|
|
690
695
|
[false, true].forEach(function (bAsPromise) {
|
|
691
696
|
[{
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
sap.ui.define([
|
|
5
5
|
"sap/base/Log",
|
|
6
6
|
"sap/ui/base/SyncPromise",
|
|
7
|
+
"sap/ui/core/Rendering",
|
|
7
8
|
"sap/ui/model/Binding",
|
|
8
9
|
"sap/ui/model/ChangeReason",
|
|
9
10
|
"sap/ui/model/ContextBinding",
|
|
@@ -14,7 +15,7 @@ sap.ui.define([
|
|
|
14
15
|
"sap/ui/model/odata/v4/lib/_Cache",
|
|
15
16
|
"sap/ui/model/odata/v4/lib/_GroupLock",
|
|
16
17
|
"sap/ui/model/odata/v4/lib/_Helper"
|
|
17
|
-
], function (Log, SyncPromise, Binding, ChangeReason, ContextBinding, Context,
|
|
18
|
+
], function (Log, SyncPromise, Rendering, Binding, ChangeReason, ContextBinding, Context,
|
|
18
19
|
ODataContextBinding, ODataModel, asODataParentBinding, _Cache, _GroupLock, _Helper) {
|
|
19
20
|
"use strict";
|
|
20
21
|
|
|
@@ -51,10 +52,10 @@ sap.ui.define([
|
|
|
51
52
|
*/
|
|
52
53
|
bindContext : function () {
|
|
53
54
|
try {
|
|
54
|
-
this.stub(
|
|
55
|
+
this.stub(Rendering, "addPrerenderingTask");
|
|
55
56
|
return this.oModel.bindContext.apply(this.oModel, arguments);
|
|
56
57
|
} finally {
|
|
57
|
-
|
|
58
|
+
Rendering.addPrerenderingTask.restore();
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
});
|
|
@@ -3922,6 +3922,39 @@ sap.ui.define([
|
|
|
3922
3922
|
]);
|
|
3923
3923
|
});
|
|
3924
3924
|
|
|
3925
|
+
//*********************************************************************************************
|
|
3926
|
+
[false, true].forEach(function (bIsEffectivelyKeptAlive) {
|
|
3927
|
+
QUnit.test(`removeCreated: $$aggregation, ${bIsEffectivelyKeptAlive}`, function (assert) {
|
|
3928
|
+
var oBinding = this.bindList("/EMPLOYEES", undefined, undefined, undefined,
|
|
3929
|
+
{$$aggregation : {}}), // Note: no hierarchyQualifier!
|
|
3930
|
+
oContext = {
|
|
3931
|
+
// no getModelIndex, isInactive
|
|
3932
|
+
isEffectivelyKeptAlive : mustBeMocked
|
|
3933
|
+
};
|
|
3934
|
+
|
|
3935
|
+
oBinding.iActiveContexts = "~iActiveContexts~";
|
|
3936
|
+
oBinding.iCreatedContexts = "~iCreatedContexts~";
|
|
3937
|
+
oBinding.bFirstCreateAtEnd = "~bFirstCreateAtEnd~";
|
|
3938
|
+
oBinding.aContexts
|
|
3939
|
+
= [{iIndex : "#0"}, {iIndex : "#1"}, oContext, {iIndex : 3},, {iIndex : 5}];
|
|
3940
|
+
oBinding.iMaxLength = 43;
|
|
3941
|
+
this.mock(oContext).expects("isEffectivelyKeptAlive").withExactArgs()
|
|
3942
|
+
.returns(bIsEffectivelyKeptAlive);
|
|
3943
|
+
this.mock(oBinding).expects("destroyLater").exactly(bIsEffectivelyKeptAlive ? 0 : 1)
|
|
3944
|
+
.withExactArgs(sinon.match.same(oContext));
|
|
3945
|
+
|
|
3946
|
+
// code under test
|
|
3947
|
+
oBinding.removeCreated(oContext);
|
|
3948
|
+
|
|
3949
|
+
assert.strictEqual(oBinding.iActiveContexts, "~iActiveContexts~");
|
|
3950
|
+
assert.strictEqual(oBinding.iCreatedContexts, "~iCreatedContexts~");
|
|
3951
|
+
assert.strictEqual(oBinding.bFirstCreateAtEnd, "~bFirstCreateAtEnd~");
|
|
3952
|
+
assert.deepEqual(oBinding.aContexts,
|
|
3953
|
+
[{iIndex : "#0"}, {iIndex : "#1"}, {iIndex : 2},, {iIndex : 4}]);
|
|
3954
|
+
assert.strictEqual(oBinding.iMaxLength, 42);
|
|
3955
|
+
});
|
|
3956
|
+
});
|
|
3957
|
+
|
|
3925
3958
|
//*********************************************************************************************
|
|
3926
3959
|
[0, 1].forEach(function (iCurrentEnd) {
|
|
3927
3960
|
var sTitle = "destroyLater: iCurrentEnd=" + iCurrentEnd;
|
|
@@ -4329,7 +4362,12 @@ sap.ui.define([
|
|
|
4329
4362
|
// undefined -> the reinsertion callback is not called because the binding already has another cache
|
|
4330
4363
|
[undefined, false, true].forEach(function (bSuccess) {
|
|
4331
4364
|
[false, true].forEach(function (bCreated) { // the deleted context is created-persisted
|
|
4332
|
-
|
|
4365
|
+
[undefined, false, true].forEach(function (bExpanded) { // undefined -> no hierarchy
|
|
4366
|
+
const sTitle = "delete: success=" + bSuccess + ", created=" + bCreated
|
|
4367
|
+
+ ", expanded=" + bExpanded;
|
|
4368
|
+
if (bCreated && bExpanded) {
|
|
4369
|
+
return;
|
|
4370
|
+
}
|
|
4333
4371
|
|
|
4334
4372
|
QUnit.test(sTitle, function (assert) {
|
|
4335
4373
|
var oBinding = this.bindList("/EMPLOYEES"),
|
|
@@ -4347,12 +4385,14 @@ sap.ui.define([
|
|
|
4347
4385
|
fnReject = reject;
|
|
4348
4386
|
}),
|
|
4349
4387
|
oETagEntity = {},
|
|
4350
|
-
sPath = "1",
|
|
4351
4388
|
aPreviousContexts,
|
|
4352
4389
|
oPromise,
|
|
4353
4390
|
fnUndelete = sinon.spy(),
|
|
4354
4391
|
that = this;
|
|
4355
4392
|
|
|
4393
|
+
if (bExpanded !== undefined) {
|
|
4394
|
+
oBinding.mParameters.$$aggregation = {hierarchyQualifier : "X"};
|
|
4395
|
+
}
|
|
4356
4396
|
oBinding.createContexts(0, aData.slice(0, 3));
|
|
4357
4397
|
aData2.$count = 5; // non-empty short read adds $count
|
|
4358
4398
|
oBinding.createContexts(4, aData2);
|
|
@@ -4363,13 +4403,17 @@ sap.ui.define([
|
|
|
4363
4403
|
sContext1Path = oContext1.getPath();
|
|
4364
4404
|
if (bCreated) { // fake a created context: it needs a negative index
|
|
4365
4405
|
oContext1.iIndex = -1;
|
|
4366
|
-
sPath = "-1";
|
|
4367
4406
|
}
|
|
4368
|
-
oContext1Mock.expects("
|
|
4407
|
+
oContext1Mock.expects("getModelIndex").withExactArgs().returns(42);
|
|
4408
|
+
// also called from sinon.match.same() via toString()
|
|
4409
|
+
oContext1Mock.expects("isDeleted").atLeast(1).withExactArgs().returns(false);
|
|
4410
|
+
oContext1Mock.expects("isExpanded").withExactArgs().returns(bExpanded);
|
|
4411
|
+
oBindingMock.expects("collapse").exactly(bExpanded ? 1 : 0)
|
|
4412
|
+
.withExactArgs(sinon.match.same(oContext1));
|
|
4369
4413
|
oBindingMock.expects("destroyPreviousContexts").never();
|
|
4370
4414
|
oContext1Mock.expects("resetKeepAlive").never();
|
|
4371
4415
|
oDeleteCall = oContext1Mock.expects("doDelete")
|
|
4372
|
-
.withExactArgs("myGroup", "EMPLOYEES('1')",
|
|
4416
|
+
.withExactArgs("myGroup", "EMPLOYEES('1')", "42", sinon.match.same(oETagEntity),
|
|
4373
4417
|
sinon.match.same(oBinding), sinon.match.func)
|
|
4374
4418
|
.callsFake(function () {
|
|
4375
4419
|
// Although delete works with existing cache data and the cache immediately
|
|
@@ -4394,6 +4438,8 @@ sap.ui.define([
|
|
|
4394
4438
|
oBindingMock.expects("destroyPreviousContextsLater").exactly(bSuccess ? 1 : 0)
|
|
4395
4439
|
.withExactArgs([sContext1Path]);
|
|
4396
4440
|
// expectations for catch
|
|
4441
|
+
oBindingMock.expects("expand").exactly(!bSuccess && bExpanded ? 1 : 0)
|
|
4442
|
+
.withExactArgs(sinon.match.same(oContext1));
|
|
4397
4443
|
oBindingMock.expects("_fireChange").exactly(bSuccess ? 0 : 1)
|
|
4398
4444
|
.withExactArgs({reason : ChangeReason.Add});
|
|
4399
4445
|
|
|
@@ -4443,7 +4489,7 @@ sap.ui.define([
|
|
|
4443
4489
|
assert.strictEqual(oBinding.aContexts[5], aPreviousContexts[5]);
|
|
4444
4490
|
assert.notOk(oContext1.getPath() in oBinding.mPreviousContextsByPath);
|
|
4445
4491
|
oBinding.aContexts.forEach(function (oContext, i) {
|
|
4446
|
-
assert.strictEqual(oContext.
|
|
4492
|
+
assert.strictEqual(oContext.iIndex + oBinding.iCreatedContexts, i);
|
|
4447
4493
|
});
|
|
4448
4494
|
sinon.assert.calledOnceWithExactly(fnUndelete);
|
|
4449
4495
|
}
|
|
@@ -4469,6 +4515,7 @@ sap.ui.define([
|
|
|
4469
4515
|
sinon.assert.calledWithExactly(fnUndelete); // might be called twice
|
|
4470
4516
|
});
|
|
4471
4517
|
});
|
|
4518
|
+
});
|
|
4472
4519
|
});
|
|
4473
4520
|
});
|
|
4474
4521
|
//TODO check the row of a pending update with higher index
|
|
@@ -4478,8 +4525,9 @@ sap.ui.define([
|
|
|
4478
4525
|
var oBinding = this.bindList("/EMPLOYEES"),
|
|
4479
4526
|
oContext = {
|
|
4480
4527
|
oDeletePromise : "~oDeletePromise~",
|
|
4528
|
+
getModelIndex : function () {}, // result does not matter
|
|
4481
4529
|
iIndex : 1,
|
|
4482
|
-
isDeleted :
|
|
4530
|
+
isDeleted : mustBeMocked
|
|
4483
4531
|
};
|
|
4484
4532
|
|
|
4485
4533
|
this.mock(oContext).expects("isDeleted").withExactArgs().returns(true);
|
|
@@ -4522,10 +4570,11 @@ sap.ui.define([
|
|
|
4522
4570
|
oKeptAliveContext = {
|
|
4523
4571
|
iIndex : undefined,
|
|
4524
4572
|
created : function () { return undefined; },
|
|
4525
|
-
doDelete :
|
|
4573
|
+
doDelete : mustBeMocked,
|
|
4526
4574
|
getPath : function () { return "~contextPath~"; },
|
|
4527
|
-
isDeleted :
|
|
4528
|
-
|
|
4575
|
+
isDeleted : mustBeMocked,
|
|
4576
|
+
isExpanded : mustBeMocked,
|
|
4577
|
+
resetKeepAlive : mustBeMocked
|
|
4529
4578
|
},
|
|
4530
4579
|
iOldMaxLength = oFixture.lengthFinal ? 42 : Infinity,
|
|
4531
4580
|
oPromise,
|
|
@@ -4543,6 +4592,7 @@ sap.ui.define([
|
|
|
4543
4592
|
};
|
|
4544
4593
|
|
|
4545
4594
|
this.mock(oKeptAliveContext).expects("isDeleted").withExactArgs().returns(false);
|
|
4595
|
+
this.mock(oKeptAliveContext).expects("isExpanded").withExactArgs().returns(false);
|
|
4546
4596
|
oBindingMock.expects("destroyPreviousContexts").never();
|
|
4547
4597
|
oHelperMock.expects("getRelativePath")
|
|
4548
4598
|
.withExactArgs("~contextPath~", "/EMPLOYEES").returns("~predicate~");
|
|
@@ -4611,6 +4661,32 @@ sap.ui.define([
|
|
|
4611
4661
|
});
|
|
4612
4662
|
});
|
|
4613
4663
|
|
|
4664
|
+
//*********************************************************************************************
|
|
4665
|
+
QUnit.test("_delete: recursive hierarchy, restrictions not met", function (assert) {
|
|
4666
|
+
const oBinding = this.bindList("/EMPLOYEES");
|
|
4667
|
+
|
|
4668
|
+
// Note: autoExpandSelect at model would be required for hierarchyQualifier, but that leads
|
|
4669
|
+
// too far :-(
|
|
4670
|
+
oBinding.mParameters.$$aggregation = {hierarchyQualifier : "X"};
|
|
4671
|
+
|
|
4672
|
+
const oContext = {
|
|
4673
|
+
// noIndex
|
|
4674
|
+
toString : function () { return "~toString~"; } // cannot be mocked?
|
|
4675
|
+
};
|
|
4676
|
+
|
|
4677
|
+
assert.throws(function () {
|
|
4678
|
+
// code under test
|
|
4679
|
+
oBinding.delete("~oGroupLock~", "~sEditUrl~", oContext);
|
|
4680
|
+
}, new Error("Unsupported kept-alive context: ~toString~"));
|
|
4681
|
+
|
|
4682
|
+
oBinding.mParameters.$$aggregation = {expandTo : 2, hierarchyQualifier : "X"};
|
|
4683
|
+
|
|
4684
|
+
assert.throws(function () {
|
|
4685
|
+
// code under test
|
|
4686
|
+
oBinding.delete("~oGroupLock~", "~sEditUrl~", {/*oContext*/});
|
|
4687
|
+
}, new Error("Unsupported $$aggregation.expandTo: 2"));
|
|
4688
|
+
});
|
|
4689
|
+
|
|
4614
4690
|
//*********************************************************************************************
|
|
4615
4691
|
QUnit.test("create: callbacks and eventing", function (assert) {
|
|
4616
4692
|
var oBinding = this.bindList("/EMPLOYEES"),
|
|
@@ -5622,6 +5698,7 @@ sap.ui.define([
|
|
|
5622
5698
|
// code under test - create a second entity without bAtEnd
|
|
5623
5699
|
oContext2 = oBinding.create(undefined);
|
|
5624
5700
|
|
|
5701
|
+
this.mock(oContext1).expects("isExpanded").withExactArgs().returns(false);
|
|
5625
5702
|
this.mock(oContext1).expects("doDelete")
|
|
5626
5703
|
.callsArgWith(5, 0, -1) // the callback removing the context
|
|
5627
5704
|
.returns(SyncPromise.resolve());
|
|
@@ -5634,6 +5711,7 @@ sap.ui.define([
|
|
|
5634
5711
|
// code under test
|
|
5635
5712
|
oBinding.create(undefined, false, /*bAtEnd*/true);
|
|
5636
5713
|
|
|
5714
|
+
this.mock(oContext2).expects("isExpanded").withExactArgs().returns(false);
|
|
5637
5715
|
this.mock(oContext2).expects("doDelete")
|
|
5638
5716
|
.callsArgWith(5, 0, -1) // the callback removing the context
|
|
5639
5717
|
.returns(SyncPromise.resolve());
|
|
@@ -5667,10 +5745,12 @@ sap.ui.define([
|
|
|
5667
5745
|
oContext1 = oBinding.create(undefined, false, /*bAtEnd*/true);
|
|
5668
5746
|
oContext2 = oBinding.create(undefined, false, /*bAtEnd*/true);
|
|
5669
5747
|
|
|
5748
|
+
this.mock(oContext1).expects("isExpanded").withExactArgs().returns(false);
|
|
5670
5749
|
this.mock(oContext1).expects("doDelete")
|
|
5671
5750
|
.withArgs(sinon.match.same(oGroupLock), "~1")
|
|
5672
5751
|
.callsArgWith(5, 0, -1) // the callback removing the context
|
|
5673
5752
|
.returns(SyncPromise.resolve(Promise.resolve()));
|
|
5753
|
+
this.mock(oContext2).expects("isExpanded").withExactArgs().returns(false);
|
|
5674
5754
|
this.mock(oContext2).expects("doDelete")
|
|
5675
5755
|
.withArgs(null, "~2")
|
|
5676
5756
|
.callsArgWith(5, 0, -1) // the callback removing the context
|
|
@@ -9689,15 +9769,24 @@ sap.ui.define([
|
|
|
9689
9769
|
});
|
|
9690
9770
|
|
|
9691
9771
|
//*********************************************************************************************
|
|
9692
|
-
QUnit.test("getAllCurrentContexts: no cache
|
|
9693
|
-
|
|
9772
|
+
QUnit.test("getAllCurrentContexts: currently no cache", function (assert) {
|
|
9773
|
+
const oBinding = this.bindList("relativePath");
|
|
9774
|
+
oBinding.aContexts = ["~oTransientContext~"];
|
|
9775
|
+
|
|
9776
|
+
const oKeptContext = {isEffectivelyKeptAlive : function () {}};
|
|
9777
|
+
oBinding.mPreviousContextsByPath = {"~sPath~" : oKeptContext};
|
|
9694
9778
|
|
|
9695
9779
|
this.mock(oBinding).expects("withCache").withExactArgs(sinon.match.func, "", true);
|
|
9696
|
-
this.mock(oBinding).expects("createContexts").
|
|
9780
|
+
this.mock(oBinding).expects("createContexts").never();
|
|
9697
9781
|
this.mock(oBinding).expects("_fireChange").never();
|
|
9782
|
+
this.mock(oKeptContext).expects("isEffectivelyKeptAlive").withExactArgs().returns(true);
|
|
9698
9783
|
|
|
9699
9784
|
// code under test
|
|
9700
|
-
|
|
9785
|
+
const aContexts = oBinding.getAllCurrentContexts();
|
|
9786
|
+
|
|
9787
|
+
assert.strictEqual(aContexts.length, 2);
|
|
9788
|
+
assert.strictEqual(aContexts[0], "~oTransientContext~");
|
|
9789
|
+
assert.strictEqual(aContexts[1], oKeptContext);
|
|
9701
9790
|
});
|
|
9702
9791
|
|
|
9703
9792
|
//*********************************************************************************************
|