@openui5/sap.ui.core 1.118.0 → 1.119.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/.eslintrc.json +9 -0
- package/THIRDPARTY.txt +2 -2
- 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 +16 -1
- package/src/sap/base/i18n/ResourceBundle.js +5 -0
- package/src/sap/base/i18n/date/TimezoneUtils.js +1 -1
- package/src/sap/base/util/UriParameters.js +26 -19
- 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/BindingInfo.js +25 -3
- 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 +2 -2
- package/src/sap/ui/base/ManagedObjectMetadata.js +4 -3
- package/src/sap/ui/base/Metadata.js +3 -3
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +1 -1
- package/src/sap/ui/core/AccessKeysEnablement.js +2 -2
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +68 -51
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- package/src/sap/ui/core/ComponentMetadata.js +1 -1
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +15 -167
- package/src/sap/ui/core/Control.js +2 -2
- package/src/sap/ui/core/Core.js +162 -93
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/CustomStyleClassSupport.js +3 -3
- package/src/sap/ui/core/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/Element.js +40 -4
- 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 +19 -2
- package/src/sap/ui/core/FocusHandler.js +3 -24
- package/src/sap/ui/core/Fragment.js +2 -2
- package/src/sap/ui/core/HTML.js +1 -1
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +1 -1
- package/src/sap/ui/core/IndicationColorSupport.js +1 -1
- package/src/sap/ui/core/IntervalTrigger.js +1 -1
- package/src/sap/ui/core/InvisibleMessage.js +1 -1
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +2 -2
- package/src/sap/ui/core/Item.js +1 -1
- package/src/sap/ui/core/LabelEnablement.js +11 -4
- package/src/sap/ui/core/LayoutData.js +1 -1
- package/src/sap/ui/core/Lib.js +42 -42
- package/src/sap/ui/core/ListItem.js +1 -1
- package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
- package/src/sap/ui/core/Locale.js +1 -1
- package/src/sap/ui/core/LocaleData.js +1 -1
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +4 -4
- package/src/sap/ui/core/Messaging.js +4 -5
- package/src/sap/ui/core/Popup.js +3 -3
- package/src/sap/ui/core/RenderManager.js +15 -10
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/Rendering.js +1 -0
- package/src/sap/ui/core/ResizeHandler.js +15 -20
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/ShortcutHintsMixin.js +5 -5
- package/src/sap/ui/core/StashedControlSupport.js +4 -4
- package/src/sap/ui/core/StaticArea.js +66 -74
- package/src/sap/ui/core/Theming.js +71 -8
- 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 +10 -9
- package/src/sap/ui/core/UIComponent.js +2 -2
- package/src/sap/ui/core/UIComponentMetadata.js +1 -1
- package/src/sap/ui/core/ValueStateSupport.js +1 -1
- package/src/sap/ui/core/VariantLayoutData.js +1 -1
- package/src/sap/ui/core/XMLComposite.js +4 -2
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/_IconRegistry.js +2 -0
- package/src/sap/ui/core/cache/CacheManager.js +22 -16
- package/src/sap/ui/core/cache/LRUPersistentCache.js +13 -7
- package/src/sap/ui/core/date/UI5Date.js +1 -1
- package/src/sap/ui/core/delegate/ItemNavigation.js +3 -3
- package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
- package/src/sap/ui/core/dnd/DragDropInfo.js +6 -6
- package/src/sap/ui/core/dnd/DragInfo.js +4 -4
- package/src/sap/ui/core/dnd/DropInfo.js +6 -6
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/getCompatibilityVersion.js +64 -0
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +14 -9
- package/src/sap/ui/core/message/ControlMessageProcessor.js +4 -4
- package/src/sap/ui/core/message/Message.js +14 -13
- package/src/sap/ui/core/message/MessageManager.js +12 -13
- package/src/sap/ui/core/message/MessageMixin.js +2 -2
- package/src/sap/ui/core/message/MessageParser.js +1 -1
- package/src/sap/ui/core/message/MessageProcessor.js +2 -2
- package/src/sap/ui/core/message/MessageType.js +4 -4
- package/src/sap/ui/core/messagebundle_ar.properties +2 -2
- package/src/sap/ui/core/messagebundle_bg.properties +3 -3
- package/src/sap/ui/core/messagebundle_ca.properties +1 -1
- package/src/sap/ui/core/messagebundle_cs.properties +4 -4
- package/src/sap/ui/core/messagebundle_cy.properties +1 -1
- package/src/sap/ui/core/messagebundle_da.properties +3 -3
- package/src/sap/ui/core/messagebundle_de.properties +2 -2
- package/src/sap/ui/core/messagebundle_el.properties +10 -10
- package/src/sap/ui/core/messagebundle_en.properties +4 -4
- package/src/sap/ui/core/messagebundle_es.properties +17 -17
- package/src/sap/ui/core/messagebundle_fi.properties +1 -1
- package/src/sap/ui/core/messagebundle_fr.properties +21 -21
- package/src/sap/ui/core/messagebundle_hi.properties +2 -2
- package/src/sap/ui/core/messagebundle_hr.properties +6 -6
- package/src/sap/ui/core/messagebundle_hu.properties +10 -10
- package/src/sap/ui/core/messagebundle_id.properties +5 -5
- package/src/sap/ui/core/messagebundle_it.properties +57 -57
- package/src/sap/ui/core/messagebundle_iw.properties +5 -5
- package/src/sap/ui/core/messagebundle_kk.properties +1 -1
- package/src/sap/ui/core/messagebundle_ko.properties +6 -6
- package/src/sap/ui/core/messagebundle_lv.properties +5 -5
- package/src/sap/ui/core/messagebundle_ms.properties +5 -5
- package/src/sap/ui/core/messagebundle_nl.properties +12 -12
- package/src/sap/ui/core/messagebundle_no.properties +8 -8
- package/src/sap/ui/core/messagebundle_pl.properties +2 -2
- package/src/sap/ui/core/messagebundle_pt.properties +8 -8
- package/src/sap/ui/core/messagebundle_ro.properties +2 -2
- package/src/sap/ui/core/messagebundle_ru.properties +7 -7
- package/src/sap/ui/core/messagebundle_sk.properties +2 -2
- package/src/sap/ui/core/messagebundle_sl.properties +9 -9
- package/src/sap/ui/core/messagebundle_sv.properties +8 -8
- package/src/sap/ui/core/messagebundle_th.properties +18 -18
- package/src/sap/ui/core/messagebundle_tr.properties +5 -5
- package/src/sap/ui/core/messagebundle_uk.properties +8 -8
- package/src/sap/ui/core/messagebundle_vi.properties +1 -1
- package/src/sap/ui/core/messagebundle_zh_CN.properties +2 -2
- package/src/sap/ui/core/messagebundle_zh_TW.properties +24 -24
- 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 +3 -3
- package/src/sap/ui/core/mvc/XMLView.js +1 -1
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +3 -3
- 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/async/Target.js +5 -4
- package/src/sap/ui/core/routing/sync/Target.js +3 -3
- package/src/sap/ui/core/rules/App.support.js +30 -1
- package/src/sap/ui/core/rules/Config.support.js +4 -0
- package/src/sap/ui/core/rules/CoreHelper.support.js +3 -3
- package/src/sap/ui/core/rules/Theming.support.js +4 -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 +1 -1
- package/src/sap/ui/core/support/Support.js +5 -3
- package/src/sap/ui/core/support/ToolsAPI.js +8 -4
- package/src/sap/ui/core/support/plugins/Breakpoint.js +4 -4
- package/src/sap/ui/core/support/plugins/ControlTree.js +31 -13
- package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +1 -1
- package/src/sap/ui/core/support/plugins/Selector.js +2 -2
- package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +6 -4
- package/src/sap/ui/core/support/techinfo/TechnicalInfo.js +4 -2
- package/src/sap/ui/core/support/usage/EventBroadcaster.js +1 -1
- package/src/sap/ui/core/themes/base/base.less +275 -269
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.ttf +0 -0
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
- package/src/sap/ui/core/themes/base/global.less +8 -8
- package/src/sap/ui/core/theming/Parameters.js +4 -5
- package/src/sap/ui/core/theming/ThemeHelper.js +0 -1
- package/src/sap/ui/core/theming/ThemeManager.js +15 -14
- 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 +4 -2
- 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/reflection/BaseTreeModifier.js +27 -4
- package/src/sap/ui/core/util/reflection/JsControlTreeModifier.js +55 -30
- package/src/sap/ui/core/util/reflection/XmlTreeModifier.js +54 -48
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +2 -2
- package/src/sap/ui/core/util/serializer/Serializer.js +3 -3
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +27 -10
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +2 -2
- 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 +3 -3
- package/src/sap/ui/core/webc/WebComponentMetadata.js +1 -1
- package/src/sap/ui/core/ws/ReadyState.js +1 -1
- package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
- package/src/sap/ui/core/ws/WebSocket.js +1 -1
- package/src/sap/ui/debug/ControlTree.js +5 -5
- package/src/sap/ui/debug/DebugEnv.js +15 -6
- package/src/sap/ui/debug/PropertyList.js +3 -3
- package/src/sap/ui/dom/jquery/control.js +3 -4
- package/src/sap/ui/events/F6Navigation.js +2 -1
- package/src/sap/ui/model/ClientModel.js +33 -1
- package/src/sap/ui/model/ClientPropertyBinding.js +17 -1
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/Filter.js +1 -1
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +1 -1
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +1 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/json/JSONModel.js +2 -3
- package/src/sap/ui/model/message/MessageModel.js +3 -7
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
- package/src/sap/ui/model/odata/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/type/Boolean.js +1 -1
- package/src/sap/ui/model/odata/type/Byte.js +1 -1
- package/src/sap/ui/model/odata/type/Currency.js +1 -1
- package/src/sap/ui/model/odata/type/Date.js +1 -1
- package/src/sap/ui/model/odata/type/DateTime.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +1 -2
- 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 +2 -3
- package/src/sap/ui/model/odata/type/Raw.js +1 -1
- package/src/sap/ui/model/odata/type/SByte.js +1 -1
- package/src/sap/ui/model/odata/type/Single.js +1 -1
- package/src/sap/ui/model/odata/type/Stream.js +1 -1
- package/src/sap/ui/model/odata/type/String.js +1 -1
- package/src/sap/ui/model/odata/type/Time.js +1 -1
- package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
- package/src/sap/ui/model/odata/type/Unit.js +1 -1
- package/src/sap/ui/model/odata/v2/Context.js +13 -5
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +85 -56
- package/src/sap/ui/model/odata/v2/ODataModel.js +20 -15
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +60 -10
- package/src/sap/ui/model/odata/v4/ODataBinding.js +13 -4
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +159 -34
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +94 -24
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataModel.js +10 -10
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +4 -2
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +10 -13
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +105 -25
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +3 -5
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +83 -24
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +6 -20
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +3 -3
- package/src/sap/ui/model/odata/v4/lib/_V2MetadataConverter.js +1 -1
- package/src/sap/ui/model/resource/ResourceModel.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +1 -1
- package/src/sap/ui/model/type/Date.js +1 -2
- package/src/sap/ui/model/type/DateInterval.js +1 -2
- 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 +2 -2
- package/src/sap/ui/model/xml/XMLPropertyBinding.js +4 -2
- package/src/sap/ui/performance/BeaconRequest.js +8 -10
- package/src/sap/ui/qunit/qunit-coverage-istanbul.js +60 -6
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/qunit/utils/waitForThemeApplied.js +16 -14
- package/src/sap/ui/test/BlanketReporterUI.view.xml +5 -2
- package/src/sap/ui/test/OpaPlugin.js +3 -3
- package/src/sap/ui/test/TestUtils.js +3 -3
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/matchers/Descendant.js +1 -1
- package/src/sap/ui/test/matchers/Sibling.js +1 -1
- package/src/sap/ui/test/selectors/_LabelFor.js +3 -2
- package/src/sap/ui/test/starter/_setupAndStart.js +35 -11
- package/src/sap/ui/util/Storage.js +1 -1
- package/test/sap/ui/core/HTMLControl.html +94 -93
- package/test/sap/ui/core/HyphenationPlayground.html +10 -9
- package/test/sap/ui/core/Strings.view.xml +5 -1
- package/test/sap/ui/core/ThemeParameters.html +31 -30
- package/test/sap/ui/core/ValidateURL.html +10 -10
- package/test/sap/ui/core/demokit/sample/BusyIndicator/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/Commands/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/ControlBusyIndicator/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/ControllerExtension/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/FieldGroup/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/Html/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/Html/preserveDOM/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/Html/static/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/HyphenationAPI/C.controller.js +3 -3
- package/test/sap/ui/core/demokit/sample/Icon/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/InvisibleMessage/InvisibleMessage.controller.js +4 -4
- package/test/sap/ui/core/demokit/sample/InvisibleMessage/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/InvisibleText/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/MessageManager/BasicODataMessages/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/OpaAction/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/OpaAutoWaitParams/OpaAutoWaitParams.js +1 -1
- package/test/sap/ui/core/demokit/sample/OpaAutoWaitParams/applicationUnderTest/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/OpaAutoWaitParams/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/OpaBusyIndicator/applicationUnderTest/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/OpaBusyIndicator/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/OpaById/applicationUnderTest/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/OpaById/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/OpaDynamicWait/applicationUnderTest/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/OpaDynamicWait/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/OpaGetStarted/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/OpaMatchers/applicationUnderTest/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/OpaMatchers/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/OpaPageObject/applicationUnderTest/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/OpaPageObject/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/OpaStartup/iStartMyAppInAFrame/applicationUnderTest/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/OpaStartup/iStartMyAppInAFrame/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/OpaStartup/iStartMyUIComponent/applicationUnderTest/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/OpaStartup/iStartMyUIComponent/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/OpaStaticAreaControls/applicationUnderTest/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/OpaStaticAreaControls/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/OpaTestLibrary/applicationUnderTest/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/OpaTestLibrary/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/OpaURLParameters/iStartMyAppInAFrameWithURLParameters/applicationUnderTest/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/OpaURLParameters/iStartMyAppInAFrameWithURLParameters/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/OpaURLParameters/iStartMyUIComponentWithURLParameters/applicationUnderTest/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/OpaURLParameters/iStartMyUIComponentWithURLParameters/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/OpaWithSupportAssistant/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/PatternMatching/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/PatternMatching/patternApp/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/RoutingFullscreen/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/RoutingMasterDetail/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/RoutingNestedComponent/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/RoutingNestedComponent/reuse/categories/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/RoutingNestedComponent/reuse/products/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/RoutingNestedComponent/reuse/suppliers/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/TargetsStandalone/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/ThemeCustomClasses/ThemeCustomClasses.controller.js +3 -3
- package/test/sap/ui/core/demokit/sample/ThemeCustomClasses/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/TypeCurrency/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/TypeDateAsDate/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/TypeDateAsString/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/TypeDateTime/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/TypeFileSize/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/TypeFloat/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/TypeInteger/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/TypeTimeAsTime/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/View/async/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/View/preprocessor/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/ViewTemplate/scenario/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/XMLComposite/02/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/common/Controller.js +3 -2
- package/test/sap/ui/core/demokit/sample/common/Helper.js +15 -2
- package/test/sap/ui/core/demokit/sample/common/pages/Any.js +3 -0
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithPageObjects/applicationUnderTest/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithPageObjects/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/matcher/BindingPath/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/matcher/BindingPath/webapp/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/matcher/Descendant/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/matcher/Descendant/webapp/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/matcher/I18NText/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/matcher/I18NText/webapp/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/matcher/LabelFor/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/matcher/LabelFor/webapp/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/odata/types/v2/DateTimeOffset/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/odata/types/v4/Date/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/odata/types/v4/TimeOfDay/manifest.json +1 -0
- package/test/sap/ui/core/demokit/sample/odata/v2/AutoExpand/AutoExpand.view.xml +6 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/Ancestry/Main.view.xml +7 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/DataAggregation/DataAggregation.controller.js +2 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/DataAggregation/DataAggregation.view.xml +7 -4
- package/test/sap/ui/core/demokit/sample/odata/v4/DataAggregation/tests/expandPageCollapse.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/DataAggregation/tests/filter.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Opa.qunit.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/Draft/Opa.qunit.js +3 -5
- package/test/sap/ui/core/demokit/sample/odata/v4/FieldGroups/Opa.qunit.js +4 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/FlatDataAggregation/FlatDataAggregation.controller.js +6 -4
- package/test/sap/ui/core/demokit/sample/odata/v4/FlatDataAggregation/FlatDataAggregation.view.xml +6 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/FlexibleColumnLayout/Opa.qunit.js +9 -16
- package/test/sap/ui/core/demokit/sample/odata/v4/GridTable/GridTable.view.xml +6 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/Main.view.xml +7 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/LateProperties/Opa.qunit.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBinding/Opa.qunit.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Main.view.xml +5 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Opa.qunit.js +4 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/Products/Opa.qunit.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/RecursiveHierarchy.controller.js +29 -4
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/RecursiveHierarchy.view.xml +30 -5
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/SandboxModel.js +33 -6
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/tests/createEdit.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/tests/pageExpandCollapse.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V2/Opa.qunit.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V4/Opa.qunit.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/pages/Main.js +9 -8
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/ChangeContext.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/Create.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/CreateMultiple.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/CreateRelative.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/MessageHandling.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/TypeDeterminationAndDelete.js +8 -9
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/WriteNonDeferredGroup.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/additionalTargets.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersRTATest/tests/AdaptSalesOrdersTable.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersTemplate/Opa.qunit.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/ServerDrivenPaging/Main.view.xml +5 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/ServerDrivenPaging/pages/Main.js +4 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/Sticky/Opa.qunit.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/webapp/manifest.json +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/webapp/manifest.json +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/webapp/manifest.json +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/webapp/manifest.json +1 -1
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/webapp/manifest.json +1 -1
- package/test/sap/ui/core/internal/samples/composite/xmlcomposite/exTableWrapperOuterBinding/Test.controller.js +3 -2
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/Main.controller.js +1 -1
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/Main.view.xml +6 -3
- package/test/sap/ui/core/internal/samples/odata/v2/TreeTable/Main.view.xml +1 -1
- package/test/sap/ui/core/qunit/ControlDefinition.qunit.js +40 -20
- package/test/sap/ui/core/qunit/ControlRenderer.qunit.js +1 -1
- package/test/sap/ui/core/qunit/Core.qunit.js +5 -4
- package/test/sap/ui/core/qunit/Core_libraryTerminologies_integration.qunit.js +12 -11
- package/test/sap/ui/core/qunit/CustomStyleClassSupport.qunit.js +119 -117
- package/test/sap/ui/core/qunit/CustomThemeFallback.qunit.js +5 -17
- package/test/sap/ui/core/qunit/Declarative.qunit.js +37 -37
- package/test/sap/ui/core/qunit/Element_base.qunit.js +1 -1
- package/test/sap/ui/core/qunit/EventBus.qunit.js +4 -3
- package/test/sap/ui/core/qunit/FastNavigation.qunit.js +3 -2
- package/test/sap/ui/core/qunit/FieldGroup.qunit.js +9 -8
- package/test/sap/ui/core/qunit/FocusHandler.qunit.js +5 -4
- package/test/sap/ui/core/qunit/Fragment.qunit.js +12 -12
- package/test/sap/ui/core/qunit/Fragment_legacyAPIs.qunit.js +13 -12
- package/test/sap/ui/core/qunit/HTML.qunit.js +35 -35
- package/test/sap/ui/core/qunit/IconPool.qunit.js +6 -6
- package/test/sap/ui/core/qunit/InvisibleText.qunit.js +5 -4
- package/test/sap/ui/core/qunit/ManagedObject.qunit.js +3 -3
- package/test/sap/ui/core/qunit/PlaceAt.qunit.js +2 -2
- package/test/sap/ui/core/qunit/ScrollBar.qunit.js +3 -3
- package/test/sap/ui/core/qunit/StashedControlSupport.qunit.js +9 -9
- package/test/sap/ui/core/qunit/ThemeHelper.qunit.js +5 -4
- package/test/sap/ui/core/qunit/ThemeManager.qunit.js +47 -79
- package/test/sap/ui/core/qunit/ThemeParameters.qunit.js +40 -372
- package/test/sap/ui/core/qunit/ThemeParameters_legacyAPIs.qunit.js +686 -0
- package/test/sap/ui/core/qunit/TooltipBase.qunit.js +3 -2
- package/test/sap/ui/core/qunit/UIArea.qunit.js +10 -10
- package/test/sap/ui/core/qunit/analytics/testsuite4analytics.qunit.html +3 -3
- package/test/sap/ui/core/qunit/base/i18n/Localization.qunit.js +4 -3
- package/test/sap/ui/core/qunit/base/i18n/ResourceBundle.qunit.js +13 -3
- package/test/sap/ui/core/qunit/base/util/UriParameters.qunit.js +27 -1
- package/test/sap/ui/core/qunit/bootstrap/BootstrapCustomBootTaskPreloadCss.qunit.js +4 -4
- package/test/sap/ui/core/qunit/bootstrap/BootstrapWithCustomBootTask.beforeBootstrap.qunit.js +22 -21
- package/test/sap/ui/core/qunit/bootstrap/BootstrapWithCustomBootTask.qunit.js +4 -9
- package/test/sap/ui/core/qunit/bootstrap/CalendarClassLoadingWithCustomBootTaskAndPreload.qunit.js +19 -4
- package/test/sap/ui/core/qunit/bootstrap/CfgDefaults.qunit.js +3 -2
- package/test/sap/ui/core/qunit/bootstrap/CfgFromConfigAttribute.qunit.js +4 -3
- package/test/sap/ui/core/qunit/bootstrap/CfgFromGlobalObject.qunit.js +4 -3
- package/test/sap/ui/core/qunit/bootstrap/CfgFromTagAttributes.qunit.js +4 -3
- package/test/sap/ui/core/qunit/bootstrap/Configuration.qunit.js +2 -198
- package/test/sap/ui/core/qunit/bootstrap/Configuration_language_via_URL.qunit.js +210 -0
- package/test/sap/ui/core/qunit/bootstrap/ThemeVersion.qunit.js +33 -30
- package/test/sap/ui/core/qunit/bootstrap/testsuite.bootstrap.qunit.js +6 -0
- package/test/sap/ui/core/qunit/component/Component.qunit.js +12 -0
- package/test/sap/ui/core/qunit/component/ComponentSupport.qunit.js +6 -5
- package/test/sap/ui/core/qunit/component/Component_dependencyLoading.qunit.js +15 -9
- package/test/sap/ui/core/qunit/component/Component_dependencyLoading_unavoidablySync.qunit.js +10 -6
- package/test/sap/ui/core/qunit/component/Customizing.qunit.js +8 -7
- package/test/sap/ui/core/qunit/component/Customizing_disabled.qunit.js +6 -5
- package/test/sap/ui/core/qunit/component/Customizing_legacyAPIs.qunit.js +8 -7
- package/test/sap/ui/core/qunit/component/Customizing_multi.qunit.js +7 -6
- package/test/sap/ui/core/qunit/component/Customizing_unavoidablySync.qunit.js +5 -4
- package/test/sap/ui/core/qunit/component/Metadata.qunit.js +3 -3
- package/test/sap/ui/core/qunit/component/Models.qunit.js +103 -44
- package/test/sap/ui/core/qunit/component/UIComponent.qunit.js +20 -4
- package/test/sap/ui/core/qunit/component/UIComponent_unavoidablySync.qunit.js +5 -4
- package/test/sap/ui/core/qunit/component/testdata/dependencyLoading/component1/manifest.json +2 -1
- package/test/sap/ui/core/qunit/component/testdata/dependencyLoading/component2/manifest.json +1 -0
- package/test/sap/ui/core/qunit/component/testdata/dependencyLoading/component3/manifest.json +2 -1
- package/test/sap/ui/core/qunit/component/testdata/dependencyLoading/component4/manifest.json +1 -0
- package/test/sap/ui/core/qunit/component/testdata/dependencyLoading/component5/manifest.json +1 -1
- package/test/sap/ui/core/qunit/component/testdata/dependencyLoading/component6/manifest.json +1 -0
- package/test/sap/ui/core/qunit/component/testdata/dependencyLoading/componentVariant/manifest.json +1 -0
- package/test/sap/ui/core/qunit/component/testdata/v2asyncRootView/manifest.json +1 -1
- package/test/sap/ui/core/qunit/component/testdata/v2inline/Component.js +1 -1
- package/test/sap/ui/core/qunit/composite/XMLComposite.qunit.js +5 -5
- package/test/sap/ui/core/qunit/internal/1RingModels.qunit.html +4 -5
- package/test/sap/ui/core/qunit/internal/1RingModels.qunit.js +1 -0
- package/test/sap/ui/core/qunit/internal/AnnotationParser.qunit.html +4 -4
- package/test/sap/ui/core/qunit/internal/testsuite.models.qunit.js +19 -9
- package/test/sap/ui/core/qunit/jquery.sap.global-config.qunit.js +2 -4
- package/test/sap/ui/core/qunit/jquery.sap.ui.qunit.js +5 -4
- package/test/sap/ui/core/qunit/json/JSONModel.qunit.js +5 -9
- package/test/sap/ui/core/qunit/messages/Messaging.qunit.js +10 -5
- package/test/sap/ui/core/qunit/messages/messagesGeneral.qunit.js +6 -0
- package/test/sap/ui/core/qunit/messages/messagesGeneral_legacyAPIs.qunit.js +158 -0
- package/test/sap/ui/core/qunit/messages/messagesUsage.qunit.js +5 -4
- package/test/sap/ui/core/qunit/messages/testsuite.messaging.base.qunit.js +7 -0
- package/test/sap/ui/core/qunit/model/ClientPropertyBinding.qunit.js +47 -0
- package/test/sap/ui/core/qunit/mvc/AsyncXMLView.qunit.js +5 -3
- package/test/sap/ui/core/qunit/mvc/Controller.qunit.js +3 -3
- package/test/sap/ui/core/qunit/mvc/View.qunit.js +5 -1
- package/test/sap/ui/core/qunit/mvc/XMLView.qunit.js +6 -5
- package/test/sap/ui/core/qunit/mvc/testdata/TypedViewWithRendererRenderer.js +2 -2
- package/test/sap/ui/core/qunit/mvc/testdata/stashed/manifest.json +2 -1
- package/test/sap/ui/core/qunit/mvc/viewprocessing/ViewProcessing.qunit.js +4 -3
- package/test/sap/ui/core/qunit/mvc/viewprocessing/ViewProcessing_legacyAPIs.qunit.js +4 -3
- package/test/sap/ui/core/qunit/mvc_legacyAPIs/AsyncXMLView_legacyAPIs.qunit.js +5 -3
- package/test/sap/ui/core/qunit/mvc_legacyAPIs/XMLView_legacyAPIs.qunit.js +6 -5
- package/test/sap/ui/core/qunit/odata/ODataMessageParserNoFakeService.qunit.js +11 -7
- package/test/sap/ui/core/qunit/odata/ODataMetaModel.qunit.js +35 -0
- package/test/sap/ui/core/qunit/odata/_AnnotationHelperBasics.qunit.js +10 -4
- package/test/sap/ui/core/qunit/odata/data/ODataModelFakeService.js +1 -1
- package/test/sap/ui/core/qunit/odata/type/DateTimeBase.qunit.js +5 -0
- package/test/sap/ui/core/qunit/odata/type/ODataType.qunit.js +9 -0
- package/test/sap/ui/core/qunit/odata/v2/Context.qunit.js +12 -0
- package/test/sap/ui/core/qunit/odata/v2/ODataListBindingNoFakeService.qunit.js +422 -9
- package/test/sap/ui/core/qunit/odata/v2/ODataModel.integration.qunit.js +483 -33
- package/test/sap/ui/core/qunit/odata/v2/ODataModelNoFakeService.qunit.js +121 -2
- package/test/sap/ui/core/qunit/odata/v4/Context.qunit.js +95 -8
- package/test/sap/ui/core/qunit/odata/v4/ODataBinding.qunit.js +59 -13
- package/test/sap/ui/core/qunit/odata/v4/ODataContextBinding.qunit.js +355 -75
- package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +152 -19
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +1253 -130
- package/test/sap/ui/core/qunit/odata/v4/ODataParentBinding.qunit.js +19 -9
- package/test/sap/ui/core/qunit/odata/v4/ODataPropertyBinding.qunit.js +6 -27
- package/test/sap/ui/core/qunit/odata/v4/data/metadata.json +3 -1
- package/test/sap/ui/core/qunit/odata/v4/data/metadata.xml +2 -2
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationCache.qunit.js +172 -17
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationHelper.qunit.js +7 -8
- package/test/sap/ui/core/qunit/odata/v4/lib/_Cache.qunit.js +185 -84
- package/test/sap/ui/core/qunit/odata/v4/lib/_Helper.qunit.js +2 -22
- package/test/sap/ui/core/qunit/opa/OpaPlugin.qunit.js +6 -4
- package/test/sap/ui/core/qunit/opa/selectors/_Selector.js +3 -2
- package/test/sap/ui/core/qunit/opa/selectors/_TableRowItem.js +4 -3
- package/test/sap/ui/core/qunit/rule/app/deprecatedJSViewUsage.qunit.js +4 -0
- package/test/sap/ui/core/qunit/rule/app/globalApiUsage.qunit.js +4 -0
- package/test/sap/ui/core/qunit/rule/app/jquerySapUsage.qunit.js +4 -0
- package/test/sap/ui/core/qunit/rule/app/syncXHR.qunit.js +4 -0
- package/test/sap/ui/core/qunit/rule/app/syncXHRBootstrap.qunit.js +4 -0
- package/test/sap/ui/core/qunit/rule/app/syncXHRBootstrapDebug.qunit.js +4 -0
- package/test/sap/ui/core/qunit/rule/app/syncXHRBootstrapDebugBeforeBootstrap.js +4 -0
- package/test/sap/ui/core/qunit/rule/config/asynchronousXMLViews.qunit.js +4 -1
- package/test/sap/ui/core/qunit/rule/misc/silentEventBus.qunit.js +8 -7
- package/test/sap/ui/core/qunit/rule/model/modelSupport.qunit.js +11 -2
- package/test/sap/ui/core/qunit/rule/testsuite.rule.qunit.js +18 -0
- package/test/sap/ui/core/qunit/test/starter/find/main.js +11 -8
- package/test/sap/ui/core/qunit/testsuites/testsuite.databinding.qunit.js +6 -0
- package/test/sap/ui/core/qunit/testsuites/testsuite.foundation.enablement.qunit.js +7 -1
- package/test/sap/ui/core/qunit/testsuites/testsuite.theming.qunit.js +21 -2
- package/test/sap/ui/core/qunit/util/XMLPreprocessor.qunit.js +26 -4
- package/test/sap/ui/core/qunit/util/jQuery.sap.Version.qunit.js +5 -5
- package/test/sap/ui/core/qunit/util/reflection/JsControlTreeModifier.qunit.js +30 -13
- package/test/sap/ui/core/qunit/util/reflection/XmlTreeModifier.qunit.js +40 -16
- package/test/sap/ui/core/qunit/util/support/TechnicalInfo.qunit.js +11 -10
- package/test/sap/ui/core/qunit/xml/XMLPropertyBinding.qunit.js +69 -8
- package/test/sap/ui/core/relnotes/changes-1.118.json +1 -34
- package/test/sap/ui/core/relnotes/changes-1.119.json +217 -0
- package/test/sap/ui/core/resources/fastnav.js +3 -2
- package/test/sap/ui/core/samples/ResponsiveDemo.html +3 -3
- package/test/sap/ui/core/samples/components/commands/manifest.json +2 -2
- package/test/sap/ui/core/samples/components/sample/manifest.json +2 -1
- package/test/sap/ui/core/samples/databinding/DatabindingMessages.html +1 -1
- package/test/sap/ui/core/samples/databinding/ODatabindingMessages.html +3 -3
- package/test/sap/ui/core/samples/databinding/UnitTable.view.xml +9 -2
- package/test/sap/ui/core/samples/formatting/manifest.json +2 -2
- package/test/sap/ui/core/samples/mvc/XMLViewAsync.html +62 -61
- package/test/sap/ui/core/samples/routing_legacyAPIs/AsyncViews.html +124 -123
- package/test/sap/ui/core/terminologies/App.controller.js +3 -2
- package/test/sap/ui/core/terminologies/App.view.xml +64 -64
- package/test/sap/ui/core/tmpl_legacyAPIs/TemplateSimple.html +38 -37
- package/test/sap/ui/core/util/PasteHelper.html +5 -4
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/firstItem-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/initial.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/lastItem-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/leftDownBtn-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/myButtonSample-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/rightDownBtn-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/samples/databinding/DataBinding.html +0 -135
- package/test/sap/ui/core/samples/databinding/DataBindingCalculatedFields.html +0 -229
- package/test/sap/ui/core/samples/databinding/DataBindingCompositeTypes.html +0 -273
- package/test/sap/ui/core/samples/databinding/DataBindingFormat.html +0 -294
- package/test/sap/ui/core/samples/databinding/DataBindingList.html +0 -290
- package/test/sap/ui/core/samples/databinding/DataBindingListNamedModel.html +0 -290
- package/test/sap/ui/core/samples/databinding/DataBindingListXML.html +0 -280
- package/test/sap/ui/core/samples/databinding/DataBindingMasterDetail.html +0 -117
- package/test/sap/ui/core/samples/databinding/DataBindingMultiModel.html +0 -154
- package/test/sap/ui/core/samples/databinding/DataBindingResourceModel.html +0 -119
- package/test/sap/ui/core/samples/databinding/DataBindingSortingFiltering.html +0 -103
- package/test/sap/ui/core/samples/databinding/DataBindingTree.html +0 -166
- package/test/sap/ui/core/samples/databinding/DataBindingTreeFilter.html +0 -117
- package/test/sap/ui/core/samples/databinding/DataBindingTreeFilterXML.html +0 -103
- package/test/sap/ui/core/samples/databinding/DataBindingTreeLarge.html +0 -128
- package/test/sap/ui/core/samples/databinding/DataBindingTreeWithArrays.html +0 -132
- package/test/sap/ui/core/samples/databinding/DataBindingTwoWay.html +0 -158
- package/test/sap/ui/core/samples/databinding/DataBindingTwoWayTable.html +0 -141
- package/test/sap/ui/core/samples/databinding/DataBindingTypes.html +0 -265
- package/test/sap/ui/core/samples/databinding/DataBindingValidation.html +0 -195
- package/test/sap/ui/core/samples/databinding/DataBindingXML.html +0 -148
- package/test/sap/ui/core/samples/databinding/DataBindingXMLView.html +0 -53
- package/test/sap/ui/core/samples/databinding/testdata/ListBinding.view.xml +0 -9
- package/test/sap/ui/core/samples/databinding/testdata/test.view.json +0 -15
- package/test/sap/ui/core/samples/databinding/testdata/test.view.xml +0 -8
|
@@ -347,7 +347,7 @@ sap.ui.define([
|
|
|
347
347
|
|
|
348
348
|
oDocument = XMLHelper.parse(
|
|
349
349
|
'<mvc:View xmlns="sap.m" xmlns:f="sap.f" xmlns:mvc="sap.ui.core.mvc" \
|
|
350
|
-
xmlns:t="sap.ui.table">'
|
|
350
|
+
xmlns:t="sap.ui.table" xmlns:trm="sap.ui.table.rowmodes">'
|
|
351
351
|
+ sViewXML
|
|
352
352
|
+ '</mvc:View>',
|
|
353
353
|
"application/xml"
|
|
@@ -367,16 +367,27 @@ sap.ui.define([
|
|
|
367
367
|
*/
|
|
368
368
|
function xmlConvertGridTables(oDocument) {
|
|
369
369
|
function convertElements(aElements) {
|
|
370
|
-
var oChildNode, aChildNodes, oColumn, oElement, i, j, oTemplate
|
|
370
|
+
var oChildNode, aChildNodes, oColumn, oElement, i, j, oTemplate,
|
|
371
|
+
oRowMode, oFixedRowMode;
|
|
371
372
|
|
|
372
373
|
for (i = aElements.length - 1; i >= 0; i -= 1) {
|
|
373
374
|
oElement = aElements[i];
|
|
374
375
|
|
|
376
|
+
if (oElement.hasAttribute("visibleRowCount")) {
|
|
377
|
+
oRowMode = document.createElementNS("sap.ui.table", "rowMode");
|
|
378
|
+
oElement.appendChild(oRowMode);
|
|
379
|
+
oFixedRowMode = document.createElementNS("sap.ui.table.rowmodes", "Fixed");
|
|
380
|
+
oFixedRowMode.setAttribute("rowCount", oElement.getAttribute("visibleRowCount"));
|
|
381
|
+
oRowMode.appendChild(oFixedRowMode);
|
|
382
|
+
oElement.removeAttribute("visibleRowCount");
|
|
383
|
+
}
|
|
384
|
+
|
|
375
385
|
aChildNodes = oElement.childNodes;
|
|
376
386
|
for (j = aChildNodes.length - 1; j >= 0; j -= 1) {
|
|
377
387
|
oChildNode = aChildNodes[j];
|
|
378
388
|
if (oChildNode.nodeType === Node.ELEMENT_NODE
|
|
379
|
-
&& oChildNode.localName !== "Column"
|
|
389
|
+
&& oChildNode.localName !== "Column"
|
|
390
|
+
&& oChildNode.localName !== "rowMode") {
|
|
380
391
|
oColumn = document.createElementNS("sap.ui.table", "Column");
|
|
381
392
|
oElement.insertBefore(oColumn, oChildNode);
|
|
382
393
|
oElement.removeChild(oChildNode);
|
|
@@ -527,7 +538,7 @@ sap.ui.define([
|
|
|
527
538
|
// {string} sText with the expected text
|
|
528
539
|
this.aValueStates = [];
|
|
529
540
|
|
|
530
|
-
// If the "
|
|
541
|
+
// If the "rowMode" of the sap.ui.table.* is "Auto", the table uses the
|
|
531
542
|
// screen height (Device.resize.height) to compute the amount of contexts it requests
|
|
532
543
|
// initially. Make sure that this is stable across devices.
|
|
533
544
|
this._oSandbox.stub(Device.resize, "height").value(1000);
|
|
@@ -1051,7 +1062,14 @@ sap.ui.define([
|
|
|
1051
1062
|
? vModel
|
|
1052
1063
|
: {undefined : vModel || createSalesOrdersModel()};
|
|
1053
1064
|
this.oModel = mNamedModels.undefined;
|
|
1054
|
-
this.mock(datajs)
|
|
1065
|
+
const oDatajsMock = this.mock(datajs);
|
|
1066
|
+
oDatajsMock.expects("request")
|
|
1067
|
+
.withArgs(/*request*/sinon.match.any, /*success*/sinon.match.any, /*error*/sinon.match.any,
|
|
1068
|
+
sinon.match((handler) => handler !== datajs.metadataHandler),
|
|
1069
|
+
/*httpClient*/sinon.match.any, /*metadata*/sinon.match.any)
|
|
1070
|
+
.atLeast(0).callsFake(checkRequest);
|
|
1071
|
+
// always load $metadata resources via TestUtils fake server, they are not mocked
|
|
1072
|
+
oDatajsMock.expects("request").atLeast(0).callThrough();
|
|
1055
1073
|
//assert.ok(true, sViewXML); // uncomment to see XML in output, in case of parse issues
|
|
1056
1074
|
this.assert = assert;
|
|
1057
1075
|
|
|
@@ -7969,6 +7987,133 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
7969
7987
|
return this.createView(assert, sView);
|
|
7970
7988
|
});
|
|
7971
7989
|
|
|
7990
|
+
//*********************************************************************************************
|
|
7991
|
+
// Scenario: With the binding parameter <code>ignoreMessages</code> the application developer
|
|
7992
|
+
// can control whether messages are displayed at the control. It works for
|
|
7993
|
+
// <code>sap.ui.model.json.JSONPropertyBinding</code>s and composite bindings containing such
|
|
7994
|
+
// bindings.
|
|
7995
|
+
// JIRA: CPOUI5MODELS-1397
|
|
7996
|
+
QUnit.test("JSONPropertyBinding and CompositeBindings: ignoreMessages", function (assert) {
|
|
7997
|
+
var oJSONModel = new JSONModel({
|
|
7998
|
+
data: {SalesOrderID: "1", Note: "Note"}
|
|
7999
|
+
}),
|
|
8000
|
+
oMessage = {
|
|
8001
|
+
processor: oJSONModel,
|
|
8002
|
+
target: ["/data/Note"],
|
|
8003
|
+
message: "Foo",
|
|
8004
|
+
type: MessageType.Warning
|
|
8005
|
+
},
|
|
8006
|
+
sView = '\
|
|
8007
|
+
<FlexBox id="objectPage" binding="{/data}">\
|
|
8008
|
+
<Input id="Note0" value="{Note}" />\
|
|
8009
|
+
<Input id="Note1" value="{path: \'Note\', parameters: {ignoreMessages: false}}" />\
|
|
8010
|
+
<Input id="Note2" value="{path: \'Note\', parameters: {ignoreMessages: true}}" />\
|
|
8011
|
+
<Input id="Composite0" value="{= ${SalesOrderID} + ${value: \' - \'} + ${Note}}" />\
|
|
8012
|
+
<Input id="Composite1" value="{= ${SalesOrderID} + ${value: \' - \'} + ${\
|
|
8013
|
+
path: \'Note\',\
|
|
8014
|
+
parameters: {ignoreMessages: false}\
|
|
8015
|
+
}}" />\
|
|
8016
|
+
<Input id="Composite2" value="{= ${SalesOrderID} + ${value: \' - \'} + ${\
|
|
8017
|
+
path: \'Note\',\
|
|
8018
|
+
parameters: {ignoreMessages: true}\
|
|
8019
|
+
}}" />\
|
|
8020
|
+
<Input id="Composite3" value="{parts: [\'SalesOrderID\', {value: \'-\'}, {\
|
|
8021
|
+
path: \'Note\',\
|
|
8022
|
+
parameters: {ignoreMessages: false}\
|
|
8023
|
+
}]}" />\
|
|
8024
|
+
<Input id="Composite4" value="{parts: [\'SalesOrderID\', {value: \'-\'}, {\
|
|
8025
|
+
path: \'Note\',\
|
|
8026
|
+
parameters: {ignoreMessages: true}\
|
|
8027
|
+
}]}" />\
|
|
8028
|
+
</FlexBox>';
|
|
8029
|
+
|
|
8030
|
+
this.expectValue("Note0", "Note")
|
|
8031
|
+
.expectValue("Note1", "Note")
|
|
8032
|
+
.expectValue("Note2", "Note")
|
|
8033
|
+
.expectValue("Composite0", "1 - Note")
|
|
8034
|
+
.expectValue("Composite1", "1 - Note")
|
|
8035
|
+
.expectValue("Composite2", "1 - Note")
|
|
8036
|
+
.expectValue("Composite3", "1 - Note")
|
|
8037
|
+
.expectValue("Composite4", "1 - Note")
|
|
8038
|
+
.expectValueState("Note0", "Warning", "Foo")
|
|
8039
|
+
.expectValueState("Note1", "Warning", "Foo")
|
|
8040
|
+
.expectValueState("Note2", "None", "")
|
|
8041
|
+
.expectValueState("Composite0", "Warning", "Foo")
|
|
8042
|
+
.expectValueState("Composite1", "Warning", "Foo")
|
|
8043
|
+
.expectValueState("Composite2", "None", "")
|
|
8044
|
+
.expectValueState("Composite3", "Warning", "Foo")
|
|
8045
|
+
.expectValueState("Composite4", "None", "")
|
|
8046
|
+
.expectMessages([oMessage]);
|
|
8047
|
+
|
|
8048
|
+
Messaging.addMessages([new Message(oMessage)]);
|
|
8049
|
+
|
|
8050
|
+
// code under test
|
|
8051
|
+
return this.createView(assert, sView, oJSONModel);
|
|
8052
|
+
});
|
|
8053
|
+
|
|
8054
|
+
//*********************************************************************************************
|
|
8055
|
+
// Scenario: With the binding parameter <code>ignoreMessages</code> the application developer
|
|
8056
|
+
// can control whether messages are displayed at the control. It works for
|
|
8057
|
+
// <code>sap.ui.model.xml.XMLPropertyBinding</code>s and composite bindings containing such
|
|
8058
|
+
// bindings.
|
|
8059
|
+
// JIRA: CPOUI5MODELS-1397
|
|
8060
|
+
QUnit.test("XMLPropertyBinding and CompositeBindings: ignoreMessages", function (assert) {
|
|
8061
|
+
var oXMLModel = new XMLModel(),
|
|
8062
|
+
oMessage = {
|
|
8063
|
+
processor: oXMLModel,
|
|
8064
|
+
target: ["/data/0/@Note"],
|
|
8065
|
+
message: "Foo",
|
|
8066
|
+
type: MessageType.Warning
|
|
8067
|
+
},
|
|
8068
|
+
sView = '\
|
|
8069
|
+
<FlexBox id="objectPage" binding="{/data/0}">\
|
|
8070
|
+
<Input id="Note0" value="{@Note}" />\
|
|
8071
|
+
<Input id="Note1" value="{path: \'@Note\', parameters: {ignoreMessages: false}}" />\
|
|
8072
|
+
<Input id="Note2" value="{path: \'@Note\', parameters: {ignoreMessages: true}}" />\
|
|
8073
|
+
<Input id="Composite0" value="{= ${@SalesOrderID} + ${value: \' - \'} + ${@Note}}" />\
|
|
8074
|
+
<Input id="Composite1" value="{= ${@SalesOrderID} + ${value: \' - \'} + ${\
|
|
8075
|
+
path: \'@Note\',\
|
|
8076
|
+
parameters: {ignoreMessages: false}\
|
|
8077
|
+
}}" />\
|
|
8078
|
+
<Input id="Composite2" value="{= ${@SalesOrderID} + ${value: \' - \'} + ${\
|
|
8079
|
+
path: \'@Note\',\
|
|
8080
|
+
parameters: {ignoreMessages: true}\
|
|
8081
|
+
}}" />\
|
|
8082
|
+
<Input id="Composite3" value="{parts: [\'@SalesOrderID\', {value: \'-\'}, {\
|
|
8083
|
+
path: \'@Note\',\
|
|
8084
|
+
parameters: {ignoreMessages: false}\
|
|
8085
|
+
}]}" />\
|
|
8086
|
+
<Input id="Composite4" value="{parts: [\'@SalesOrderID\', {value: \'-\'}, {\
|
|
8087
|
+
path: \'@Note\',\
|
|
8088
|
+
parameters: {ignoreMessages: true}\
|
|
8089
|
+
}]}" />\
|
|
8090
|
+
</FlexBox>';
|
|
8091
|
+
|
|
8092
|
+
this.expectValue("Note0", "Note")
|
|
8093
|
+
.expectValue("Note1", "Note")
|
|
8094
|
+
.expectValue("Note2", "Note")
|
|
8095
|
+
.expectValue("Composite0", "1 - Note")
|
|
8096
|
+
.expectValue("Composite1", "1 - Note")
|
|
8097
|
+
.expectValue("Composite2", "1 - Note")
|
|
8098
|
+
.expectValue("Composite3", "1 - Note")
|
|
8099
|
+
.expectValue("Composite4", "1 - Note")
|
|
8100
|
+
.expectValueState("Note0", "Warning", "Foo")
|
|
8101
|
+
.expectValueState("Note1", "Warning", "Foo")
|
|
8102
|
+
.expectValueState("Note2", "None", "")
|
|
8103
|
+
.expectValueState("Composite0", "Warning", "Foo")
|
|
8104
|
+
.expectValueState("Composite1", "Warning", "Foo")
|
|
8105
|
+
.expectValueState("Composite2", "None", "")
|
|
8106
|
+
.expectValueState("Composite3", "Warning", "Foo")
|
|
8107
|
+
.expectValueState("Composite4", "None", "")
|
|
8108
|
+
.expectMessages([oMessage]);
|
|
8109
|
+
|
|
8110
|
+
oXMLModel.setXML('<?xml version="1.0"?><root><data SalesOrderID="1" Note="Note"/></root>');
|
|
8111
|
+
Messaging.addMessages([new Message(oMessage)]);
|
|
8112
|
+
|
|
8113
|
+
// code under test
|
|
8114
|
+
return this.createView(assert, sView, oXMLModel);
|
|
8115
|
+
});
|
|
8116
|
+
|
|
7972
8117
|
//*********************************************************************************************
|
|
7973
8118
|
// Scenario: With the binding parameter <code>ignoreMessages</code> the application developer
|
|
7974
8119
|
// can control whether messages are displayed at the control. For
|
|
@@ -10116,8 +10261,7 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
10116
10261
|
<t:TreeTable id="table"\
|
|
10117
10262
|
rows="{path : \'to_AllwncReqToFe\', parameters : \
|
|
10118
10263
|
{countMode : \'Inline\', groupId : \'myGroup\', usePreliminaryContext : true}}"\
|
|
10119
|
-
visibleRowCount="1"
|
|
10120
|
-
visibleRowCountMode="Fixed">\
|
|
10264
|
+
visibleRowCount="1">\
|
|
10121
10265
|
<Text id="orgID" text="{ForceElementOrgID}" />\
|
|
10122
10266
|
</t:TreeTable>\
|
|
10123
10267
|
</FlexBox>';
|
|
@@ -10186,8 +10330,7 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
10186
10330
|
path : \'/C_RSHMaintSchedSmltdOrdAndOp\'\
|
|
10187
10331
|
}"\
|
|
10188
10332
|
threshold="0"\
|
|
10189
|
-
visibleRowCount="1"
|
|
10190
|
-
visibleRowCountMode="Fixed">\
|
|
10333
|
+
visibleRowCount="1">\
|
|
10191
10334
|
<Text id="maintenanceOrder" text="{MaintenanceOrder}" />\
|
|
10192
10335
|
</t:TreeTable>',
|
|
10193
10336
|
that = this;
|
|
@@ -10290,8 +10433,7 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
10290
10433
|
},\
|
|
10291
10434
|
path : \'to_C_RSHMaintSchedSmltdOrdAndOp\'\
|
|
10292
10435
|
}"\
|
|
10293
|
-
visibleRowCount="1"
|
|
10294
|
-
visibleRowCountMode="Fixed">\
|
|
10436
|
+
visibleRowCount="1">\
|
|
10295
10437
|
<Text id="maintenanceOrder" text="{MaintenanceOrder}" />\
|
|
10296
10438
|
</t:TreeTable>\
|
|
10297
10439
|
</FlexBox>',
|
|
@@ -10683,8 +10825,7 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
10683
10825
|
path : \'/C_RSHMaintSchedSmltdOrdAndOp\'\
|
|
10684
10826
|
}"\
|
|
10685
10827
|
threshold="0"\
|
|
10686
|
-
visibleRowCount="2"
|
|
10687
|
-
visibleRowCountMode="Fixed">\
|
|
10828
|
+
visibleRowCount="2">\
|
|
10688
10829
|
<Text id="maintenanceOrder" text="{MaintenanceOrder}" />\
|
|
10689
10830
|
</t:TreeTable>',
|
|
10690
10831
|
that = this;
|
|
@@ -10799,8 +10940,7 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
10799
10940
|
},\
|
|
10800
10941
|
path : \'/C_RSHMaintSchedSmltdOrdAndOp\'\
|
|
10801
10942
|
}"\
|
|
10802
|
-
visibleRowCount="2"
|
|
10803
|
-
visibleRowCountMode="Fixed">\
|
|
10943
|
+
visibleRowCount="2">\
|
|
10804
10944
|
<Text text="{MaintenanceOrder}" />\
|
|
10805
10945
|
</t:TreeTable>';
|
|
10806
10946
|
|
|
@@ -17844,8 +17984,7 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
17844
17984
|
},\
|
|
17845
17985
|
path : \'/ErhaOrder(\\\'1\\\')/to_Item\'\
|
|
17846
17986
|
}"\
|
|
17847
|
-
visibleRowCount="3"
|
|
17848
|
-
visibleRowCountMode="Fixed">\
|
|
17987
|
+
visibleRowCount="3">\
|
|
17849
17988
|
<Text id="itemName" text="{ErhaOrderItemName}" />\
|
|
17850
17989
|
</t:TreeTable>',
|
|
17851
17990
|
that = this;
|
|
@@ -17995,8 +18134,7 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
17995
18134
|
},\
|
|
17996
18135
|
path : \'/ErhaOrder(\\\'1\\\')/to_Item\'\
|
|
17997
18136
|
}"\
|
|
17998
|
-
visibleRowCount="3"
|
|
17999
|
-
visibleRowCountMode="Fixed">\
|
|
18137
|
+
visibleRowCount="3">\
|
|
18000
18138
|
<Text id="itemName" text="{ErhaOrderItemName}" />\
|
|
18001
18139
|
</t:TreeTable>',
|
|
18002
18140
|
that = this;
|
|
@@ -18158,8 +18296,7 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
18158
18296
|
},\
|
|
18159
18297
|
path : \'/ErhaOrder(\\\'1\\\')/to_Item\'\
|
|
18160
18298
|
}"\
|
|
18161
|
-
visibleRowCount="3"
|
|
18162
|
-
visibleRowCountMode="Fixed">\
|
|
18299
|
+
visibleRowCount="3">\
|
|
18163
18300
|
<Text id="itemName" text="{ErhaOrderItemName}" />\
|
|
18164
18301
|
</t:TreeTable>',
|
|
18165
18302
|
that = this;
|
|
@@ -18314,8 +18451,7 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
18314
18451
|
},\
|
|
18315
18452
|
path : \'/ErhaOrder(\\\'1\\\')/to_Item\'\
|
|
18316
18453
|
}"\
|
|
18317
|
-
visibleRowCount="3"
|
|
18318
|
-
visibleRowCountMode="Fixed">\
|
|
18454
|
+
visibleRowCount="3">\
|
|
18319
18455
|
<Text id="itemName" text="{ErhaOrderItemName}" />\
|
|
18320
18456
|
</t:TreeTable>',
|
|
18321
18457
|
that = this;
|
|
@@ -18477,8 +18613,7 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
18477
18613
|
},\
|
|
18478
18614
|
path : \'/ErhaOrder(\\\'1\\\')/to_Item\'\
|
|
18479
18615
|
}"\
|
|
18480
|
-
visibleRowCount="3"
|
|
18481
|
-
visibleRowCountMode="Fixed">\
|
|
18616
|
+
visibleRowCount="3">\
|
|
18482
18617
|
<Text id="itemName" text="{ErhaOrderItemName}" />\
|
|
18483
18618
|
</t:TreeTable>',
|
|
18484
18619
|
that = this;
|
|
@@ -18742,8 +18877,7 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
18742
18877
|
},\
|
|
18743
18878
|
path : \'/ErhaOrder(\\\'1\\\')/to_Item\'\
|
|
18744
18879
|
}"\
|
|
18745
|
-
visibleRowCount="4"
|
|
18746
|
-
visibleRowCountMode="Fixed">\
|
|
18880
|
+
visibleRowCount="4">\
|
|
18747
18881
|
<Text id="itemName" text="{ErhaOrderItemName}" />\
|
|
18748
18882
|
</t:TreeTable>',
|
|
18749
18883
|
that = this;
|
|
@@ -18907,8 +19041,7 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
18907
19041
|
},\
|
|
18908
19042
|
path : \'/ErhaOrder(\\\'1\\\')/to_Item\'\
|
|
18909
19043
|
}"\
|
|
18910
|
-
visibleRowCount="3"
|
|
18911
|
-
visibleRowCountMode="Fixed">\
|
|
19044
|
+
visibleRowCount="3">\
|
|
18912
19045
|
<Text id="itemName" text="{ErhaOrderItemName}" />\
|
|
18913
19046
|
</t:TreeTable>',
|
|
18914
19047
|
that = this;
|
|
@@ -19042,8 +19175,7 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
19042
19175
|
},\
|
|
19043
19176
|
path : \'/ErhaOrder(\\\'1\\\')/to_Item\'\
|
|
19044
19177
|
}"\
|
|
19045
|
-
visibleRowCount="2"
|
|
19046
|
-
visibleRowCountMode="Fixed">\
|
|
19178
|
+
visibleRowCount="2">\
|
|
19047
19179
|
<Text id="itemName" text="{ErhaOrderItemName}" />\
|
|
19048
19180
|
</t:TreeTable>',
|
|
19049
19181
|
that = this;
|
|
@@ -19248,6 +19380,97 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
19248
19380
|
});
|
|
19249
19381
|
});
|
|
19250
19382
|
|
|
19383
|
+
//*********************************************************************************************
|
|
19384
|
+
// Scenario: A table has an inactive created entity and a 'createActivate' event handler
|
|
19385
|
+
// suppresses the activation until all conditions are fulfilled. After re-binding the table the
|
|
19386
|
+
// activation is still only done if all conditions are fulfilled. Destroyed bindings don't
|
|
19387
|
+
// influence the activation.
|
|
19388
|
+
// BCP: 2380123522
|
|
19389
|
+
QUnit.test("ODataListBinding: createActivate-event works with destroyed bindings", function (assert) {
|
|
19390
|
+
var oBinding, oCreatedContext, oTable,
|
|
19391
|
+
oModel = createSalesOrdersModel({defaultBindingMode: BindingMode.TwoWay, refreshAfterChange: false}),
|
|
19392
|
+
sView = '\
|
|
19393
|
+
<t:Table id="table" rows="{/BusinessPartnerSet}" visibleRowCount="2">\
|
|
19394
|
+
<Input id="company" value="{CompanyName}"/>\
|
|
19395
|
+
</t:Table>',
|
|
19396
|
+
that = this;
|
|
19397
|
+
|
|
19398
|
+
function onCreateActivate(oEvent) {
|
|
19399
|
+
assert.strictEqual(oEvent.getParameter("context"), oCreatedContext);
|
|
19400
|
+
assert.strictEqual(oCreatedContext.isInactive(), true);
|
|
19401
|
+
if (oCreatedContext.getObject("").CompanyName !== "SAP") {
|
|
19402
|
+
oEvent.preventDefault();
|
|
19403
|
+
}
|
|
19404
|
+
}
|
|
19405
|
+
|
|
19406
|
+
this.expectHeadRequest()
|
|
19407
|
+
.expectRequest("BusinessPartnerSet?$skip=0&$top=102", {results: []})
|
|
19408
|
+
.expectValue("company", ["", ""]);
|
|
19409
|
+
|
|
19410
|
+
return this.createView(assert, sView, oModel).then(function () {
|
|
19411
|
+
oTable = that.oView.byId("table");
|
|
19412
|
+
oBinding = oTable.getBinding("rows");
|
|
19413
|
+
|
|
19414
|
+
that.expectValue("company", "Initial", 0);
|
|
19415
|
+
|
|
19416
|
+
// code under test: attach createActivate on initial binding; create inactive entity
|
|
19417
|
+
oBinding.attachCreateActivate(onCreateActivate);
|
|
19418
|
+
oCreatedContext = oBinding.create({CompanyName: "Initial"}, false, {inactive: true});
|
|
19419
|
+
|
|
19420
|
+
return that.waitForChanges(assert);
|
|
19421
|
+
}).then(function () {
|
|
19422
|
+
that.expectValue("company", "Foo", 0);
|
|
19423
|
+
|
|
19424
|
+
// code under test: change the value that prevents activation
|
|
19425
|
+
oTable.getRows()[0].getCells()[0].setValue("Foo");
|
|
19426
|
+
oModel.submitChanges();
|
|
19427
|
+
|
|
19428
|
+
return that.waitForChanges(assert);
|
|
19429
|
+
}).then(function () {
|
|
19430
|
+
that.expectRequest("BusinessPartnerSet?$skip=0&$top=102", {results: []});
|
|
19431
|
+
|
|
19432
|
+
// code under test: rebind table and attach event on new binding
|
|
19433
|
+
oTable.bindRows(oTable.getBindingInfo("rows"));
|
|
19434
|
+
oBinding = oTable.getBinding("rows");
|
|
19435
|
+
oBinding.attachCreateActivate(onCreateActivate);
|
|
19436
|
+
oModel.submitChanges();
|
|
19437
|
+
|
|
19438
|
+
return that.waitForChanges(assert);
|
|
19439
|
+
}).then(function () {
|
|
19440
|
+
that.expectValue("company", "Bar", 0);
|
|
19441
|
+
|
|
19442
|
+
// code under test: on new binding change value that still not activate the entry
|
|
19443
|
+
oTable.getRows()[0].getCells()[0].setValue("Bar");
|
|
19444
|
+
oModel.submitChanges();
|
|
19445
|
+
|
|
19446
|
+
return that.waitForChanges(assert);
|
|
19447
|
+
}).then(function () {
|
|
19448
|
+
that.expectRequest({
|
|
19449
|
+
created: true,
|
|
19450
|
+
data: {
|
|
19451
|
+
__metadata: {type: "GWSAMPLE_BASIC.BusinessPartner"},
|
|
19452
|
+
CompanyName: "SAP"
|
|
19453
|
+
},
|
|
19454
|
+
method: "POST",
|
|
19455
|
+
requestUri: "BusinessPartnerSet"
|
|
19456
|
+
}, {
|
|
19457
|
+
data: {
|
|
19458
|
+
__metadata: {uri: "BusinessPartnerSet('42')"},
|
|
19459
|
+
BusinessPartnerID: "42",
|
|
19460
|
+
CompanyName: "SAP"
|
|
19461
|
+
},
|
|
19462
|
+
statusCode: 201
|
|
19463
|
+
})
|
|
19464
|
+
.expectValue("company", "SAP", 0);
|
|
19465
|
+
|
|
19466
|
+
// code under test: change the value that activation is done
|
|
19467
|
+
oTable.getRows()[0].getCells()[0].setValue("SAP");
|
|
19468
|
+
oModel.submitChanges();
|
|
19469
|
+
|
|
19470
|
+
return that.waitForChanges(assert);
|
|
19471
|
+
});
|
|
19472
|
+
});
|
|
19473
|
+
|
|
19251
19474
|
//*********************************************************************************************
|
|
19252
19475
|
// Scenario: For a transient entity, transient sub-entities are created for its :n-navigation
|
|
19253
19476
|
// property. The complete deep create object is created in back-end via one POST request.
|
|
@@ -20228,8 +20451,7 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
20228
20451
|
{path : \'CreatedByUser\', operator : \'EQ\', value1 : \'user1\'}\
|
|
20229
20452
|
]\
|
|
20230
20453
|
}"\
|
|
20231
|
-
visibleRowCount="4"
|
|
20232
|
-
visibleRowCountMode="Fixed">\
|
|
20454
|
+
visibleRowCount="4">\
|
|
20233
20455
|
<Text id="itemName" text="{ErhaOrderItemName}" />\
|
|
20234
20456
|
</t:TreeTable>',
|
|
20235
20457
|
that = this;
|
|
@@ -20431,4 +20653,232 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
20431
20653
|
return that.waitForChanges(assert);
|
|
20432
20654
|
});
|
|
20433
20655
|
});
|
|
20656
|
+
|
|
20657
|
+
//*********************************************************************************************
|
|
20658
|
+
// Scenario: If the server uses server side paging and the OData model uses "Client" mode all
|
|
20659
|
+
// data is requested up to the model size limit.
|
|
20660
|
+
// BCP: 2380127053
|
|
20661
|
+
[false, true].forEach(function (bShortRead) {
|
|
20662
|
+
QUnit.test("OperationMode.Client: with server side paging, short read:" + bShortRead, function (assert) {
|
|
20663
|
+
var oTable,
|
|
20664
|
+
iDataReceived = 0,
|
|
20665
|
+
iDataRequested = 0,
|
|
20666
|
+
iExpectedSize = bShortRead ? 15 : 30,
|
|
20667
|
+
oModel = createSalesOrdersModel({defaultOperationMode: "Client"}),
|
|
20668
|
+
sView = '\
|
|
20669
|
+
<t:Table id="table">\
|
|
20670
|
+
<Text id="note" text="{Note}"/>\
|
|
20671
|
+
</t:Table>',
|
|
20672
|
+
that = this;
|
|
20673
|
+
|
|
20674
|
+
function dataRequested() {
|
|
20675
|
+
iDataRequested += 1;
|
|
20676
|
+
}
|
|
20677
|
+
function dataReceived(oEvent) {
|
|
20678
|
+
var oEventData = oEvent.getParameter("data");
|
|
20679
|
+
|
|
20680
|
+
iDataReceived += 1;
|
|
20681
|
+
// responses are merged
|
|
20682
|
+
assert.strictEqual(oEventData.results.length, iExpectedSize);
|
|
20683
|
+
oEventData.results.forEach((oData, i) => {
|
|
20684
|
+
assert.strictEqual(oData.Note, "SO" + (i + 1));
|
|
20685
|
+
});
|
|
20686
|
+
assert.strictEqual(oEventData.__count, "" + iExpectedSize);
|
|
20687
|
+
}
|
|
20688
|
+
|
|
20689
|
+
oModel.setSizeLimit(30);
|
|
20690
|
+
|
|
20691
|
+
return this.createView(assert, sView, oModel).then(function () {
|
|
20692
|
+
function createItems(iFrom, iLength) {
|
|
20693
|
+
var i,
|
|
20694
|
+
aItems = [];
|
|
20695
|
+
|
|
20696
|
+
for (i = 0; i < iLength; i += 1) {
|
|
20697
|
+
aItems.push({
|
|
20698
|
+
__metadata: {uri : "SalesOrderSet('" + iFrom + "')"},
|
|
20699
|
+
Note: "SO" + iFrom,
|
|
20700
|
+
SalesOrderID: "" + iFrom
|
|
20701
|
+
});
|
|
20702
|
+
iFrom += 1;
|
|
20703
|
+
}
|
|
20704
|
+
|
|
20705
|
+
return aItems;
|
|
20706
|
+
}
|
|
20707
|
+
|
|
20708
|
+
that.expectHeadRequest()
|
|
20709
|
+
.expectRequest("SalesOrderSet", {
|
|
20710
|
+
__next: "/sap/opu/odata/sap/ZUI5_GWSAMPLE_BASIC/SalesOrderSet?$skiptoken=3",
|
|
20711
|
+
results: createItems(1, 3) // whitout $top server returns 3; in real maybe 100
|
|
20712
|
+
})
|
|
20713
|
+
.expectRequest("SalesOrderSet?$skip=3&$top=27", {
|
|
20714
|
+
// if $top is given server limit is used; here 10, in real maybe 5000
|
|
20715
|
+
__next: "/sap/opu/odata/sap/ZUI5_GWSAMPLE_BASIC/SalesOrderSet?$top=24$skiptoken=13",
|
|
20716
|
+
results: createItems(4, 10)
|
|
20717
|
+
})
|
|
20718
|
+
.expectRequest("SalesOrderSet?$skip=13&$top=17", {
|
|
20719
|
+
// no _next link, that means server returned all requestd entries; there may be
|
|
20720
|
+
// more on the server but the amount of data exceeds the model size limit
|
|
20721
|
+
results: createItems(14, bShortRead ? 2 : 17)
|
|
20722
|
+
});
|
|
20723
|
+
|
|
20724
|
+
oTable = that.oView.byId("table");
|
|
20725
|
+
// code under test - client mode reads all data
|
|
20726
|
+
oTable.bindRows({
|
|
20727
|
+
events: {
|
|
20728
|
+
dataRequested: dataRequested,
|
|
20729
|
+
dataReceived: dataReceived
|
|
20730
|
+
},
|
|
20731
|
+
filter: [new Filter("GrossAmount", FilterOperator.GT, 500)],
|
|
20732
|
+
path: "/SalesOrderSet",
|
|
20733
|
+
sorter: [new Sorter("CompanyCode", true)]
|
|
20734
|
+
});
|
|
20735
|
+
|
|
20736
|
+
return that.waitForChanges(assert);
|
|
20737
|
+
}).then(function () {
|
|
20738
|
+
var oBinding = oTable.getBinding("rows");
|
|
20739
|
+
|
|
20740
|
+
assert.strictEqual(oBinding.getLength(), iExpectedSize);
|
|
20741
|
+
assert.strictEqual(oBinding.getCount(), iExpectedSize);
|
|
20742
|
+
assert.strictEqual(iDataRequested, 1);
|
|
20743
|
+
assert.strictEqual(iDataReceived, 1);
|
|
20744
|
+
});
|
|
20745
|
+
});
|
|
20746
|
+
});
|
|
20747
|
+
|
|
20748
|
+
//*********************************************************************************************
|
|
20749
|
+
// Scenario: Skip server cache for security tokens, so that two services running on different backends behind
|
|
20750
|
+
// a reverse proxy can be consumed without a failing $batch due to a token for a different system taken from server
|
|
20751
|
+
// cache.
|
|
20752
|
+
// JIRA:CPOUI5MODELS-1381
|
|
20753
|
+
QUnit.test("Skip server cache for security tokens", function (assert) {
|
|
20754
|
+
const sView = '\
|
|
20755
|
+
<FlexBox binding="{/SalesOrderSet(\'1\')}">\
|
|
20756
|
+
<Text id="id0" text="{SalesOrderID}" />\
|
|
20757
|
+
</FlexBox>\
|
|
20758
|
+
<FlexBox id="box1">\
|
|
20759
|
+
<Text id="id1" text="{model1>ContactCardID}" />\
|
|
20760
|
+
</FlexBox>';
|
|
20761
|
+
|
|
20762
|
+
function checkServiceCache(aTokens) {
|
|
20763
|
+
const oServiceCache = ODataModel.mSharedData.service;
|
|
20764
|
+
assert.deepEqual(
|
|
20765
|
+
Object.values(oServiceCache).map((oCacheEntry) => oCacheEntry.securityToken).sort(),
|
|
20766
|
+
aTokens.sort());
|
|
20767
|
+
}
|
|
20768
|
+
|
|
20769
|
+
function clearCaches() {
|
|
20770
|
+
ODataModel.mSharedData.server = {};
|
|
20771
|
+
ODataModel.mSharedData.service = {};
|
|
20772
|
+
}
|
|
20773
|
+
|
|
20774
|
+
clearCaches(); // clear static caches on ODataModel to prevent effects from previous tests
|
|
20775
|
+
// create model *after* clearing the caches as the token is lost otherwise
|
|
20776
|
+
const oModel0 = createSalesOrdersModel({tokenHandling : "skipServerCache"});
|
|
20777
|
+
this.expectRequest({
|
|
20778
|
+
deepPath : "",
|
|
20779
|
+
headers : {"x-csrf-token" : "Fetch"},
|
|
20780
|
+
method : "HEAD",
|
|
20781
|
+
requestUri : ""
|
|
20782
|
+
}, {}, {"x-csrf-token" : "token0"})
|
|
20783
|
+
.expectRequest("SalesOrderSet('1')", {
|
|
20784
|
+
SalesOrderID : "1"
|
|
20785
|
+
})
|
|
20786
|
+
.expectValue("id0", "1");
|
|
20787
|
+
|
|
20788
|
+
// code under test
|
|
20789
|
+
return this.createView(assert, sView, oModel0).then(() => {
|
|
20790
|
+
checkServiceCache(["token0"]);
|
|
20791
|
+
|
|
20792
|
+
this.expectRequest({
|
|
20793
|
+
deepPath : "",
|
|
20794
|
+
headers : {"x-csrf-token" : "Fetch"},
|
|
20795
|
+
method : "HEAD",
|
|
20796
|
+
requestUri : "/special/cases/"
|
|
20797
|
+
}, {}, {"x-csrf-token" : "token1"})
|
|
20798
|
+
.expectRequest({
|
|
20799
|
+
requestUri : "I_UserContactCard('ID')"
|
|
20800
|
+
}, {
|
|
20801
|
+
ContactCardID : "ID"
|
|
20802
|
+
})
|
|
20803
|
+
.expectValue("id1", "ID");
|
|
20804
|
+
|
|
20805
|
+
// code under test: request data for second service *after* security token for first has been retrieved
|
|
20806
|
+
const oModel1 = createSpecialCasesModel({tokenHandling : "skipServerCache"});
|
|
20807
|
+
this.oView.setModel(oModel1, "model1");
|
|
20808
|
+
this.oView.byId("box1").bindElement("model1>/I_UserContactCard('ID')");
|
|
20809
|
+
|
|
20810
|
+
assert.deepEqual(ODataModel.mSharedData.server, {}, "server cache for tokens is empty");
|
|
20811
|
+
|
|
20812
|
+
return this.waitForChanges(assert);
|
|
20813
|
+
}).then(() => {
|
|
20814
|
+
checkServiceCache(["token0", "token1"]);
|
|
20815
|
+
}).finally(clearCaches);
|
|
20816
|
+
});
|
|
20817
|
+
//*********************************************************************************************
|
|
20818
|
+
// Scenario: For a table where transient entries have messages, the filter returned by requestFilterForMessages does
|
|
20819
|
+
// not refer to these entries. For the BCP incident, check the case no item loaded from the backend has a message:
|
|
20820
|
+
// the filter is null then.
|
|
20821
|
+
// BCP: 2370088390
|
|
20822
|
+
QUnit.test("Filter table where only transient items have messages", function (assert) {
|
|
20823
|
+
let oCreatedContext, oRowsBinding;
|
|
20824
|
+
const oModel = createSalesOrdersModel({preliminaryContext : true});
|
|
20825
|
+
const sView = '\
|
|
20826
|
+
<t:Table id="table" rows="{/SalesOrderSet(\'1\')/ToLineItems}" visibleRowCount="2">\
|
|
20827
|
+
<Input id="itemPosition" value="{ItemPosition}" />\
|
|
20828
|
+
<Input id="note" value="{Note}" />\
|
|
20829
|
+
</t:Table>';
|
|
20830
|
+
|
|
20831
|
+
this.expectHeadRequest()
|
|
20832
|
+
.expectRequest({
|
|
20833
|
+
requestUri : "SalesOrderSet('1')/ToLineItems?$skip=0&$top=102"
|
|
20834
|
+
}, {
|
|
20835
|
+
results : [{
|
|
20836
|
+
__metadata : {
|
|
20837
|
+
uri : "SalesOrderLineItemSet(SalesOrderID='1',ItemPosition='10')"
|
|
20838
|
+
},
|
|
20839
|
+
Note : "Bar",
|
|
20840
|
+
ItemPosition : "10",
|
|
20841
|
+
SalesOrderID : "1"
|
|
20842
|
+
}, {
|
|
20843
|
+
__metadata : {
|
|
20844
|
+
uri : "SalesOrderLineItemSet(SalesOrderID='1',ItemPosition='20')"
|
|
20845
|
+
},
|
|
20846
|
+
Note : "Baz",
|
|
20847
|
+
ItemPosition : "20",
|
|
20848
|
+
SalesOrderID : "1"
|
|
20849
|
+
}]
|
|
20850
|
+
})
|
|
20851
|
+
.expectValue("itemPosition", ["10", "20"])
|
|
20852
|
+
.expectValue("note", ["Bar", "Baz"]);
|
|
20853
|
+
|
|
20854
|
+
return this.createView(assert, sView, oModel).then(() => {
|
|
20855
|
+
this.expectValue("itemPosition", ["", "10"])
|
|
20856
|
+
.expectValue("note", ["Foo", "Bar"]);
|
|
20857
|
+
|
|
20858
|
+
// code under test
|
|
20859
|
+
oRowsBinding = this.oView.byId("table").getBinding("rows");
|
|
20860
|
+
oCreatedContext = oRowsBinding.create({Note : "Foo"}, /*bAtEnd*/ false, {inactive: true});
|
|
20861
|
+
|
|
20862
|
+
return this.waitForChanges(assert);
|
|
20863
|
+
}).then(() => {
|
|
20864
|
+
const oMessage = { // usually, this message occurs on activation
|
|
20865
|
+
message: "Item position is required",
|
|
20866
|
+
type: "Error",
|
|
20867
|
+
target: oCreatedContext.getPath() + "/ItemPosition",
|
|
20868
|
+
fullTarget: oCreatedContext.getDeepPath() + "/ItemPosition",
|
|
20869
|
+
processor: oModel
|
|
20870
|
+
};
|
|
20871
|
+
this.expectMessages(oMessage);
|
|
20872
|
+
|
|
20873
|
+
// code under test
|
|
20874
|
+
Messaging.addMessages(new Message(oMessage));
|
|
20875
|
+
|
|
20876
|
+
return Promise.all([
|
|
20877
|
+
oRowsBinding.requestFilterForMessages(),
|
|
20878
|
+
this.waitForChanges(assert)
|
|
20879
|
+
]);
|
|
20880
|
+
}).then((aResults) => {
|
|
20881
|
+
assert.strictEqual(aResults[0], null, "no message filter, only transient item has message");
|
|
20882
|
+
});
|
|
20883
|
+
});
|
|
20434
20884
|
});
|