@openui5/sap.ui.core 1.117.1 → 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/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/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
|
@@ -5,9 +5,10 @@ sap.ui.define([
|
|
|
5
5
|
"sap/base/Log",
|
|
6
6
|
"sap/ui/base/SyncPromise",
|
|
7
7
|
"sap/ui/core/Configuration",
|
|
8
|
+
"sap/ui/core/Rendering",
|
|
8
9
|
"sap/ui/core/cache/CacheManager",
|
|
9
10
|
"sap/ui/core/message/Message",
|
|
10
|
-
"sap/ui/core/
|
|
11
|
+
"sap/ui/core/Messaging",
|
|
11
12
|
"sap/ui/model/Binding",
|
|
12
13
|
"sap/ui/model/BindingMode",
|
|
13
14
|
"sap/ui/model/Context",
|
|
@@ -23,7 +24,7 @@ sap.ui.define([
|
|
|
23
24
|
"sap/ui/model/odata/v4/lib/_Requestor",
|
|
24
25
|
"sap/ui/core/library",
|
|
25
26
|
"sap/ui/test/TestUtils"
|
|
26
|
-
], function (Log, SyncPromise, Configuration, CacheManager, Message,
|
|
27
|
+
], function (Log, SyncPromise, Configuration, Rendering, CacheManager, Message, Messaging, Binding,
|
|
27
28
|
BindingMode, BaseContext, Model, OperationMode, Context, ODataMetaModel, ODataModel,
|
|
28
29
|
SubmitMode, _Helper, _MetadataRequestor, _Parser, _Requestor, library, TestUtils) {
|
|
29
30
|
"use strict";
|
|
@@ -567,7 +568,7 @@ sap.ui.define([
|
|
|
567
568
|
// code under test
|
|
568
569
|
oModel.setIgnoreETag("~bIgnoreETag~");
|
|
569
570
|
|
|
570
|
-
this.mock(
|
|
571
|
+
this.mock(Messaging).expects("updateMessages")
|
|
571
572
|
.withExactArgs("~oldMessages~", "~newMessages~");
|
|
572
573
|
|
|
573
574
|
// code under test
|
|
@@ -1119,7 +1120,7 @@ sap.ui.define([
|
|
|
1119
1120
|
.twice();
|
|
1120
1121
|
oModelMock.expects("reportStateMessages").never();
|
|
1121
1122
|
oModelMock.expects("reportTransitionMessages")
|
|
1122
|
-
.once()// add each error only once to the
|
|
1123
|
+
.once()// add each error only once to the Messaging
|
|
1123
1124
|
.withExactArgs("~extractedMessages~", "resource/path");
|
|
1124
1125
|
|
|
1125
1126
|
// code under test
|
|
@@ -1795,7 +1796,7 @@ sap.ui.define([
|
|
|
1795
1796
|
return oMessage === aMessages[1] && oMessage.transition === true;
|
|
1796
1797
|
}), sResourcePath)
|
|
1797
1798
|
.returns("~UI5msg1~");
|
|
1798
|
-
this.mock(
|
|
1799
|
+
this.mock(Messaging).expects("updateMessages")
|
|
1799
1800
|
.withExactArgs(undefined, sinon.match(["~UI5msg0~", "~UI5msg1~"]));
|
|
1800
1801
|
|
|
1801
1802
|
// code under test
|
|
@@ -1812,7 +1813,7 @@ sap.ui.define([
|
|
|
1812
1813
|
QUnit.test("reportStateMessages", function () {
|
|
1813
1814
|
var aBarMessages = ["~rawMessage0~", "~rawMessage1~"],
|
|
1814
1815
|
aBazMessages = ["~rawMessage2~"],
|
|
1815
|
-
|
|
1816
|
+
oMessagingMock = this.mock(Messaging),
|
|
1816
1817
|
oModel = this.createModel(),
|
|
1817
1818
|
oModelMock = this.mock(oModel);
|
|
1818
1819
|
|
|
@@ -1822,14 +1823,14 @@ sap.ui.define([
|
|
|
1822
1823
|
.withExactArgs(aBarMessages[1], "Team('42')", "foo/bar").returns("~UI5msg1~");
|
|
1823
1824
|
oModelMock.expects("createUI5Message")
|
|
1824
1825
|
.withExactArgs(aBazMessages[0], "Team('42')", "foo/baz").returns("~UI5msg2~");
|
|
1825
|
-
|
|
1826
|
+
oMessagingMock.expects("updateMessages")
|
|
1826
1827
|
.withExactArgs([], ["~UI5msg0~", "~UI5msg1~", "~UI5msg2~"]);
|
|
1827
1828
|
|
|
1828
1829
|
// code under test
|
|
1829
1830
|
oModel.reportStateMessages("Team('42')",
|
|
1830
1831
|
{"foo/bar" : aBarMessages, "foo/baz" : aBazMessages});
|
|
1831
1832
|
|
|
1832
|
-
|
|
1833
|
+
oMessagingMock.expects("updateMessages").never();
|
|
1833
1834
|
|
|
1834
1835
|
// code under test
|
|
1835
1836
|
oModel.reportStateMessages("Team('42')", {});
|
|
@@ -1846,12 +1847,12 @@ sap.ui.define([
|
|
|
1846
1847
|
"/FOO('3')/NavSingle/Name" : [{}, {}],
|
|
1847
1848
|
"/FOO('3')/NavSingleBar/Name" : [{}]
|
|
1848
1849
|
},
|
|
1849
|
-
|
|
1850
|
+
oMessagingMock = this.mock(Messaging),
|
|
1850
1851
|
oModel = this.createModel();
|
|
1851
1852
|
|
|
1852
1853
|
oModel.mMessages = mMessages;
|
|
1853
1854
|
|
|
1854
|
-
|
|
1855
|
+
oMessagingMock.expects("updateMessages")
|
|
1855
1856
|
.withExactArgs(sinon.match.array, sinon.match.array)
|
|
1856
1857
|
.callsFake(function (aOldMessages, aNewMessages) {
|
|
1857
1858
|
assert.ok(aOldMessages.indexOf(mMessages["/FOO('1')"][0]) >= 0);
|
|
@@ -1867,7 +1868,7 @@ sap.ui.define([
|
|
|
1867
1868
|
// code under test
|
|
1868
1869
|
oModel.reportStateMessages("FOO('1')", {});
|
|
1869
1870
|
|
|
1870
|
-
|
|
1871
|
+
oMessagingMock.expects("updateMessages")
|
|
1871
1872
|
.withExactArgs(sinon.match.array, sinon.match.array)
|
|
1872
1873
|
.callsFake(function (aOldMessages, aNewMessages) {
|
|
1873
1874
|
assert.ok(aOldMessages.indexOf(mMessages["/FOO('3')/NavSingle"][0]) >= 0);
|
|
@@ -1898,7 +1899,7 @@ sap.ui.define([
|
|
|
1898
1899
|
oModel.mMessages = mMessages;
|
|
1899
1900
|
oHelperMock.expects("buildPath").withExactArgs("/FOO", "('1')").returns("/FOO('1')");
|
|
1900
1901
|
oHelperMock.expects("buildPath").withExactArgs("/FOO", "('2')").returns("/FOO('2')");
|
|
1901
|
-
this.mock(
|
|
1902
|
+
this.mock(Messaging).expects("updateMessages")
|
|
1902
1903
|
.withExactArgs(sinon.match.array, sinon.match.array)
|
|
1903
1904
|
.callsFake(function (aOldMessages, aNewMessages) {
|
|
1904
1905
|
assert.ok(aOldMessages.indexOf(mMessages["/FOO('1')"][0]) >= 0);
|
|
@@ -1930,7 +1931,7 @@ sap.ui.define([
|
|
|
1930
1931
|
oModel = this.createModel();
|
|
1931
1932
|
|
|
1932
1933
|
oModel.mMessages = mMessages;
|
|
1933
|
-
this.mock(
|
|
1934
|
+
this.mock(Messaging).expects("updateMessages")
|
|
1934
1935
|
.withExactArgs(sinon.match.array, sinon.match.array)
|
|
1935
1936
|
.callsFake(function (aOldMessages, aNewMessages) {
|
|
1936
1937
|
assert.ok(aOldMessages.indexOf(mMessages["/FOO('1')"][0]) >= 0);
|
|
@@ -2281,7 +2282,7 @@ sap.ui.define([
|
|
|
2281
2282
|
|
|
2282
2283
|
//*********************************************************************************************
|
|
2283
2284
|
QUnit.test("addPrerenderingTask: queue", function (assert) {
|
|
2284
|
-
var oExpectation = this.mock(
|
|
2285
|
+
var oExpectation = this.mock(Rendering).expects("addPrerenderingTask")
|
|
2285
2286
|
.withExactArgs(sinon.match.func),
|
|
2286
2287
|
fnFirstPrerenderingTask = "first",
|
|
2287
2288
|
fnPrerenderingTask0 = "0",
|
|
@@ -2323,7 +2324,7 @@ sap.ui.define([
|
|
|
2323
2324
|
oModel.addPrerenderingTask(fnLastTask);
|
|
2324
2325
|
});
|
|
2325
2326
|
|
|
2326
|
-
oAddTaskMock = this.mock(
|
|
2327
|
+
oAddTaskMock = this.mock(Rendering).expects("addPrerenderingTask")
|
|
2327
2328
|
.withExactArgs(sinon.match.func);
|
|
2328
2329
|
this.mock(window).expects("setTimeout").withExactArgs(sinon.match.func, 0).returns(42);
|
|
2329
2330
|
oModel.addPrerenderingTask(fnPrerenderingTask0);
|
|
@@ -2363,7 +2364,7 @@ sap.ui.define([
|
|
|
2363
2364
|
fnTask = this.spy(),
|
|
2364
2365
|
oWindowMock = this.mock(window);
|
|
2365
2366
|
|
|
2366
|
-
oAddTaskExpectation = this.mock(
|
|
2367
|
+
oAddTaskExpectation = this.mock(Rendering).expects("addPrerenderingTask")
|
|
2367
2368
|
.withExactArgs(sinon.match.func);
|
|
2368
2369
|
oSetTimeoutExpectation = oWindowMock.expects("setTimeout")
|
|
2369
2370
|
.withExactArgs(sinon.match.func, 0);
|
|
@@ -2395,7 +2396,7 @@ sap.ui.define([
|
|
|
2395
2396
|
fnTask1 = this.spy(),
|
|
2396
2397
|
fnTask2 = "~task~2~";
|
|
2397
2398
|
|
|
2398
|
-
oAddTaskExpectation = this.mock(
|
|
2399
|
+
oAddTaskExpectation = this.mock(Rendering).expects("addPrerenderingTask").twice()
|
|
2399
2400
|
.withExactArgs(sinon.match.func);
|
|
2400
2401
|
oSetTimeoutExpectation = this.mock(window).expects("setTimeout").thrice()
|
|
2401
2402
|
.withExactArgs(sinon.match.func, 0);
|
|
@@ -375,7 +375,6 @@ sap.ui.define([
|
|
|
375
375
|
// "super" call
|
|
376
376
|
assert.ok(oCache instanceof _AggregationCache, "module value is c'tor function");
|
|
377
377
|
assert.ok(oCache instanceof _Cache, "_AggregationCache is a _Cache");
|
|
378
|
-
assert.strictEqual(oCache._delete, null, "disinherit");
|
|
379
378
|
assert.strictEqual(oCache.addTransientCollection, null, "disinherit");
|
|
380
379
|
assert.strictEqual(oCache.getAndRemoveValue, null, "disinherit");
|
|
381
380
|
assert.strictEqual(oCache.oRequestor, this.oRequestor);
|
|
@@ -2244,9 +2243,8 @@ sap.ui.define([
|
|
|
2244
2243
|
oCache.aElements.$byPredicate = {};
|
|
2245
2244
|
oCache.aElements.$count = 3;
|
|
2246
2245
|
|
|
2247
|
-
oCacheMock.expects("
|
|
2248
|
-
.withExactArgs(
|
|
2249
|
-
.returns(SyncPromise.resolve(oGroupNode));
|
|
2246
|
+
oCacheMock.expects("getValue").exactly(vHasCache === "expanding" ? 0 : 1)
|
|
2247
|
+
.withExactArgs("~path~").returns(oGroupNode);
|
|
2250
2248
|
this.mock(_AggregationHelper).expects("getOrCreateExpandedObject")
|
|
2251
2249
|
.exactly(vHasCache === "expanding" ? 0 : 1)
|
|
2252
2250
|
.withExactArgs(sinon.match.same(oAggregation), sinon.match.same(oGroupNode))
|
|
@@ -2385,9 +2383,7 @@ sap.ui.define([
|
|
|
2385
2383
|
oCache.aElements.$byPredicate = {};
|
|
2386
2384
|
oCache.aElements.$count = 3;
|
|
2387
2385
|
|
|
2388
|
-
this.mock(oCache).expects("
|
|
2389
|
-
.withExactArgs(sinon.match.same(_GroupLock.$cached), "~path~")
|
|
2390
|
-
.returns(SyncPromise.resolve(oGroupNode));
|
|
2386
|
+
this.mock(oCache).expects("getValue").withExactArgs("~path~").returns(oGroupNode);
|
|
2391
2387
|
this.mock(_AggregationHelper).expects("getOrCreateExpandedObject")
|
|
2392
2388
|
.withExactArgs(sinon.match.same(oAggregation), sinon.match.same(oGroupNode))
|
|
2393
2389
|
.returns(oExpanded);
|
|
@@ -2490,9 +2486,7 @@ sap.ui.define([
|
|
|
2490
2486
|
oCache.aElements = aElements.slice();
|
|
2491
2487
|
oCache.aElements.$byPredicate = {};
|
|
2492
2488
|
oCache.aElements.$count = 4;
|
|
2493
|
-
oCacheMock.expects("
|
|
2494
|
-
.withExactArgs(sinon.match.same(_GroupLock.$cached), "~path~")
|
|
2495
|
-
.returns(SyncPromise.resolve(oGroupNode));
|
|
2489
|
+
oCacheMock.expects("getValue").withExactArgs("~path~").returns(oGroupNode);
|
|
2496
2490
|
oUpdateAllExpectation = this.mock(_Helper).expects("updateAll")
|
|
2497
2491
|
.withExactArgs(sinon.match.same(oCache.mChangeListeners), "~path~",
|
|
2498
2492
|
sinon.match.same(oGroupNode), {"@$ui5.node.isExpanded" : true})
|
|
@@ -2590,9 +2584,7 @@ sap.ui.define([
|
|
|
2590
2584
|
oCache.aElements.$byPredicate = {};
|
|
2591
2585
|
oCache.aElements.$count = 3;
|
|
2592
2586
|
|
|
2593
|
-
this.mock(oCache).expects("
|
|
2594
|
-
.withExactArgs(sinon.match.same(_GroupLock.$cached), "~path~")
|
|
2595
|
-
.returns(SyncPromise.resolve(oGroupNode));
|
|
2587
|
+
this.mock(oCache).expects("getValue").withExactArgs("~path~").returns(oGroupNode);
|
|
2596
2588
|
oUpdateAllExpectation = this.mock(_Helper).expects("updateAll")
|
|
2597
2589
|
.withExactArgs(sinon.match.same(oCache.mChangeListeners), "~path~",
|
|
2598
2590
|
sinon.match.same(oGroupNode), {"@$ui5.node.isExpanded" : true})
|
|
@@ -2653,9 +2645,7 @@ sap.ui.define([
|
|
|
2653
2645
|
},
|
|
2654
2646
|
that = this;
|
|
2655
2647
|
|
|
2656
|
-
this.mock(oCache).expects("
|
|
2657
|
-
.withExactArgs(sinon.match.same(_GroupLock.$cached), "~path~")
|
|
2658
|
-
.returns(SyncPromise.resolve(oGroupNode));
|
|
2648
|
+
this.mock(oCache).expects("getValue").withExactArgs("~path~").returns(oGroupNode);
|
|
2659
2649
|
this.mock(oCache).expects("createGroupLevelCache")
|
|
2660
2650
|
.withExactArgs(sinon.match.same(oGroupNode)).returns(oGroupLevelCache);
|
|
2661
2651
|
this.mock(oGroupLevelCache).expects("read")
|
|
@@ -2695,7 +2685,7 @@ sap.ui.define([
|
|
|
2695
2685
|
};
|
|
2696
2686
|
|
|
2697
2687
|
oCache.aElements = [oGroupNode];
|
|
2698
|
-
this.mock(oCache).expects("
|
|
2688
|
+
this.mock(oCache).expects("getValue").never();
|
|
2699
2689
|
this.mock(_Helper).expects("updateAll").never();
|
|
2700
2690
|
this.mock(oCache).expects("createGroupLevelCache").never();
|
|
2701
2691
|
this.mock(_AggregationHelper).expects("getCollapsedObject")
|
|
@@ -2803,9 +2793,7 @@ sap.ui.define([
|
|
|
2803
2793
|
"('3')" : aElements[3],
|
|
2804
2794
|
"('4')" : aElements[4]
|
|
2805
2795
|
};
|
|
2806
|
-
this.mock(oCache).expects("
|
|
2807
|
-
.withExactArgs(sinon.match.same(_GroupLock.$cached), "~path~")
|
|
2808
|
-
.returns(SyncPromise.resolve(aElements[1]));
|
|
2796
|
+
this.mock(oCache).expects("getValue").withExactArgs("~path~").returns(aElements[1]);
|
|
2809
2797
|
this.mock(_Helper).expects("updateAll")
|
|
2810
2798
|
.withExactArgs(sinon.match.same(oCache.mChangeListeners), "~path~",
|
|
2811
2799
|
sinon.match.same(aElements[1]), sinon.match.same(oCollapsed))
|
|
@@ -2855,9 +2843,7 @@ sap.ui.define([
|
|
|
2855
2843
|
}];
|
|
2856
2844
|
|
|
2857
2845
|
oCache.aElements = aElements.slice(); // simulate a read
|
|
2858
|
-
this.mock(oCache).expects("
|
|
2859
|
-
.withExactArgs(sinon.match.same(_GroupLock.$cached), "~path~")
|
|
2860
|
-
.returns(SyncPromise.resolve(aElements[0]));
|
|
2846
|
+
this.mock(oCache).expects("getValue").withExactArgs("~path~").returns(aElements[0]);
|
|
2861
2847
|
this.mock(_AggregationHelper).expects("getCollapsedObject")
|
|
2862
2848
|
.withExactArgs(sinon.match.same(aElements[0])).returns(oCollapsed);
|
|
2863
2849
|
this.mock(_Helper).expects("getPrivateAnnotation")
|
|
@@ -2928,9 +2914,7 @@ sap.ui.define([
|
|
|
2928
2914
|
aSpliced.push(oPlaceholder);
|
|
2929
2915
|
}
|
|
2930
2916
|
}
|
|
2931
|
-
this.mock(oCache).expects("
|
|
2932
|
-
.withExactArgs(sinon.match.same(_GroupLock.$cached), "~path~")
|
|
2933
|
-
.returns(SyncPromise.resolve(aElements[0]));
|
|
2917
|
+
this.mock(oCache).expects("getValue").withExactArgs("~path~").returns(aElements[0]);
|
|
2934
2918
|
// don't care about getCollapsedObject and updateAll here
|
|
2935
2919
|
|
|
2936
2920
|
// code under test
|
|
@@ -2998,9 +2982,7 @@ sap.ui.define([
|
|
|
2998
2982
|
"('2')" : aElements[2],
|
|
2999
2983
|
"('3')" : aElements[3]
|
|
3000
2984
|
};
|
|
3001
|
-
this.mock(oCache).expects("
|
|
3002
|
-
.withExactArgs(sinon.match.same(_GroupLock.$cached), "~path~")
|
|
3003
|
-
.returns(SyncPromise.resolve(aElements[0]));
|
|
2985
|
+
this.mock(oCache).expects("getValue").withExactArgs("~path~").returns(aElements[0]);
|
|
3004
2986
|
// don't care about getCollapsedObject and updateAll here
|
|
3005
2987
|
|
|
3006
2988
|
// code under test
|
|
@@ -3721,12 +3703,15 @@ sap.ui.define([
|
|
|
3721
3703
|
//*********************************************************************************************
|
|
3722
3704
|
[false, true].forEach(function (bHasGroupLevelCache) {
|
|
3723
3705
|
QUnit.test("create: already has group level cache: " + bHasGroupLevelCache, function (assert) {
|
|
3706
|
+
var fnCancelCallback;
|
|
3707
|
+
|
|
3724
3708
|
const oCache = _AggregationCache.create(this.oRequestor, "Foo", "", {}, {
|
|
3725
3709
|
$ParentNavigationProperty : "myParent",
|
|
3726
3710
|
hierarchyQualifier : "X"
|
|
3727
3711
|
});
|
|
3728
3712
|
const oGroupLevelCache = {
|
|
3729
|
-
create : mustBeMocked
|
|
3713
|
+
create : mustBeMocked,
|
|
3714
|
+
setEmpty : mustBeMocked
|
|
3730
3715
|
};
|
|
3731
3716
|
const oParentNode = {
|
|
3732
3717
|
"@$ui5._" : {cache : bHasGroupLevelCache ? oGroupLevelCache : undefined},
|
|
@@ -3735,8 +3720,11 @@ sap.ui.define([
|
|
|
3735
3720
|
oCache.aElements = ["0", "1", oParentNode, "3", "4"];
|
|
3736
3721
|
oCache.aElements.$byPredicate = {"('42')" : oParentNode};
|
|
3737
3722
|
oCache.aElements.$count = 5;
|
|
3738
|
-
this.mock(oCache)
|
|
3723
|
+
const oCacheMock = this.mock(oCache);
|
|
3724
|
+
oCacheMock.expects("createGroupLevelCache").exactly(bHasGroupLevelCache ? 0 : 1)
|
|
3739
3725
|
.withExactArgs(sinon.match.same(oParentNode)).returns(oGroupLevelCache);
|
|
3726
|
+
this.mock(oGroupLevelCache).expects("setEmpty").exactly(bHasGroupLevelCache ? 0 : 1)
|
|
3727
|
+
.withExactArgs();
|
|
3740
3728
|
this.mock(_Helper).expects("updateAll").exactly(bHasGroupLevelCache ? 0 : 1)
|
|
3741
3729
|
.withExactArgs(sinon.match.same(oCache.mChangeListeners), "('42')",
|
|
3742
3730
|
sinon.match.same(oParentNode), {"@$ui5.node.isExpanded" : true});
|
|
@@ -3749,8 +3737,9 @@ sap.ui.define([
|
|
|
3749
3737
|
this.mock(oGroupLevelCache).expects("create")
|
|
3750
3738
|
.withExactArgs("~oGroupLock~", "~oPostPathPromise~", "~sPath~", "~sTransientPredicate~",
|
|
3751
3739
|
{bar : "~bar~", foo : "~foo~"},
|
|
3752
|
-
false, "~fnErrorCallback~", "~fnSubmitCallback~")
|
|
3753
|
-
.callsFake(()
|
|
3740
|
+
false, "~fnErrorCallback~", "~fnSubmitCallback~", sinon.match.func)
|
|
3741
|
+
.callsFake(function () {
|
|
3742
|
+
fnCancelCallback = arguments[8];
|
|
3754
3743
|
if (!bHasGroupLevelCache) {
|
|
3755
3744
|
assert.strictEqual(_Helper.getPrivateAnnotation(oParentNode, "cache"),
|
|
3756
3745
|
oGroupLevelCache);
|
|
@@ -3763,18 +3752,21 @@ sap.ui.define([
|
|
|
3763
3752
|
});
|
|
3764
3753
|
});
|
|
3765
3754
|
});
|
|
3766
|
-
this.mock(
|
|
3755
|
+
this.mock(_Helper).expects("makeRelativeUrl").withExactArgs("/Foo('42')", "/Foo")
|
|
3756
|
+
.returns("~relativeUrl~");
|
|
3757
|
+
oCacheMock.expects("addElements")
|
|
3767
3758
|
.withExactArgs(sinon.match.same(oEntityData), 3, sinon.match.same(oGroupLevelCache), 0)
|
|
3768
3759
|
.callsFake(function () {
|
|
3769
3760
|
assert.deepEqual(oCache.aElements, ["0", "1", oParentNode, null, "3", "4"]);
|
|
3770
3761
|
});
|
|
3762
|
+
oCacheMock.expects("shiftIndex").withExactArgs(3, +1);
|
|
3771
3763
|
|
|
3772
3764
|
// code under test
|
|
3773
3765
|
const oResult = oCache.create("~oGroupLock~", "~oPostPathPromise~", "~sPath~",
|
|
3774
3766
|
"~sTransientPredicate~", oEntityData, /*bAtEndOfCreated*/false, "~fnErrorCallback~",
|
|
3775
3767
|
"~fnSubmitCallback~");
|
|
3776
3768
|
|
|
3777
|
-
assert.deepEqual(oPostBody, {"myParent@odata.bind" : "
|
|
3769
|
+
assert.deepEqual(oPostBody, {"myParent@odata.bind" : "~relativeUrl~"});
|
|
3778
3770
|
assert.deepEqual(oEntityData, {
|
|
3779
3771
|
"@$ui5._" : {postBody : oPostBody},
|
|
3780
3772
|
"@$ui5.node.level" : 24,
|
|
@@ -3790,7 +3782,27 @@ sap.ui.define([
|
|
|
3790
3782
|
"('42')" : oParentNode,
|
|
3791
3783
|
"('ABC')" : oEntityData
|
|
3792
3784
|
});
|
|
3793
|
-
|
|
3785
|
+
assert.strictEqual(oCache.aElements.$count, 6);
|
|
3786
|
+
|
|
3787
|
+
oCache.aElements[3] = oEntityData;
|
|
3788
|
+
oCacheMock.expects("shiftIndex").withExactArgs(3, -1)
|
|
3789
|
+
.callsFake(function () {
|
|
3790
|
+
assert.deepEqual(oCache.aElements,
|
|
3791
|
+
["0", "1", oParentNode, oEntityData, "3", "4"], "not yet spliced");
|
|
3792
|
+
});
|
|
3793
|
+
this.mock(_Helper).expects("getPrivateAnnotation")
|
|
3794
|
+
.withExactArgs(sinon.match.same(oEntityData), "transientPredicate")
|
|
3795
|
+
.returns("('42')"); // just testing ;-)
|
|
3796
|
+
|
|
3797
|
+
// code under test
|
|
3798
|
+
fnCancelCallback();
|
|
3799
|
+
|
|
3800
|
+
assert.strictEqual(oCache.aElements.$count, 5);
|
|
3801
|
+
assert.deepEqual(oCache.aElements.$byPredicate, {
|
|
3802
|
+
"('ABC')" : oEntityData
|
|
3803
|
+
});
|
|
3804
|
+
assert.deepEqual(oCache.aElements, ["0", "1", oParentNode, "3", "4"]);
|
|
3805
|
+
}.bind(this));
|
|
3794
3806
|
});
|
|
3795
3807
|
});
|
|
3796
3808
|
|
|
@@ -3828,4 +3840,228 @@ sap.ui.define([
|
|
|
3828
3840
|
oCache.create(null, null, "", "", {"@$ui5.node.parent" : "Foo('42')"});
|
|
3829
3841
|
}, new Error("Unsupported collapsed parent: Foo('42')"));
|
|
3830
3842
|
});
|
|
3843
|
+
|
|
3844
|
+
//*********************************************************************************************
|
|
3845
|
+
[false, true].forEach(function (bBreak) {
|
|
3846
|
+
QUnit.test(`shiftIndex: break = ${bBreak}`, function (assert) {
|
|
3847
|
+
const oCache = _AggregationCache.create(this.oRequestor, "Foo", "", {}, {
|
|
3848
|
+
hierarchyQualifier : "X"
|
|
3849
|
+
});
|
|
3850
|
+
const oNode = {
|
|
3851
|
+
"@$ui5._" : {parent : "~oGroupLevelCache~"},
|
|
3852
|
+
"@$ui5.node.level" : 24,
|
|
3853
|
+
ID : "node"
|
|
3854
|
+
};
|
|
3855
|
+
const oElementSkip = {
|
|
3856
|
+
"@$ui5._" : {index : -3, parent : "not oGroupLevelCache", placeholder : true},
|
|
3857
|
+
"@$ui5.node.level" : 0, // must be ignored
|
|
3858
|
+
ID : "skip"
|
|
3859
|
+
};
|
|
3860
|
+
const oElementNoBreak = {
|
|
3861
|
+
"@$ui5.node.level" : 24,
|
|
3862
|
+
ID : "no break"
|
|
3863
|
+
};
|
|
3864
|
+
const oElementChange = {
|
|
3865
|
+
"@$ui5._" : {index : 4, parent : "~oGroupLevelCache~"},
|
|
3866
|
+
"@$ui5.node.level" : 24,
|
|
3867
|
+
ID : "change (node)"
|
|
3868
|
+
};
|
|
3869
|
+
const oPlaceholderChange = {
|
|
3870
|
+
"@$ui5._" : {index : 5, parent : "~oGroupLevelCache~", placeholder : true},
|
|
3871
|
+
"@$ui5.node.level" : 0, // must be ignored
|
|
3872
|
+
ID : "change (placeholder)"
|
|
3873
|
+
};
|
|
3874
|
+
const oElementBreak = {
|
|
3875
|
+
"@$ui5.node.level" : bBreak
|
|
3876
|
+
? 23 // looks like sibling of oNode's parent
|
|
3877
|
+
: 24, // no break here (check that for-loop does not "overshoot")
|
|
3878
|
+
ID : "break"
|
|
3879
|
+
};
|
|
3880
|
+
const oElementTrap = { // this is unrealistic and acts as a trap to prove that loop ends
|
|
3881
|
+
"@$ui5._" : {index : 7, parent : "~oGroupLevelCache~", placeholder : true},
|
|
3882
|
+
"@$ui5.node.level" : 0, // must be ignored
|
|
3883
|
+
ID : "trap"
|
|
3884
|
+
};
|
|
3885
|
+
oCache.aElements = ["0", "1", oNode, oElementSkip, oElementNoBreak, oElementChange,
|
|
3886
|
+
oPlaceholderChange, oElementBreak, oElementTrap];
|
|
3887
|
+
|
|
3888
|
+
// code under test
|
|
3889
|
+
oCache.shiftIndex(2, 47);
|
|
3890
|
+
|
|
3891
|
+
assert.deepEqual(oCache.aElements, ["0", "1", {
|
|
3892
|
+
"@$ui5._" : {parent : "~oGroupLevelCache~"},
|
|
3893
|
+
"@$ui5.node.level" : 24,
|
|
3894
|
+
ID : "node"
|
|
3895
|
+
}, {
|
|
3896
|
+
"@$ui5._" : {index : -3, parent : "not oGroupLevelCache", placeholder : true},
|
|
3897
|
+
"@$ui5.node.level" : 0,
|
|
3898
|
+
ID : "skip"
|
|
3899
|
+
}, {
|
|
3900
|
+
"@$ui5.node.level" : 24,
|
|
3901
|
+
ID : "no break"
|
|
3902
|
+
}, {
|
|
3903
|
+
"@$ui5._" : {index : 4 + 47, parent : "~oGroupLevelCache~"},
|
|
3904
|
+
"@$ui5.node.level" : 24,
|
|
3905
|
+
ID : "change (node)"
|
|
3906
|
+
}, {
|
|
3907
|
+
"@$ui5._" : {index : 5 + 47, parent : "~oGroupLevelCache~", placeholder : true},
|
|
3908
|
+
"@$ui5.node.level" : 0,
|
|
3909
|
+
ID : "change (placeholder)"
|
|
3910
|
+
}, {
|
|
3911
|
+
"@$ui5.node.level" : bBreak ? 23 : 24,
|
|
3912
|
+
ID : "break"
|
|
3913
|
+
}, {
|
|
3914
|
+
"@$ui5._" : {
|
|
3915
|
+
index : bBreak ? /*unchanged!*/7 : 7 + 47,
|
|
3916
|
+
parent : "~oGroupLevelCache~",
|
|
3917
|
+
placeholder : true
|
|
3918
|
+
},
|
|
3919
|
+
"@$ui5.node.level" : 0,
|
|
3920
|
+
ID : "trap"
|
|
3921
|
+
}]);
|
|
3922
|
+
});
|
|
3923
|
+
});
|
|
3924
|
+
|
|
3925
|
+
//*********************************************************************************************
|
|
3926
|
+
[
|
|
3927
|
+
{parentLeaf : false, parentExpand : true},
|
|
3928
|
+
{parentLeaf : false, parentExpand : false, parentMoved : true},
|
|
3929
|
+
{parentLeaf : true, parentExpand : false},
|
|
3930
|
+
{noParent : true}
|
|
3931
|
+
].forEach(function (oFixture) {
|
|
3932
|
+
QUnit.test(`_delete: leaf, ${JSON.stringify(oFixture)}`, function (assert) {
|
|
3933
|
+
// Before the delete, the child is at 2 and the parent is at 1 (or missing) - hence the
|
|
3934
|
+
// child's level index is 0 (or 2). When restoring, the level index is 3, and the parent
|
|
3935
|
+
// possibly moved to index 6. So the child must be restored to 3 (no parent), 5 (parent
|
|
3936
|
+
// still at 1) or 10 (parent moved to 6).
|
|
3937
|
+
const oCache = _AggregationCache.create(this.oRequestor, "Foo", "", {}, {
|
|
3938
|
+
hierarchyQualifier : "X"
|
|
3939
|
+
});
|
|
3940
|
+
const fnCallback = sinon.spy();
|
|
3941
|
+
const oLevelCache = {
|
|
3942
|
+
_delete : mustBeMocked,
|
|
3943
|
+
getValue : mustBeMocked
|
|
3944
|
+
};
|
|
3945
|
+
const oParent = {
|
|
3946
|
+
"@$ui5.node.isExpanded" : true
|
|
3947
|
+
};
|
|
3948
|
+
|
|
3949
|
+
if (!oFixture.noParent) {
|
|
3950
|
+
oCache.aElements[1] = oParent;
|
|
3951
|
+
}
|
|
3952
|
+
oCache.aElements[2] = "~oElement~";
|
|
3953
|
+
const oHelperMock = this.mock(_Helper);
|
|
3954
|
+
oHelperMock.expects("getPrivateAnnotation").withExactArgs("~oElement~", "parent")
|
|
3955
|
+
.returns(oLevelCache);
|
|
3956
|
+
oHelperMock.expects("getPrivateAnnotation").withExactArgs("~oElement~", "index")
|
|
3957
|
+
.returns(oFixture.noParent ? 2 : 0);
|
|
3958
|
+
const oLevelCacheMock = this.mock(oLevelCache);
|
|
3959
|
+
const oDeleteExpectation = oLevelCacheMock.expects("_delete")
|
|
3960
|
+
.withExactArgs("~groupLock~", "~editUrl~", oFixture.noParent ? "2" : "0",
|
|
3961
|
+
"~etagEntity~", sinon.match.func)
|
|
3962
|
+
.returns("~promise~");
|
|
3963
|
+
|
|
3964
|
+
assert.strictEqual(
|
|
3965
|
+
// code under test
|
|
3966
|
+
oCache._delete("~groupLock~", "~editUrl~", "2", "~etagEntity~", fnCallback),
|
|
3967
|
+
"~promise~");
|
|
3968
|
+
|
|
3969
|
+
const oCacheMock = this.mock(oCache);
|
|
3970
|
+
const oShiftExpectation1 = oCacheMock.expects("shiftIndex").withExactArgs(2, -1);
|
|
3971
|
+
oHelperMock.expects("getPrivateAnnotation").withExactArgs("~oElement~", "predicate")
|
|
3972
|
+
.returns("~predicate~");
|
|
3973
|
+
const oRemoveExpectation = oCacheMock.expects("removeElement")
|
|
3974
|
+
.withExactArgs(sinon.match.same(oCache.aElements), 2, "~predicate~", "");
|
|
3975
|
+
oLevelCacheMock.expects("getValue").exactly(oFixture.noParent ? 0 : 1)
|
|
3976
|
+
.withExactArgs("$count").returns(oFixture.parentLeaf ? 0 : 5);
|
|
3977
|
+
oHelperMock.expects("getPrivateAnnotation").exactly(oFixture.parentLeaf ? 1 : 0)
|
|
3978
|
+
.withExactArgs(sinon.match.same(oParent), "predicate").returns("~predicate~");
|
|
3979
|
+
oHelperMock.expects("updateAll").exactly(oFixture.parentLeaf ? 1 : 0)
|
|
3980
|
+
.withExactArgs(sinon.match.same(oCache.mChangeListeners), "~predicate~",
|
|
3981
|
+
sinon.match.same(oParent), {"@$ui5.node.isExpanded" : undefined});
|
|
3982
|
+
|
|
3983
|
+
// code under test - callback deleting
|
|
3984
|
+
oDeleteExpectation.firstCall.args[4](0, -1);
|
|
3985
|
+
|
|
3986
|
+
if (oFixture.parentMoved) {
|
|
3987
|
+
delete oCache.aElements[1];
|
|
3988
|
+
oCache.aElements[6] = oParent;
|
|
3989
|
+
}
|
|
3990
|
+
assert.ok(oShiftExpectation1.calledBefore(oRemoveExpectation));
|
|
3991
|
+
assert.strictEqual(fnCallback.callCount, 1);
|
|
3992
|
+
assert.deepEqual(fnCallback.args[0], [2, -1]);
|
|
3993
|
+
if (oFixture.parentLeaf) {
|
|
3994
|
+
assert.notOk("@$ui5.node.isExpanded" in oParent);
|
|
3995
|
+
}
|
|
3996
|
+
|
|
3997
|
+
// parent index is 6 or 1, child index in level cache is 3 (from the callback)
|
|
3998
|
+
let iExpectedIndex = oFixture.parentMoved ? 10 : 5;
|
|
3999
|
+
if (oFixture.noParent) {
|
|
4000
|
+
iExpectedIndex = 3;
|
|
4001
|
+
}
|
|
4002
|
+
const oRestoreExpectation = this.mock(oCache).expects("restoreElement")
|
|
4003
|
+
.withExactArgs(sinon.match.same(oCache.aElements), iExpectedIndex, "~oElement~", "");
|
|
4004
|
+
const oShiftExpectation2 = oCacheMock.expects("shiftIndex")
|
|
4005
|
+
.withExactArgs(iExpectedIndex, 1);
|
|
4006
|
+
oLevelCacheMock.expects("getValue").exactly(oFixture.noParent ? 0 : 1)
|
|
4007
|
+
.withExactArgs("$count").returns(oFixture.parentExpand ? 1 : 5);
|
|
4008
|
+
oHelperMock.expects("getPrivateAnnotation").exactly(oFixture.parentExpand ? 1 : 0)
|
|
4009
|
+
.withExactArgs(sinon.match.same(oParent), "predicate").returns("~predicate~");
|
|
4010
|
+
oHelperMock.expects("updateAll").exactly(oFixture.parentExpand ? 1 : 0)
|
|
4011
|
+
.withExactArgs(sinon.match.same(oCache.mChangeListeners), "~predicate~",
|
|
4012
|
+
sinon.match.same(oParent), {"@$ui5.node.isExpanded" : true});
|
|
4013
|
+
|
|
4014
|
+
// code under test - callback reinserting
|
|
4015
|
+
oDeleteExpectation.firstCall.args[4](3, 1);
|
|
4016
|
+
|
|
4017
|
+
assert.ok(oRestoreExpectation.calledBefore(oShiftExpectation2));
|
|
4018
|
+
assert.strictEqual(fnCallback.callCount, 2);
|
|
4019
|
+
assert.deepEqual(fnCallback.args[1], [iExpectedIndex, 1]);
|
|
4020
|
+
});
|
|
4021
|
+
});
|
|
4022
|
+
|
|
4023
|
+
//*********************************************************************************************
|
|
4024
|
+
QUnit.test("_delete: expandTo > 1", function (assert) {
|
|
4025
|
+
const oCache = _AggregationCache.create(this.oRequestor, "Foo", "", {}, {
|
|
4026
|
+
expandTo : 2,
|
|
4027
|
+
hierarchyQualifier : "X"
|
|
4028
|
+
});
|
|
4029
|
+
this.mock(oCache).expects("removeElement").never();
|
|
4030
|
+
this.mock(_Helper).expects("updateAll").never();
|
|
4031
|
+
|
|
4032
|
+
assert.throws(function () {
|
|
4033
|
+
oCache._delete();
|
|
4034
|
+
}, new Error("Unsupported expandTo: 2"));
|
|
4035
|
+
});
|
|
4036
|
+
|
|
4037
|
+
//*********************************************************************************************
|
|
4038
|
+
QUnit.test("_delete: kept-alive not in collection", function (assert) {
|
|
4039
|
+
const oCache = _AggregationCache.create(this.oRequestor, "Foo", "", {}, {
|
|
4040
|
+
hierarchyQualifier : "X"
|
|
4041
|
+
});
|
|
4042
|
+
this.mock(oCache).expects("removeElement").never();
|
|
4043
|
+
this.mock(_Helper).expects("updateAll").never();
|
|
4044
|
+
|
|
4045
|
+
assert.throws(function () {
|
|
4046
|
+
oCache._delete("~oGroupLock~", "~sEditUrl~", "('1')");
|
|
4047
|
+
}, new Error("Unsupported kept-alive entity: Foo('1')"));
|
|
4048
|
+
});
|
|
4049
|
+
|
|
4050
|
+
//*********************************************************************************************
|
|
4051
|
+
QUnit.test("resetChangesForPath", function () {
|
|
4052
|
+
const oCache = _AggregationCache.create(this.oRequestor, "Foo", "", {}, {
|
|
4053
|
+
hierarchyQualifier : "X"
|
|
4054
|
+
});
|
|
4055
|
+
const oElementCache = {
|
|
4056
|
+
resetChangesForPath : mustBeMocked
|
|
4057
|
+
};
|
|
4058
|
+
|
|
4059
|
+
this.mock(oCache).expects("getValue").withExactArgs("~sPath~").returns("~oElement~");
|
|
4060
|
+
this.mock(_Helper).expects("getPrivateAnnotation").withExactArgs("~oElement~", "parent")
|
|
4061
|
+
.returns(oElementCache);
|
|
4062
|
+
this.mock(oElementCache).expects("resetChangesForPath").withExactArgs("~sPath~");
|
|
4063
|
+
|
|
4064
|
+
// code under test
|
|
4065
|
+
oCache.resetChangesForPath("~sPath~");
|
|
4066
|
+
});
|
|
3831
4067
|
});
|