@openui5/sap.ui.core 1.123.1 → 1.124.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/jquery.sap.global.js +1 -1
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/Event.js +1 -1
- package/src/sap/base/Eventing.js +1 -1
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/future.js +66 -6
- package/src/sap/base/i18n/LanguageTag.js +1 -1
- package/src/sap/base/i18n/date/TimezoneUtils.js +11 -5
- package/src/sap/base/util/LoaderExtensions.js +1 -5
- package/src/sap/base/util/Version.js +18 -12
- package/src/sap/base/util/defineCoupledProperty.js +4 -1
- package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
- package/src/sap/base/util/restricted/_castArray.js +1 -1
- package/src/sap/base/util/restricted/_compact.js +1 -1
- package/src/sap/base/util/restricted/_curry.js +1 -1
- package/src/sap/base/util/restricted/_debounce.js +1 -1
- package/src/sap/base/util/restricted/_difference.js +1 -1
- package/src/sap/base/util/restricted/_differenceBy.js +1 -1
- package/src/sap/base/util/restricted/_differenceWith.js +1 -1
- package/src/sap/base/util/restricted/_flatMap.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
- package/src/sap/base/util/restricted/_flatten.js +1 -1
- package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
- package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
- package/src/sap/base/util/restricted/_intersection.js +1 -1
- package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
- package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
- package/src/sap/base/util/restricted/_isEqual.js +1 -1
- package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
- package/src/sap/base/util/restricted/_isNil.js +1 -1
- package/src/sap/base/util/restricted/_max.js +1 -1
- package/src/sap/base/util/restricted/_merge.js +1 -1
- package/src/sap/base/util/restricted/_mergeWith.js +1 -1
- package/src/sap/base/util/restricted/_min.js +1 -1
- package/src/sap/base/util/restricted/_omit.js +1 -1
- package/src/sap/base/util/restricted/_pick.js +1 -1
- package/src/sap/base/util/restricted/_pickBy.js +1 -1
- package/src/sap/base/util/restricted/_throttle.js +1 -1
- package/src/sap/base/util/restricted/_toArray.js +1 -1
- package/src/sap/base/util/restricted/_union.js +1 -1
- package/src/sap/base/util/restricted/_unionBy.js +1 -1
- package/src/sap/base/util/restricted/_unionWith.js +1 -1
- package/src/sap/base/util/restricted/_uniq.js +1 -1
- package/src/sap/base/util/restricted/_uniqBy.js +1 -1
- package/src/sap/base/util/restricted/_uniqWith.js +1 -1
- package/src/sap/base/util/restricted/_without.js +1 -1
- package/src/sap/base/util/restricted/_xor.js +1 -1
- package/src/sap/base/util/restricted/_xorBy.js +1 -1
- package/src/sap/base/util/restricted/_xorWith.js +1 -1
- package/src/sap/base/util/restricted/_zipObject.js +1 -1
- package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +4 -4
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +1 -2
- 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 +1 -1
- package/src/sap/ui/base/Metadata.js +26 -2
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +3 -3
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +54 -75
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- package/src/sap/ui/core/ComponentMetadata.js +33 -21
- package/src/sap/ui/core/ComponentSupport.js +4 -4
- package/src/sap/ui/core/Configuration.js +1 -1
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +1 -1
- 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 +37 -12
- 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/ExtensionPoint.js +4 -2
- 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 +1 -1
- package/src/sap/ui/core/Item.js +1 -1
- package/src/sap/ui/core/LabelEnablement.js +88 -28
- package/src/sap/ui/core/LayoutData.js +1 -1
- package/src/sap/ui/core/Lib.js +36 -11
- 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 +44 -21
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Popup.js +5 -1
- package/src/sap/ui/core/RenderManager.js +1 -1
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +1 -1
- package/src/sap/ui/core/UIComponent.js +94 -42
- package/src/sap/ui/core/UIComponentMetadata.js +5 -1
- package/src/sap/ui/core/ValueStateSupport.js +1 -1
- package/src/sap/ui/core/VariantLayoutData.js +1 -1
- package/src/sap/ui/core/XMLComposite.js +1 -1
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/XMLTemplateProcessor.js +23 -12
- package/src/sap/ui/core/date/UI5Date.js +1 -1
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
- package/src/sap/ui/core/dnd/DragInfo.js +1 -1
- package/src/sap/ui/core/dnd/DropInfo.js +1 -1
- package/src/sap/ui/core/format/FormatUtils.js +1 -1
- package/src/sap/ui/core/format/NumberFormat.js +1 -1
- package/src/sap/ui/core/format/TimezoneUtil.js +86 -10
- package/src/sap/ui/core/getCompatibilityVersion.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +3 -3
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +1 -1
- package/src/sap/ui/core/message/MessageManager.js +1 -1
- package/src/sap/ui/core/message/MessageParser.js +1 -1
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/messagebundle_sh.properties +65 -65
- package/src/sap/ui/core/mvc/Controller.js +2 -2
- package/src/sap/ui/core/mvc/ControllerExtensionProvider.js +2 -0
- package/src/sap/ui/core/mvc/EventHandlerResolver.js +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +1 -1
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +1 -1
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +12 -3
- package/src/sap/ui/core/mvc/XMLView.js +7 -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/Targets.js +1 -1
- package/src/sap/ui/core/rules/App.support.js +11 -11
- package/src/sap/ui/core/rules/CoreHelper.support.js +3 -3
- package/src/sap/ui/core/rules/Theming.support.js +3 -3
- 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 +1 -1
- package/src/sap/ui/core/support/plugins/ControlTree.js +1 -1
- package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +1 -1
- package/src/sap/ui/core/support/plugins/Selector.js +1 -1
- package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
- package/src/sap/ui/core/support/techinfo/moduleTreeHelper.js +1 -1
- package/src/sap/ui/core/theming/Parameters.js +23 -27
- 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/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
- package/src/sap/ui/core/webc/WebComponent.js +1 -1
- package/src/sap/ui/core/webc/WebComponentMetadata.js +1 -1
- package/src/sap/ui/core/ws/ReadyState.js +1 -1
- package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
- package/src/sap/ui/core/ws/WebSocket.js +1 -1
- package/src/sap/ui/debug/ControlTree.js +1 -1
- package/src/sap/ui/debug/DebugEnv.js +1 -1
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/ClientTreeBindingAdapter.js +7 -5
- package/src/sap/ui/model/CompositeBinding.js +9 -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 +26 -2
- package/src/sap/ui/model/DataState.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/PropertyBinding.js +113 -35
- 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/TreeBindingAdapter.js +5 -5
- package/src/sap/ui/model/TreeBindingCompatibilityAdapter.js +6 -6
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalBinding.js +2 -0
- 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/ODataMessageParser.js +3 -5
- 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 +24 -1
- package/src/sap/ui/model/odata/type/Date.js +1 -1
- package/src/sap/ui/model/odata/type/DateTime.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +1 -1
- package/src/sap/ui/model/odata/type/Decimal.js +1 -1
- package/src/sap/ui/model/odata/type/Double.js +1 -1
- package/src/sap/ui/model/odata/type/Guid.js +1 -1
- package/src/sap/ui/model/odata/type/Int.js +1 -1
- package/src/sap/ui/model/odata/type/Int16.js +1 -1
- package/src/sap/ui/model/odata/type/Int32.js +1 -1
- package/src/sap/ui/model/odata/type/Int64.js +1 -1
- package/src/sap/ui/model/odata/type/ODataType.js +1 -1
- package/src/sap/ui/model/odata/type/Raw.js +1 -1
- package/src/sap/ui/model/odata/type/SByte.js +1 -1
- package/src/sap/ui/model/odata/type/Single.js +1 -1
- package/src/sap/ui/model/odata/type/Stream.js +1 -1
- package/src/sap/ui/model/odata/type/String.js +1 -1
- package/src/sap/ui/model/odata/type/Time.js +1 -1
- package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
- package/src/sap/ui/model/odata/type/Unit.js +24 -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/ODataModel.js +6 -9
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +74 -67
- package/src/sap/ui/model/odata/v4/ODataBinding.js +31 -39
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +8 -20
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +162 -95
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataModel.js +8 -5
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +5 -3
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -17
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +204 -177
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +9 -3
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +10 -32
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +18 -0
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +6 -3
- package/src/sap/ui/model/odata/v4/lib/_TreeState.js +35 -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 +6 -3
- package/src/sap/ui/model/type/Date.js +1 -1
- package/src/sap/ui/model/type/DateInterval.js +1 -1
- package/src/sap/ui/model/type/DateTime.js +1 -1
- package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
- package/src/sap/ui/model/type/FileSize.js +1 -1
- package/src/sap/ui/model/type/Float.js +1 -1
- package/src/sap/ui/model/type/Integer.js +1 -1
- package/src/sap/ui/model/type/String.js +1 -1
- package/src/sap/ui/model/type/Time.js +1 -1
- package/src/sap/ui/model/type/TimeInterval.js +1 -1
- package/src/sap/ui/model/type/Unit.js +6 -3
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/test/ModuleTracking.js +1 -2
- package/src/sap/ui/test/autowaiter/_navigationContainerWaiter.js +96 -7
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/gherkin/opa5TestHarness.js +0 -1
- package/src/sap/ui/test/gherkin/qUnitTestHarness.js +0 -1
- package/src/sap/ui/test/starter/_utils.js +27 -1
- package/src/sap/ui/test/starter/createSuite.js +2 -5
- package/src/sap/ui/thirdparty/caja-html-sanitizer.js +1 -1
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-blind.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-bounce.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-clip.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-core.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-drop.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-explode.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-fade.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-fold.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-highlight.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-pulsate.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-scale.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-shake.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-slide.js +4 -0
- package/src/sap/ui/thirdparty/jqueryui/jquery-effects-transfer.js +4 -0
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/ui5loader.js +11 -5
- package/test/sap/ui/core/demokit/sample/FieldGroup/Page.view.xml +1 -1
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/view/Employee.view.xml +0 -1
- package/test/sap/ui/core/demokit/sample/TypeCurrency/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeCurrency/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/TypeDateAsDate/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeDateAsDate/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/TypeDateAsString/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeDateAsString/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/TypeDateTime/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeDateTime/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/TypeFileSize/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeFileSize/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/TypeFloat/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeFloat/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/TypeInteger/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeInteger/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/TypeTimeAsTime/Component.js +1 -0
- package/test/sap/ui/core/demokit/sample/TypeTimeAsTime/manifest.json +1 -2
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/Opa.qunit.js +3 -3
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/TemplateV2.view.xml +3 -2
- package/test/sap/ui/core/demokit/sample/matcher/BindingPath/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/Descendant/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/I18NText/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/LabelFor/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/LabelFor/webapp/view/Main.view.xml +0 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/Draft/Error.view.xml +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/Main.controller.js +30 -7
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/Main.view.xml +28 -4
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/data/metadata.xml +38 -52
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Main.controller.js +13 -13
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Opa.qunit.js +2 -4
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Component.js +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Main.controller.js +2 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/MessageHandling.js +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/additionalTargets.js +3 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/12/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/13/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/14/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/15/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/webapp/Component.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/webapp/test/mockServer.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/webapp/Component.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/webapp/test/mockServer.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/webapp/Component.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/webapp/test/mockServer.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/webapp/Component.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/webapp/test/mockServer.html +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/12/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/13/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/14/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/15/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/16/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/17/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/webapp/controller/App.controller.js +2 -3
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/Component.js +3 -4
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/Main.controller.js +4 -5
- package/test/sap/ui/core/qunit/BindingParser.qunit.js +68 -5
- package/test/sap/ui/core/qunit/CacheManager.qunit.js +2 -2
- package/test/sap/ui/core/qunit/CommandExecution.qunit.js +1 -1
- package/test/sap/ui/core/qunit/CompositeBinding.qunit.js +173 -7
- package/test/sap/ui/core/qunit/Core.qunit.js +92 -65
- package/test/sap/ui/core/qunit/CustomStyleClassSupport.qunit.js +8 -6
- package/test/sap/ui/core/qunit/Element_closestTo.qunit.js +26 -5
- package/test/sap/ui/core/qunit/Element_data.qunit.js +86 -3
- package/test/sap/ui/core/qunit/Fragment.qunit.js +1 -1
- package/test/sap/ui/core/qunit/HTML.qunit.js +13 -0
- package/test/sap/ui/core/qunit/Lib.qunit.js +160 -42
- package/test/sap/ui/core/qunit/ManagedObjectModel.qunit.js +2 -2
- package/test/sap/ui/core/qunit/ThemeManager.qunit.js +1 -0
- package/test/sap/ui/core/qunit/ThemeParameters.qunit.js +63 -4
- package/test/sap/ui/core/qunit/analytics/AnalyticalBinding.qunit.js +1 -0
- package/test/sap/ui/core/qunit/bootstrap/Configuration.qunit.js +4 -4
- package/test/sap/ui/core/qunit/bootstrap/ThemeVersion.qunit.js +3 -0
- package/test/sap/ui/core/qunit/component/Component.qunit.js +88 -16
- package/test/sap/ui/core/qunit/component/ComponentContainer.qunit.js +26 -2
- package/test/sap/ui/core/qunit/component/ComponentSupport.qunit.js +62 -59
- package/test/sap/ui/core/qunit/component/Component_keepAlive.qunit.js +75 -7
- package/test/sap/ui/core/qunit/component/ExtensionPoint.qunit.js +128 -117
- package/test/sap/ui/core/qunit/component/Manifest.qunit.js +57 -5
- package/test/sap/ui/core/qunit/component/Metadata.qunit.js +72 -7
- package/test/sap/ui/core/qunit/component/Metadata_unavoidablySync.qunit.js +62 -17
- package/test/sap/ui/core/qunit/component/Models.qunit.js +670 -237
- package/test/sap/ui/core/qunit/component/UIComponent.qunit.js +211 -33
- package/test/sap/ui/core/qunit/component/testdata/async/lib2/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/component/testdata/async/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/component/testdata/async/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/component/testdata/async/lib3/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/component/testdata/async/lib4/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/component/testdata/async/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/component/testdata/async/manifestcomp/Component-preload.js +1 -0
- package/test/sap/ui/core/qunit/component/testdata/async/mycomp/Component-preload.js +1 -0
- package/test/sap/ui/core/qunit/component/testdata/async/mysubcomp/Component-preload.js +1 -0
- package/test/sap/ui/core/qunit/component/testdata/customizing/customer/Component.js +1 -2
- package/test/sap/ui/core/qunit/component/testdata/customizing_legacyAPIs/customer/Component.js +1 -2
- package/test/sap/ui/core/qunit/component/testdata/inherit/manifest.json +3 -5
- package/test/sap/ui/core/qunit/component/testdata/inherit/parent/manifest.json +2 -2
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnActivateReturns/App.view.xml +3 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnActivateReturns/Component.js +15 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnActivateReturns/Home.view.xml +5 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnActivateReturns/Other.view.xml +5 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnActivateReturns/manifest.json +54 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnDeactivateReturns/App.view.xml +3 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnDeactivateReturns/Component.js +17 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnDeactivateReturns/Home.view.xml +5 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnDeactivateReturns/Other.view.xml +5 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3OnDeactivateReturns/manifest.json +54 -0
- package/test/sap/ui/core/qunit/component/testdata/minUI5Version/Component.js +18 -0
- package/test/sap/ui/core/qunit/component/testdata/minUI5Version/Main.controller.js +6 -0
- package/test/sap/ui/core/qunit/component/testdata/minUI5Version/Main.view.xml +6 -0
- package/test/sap/ui/core/qunit/component/testdata/minUI5Version/manifest.json +12 -0
- package/test/sap/ui/core/qunit/component/testdata/mixed/Component.js +3 -1
- package/test/sap/ui/core/qunit/component/testdata/mixed/manifest.json +3 -11
- package/test/sap/ui/core/qunit/component/testdata/mixed_legacyAPIs/Component.js +16 -0
- package/test/sap/ui/core/qunit/component/testdata/{mixed → mixed_legacyAPIs}/component.json +3 -3
- package/test/sap/ui/core/qunit/component/testdata/mixed_legacyAPIs/i18n/i18n.properties +3 -0
- package/test/sap/ui/core/qunit/component/testdata/mixed_legacyAPIs/manifest.json +139 -0
- package/test/sap/ui/core/qunit/component/testdata/mixed_legacyAPIs/style.css +0 -0
- package/test/sap/ui/core/qunit/component/testdata/routerClass/Component.js +33 -0
- package/test/sap/ui/core/qunit/component/testdata/routerClass/Main.view.xml +8 -0
- package/test/sap/ui/core/qunit/component/testdata/routerClass/manifest.json +38 -0
- package/test/sap/ui/core/qunit/component/testdata/v1/component.json +2 -2
- package/test/sap/ui/core/qunit/component/testdata/v1inline/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/v2/manifest.json +3 -5
- package/test/sap/ui/core/qunit/component/testdata/v2asyncRootView/manifest.json +2 -4
- package/test/sap/ui/core/qunit/component/testdata/v2inline/Component.js +2 -4
- package/test/sap/ui/core/qunit/component/testdata/v2models/empty/Component.js +1 -1
- package/test/sap/ui/core/qunit/component/testdata/v2models/extension/Component.js +1 -1
- package/test/sap/ui/core/qunit/component/testdata/v2models/parentValid/Component.js +286 -0
- package/test/sap/ui/core/qunit/component/testdata/v2models/parentValid/i18n.properties +2 -0
- package/test/sap/ui/core/qunit/component/testdata/v2models/parentValid/i18n_de.properties +2 -0
- package/test/sap/ui/core/qunit/component/testdata/v4models/sapSystem/Component.js +16 -0
- package/test/sap/ui/core/qunit/component/testdata/v4models/sapSystem/manifest.json +102 -0
- package/test/sap/ui/core/qunit/i18n/LocaleData.qunit.js +5 -5
- package/test/sap/ui/core/qunit/{types/TimezoneUtil.qunit.js → i18n/TimezoneUtils.qunit.js} +85 -87
- package/test/sap/ui/core/qunit/i18n/testsuite.i18n.qunit.js +6 -0
- package/test/sap/ui/core/qunit/internal/1RingModels.qunit.js +2 -2
- package/test/sap/ui/core/qunit/json/JSONModel.qunit.js +117 -85
- package/test/sap/ui/core/qunit/messages/Message.qunit.js +7 -5
- package/test/sap/ui/core/qunit/messages/messagesDataBinding.qunit.js +3 -5
- package/test/sap/ui/core/qunit/messages/messagesGeneral.qunit.js +41 -4
- package/test/sap/ui/core/qunit/messages/messagesUsage.qunit.js +3 -2
- package/test/sap/ui/core/qunit/model/Context.qunit.js +29 -0
- package/test/sap/ui/core/qunit/model/PropertyBinding.qunit.js +490 -5
- package/test/sap/ui/core/qunit/mvc/Controller.qunit.js +164 -12
- package/test/sap/ui/core/qunit/mvc/EventHandlerResolver.qunit.js +144 -6
- package/test/sap/ui/core/qunit/mvc/View.qunit.js +2 -2
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessor.qunit.js +60 -5
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessorAsync.qunit.js +58 -3
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessorRequireXML.qunit.js +127 -10
- package/test/sap/ui/core/qunit/mvc/XMLView.qunit.js +108 -10
- package/test/sap/ui/core/qunit/mvc/extensions/ControllerMetadata.qunit.js +74 -7
- package/test/sap/ui/core/qunit/mvc/extensions/Controllerextensions.qunit.js +0 -6
- package/test/sap/ui/core/qunit/mvc/extensions/Controllerextensions_legacy.qunit.js +0 -6
- package/test/sap/ui/core/qunit/mvc/extensions/testdata/ExtendMainLegacy.controller.js +15 -0
- package/test/sap/ui/core/qunit/mvc/extensions/testdata/MainContext.controller.js +0 -3
- package/test/sap/ui/core/qunit/mvc/extensions/testdata/MainMemberExtLegacyFinal.controller.js +38 -0
- package/test/sap/ui/core/qunit/mvc/extensions/testdata/ReuseExtension.js +0 -3
- package/test/sap/ui/core/qunit/mvc/extensions/testdata/ReuseExtensionContext.js +0 -3
- package/test/sap/ui/core/qunit/mvc/extensions/testdata/ReuseExtensionFinal.js +47 -0
- package/test/sap/ui/core/qunit/mvc/testdata/HtmlOnRoot.view.xml +8 -0
- package/test/sap/ui/core/qunit/mvc/testdata/XMLViewWithTypes.view.xml +1 -1
- package/test/sap/ui/core/qunit/mvc/testdata/XMLViewWithTypesFailure.view.xml +41 -0
- package/test/sap/ui/core/qunit/mvc/testdata/asyncHooks.view.xml +1 -1
- package/test/sap/ui/core/qunit/mvc/testdata/test.controller.js +4 -0
- package/test/sap/ui/core/qunit/mvc/testdata/test.view.xml +1 -1
- package/test/sap/ui/core/qunit/mvc/testsuite.mvc.qunit.js +12 -2
- package/test/sap/ui/core/qunit/mvc/viewprocessing/ViewProcessing.qunit.js +23 -4
- package/test/sap/ui/core/qunit/mvc_legacyAPIs/XMLTemplateProcessorRequireXML_legacyAPIs.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/ODataMessageParser.qunit.js +3 -5
- package/test/sap/ui/core/qunit/odata/ODataMessageParserNoFakeService.qunit.js +3 -5
- package/test/sap/ui/core/qunit/odata/v2/ODataModel.integration.qunit.js +180 -12
- package/test/sap/ui/core/qunit/odata/v2/V2ODataModel.qunit.js +3 -5
- package/test/sap/ui/core/qunit/odata/v2/V2ODataModelDataState.qunit.js +3 -6
- package/test/sap/ui/core/qunit/odata/v4/Context.qunit.js +149 -122
- package/test/sap/ui/core/qunit/odata/v4/ODataBinding.qunit.js +22 -71
- package/test/sap/ui/core/qunit/odata/v4/ODataContextBinding.qunit.js +19 -42
- package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +351 -174
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +6094 -2827
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.qunit.js +2 -4
- package/test/sap/ui/core/qunit/odata/v4/ODataParentBinding.qunit.js +11 -5
- package/test/sap/ui/core/qunit/odata/v4/ODataPropertyBinding.qunit.js +0 -49
- package/test/sap/ui/core/qunit/odata/v4/data/metadata.json +24 -0
- package/test/sap/ui/core/qunit/odata/v4/data/metadata.xml +14 -2
- package/test/sap/ui/core/qunit/odata/v4/data/metadata_special_cases.xml +16 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationCache.qunit.js +408 -403
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationHelper.qunit.js +11 -1
- package/test/sap/ui/core/qunit/odata/v4/lib/_Cache.qunit.js +56 -51
- package/test/sap/ui/core/qunit/odata/v4/lib/_Helper.qunit.js +30 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_Requestor.qunit.js +68 -59
- package/test/sap/ui/core/qunit/odata/v4/lib/_TreeState.qunit.js +91 -2
- package/test/sap/ui/core/qunit/opa/autowaiter/_navigationContainerWaiter.js +62 -15
- package/test/sap/ui/core/qunit/routing/async/Router.qunit.js +91 -19
- package/test/sap/ui/core/qunit/routing/async/Target.qunit.js +1 -1
- package/test/sap/ui/core/qunit/routing/async/Targets.qunit.js +131 -16
- package/test/sap/ui/core/qunit/routing/async/TitleHistory.qunit.js +111 -3
- package/test/sap/ui/core/qunit/routing/async/Views.qunit.js +3 -0
- package/test/sap/ui/core/qunit/routing/fixture/Async1.view.xml +2 -2
- package/test/sap/ui/core/qunit/routing/fixture/Async2.view.xml +2 -2
- package/test/sap/ui/core/qunit/routing/fixture/Async3.view.xml +2 -2
- package/test/sap/ui/core/qunit/routing/fixture/router/component/titleChanged/Parent/manifest.json +2 -1
- package/test/sap/ui/core/qunit/rule/testsuite.rule.qunit.js +3 -0
- package/test/sap/ui/core/qunit/testdata/fragments/XMLTestFragmentWithXMLView.fragment.xml +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/customCss/lib1/library.js +4 -11
- package/test/sap/ui/core/qunit/testdata/libraries/make.js +8 -1
- package/test/sap/ui/core/qunit/testdata/libraries/myGlobalLib/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib2/intentionally_no_manifest_here.txt +7 -0
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib4/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib5/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib6/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib6/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario1/lib7/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario11/lib1/library.js +6 -4
- package/test/sap/ui/core/qunit/testdata/libraries/scenario11/lib1/manifest.json +7 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib4/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib5/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib6/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib6/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario13/lib7/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib2/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib4/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib5/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib6/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib6/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib7/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib7/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib8/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib8/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib10/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib10/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib4/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib5/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib6/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib6/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib7/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib7/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib8/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib8/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib9/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario15/lib9/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario16/embeddingLib/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario16/embeddingLib/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib4/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib5/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib6/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib6/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario2/lib7/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario3/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario3/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario3/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario3/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario3/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario3/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario4/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario4/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario4/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario4/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib2/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib4/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib5/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib6/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario5/lib6/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario6/lib1/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario6/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario6/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario6/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib1/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib5/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario7/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib1/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib3/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib5/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario8/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario9/lib1/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario9/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/absoluteBundleUrl/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/integration/application/Component-preload.js +1 -1
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/integration/lib/library-preload.js +2 -2
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/notLoadedYet/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/simple/library-preload.js +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib1/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib10/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib11/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib12/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib13/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib14/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib15/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib16/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib17/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib2/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib3/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib4/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib5/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib6/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib7/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib8/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib9/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/routing/scenario1/RootView.view.xml +1 -2
- package/test/sap/ui/core/qunit/testdata/uilib/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/uilib/themes/test_theme_scoped/library-parameters.json +25 -0
- package/test/sap/ui/core/qunit/testdata/uilib/themes/test_theme_scoped/library.css +28 -0
- package/test/sap/ui/core/qunit/testdata/uilib-custom-theme-fallback/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/uilib-failing-css-import/library.js +1 -0
- package/test/sap/ui/core/qunit/testdata/xml-require/view/XMLTemplateProcessorAsync_require_expression.view.xml +0 -1
- package/test/sap/ui/core/qunit/testdata/xml-require/view/XMLTemplateProcessorAsync_require_expressionFaulty.view.xml +40 -0
- package/test/sap/ui/core/qunit/testsuites/testsuite.control.framework.qunit.js +11 -1
- package/test/sap/ui/core/qunit/testsuites/testsuite.eventing.qunit.js +3 -0
- package/test/sap/ui/core/qunit/testsuites/testsuite.foundation.enablement.qunit.js +3 -0
- package/test/sap/ui/core/qunit/types/Date.qunit.js +62 -25
- package/test/sap/ui/core/qunit/types/DateInterval.qunit.js +79 -12
- package/test/sap/ui/core/qunit/types/Types.qunit.js +135 -38
- package/test/sap/ui/core/qunit/types/testsuite.types.qunit.js +0 -6
- package/test/sap/ui/core/qunit/ui5classes/DataType.qunit.js +10 -1
- package/test/sap/ui/core/qunit/ui5classes/ManagedObject.qunit.js +102 -19
- package/test/sap/ui/core/qunit/ui5classes/Object.qunit.js +116 -124
- package/test/sap/ui/core/qunit/util/LabelEnablement.qunit.js +122 -3
- package/test/sap/ui/core/qunit/util/reflection/JsControlTreeModifier.qunit.js +79 -4
- package/test/sap/ui/core/qunit/util/reflection/XmlTreeModifier.qunit.js +0 -1
- package/test/sap/ui/core/relnotes/changes-1.124.json +52 -0
- package/test/sap/ui/core/samples/databinding/UnitTable/README.md +18 -0
- package/test/sap/ui/core/samples/databinding/UnitTable/package.json +13 -0
- package/test/sap/ui/core/samples/databinding/UnitTable/ui5.yaml +12 -0
- package/test/sap/ui/core/samples/databinding/UnitTable/webapp/Component.js +29 -0
- package/test/sap/ui/core/samples/databinding/UnitTable/webapp/controller/UnitTable.controller.js +58 -0
- package/test/sap/ui/core/samples/databinding/{UnitTable.meters.json → UnitTable/webapp/data/UnitTable.meters.json} +42 -42
- package/test/sap/ui/core/samples/databinding/UnitTable/webapp/index.html +28 -0
- package/test/sap/ui/core/samples/databinding/UnitTable/webapp/manifest.json +40 -0
- package/test/sap/ui/core/samples/databinding/UnitTable/webapp/view/UnitTable.view.xml +206 -0
- package/test/sap/ui/core/samples/draganddrop/DragAndDrop.html +2 -2
- package/test/sap/ui/core/samples/draganddrop/dragBetweenLists.html +10 -5
- package/test/sap/ui/core/samples/draganddrop/dragWithinList.html +0 -2
- 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/CurrenciesIndia.html +0 -182
- package/test/sap/ui/core/CurrenciesRTL.html +0 -312
- package/test/sap/ui/core/CustomData.html +0 -161
- package/test/sap/ui/core/DataTypeNormalizer.html +0 -44
- package/test/sap/ui/core/Formats.html +0 -384
- package/test/sap/ui/core/Strings.controller.js +0 -90
- package/test/sap/ui/core/Strings.css +0 -8
- package/test/sap/ui/core/Strings.html +0 -25
- package/test/sap/ui/core/Strings.js +0 -20
- package/test/sap/ui/core/Strings.view.xml +0 -86
- package/test/sap/ui/core/Timezones.html +0 -23
- package/test/sap/ui/core/qunit/ODataModelRefresh.qunit.html +0 -236
- package/test/sap/ui/core/qunit/ODataModelThreshold.qunit.html +0 -164
- package/test/sap/ui/core/samples/databinding/DataBindingAsyncType.html +0 -85
- package/test/sap/ui/core/samples/databinding/DataBindingDeclarativeSyntax.js +0 -65
- package/test/sap/ui/core/samples/databinding/DataBindingFragment.html +0 -21
- package/test/sap/ui/core/samples/databinding/DatabindingDeclarativeSyntax.html +0 -38
- package/test/sap/ui/core/samples/databinding/DatabindingMessages.html +0 -193
- package/test/sap/ui/core/samples/databinding/ODatabindingMessages.html +0 -305
- package/test/sap/ui/core/samples/databinding/UnitTable.controller.js +0 -202
- package/test/sap/ui/core/samples/databinding/UnitTable.html +0 -25
- package/test/sap/ui/core/samples/databinding/UnitTable.view.xml +0 -337
- package/test/sap/ui/core/samples/databinding/UnitTableMain.js +0 -21
- package/test/sap/ui/core/samples/databinding/fragment/Fragment.fragment.xml +0 -6
- package/test/sap/ui/core/samples/databinding/fragment/NamedFragment.fragment.xml +0 -6
- package/test/sap/ui/core/samples/databinding/fragment/View.controller.js +0 -36
- package/test/sap/ui/core/samples/databinding/fragment/View.view.xml +0 -12
- package/test/sap/ui/core/samples/databinding/message/Component.js +0 -185
- package/test/sap/ui/core/samples/databinding/message/component.json +0 -12
- package/test/sap/ui/core/samples/databinding/message/comptree/Component.js +0 -186
- package/test/sap/ui/core/samples/databinding/message/comptree/component.json +0 -12
- package/test/sap/ui/core/samples/databinding/message/disabled/Component.js +0 -186
- package/test/sap/ui/core/samples/databinding/message/disabled/component.json +0 -12
- package/test/sap/ui/core/samples/databinding/message/enabled/Component.js +0 -186
- package/test/sap/ui/core/samples/databinding/message/enabled/component.json +0 -12
- package/test/sap/ui/core/samples/databinding/testdata/ComplexSyntax.js +0 -38
- package/test/sap/ui/core/samples/databinding/testdata/complexsyntax.controller.js +0 -26
- package/test/sap/ui/core/samples/databinding/testdata/complexsyntax.view.xml +0 -26
- package/test/sap/ui/core/samples/databinding/testdata/team.xml +0 -12
- package/test/sap/ui/core/samples/databinding/testdata/test.controller.js +0 -39
- package/test/sap/ui/core/samples/databinding/testdata/text.properties +0 -5
- package/test/sap/ui/core/samples/databinding/testdata/text_de.properties +0 -5
- package/test/sap/ui/core/samples/formatting/Component.js +0 -21
- package/test/sap/ui/core/samples/formatting/controller/ChooseFormatOptions.controller.js +0 -96
- package/test/sap/ui/core/samples/formatting/controller/Main.controller.js +0 -9
- package/test/sap/ui/core/samples/formatting/index.html +0 -28
- package/test/sap/ui/core/samples/formatting/manifest.json +0 -68
- package/test/sap/ui/core/samples/formatting/model/Customizing.js +0 -35
- package/test/sap/ui/core/samples/formatting/model/data.json +0 -17
- package/test/sap/ui/core/samples/formatting/types/CustomCurrency.js +0 -14
- package/test/sap/ui/core/samples/formatting/types/CustomUnit.js +0 -14
- package/test/sap/ui/core/samples/formatting/view/App.view.xml +0 -6
- package/test/sap/ui/core/samples/formatting/view/ChooseFormatOptions.view.xml +0 -71
- package/test/sap/ui/core/samples/formatting/view/InputFields.fragment.xml +0 -118
- package/test/sap/ui/core/samples/formatting/view/Main.view.xml +0 -15
- package/test/sap/ui/core/timezones.js +0 -92
- package/test/sap/ui/core/timezones.view.xml +0 -23
- /package/test/sap/ui/core/qunit/component/testdata/{mixed → mixed_legacyAPIs}/script.js +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
sap.ui.define([
|
|
2
2
|
"sap/base/config",
|
|
3
|
+
"sap/base/future",
|
|
3
4
|
"sap/base/Log",
|
|
4
5
|
"sap/base/i18n/Localization",
|
|
5
6
|
"sap/base/i18n/ResourceBundle",
|
|
@@ -11,6 +12,7 @@ sap.ui.define([
|
|
|
11
12
|
"sap/ui/core/UIComponentMetadata"
|
|
12
13
|
], function(
|
|
13
14
|
BaseConfig,
|
|
15
|
+
future,
|
|
14
16
|
Log,
|
|
15
17
|
Localization,
|
|
16
18
|
ResourceBundle,
|
|
@@ -272,7 +274,11 @@ sap.ui.define([
|
|
|
272
274
|
}
|
|
273
275
|
});
|
|
274
276
|
|
|
275
|
-
|
|
277
|
+
/**
|
|
278
|
+
* @deprecated
|
|
279
|
+
*/
|
|
280
|
+
QUnit.test("metadata v2 with dataSources (future=false)", function(assert) {
|
|
281
|
+
future.active = false;
|
|
276
282
|
this.stubGetUriParameters();
|
|
277
283
|
|
|
278
284
|
return Component.create({
|
|
@@ -495,30 +501,557 @@ sap.ui.define([
|
|
|
495
501
|
// check if internal models references were removed
|
|
496
502
|
assert.ok(!this.oComponent._mManifestModels, "Component should not have internal model references anymore");
|
|
497
503
|
|
|
504
|
+
future.active = undefined;
|
|
498
505
|
}.bind(this));
|
|
499
506
|
});
|
|
500
507
|
|
|
508
|
+
QUnit.test("metadata v2 with dataSources (future=true)", function (assert) {
|
|
509
|
+
future.active = true;
|
|
510
|
+
this.stubGetUriParameters();
|
|
511
|
+
|
|
512
|
+
return Component.create({
|
|
513
|
+
name: "sap.ui.test.v2models.parentValid",
|
|
514
|
+
manifest: false
|
|
515
|
+
}).then(function (oComponent) {
|
|
516
|
+
|
|
517
|
+
this.oComponent = oComponent;
|
|
518
|
+
|
|
519
|
+
// sap.ui.model.odata.v2.ODataModel
|
|
520
|
+
sinon.assert.callCount(this.modelSpy.odataV2, 7);
|
|
521
|
+
|
|
522
|
+
// model: "default-with-annotations"
|
|
523
|
+
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
524
|
+
serviceUrl: '/path/to/default/datasource?sap-client=foo&sap-server=bar',
|
|
525
|
+
annotationURI: [
|
|
526
|
+
'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/odata/annotations/2?sap-language=EN&sap-client=foo',
|
|
527
|
+
'/path/to/odata/annotations/1?sap-language=EN&sap-client=foo'
|
|
528
|
+
],
|
|
529
|
+
headers: { "Cache-Control": "max-age=500" },
|
|
530
|
+
metadataUrlParams: { "sap-language": "EN" }
|
|
531
|
+
});
|
|
532
|
+
|
|
533
|
+
// model: "old-uri-syntax"
|
|
534
|
+
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
535
|
+
serviceUrl: '/path/to/odata/service'
|
|
536
|
+
});
|
|
537
|
+
|
|
538
|
+
// model: ""
|
|
539
|
+
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
540
|
+
serviceUrl: '/path/to/default/datasource?sap-client=foo&sap-server=bar',
|
|
541
|
+
metadataUrlParams: { "sap-language": "EN" }
|
|
542
|
+
});
|
|
543
|
+
|
|
544
|
+
// model: "v2-ODataModel"
|
|
545
|
+
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
546
|
+
serviceUrl: '/path/to/odata/service',
|
|
547
|
+
useBatch: true,
|
|
548
|
+
refreshAfterChange: true
|
|
549
|
+
});
|
|
550
|
+
|
|
551
|
+
// model: "v2-ODataModel" with multi origin annotations
|
|
552
|
+
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
553
|
+
serviceUrl: '/path/to/odata/service/with/multi/origin/annotations/?sap-client=foo&sap-server=bar',
|
|
554
|
+
annotationURI: ["/path/to/other/odata/service/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/$value?sap-language=EN&sap-client=foo",
|
|
555
|
+
"test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/other/odata/service/Annotations%28TechnicalName=%27%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE%27,Version=%270001%27%29/$value?sap-language=EN&sap-client=foo",
|
|
556
|
+
"/path/to/other/odata/service/other2/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/?sap-language=EN&sap-client=foo",
|
|
557
|
+
"/path/to/other3/odata/service/;o=sid(G1Y.400)/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/$value?sap-language=EN&sap-client=foo"
|
|
558
|
+
],
|
|
559
|
+
metadataUrlParams: { "sap-language": "EN" }
|
|
560
|
+
});
|
|
561
|
+
|
|
562
|
+
// model: "v2-ODataModel-SAPClient" with SAP client
|
|
563
|
+
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
564
|
+
serviceUrl: '/path/to/odata/service/with/sapclient/?sap-client=100&sap-server=bar',
|
|
565
|
+
annotationURI: ['/path/to/odata/annotations/with/sapclient/?sap-client=200&sap-language=EN'],
|
|
566
|
+
metadataUrlParams: { "sap-language": "EN" }
|
|
567
|
+
});
|
|
568
|
+
|
|
569
|
+
// sap.ui.model.odata.v4.ODataModel
|
|
570
|
+
sinon.assert.callCount(this.modelSpy.odataV4, 1);
|
|
571
|
+
|
|
572
|
+
// model: "default-with-annotations"
|
|
573
|
+
sinon.assert.calledWithExactly(this.modelSpy.odataV4, {
|
|
574
|
+
odataVersion: "4.0",
|
|
575
|
+
serviceUrl: '/path/to/odata/service/?sap-client=foo&sap-server=bar',
|
|
576
|
+
metadataUrlParams: { "sap-language": "EN" }
|
|
577
|
+
});
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
// sap.ui.model.json.JSONModel
|
|
581
|
+
sinon.assert.callCount(this.modelSpy.json, 3);
|
|
582
|
+
|
|
583
|
+
// model: "json"
|
|
584
|
+
sinon.assert.calledWithExactly(this.modelSpy.json, '/path/to/data.json?sap-client=foo&sap-server=bar');
|
|
585
|
+
|
|
586
|
+
// model: "json-relative"
|
|
587
|
+
sinon.assert.calledWithExactly(this.modelSpy.json, 'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/data.json?sap-client=foo&sap-server=bar');
|
|
588
|
+
|
|
589
|
+
// model: "json-relative-2"
|
|
590
|
+
sinon.assert.calledWithExactly(this.modelSpy.json, 'test-resources/sap/ui/core/qunit/component/testdata/path/to/other/data.json?sap-client=foo&sap-server=bar');
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
// sap.ui.model.xml.XMLModel
|
|
594
|
+
sinon.assert.callCount(this.modelSpy.xml, 2);
|
|
595
|
+
|
|
596
|
+
// model: "xml"
|
|
597
|
+
sinon.assert.calledWithExactly(this.modelSpy.xml, '/path/to/data.xml?sap-client=foo&sap-server=bar');
|
|
598
|
+
|
|
599
|
+
// model: "xml-relative"
|
|
600
|
+
sinon.assert.calledWithExactly(this.modelSpy.xml, 'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/data.xml?sap-client=foo&sap-server=bar');
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
// sap.ui.model.resource.ResourceModel
|
|
604
|
+
sinon.assert.callCount(this.modelSpy.resource, 2);
|
|
605
|
+
|
|
606
|
+
// model: "resourceBundle-name"
|
|
607
|
+
sinon.assert.calledWithExactly(this.modelSpy.resource, {
|
|
608
|
+
bundleName: "sap.ui.test.v2models.parent.i18n"
|
|
609
|
+
});
|
|
610
|
+
|
|
611
|
+
// model: "resourceBundle-legacy-uri"
|
|
612
|
+
sinon.assert.calledWithExactly(this.modelSpy.resource, {
|
|
613
|
+
bundleUrl: "test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/i18n.properties"
|
|
614
|
+
});
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
// sap.ui.test.v2models.parent.CustomModel
|
|
618
|
+
sinon.assert.callCount(this.modelSpy.custom, 7);
|
|
619
|
+
|
|
620
|
+
// model: "custom-uri-string"
|
|
621
|
+
sinon.assert.calledWithExactly(this.modelSpy.custom, '/path/to/custom.datatype?sap-client=foo&sap-server=bar');
|
|
622
|
+
|
|
623
|
+
// model: "custom-uri-relative-string"
|
|
624
|
+
sinon.assert.calledWithExactly(this.modelSpy.custom, 'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/custom.datatype?sap-client=foo&sap-server=bar');
|
|
625
|
+
|
|
626
|
+
// model: "custom-uri-string-with-settings"
|
|
627
|
+
sinon.assert.calledWithExactly(this.modelSpy.custom, '/path/to/custom.datatype?sap-client=foo&sap-server=bar', {
|
|
628
|
+
foo: 'bar'
|
|
629
|
+
});
|
|
630
|
+
|
|
631
|
+
// model: "custom-without-args"
|
|
632
|
+
sinon.assert.calledWithExactly(this.modelSpy.custom);
|
|
633
|
+
|
|
634
|
+
// model: "custom-uri-setting-name"
|
|
635
|
+
sinon.assert.calledWithExactly(this.modelSpy.custom, {
|
|
636
|
+
myUri: '/path/to/custom.datatype?sap-client=foo&sap-server=bar'
|
|
637
|
+
});
|
|
638
|
+
|
|
639
|
+
// model: "custom-uri-setting-merge"
|
|
640
|
+
sinon.assert.calledWithExactly(this.modelSpy.custom, {
|
|
641
|
+
uri: '/path/to/custom.datatype?sap-client=foo&sap-server=bar',
|
|
642
|
+
foo: 'bar'
|
|
643
|
+
});
|
|
644
|
+
|
|
645
|
+
// model: "custom-uri-setting-already-defined"
|
|
646
|
+
sinon.assert.calledWithExactly(this.modelSpy.custom, {
|
|
647
|
+
uri: 'foo'
|
|
648
|
+
});
|
|
649
|
+
|
|
650
|
+
// check if models are set on component (and save them internally)
|
|
651
|
+
this.assertModelInstances({
|
|
652
|
+
"": this.modelSpy.odataV2,
|
|
653
|
+
"default-with-annotations": this.modelSpy.odataV2,
|
|
654
|
+
"old-uri-syntax": this.modelSpy.odataV2,
|
|
655
|
+
"v2-ODataModel": this.modelSpy.odataV2,
|
|
656
|
+
"v2-ODataModel-OtherOrigins": this.modelSpy.odataV2,
|
|
657
|
+
"ODataV4Model": this.modelSpy.odataV4,
|
|
658
|
+
"json": this.modelSpy.json,
|
|
659
|
+
"json-relative": this.modelSpy.json,
|
|
660
|
+
"json-relative-2": this.modelSpy.json,
|
|
661
|
+
"xml": this.modelSpy.xml,
|
|
662
|
+
"xml-relative": this.modelSpy.xml,
|
|
663
|
+
"resourceBundle-name": this.modelSpy.resource,
|
|
664
|
+
"resourceBundle-legacy-uri": this.modelSpy.resource,
|
|
665
|
+
"custom-uri-string": this.modelSpy.custom,
|
|
666
|
+
"custom-relative-uri-string": this.modelSpy.custom,
|
|
667
|
+
"custom-uri-string-with-settings": this.modelSpy.custom,
|
|
668
|
+
"custom-without-args": this.modelSpy.custom,
|
|
669
|
+
"custom-uri-setting-name": this.modelSpy.custom,
|
|
670
|
+
"custom-uri-setting-merge": this.modelSpy.custom,
|
|
671
|
+
"custom-uri-setting-already-defined": this.modelSpy.custom
|
|
672
|
+
});
|
|
673
|
+
|
|
674
|
+
// destroy the component
|
|
675
|
+
this.oComponent.destroy();
|
|
676
|
+
|
|
677
|
+
// check if all models got destroyed (uses the models from #assertModelInstances)
|
|
678
|
+
this.assertModelsDestroyed();
|
|
679
|
+
|
|
680
|
+
// check if internal models references were removed
|
|
681
|
+
assert.ok(!this.oComponent._mManifestModels, "Component should not have internal model references anymore");
|
|
682
|
+
|
|
683
|
+
future.active = undefined;
|
|
684
|
+
}.bind(this));
|
|
685
|
+
});
|
|
686
|
+
|
|
687
|
+
QUnit.test("metadata v2 with dataSources - Invalid ODataAnnotation (future=true)", function(assert) {
|
|
688
|
+
future.active = true;
|
|
689
|
+
|
|
690
|
+
const oManifestJson = {
|
|
691
|
+
"_version": "1.0.0",
|
|
692
|
+
|
|
693
|
+
"sap.app": {
|
|
694
|
+
"_version": "1.0.0",
|
|
695
|
+
"id": "sap.ui.test.v2models.parent",
|
|
696
|
+
"type": "application",
|
|
697
|
+
"applicationVersion": {
|
|
698
|
+
"version": "1.0.0"
|
|
699
|
+
},
|
|
700
|
+
"i18n": "i18n.properties",
|
|
701
|
+
"title": "{{title}}",
|
|
702
|
+
"description": "{{description}}",
|
|
703
|
+
"dataSources": {
|
|
704
|
+
"default": {
|
|
705
|
+
"uri": "/path/to/default/datasource"
|
|
706
|
+
},
|
|
707
|
+
"odata-invalid-annotations": {
|
|
708
|
+
"type": "OData",
|
|
709
|
+
"uri": "/path/to/odata/service",
|
|
710
|
+
"settings": {
|
|
711
|
+
"annotations": [ "undefined", "annotations1", "annotation-without-uri", "json" ]
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
"sap.ui": {
|
|
717
|
+
"_version": "1.0.0",
|
|
718
|
+
"technology": "UI5"
|
|
719
|
+
},
|
|
720
|
+
"sap.ui5": {
|
|
721
|
+
"_version": "1.0.0",
|
|
722
|
+
"dependencies": {
|
|
723
|
+
"minUI5Version": "1.28.0",
|
|
724
|
+
"libs": {
|
|
725
|
+
"sap.ui.core": {
|
|
726
|
+
"minVersion": "1.28.0"
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
"models": {
|
|
731
|
+
"": "default",
|
|
732
|
+
"invalid-annotations": {
|
|
733
|
+
"dataSource": "odata-invalid-annotations"
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
|
|
739
|
+
return Component.create({
|
|
740
|
+
name: "sap.ui.test.v2models.parent",
|
|
741
|
+
manifest: oManifestJson
|
|
742
|
+
}).catch((error) => {
|
|
743
|
+
assert.ok(error.message.includes(`Component Manifest: ODataAnnotation "undefined" for dataSource "odata-invalid-annotations" could not be found in manifest`),
|
|
744
|
+
"Error thrown because of invalid odata annotations.");
|
|
745
|
+
|
|
746
|
+
future.active = undefined;
|
|
747
|
+
});
|
|
748
|
+
});
|
|
749
|
+
|
|
750
|
+
QUnit.test("metadata v2 with dataSources - Invalid dataSource (future=true)", function(assert) {
|
|
751
|
+
future.active = true;
|
|
752
|
+
|
|
753
|
+
const oManifestJson = {
|
|
754
|
+
"_version": "1.0.0",
|
|
755
|
+
|
|
756
|
+
"sap.app": {
|
|
757
|
+
"_version": "1.0.0",
|
|
758
|
+
"id": "sap.ui.test.v2models.parent",
|
|
759
|
+
"type": "application",
|
|
760
|
+
"applicationVersion": {
|
|
761
|
+
"version": "1.0.0"
|
|
762
|
+
},
|
|
763
|
+
"i18n": "i18n.properties",
|
|
764
|
+
"title": "{{title}}",
|
|
765
|
+
"description": "{{description}}",
|
|
766
|
+
"dataSources": {
|
|
767
|
+
"default": {
|
|
768
|
+
"uri": "/path/to/default/datasource"
|
|
769
|
+
},
|
|
770
|
+
"invalid": true
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
"sap.ui": {
|
|
774
|
+
"_version": "1.0.0",
|
|
775
|
+
"technology": "UI5"
|
|
776
|
+
},
|
|
777
|
+
"sap.ui5": {
|
|
778
|
+
"_version": "1.0.0",
|
|
779
|
+
"dependencies": {
|
|
780
|
+
"minUI5Version": "1.28.0",
|
|
781
|
+
"libs": {
|
|
782
|
+
"sap.ui.core": {
|
|
783
|
+
"minVersion": "1.28.0"
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
"models": {
|
|
788
|
+
"": "default",
|
|
789
|
+
"dataSource-invalid": {
|
|
790
|
+
"type": "sap.ui.model.odata.v2.ODataModel",
|
|
791
|
+
"dataSource": "invalid"
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
return Component.create({
|
|
798
|
+
name: "sap.ui.test.v2models.parent",
|
|
799
|
+
manifest: oManifestJson
|
|
800
|
+
}).catch((error) => {
|
|
801
|
+
assert.ok(error.message.includes(`Component Manifest: dataSource "invalid" for model "dataSource-invalid" not found or invalid`),
|
|
802
|
+
"Error thrown because invalid dataSource defined.");
|
|
803
|
+
|
|
804
|
+
future.active = undefined;
|
|
805
|
+
});
|
|
806
|
+
});
|
|
807
|
+
|
|
808
|
+
QUnit.test("metadata v2 with dataSources - dataSource not found (future=true)", function(assert) {
|
|
809
|
+
future.active = true;
|
|
810
|
+
|
|
811
|
+
const oManifestJson = {
|
|
812
|
+
"_version": "1.0.0",
|
|
813
|
+
|
|
814
|
+
"sap.app": {
|
|
815
|
+
"_version": "1.0.0",
|
|
816
|
+
"id": "sap.ui.test.v2models.parent",
|
|
817
|
+
"type": "application",
|
|
818
|
+
"applicationVersion": {
|
|
819
|
+
"version": "1.0.0"
|
|
820
|
+
},
|
|
821
|
+
"i18n": "i18n.properties",
|
|
822
|
+
"title": "{{title}}",
|
|
823
|
+
"description": "{{description}}",
|
|
824
|
+
"dataSources": {
|
|
825
|
+
"default": {
|
|
826
|
+
"uri": "/path/to/default/datasource"
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
"sap.ui": {
|
|
831
|
+
"_version": "1.0.0",
|
|
832
|
+
"technology": "UI5"
|
|
833
|
+
},
|
|
834
|
+
"sap.ui5": {
|
|
835
|
+
"_version": "1.0.0",
|
|
836
|
+
"dependencies": {
|
|
837
|
+
"minUI5Version": "1.28.0",
|
|
838
|
+
"libs": {
|
|
839
|
+
"sap.ui.core": {
|
|
840
|
+
"minVersion": "1.28.0"
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
"models": {
|
|
845
|
+
"": "default",
|
|
846
|
+
"dataSource-not-found": {
|
|
847
|
+
"type": "sap.ui.model.odata.v2.ODataModel",
|
|
848
|
+
"dataSource": "does-not-exist"
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
return Component.create({
|
|
855
|
+
name: "sap.ui.test.v2models.parent",
|
|
856
|
+
manifest: oManifestJson
|
|
857
|
+
}).catch((error) => {
|
|
858
|
+
assert.ok(error.message.includes(`Component Manifest: dataSource "does-not-exist" for model "dataSource-not-found" not found or invalid`),
|
|
859
|
+
"Error thrown because dataSource not found.");
|
|
860
|
+
|
|
861
|
+
future.active = undefined;
|
|
862
|
+
});
|
|
863
|
+
});
|
|
864
|
+
|
|
865
|
+
QUnit.test("metadata v2 with dataSources - Model not found (future=true)", function(assert) {
|
|
866
|
+
future.active = true;
|
|
867
|
+
|
|
868
|
+
const oManifestJson = {
|
|
869
|
+
"_version": "1.0.0",
|
|
870
|
+
|
|
871
|
+
"sap.app": {
|
|
872
|
+
"_version": "1.0.0",
|
|
873
|
+
"id": "sap.ui.test.v2models.parent",
|
|
874
|
+
"type": "application",
|
|
875
|
+
"applicationVersion": {
|
|
876
|
+
"version": "1.0.0"
|
|
877
|
+
},
|
|
878
|
+
"i18n": "i18n.properties",
|
|
879
|
+
"title": "{{title}}",
|
|
880
|
+
"description": "{{description}}",
|
|
881
|
+
"dataSources": {
|
|
882
|
+
"default": {
|
|
883
|
+
"uri": "/path/to/default/datasource"
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
"sap.ui": {
|
|
888
|
+
"_version": "1.0.0",
|
|
889
|
+
"technology": "UI5"
|
|
890
|
+
},
|
|
891
|
+
"sap.ui5": {
|
|
892
|
+
"_version": "1.0.0",
|
|
893
|
+
"dependencies": {
|
|
894
|
+
"minUI5Version": "1.28.0",
|
|
895
|
+
"libs": {
|
|
896
|
+
"sap.ui.core": {
|
|
897
|
+
"minVersion": "1.28.0"
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
"models": {
|
|
902
|
+
"": "default",
|
|
903
|
+
"model-not-found": {
|
|
904
|
+
"type": "sap.ui.test.v2models.parent.ModelNotDefined"
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
};
|
|
909
|
+
|
|
910
|
+
return Component.create({
|
|
911
|
+
name: "sap.ui.test.v2models.parent",
|
|
912
|
+
manifest: oManifestJson
|
|
913
|
+
}).catch((error) => {
|
|
914
|
+
assert.ok(error.message.includes(`Component Manifest: Class "sap.ui.test.v2models.parent.ModelNotDefined" for model "model-not-found" could not be found`),
|
|
915
|
+
"Error thrown because model is not found.");
|
|
916
|
+
|
|
917
|
+
future.active = undefined;
|
|
918
|
+
});
|
|
919
|
+
|
|
920
|
+
});
|
|
921
|
+
QUnit.test("metadata v2 with dataSources - Missing model class (future=true)", function(assert) {
|
|
922
|
+
future.active = true;
|
|
923
|
+
|
|
924
|
+
const oManifestJson = {
|
|
925
|
+
"_version": "1.0.0",
|
|
926
|
+
|
|
927
|
+
"sap.app": {
|
|
928
|
+
"_version": "1.0.0",
|
|
929
|
+
"id": "sap.ui.test.v2models.parent",
|
|
930
|
+
"type": "application",
|
|
931
|
+
"applicationVersion": {
|
|
932
|
+
"version": "1.0.0"
|
|
933
|
+
},
|
|
934
|
+
"i18n": "i18n.properties",
|
|
935
|
+
"title": "{{title}}",
|
|
936
|
+
"description": "{{description}}",
|
|
937
|
+
"dataSources": {
|
|
938
|
+
"default": {
|
|
939
|
+
"uri": "/path/to/default/datasource"
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
"sap.ui": {
|
|
944
|
+
"_version": "1.0.0",
|
|
945
|
+
"technology": "UI5"
|
|
946
|
+
},
|
|
947
|
+
"sap.ui5": {
|
|
948
|
+
"_version": "1.0.0",
|
|
949
|
+
"dependencies": {
|
|
950
|
+
"minUI5Version": "1.28.0",
|
|
951
|
+
"libs": {
|
|
952
|
+
"sap.ui.core": {
|
|
953
|
+
"minVersion": "1.28.0"
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
"models": {
|
|
958
|
+
"": "default",
|
|
959
|
+
"missing-model-class": {
|
|
960
|
+
"type": "sap.ui.not.defined.Model"
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
return Component.create({
|
|
967
|
+
name: "sap.ui.test.v2models.parent",
|
|
968
|
+
manifest: oManifestJson
|
|
969
|
+
}).catch((error) => {
|
|
970
|
+
assert.ok(error.message.includes(`Cannot load module 'sap/ui/not/defined/Model'.`),
|
|
971
|
+
"Error thrown because defined model class is not found.");
|
|
972
|
+
|
|
973
|
+
future.active = undefined;
|
|
974
|
+
});
|
|
975
|
+
|
|
976
|
+
});
|
|
977
|
+
|
|
978
|
+
QUnit.test("metadata v2 with dataSources - unknown-odataVersion (future=true)", function(assert) {
|
|
979
|
+
future.active = true;
|
|
980
|
+
|
|
981
|
+
const oManifestJson = {
|
|
982
|
+
"_version": "1.0.0",
|
|
983
|
+
|
|
984
|
+
"sap.app": {
|
|
985
|
+
"_version": "1.0.0",
|
|
986
|
+
"id": "sap.ui.test.v2models.parent1",
|
|
987
|
+
"type": "application",
|
|
988
|
+
"applicationVersion": {
|
|
989
|
+
"version": "1.0.0"
|
|
990
|
+
},
|
|
991
|
+
"i18n": "i18n.properties",
|
|
992
|
+
"title": "{{title}}",
|
|
993
|
+
"description": "{{description}}",
|
|
994
|
+
"dataSources": {
|
|
995
|
+
"default": {
|
|
996
|
+
"uri": "/path/to/default/datasource"
|
|
997
|
+
},
|
|
998
|
+
|
|
999
|
+
"unknown-odataVersion": {
|
|
1000
|
+
"uri": "/path/to/unknown/odataVersion",
|
|
1001
|
+
"settings": {
|
|
1002
|
+
"odataVersion": "3.0"
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
"invalid": true
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
"sap.ui": {
|
|
1009
|
+
"_version": "1.0.0",
|
|
1010
|
+
"technology": "UI5"
|
|
1011
|
+
},
|
|
1012
|
+
"sap.ui5": {
|
|
1013
|
+
"_version": "1.0.0",
|
|
1014
|
+
"dependencies": {
|
|
1015
|
+
"minUI5Version": "1.28.0",
|
|
1016
|
+
"libs": {
|
|
1017
|
+
"sap.ui.core": {
|
|
1018
|
+
"minVersion": "1.28.0"
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
},
|
|
1022
|
+
"models": {
|
|
1023
|
+
"": "default",
|
|
1024
|
+
"v2-ODataModel-unknown-odataVersion": {
|
|
1025
|
+
"dataSource": "unknown-odataVersion"
|
|
1026
|
+
},
|
|
1027
|
+
"dataSource-invalid": {
|
|
1028
|
+
"type": "sap.ui.model.odata.v2.ODataModel",
|
|
1029
|
+
"dataSource": "invalid"
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
|
|
1035
|
+
return Component.create({
|
|
1036
|
+
name: "sap.ui.test.v2models.parent",
|
|
1037
|
+
manifest: oManifestJson
|
|
1038
|
+
}).catch((error) => {
|
|
1039
|
+
assert.ok(error.message.includes(`Component Manifest: Provided OData version "3.0" in dataSource "unknown-odataVersion" for model "v2-ODataModel-unknown-odataVersion" is unknown.`),
|
|
1040
|
+
"Error thrown because unknown dataSource defined in Component Manifest.");
|
|
1041
|
+
|
|
1042
|
+
future.active = undefined;
|
|
1043
|
+
});
|
|
1044
|
+
});
|
|
1045
|
+
|
|
501
1046
|
QUnit.test("metadata v2 with sap-system URL parameter", function(assert) {
|
|
502
1047
|
this.stubGetUriParameters({ sapSystem: "BLA_123" });
|
|
503
1048
|
|
|
504
1049
|
return Component.create({
|
|
505
|
-
name: "sap.ui.test.v2models.
|
|
1050
|
+
name: "sap.ui.test.v2models.parentValid",
|
|
506
1051
|
manifest: false
|
|
507
1052
|
}).then(function(oComponent) {
|
|
508
1053
|
this.oComponent = oComponent;
|
|
509
1054
|
|
|
510
|
-
/**
|
|
511
|
-
* @deprecated As of version 1.48
|
|
512
|
-
*/
|
|
513
|
-
// model: "ODataModel"
|
|
514
|
-
sinon.assert.calledWithExactly(this.modelSpy.odata, {
|
|
515
|
-
serviceUrl: '/path/to/odata/service;o=BLA_123?sap-client=foo&sap-server=bar',
|
|
516
|
-
annotationURI: [ '/path/to/odata/annotations/1', 'test-resources/sap/ui/core/qunit/component/testdata/v2models/parent/path/to/local/odata/annotations/2'],
|
|
517
|
-
useBatch: false,
|
|
518
|
-
refreshAfterChange: false,
|
|
519
|
-
json: true
|
|
520
|
-
});
|
|
521
|
-
|
|
522
1055
|
// model: "v2-ODataModel"
|
|
523
1056
|
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
524
1057
|
serviceUrl: '/path/to/odata/service;o=BLA_123',
|
|
@@ -531,7 +1064,7 @@ sap.ui.define([
|
|
|
531
1064
|
serviceUrl: '/path/to/odata/service/with/trailing/slash;o=BLA_123/?sap-client=foo&sap-server=bar',
|
|
532
1065
|
annotationURI: [
|
|
533
1066
|
'/path/to/odata/service/with/trailing/slash;o=BLA_123/annotations.xml?sap-language=EN&sap-client=foo',
|
|
534
|
-
'test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1067
|
+
'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/odata/annotations/2?sap-language=EN&sap-client=foo'
|
|
535
1068
|
],
|
|
536
1069
|
useBatch: true,
|
|
537
1070
|
refreshAfterChange: true,
|
|
@@ -542,7 +1075,7 @@ sap.ui.define([
|
|
|
542
1075
|
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
543
1076
|
serviceUrl: '/path/to/odata/service/with/multi/origin/annotations;o=BLA_123/?sap-client=foo&sap-server=bar',
|
|
544
1077
|
annotationURI: ["/path/to/other/odata/service;o=BLA_123/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/$value?sap-language=EN&sap-client=foo",
|
|
545
|
-
"test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1078
|
+
"test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/other/odata/service;o=BLA_123/Annotations%28TechnicalName=%27%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE%27,Version=%270001%27%29/$value?sap-language=EN&sap-client=foo",
|
|
546
1079
|
"/path/to/other/odata/service/other2/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/?sap-language=EN&sap-client=foo",
|
|
547
1080
|
"/path/to/other3/odata/service/;o=sid(G1Y.400)/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/$value?sap-language=EN&sap-client=foo"
|
|
548
1081
|
],
|
|
@@ -575,7 +1108,7 @@ sap.ui.define([
|
|
|
575
1108
|
this.stubGetUriParameters();
|
|
576
1109
|
|
|
577
1110
|
return Component.create({
|
|
578
|
-
name: "sap.ui.test.v2models.
|
|
1111
|
+
name: "sap.ui.test.v2models.parentValid",
|
|
579
1112
|
manifest: false,
|
|
580
1113
|
componentData: {
|
|
581
1114
|
startupParameters: {
|
|
@@ -585,18 +1118,6 @@ sap.ui.define([
|
|
|
585
1118
|
}).then(function(oComponent) {
|
|
586
1119
|
this.oComponent = oComponent;
|
|
587
1120
|
|
|
588
|
-
/**
|
|
589
|
-
* @deprecated As of version 1.48
|
|
590
|
-
*/
|
|
591
|
-
// model: "ODataModel"
|
|
592
|
-
sinon.assert.calledWithExactly(this.modelSpy.odata, {
|
|
593
|
-
serviceUrl: '/path/to/odata/service;o=STARTUP456?sap-client=foo&sap-server=bar',
|
|
594
|
-
annotationURI: [ '/path/to/odata/annotations/1', 'test-resources/sap/ui/core/qunit/component/testdata/v2models/parent/path/to/local/odata/annotations/2'],
|
|
595
|
-
useBatch: false,
|
|
596
|
-
refreshAfterChange: false,
|
|
597
|
-
json: true
|
|
598
|
-
});
|
|
599
|
-
|
|
600
1121
|
// model: "v2-ODataModel"
|
|
601
1122
|
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
602
1123
|
serviceUrl: '/path/to/odata/service;o=STARTUP456',
|
|
@@ -609,7 +1130,7 @@ sap.ui.define([
|
|
|
609
1130
|
serviceUrl: '/path/to/odata/service/with/trailing/slash;o=STARTUP456/?sap-client=foo&sap-server=bar',
|
|
610
1131
|
annotationURI: [
|
|
611
1132
|
'/path/to/odata/service/with/trailing/slash;o=STARTUP456/annotations.xml?sap-language=EN&sap-client=foo',
|
|
612
|
-
'test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1133
|
+
'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/odata/annotations/2?sap-language=EN&sap-client=foo'
|
|
613
1134
|
],
|
|
614
1135
|
useBatch: true,
|
|
615
1136
|
refreshAfterChange: true,
|
|
@@ -620,7 +1141,7 @@ sap.ui.define([
|
|
|
620
1141
|
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
621
1142
|
serviceUrl: '/path/to/odata/service/with/multi/origin/annotations;o=STARTUP456/?sap-client=foo&sap-server=bar',
|
|
622
1143
|
annotationURI: ["/path/to/other/odata/service;o=STARTUP456/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/$value?sap-language=EN&sap-client=foo",
|
|
623
|
-
"test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1144
|
+
"test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/other/odata/service;o=STARTUP456/Annotations%28TechnicalName=%27%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE%27,Version=%270001%27%29/$value?sap-language=EN&sap-client=foo",
|
|
624
1145
|
"/path/to/other/odata/service/other2/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/?sap-language=EN&sap-client=foo",
|
|
625
1146
|
"/path/to/other3/odata/service/;o=sid(G1Y.400)/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/$value?sap-language=EN&sap-client=foo"
|
|
626
1147
|
],
|
|
@@ -652,7 +1173,7 @@ sap.ui.define([
|
|
|
652
1173
|
QUnit.test("metadata v2 with cacheTokens", function(assert) {
|
|
653
1174
|
|
|
654
1175
|
return Component.create({
|
|
655
|
-
name: "sap.ui.test.v2models.
|
|
1176
|
+
name: "sap.ui.test.v2models.parentValid",
|
|
656
1177
|
manifest: false,
|
|
657
1178
|
asyncHints: {
|
|
658
1179
|
cacheTokens: {
|
|
@@ -668,19 +1189,6 @@ sap.ui.define([
|
|
|
668
1189
|
}).then(function(oComponent) {
|
|
669
1190
|
this.oComponent = oComponent;
|
|
670
1191
|
|
|
671
|
-
/**
|
|
672
|
-
* @deprecated As of version 1.48
|
|
673
|
-
*/
|
|
674
|
-
// V1 ODataModel should not be affected by cache tokens
|
|
675
|
-
// model: "ODataModel"
|
|
676
|
-
sinon.assert.calledWithExactly(this.modelSpy.odata, {
|
|
677
|
-
serviceUrl: '/path/to/odata/service',
|
|
678
|
-
annotationURI: [ '/path/to/odata/annotations/1', 'test-resources/sap/ui/core/qunit/component/testdata/v2models/parent/path/to/local/odata/annotations/2'],
|
|
679
|
-
useBatch: false,
|
|
680
|
-
refreshAfterChange: false,
|
|
681
|
-
json: true
|
|
682
|
-
});
|
|
683
|
-
|
|
684
1192
|
// Model without "dataSource" reference should not be affected by cache tokens
|
|
685
1193
|
// model: "v2-ODataModel"
|
|
686
1194
|
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
@@ -697,14 +1205,14 @@ sap.ui.define([
|
|
|
697
1205
|
},
|
|
698
1206
|
annotationURI: [
|
|
699
1207
|
'/path/to/odata/service/with/trailing/slash/annotations.xml?sap-language=EN',
|
|
700
|
-
'test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1208
|
+
'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/odata/annotations/2?sap-language=EN'
|
|
701
1209
|
],
|
|
702
1210
|
useBatch: true,
|
|
703
1211
|
refreshAfterChange: true
|
|
704
1212
|
});
|
|
705
1213
|
|
|
706
1214
|
// model: "v2-ODataModel-SAPClient" with SAP client
|
|
707
|
-
sinon.assert.calledWithExactly(this.modelSpy.odataV2.getCall(
|
|
1215
|
+
sinon.assert.calledWithExactly(this.modelSpy.odataV2.getCall(6), {
|
|
708
1216
|
serviceUrl: '/path/to/odata/service/with/sapclient/?sap-client=100',
|
|
709
1217
|
annotationURI: [ '/path/to/odata/annotations/with/sapclient/?sap-client=200&sap-language=EN' ],
|
|
710
1218
|
metadataUrlParams: { 'sap-language': 'EN' }
|
|
@@ -736,7 +1244,7 @@ sap.ui.define([
|
|
|
736
1244
|
this.stubGetUriParameters();
|
|
737
1245
|
|
|
738
1246
|
return Component.create({
|
|
739
|
-
name: "sap.ui.test.v2models.
|
|
1247
|
+
name: "sap.ui.test.v2models.parentValid",
|
|
740
1248
|
manifest: false,
|
|
741
1249
|
asyncHints: {
|
|
742
1250
|
cacheTokens: {
|
|
@@ -751,22 +1259,6 @@ sap.ui.define([
|
|
|
751
1259
|
}).then(function(oComponent) {
|
|
752
1260
|
this.oComponent = oComponent;
|
|
753
1261
|
|
|
754
|
-
/**
|
|
755
|
-
* @deprecated As of version 1.48
|
|
756
|
-
*/
|
|
757
|
-
// V1 ODataModel should not be affected by cache tokens
|
|
758
|
-
// model: "ODataModel"
|
|
759
|
-
sinon.assert.calledWithExactly(this.modelSpy.odata, {
|
|
760
|
-
serviceUrl: '/path/to/odata/service?sap-client=foo&sap-server=bar',
|
|
761
|
-
annotationURI: [
|
|
762
|
-
'/path/to/odata/annotations/1',
|
|
763
|
-
'test-resources/sap/ui/core/qunit/component/testdata/v2models/parent/path/to/local/odata/annotations/2'
|
|
764
|
-
],
|
|
765
|
-
useBatch: false,
|
|
766
|
-
refreshAfterChange: false,
|
|
767
|
-
json: true
|
|
768
|
-
});
|
|
769
|
-
|
|
770
1262
|
// Model without "dataSource" reference should not be affected by cache tokens
|
|
771
1263
|
// model: "v2-ODataModel"
|
|
772
1264
|
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
@@ -784,7 +1276,7 @@ sap.ui.define([
|
|
|
784
1276
|
},
|
|
785
1277
|
annotationURI: [
|
|
786
1278
|
'/path/to/odata/service/with/trailing/slash/annotations.xml?sap-language=EN&sap-client=foo&sap-context-token=1476971136',
|
|
787
|
-
'test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1279
|
+
'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/odata/annotations/2?sap-language=EN&sap-client=foo&sap-context-token=1476971160'
|
|
788
1280
|
],
|
|
789
1281
|
useBatch: true,
|
|
790
1282
|
refreshAfterChange: true
|
|
@@ -859,6 +1351,103 @@ sap.ui.define([
|
|
|
859
1351
|
}.bind(this));
|
|
860
1352
|
});
|
|
861
1353
|
|
|
1354
|
+
QUnit.test("metadata v4 with sap-system URL parameter", async function(assert) {
|
|
1355
|
+
this.stubGetUriParameters({ sapSystem: "URL_123" });
|
|
1356
|
+
|
|
1357
|
+
this.oComponent = await Component.create({
|
|
1358
|
+
name: "sap.ui.test.v4models.sapSystem"
|
|
1359
|
+
});
|
|
1360
|
+
|
|
1361
|
+
this.assertModelInstances({
|
|
1362
|
+
"v4-ODataModel": this.modelSpy.odataV4,
|
|
1363
|
+
"v4-ODataModel-ServiceOrigin": this.modelSpy.odataV4,
|
|
1364
|
+
"v4-ODataModel-OtherOrigins": this.modelSpy.odataV4
|
|
1365
|
+
});
|
|
1366
|
+
|
|
1367
|
+
// model: "v4-ODataModel"
|
|
1368
|
+
sinon.assert.calledWithExactly(this.modelSpy.odataV4, {
|
|
1369
|
+
serviceUrl: '/path/to/odata/service;o=URL_123/'
|
|
1370
|
+
});
|
|
1371
|
+
|
|
1372
|
+
// model: "v4-ODataModel-ServiceOrigin" with a trailing slash and URL Parameters
|
|
1373
|
+
sinon.assert.calledWithExactly(this.modelSpy.odataV4, {
|
|
1374
|
+
serviceUrl: '/path/to/odata/service/with/trailing/slash;o=URL_123/?sap-client=foo&sap-server=bar',
|
|
1375
|
+
annotationURI: [
|
|
1376
|
+
'/path/to/odata/service/with/trailing/slash;o=URL_123/annotations.xml?sap-language=EN&sap-client=foo',
|
|
1377
|
+
'test-resources/sap/ui/core/qunit/component/testdata/v4models/sapSystem/path/to/local/odata/annotations/2?sap-language=EN&sap-client=foo'
|
|
1378
|
+
],
|
|
1379
|
+
metadataUrlParams: { "sap-language": "EN" }
|
|
1380
|
+
});
|
|
1381
|
+
|
|
1382
|
+
// model: "v4-ODataModel-OtherOrigins" with multi origin annotations
|
|
1383
|
+
sinon.assert.calledWithExactly(this.modelSpy.odataV4, {
|
|
1384
|
+
serviceUrl: '/path/to/odata/service/with/multi/origin/annotations;o=URL_123/?sap-client=foo&sap-server=bar',
|
|
1385
|
+
annotationURI: ["/path/to/other/odata/service;o=URL_123/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/$value?sap-language=EN&sap-client=foo",
|
|
1386
|
+
"test-resources/sap/ui/core/qunit/component/testdata/v4models/sapSystem/path/to/other/odata/service;o=URL_123/Annotations%28TechnicalName=%27%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE%27,Version=%270001%27%29/$value?sap-language=EN&sap-client=foo",
|
|
1387
|
+
"/path/to/other/odata/service/other2/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/?sap-language=EN&sap-client=foo",
|
|
1388
|
+
"/path/to/other3/odata/service/;o=sid(G1Y.400)/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/$value?sap-language=EN&sap-client=foo"
|
|
1389
|
+
],
|
|
1390
|
+
metadataUrlParams: { "sap-language": "EN" }
|
|
1391
|
+
});
|
|
1392
|
+
|
|
1393
|
+
// destroy the component
|
|
1394
|
+
this.oComponent.destroy();
|
|
1395
|
+
|
|
1396
|
+
// check if all models got destroyed (uses the models from #assertModelInstances)
|
|
1397
|
+
this.assertModelsDestroyed();
|
|
1398
|
+
});
|
|
1399
|
+
|
|
1400
|
+
QUnit.test("metadata v4 with sap-system startup parameter", async function(assert) {
|
|
1401
|
+
this.stubGetUriParameters();
|
|
1402
|
+
|
|
1403
|
+
this.oComponent = await Component.create({
|
|
1404
|
+
name: "sap.ui.test.v4models.sapSystem",
|
|
1405
|
+
componentData: {
|
|
1406
|
+
startupParameters: {
|
|
1407
|
+
"sap-system": "STARTUP123"
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
});
|
|
1411
|
+
|
|
1412
|
+
this.assertModelInstances({
|
|
1413
|
+
"v4-ODataModel": this.modelSpy.odataV4,
|
|
1414
|
+
"v4-ODataModel-ServiceOrigin": this.modelSpy.odataV4,
|
|
1415
|
+
"v4-ODataModel-OtherOrigins": this.modelSpy.odataV4
|
|
1416
|
+
});
|
|
1417
|
+
|
|
1418
|
+
// model: "v4-ODataModel"
|
|
1419
|
+
sinon.assert.calledWithExactly(this.modelSpy.odataV4, {
|
|
1420
|
+
serviceUrl: '/path/to/odata/service;o=STARTUP123/'
|
|
1421
|
+
});
|
|
1422
|
+
|
|
1423
|
+
// model: "v4-ODataModel-ServiceOrigin" with a trailing slash and URL Parameters
|
|
1424
|
+
sinon.assert.calledWithExactly(this.modelSpy.odataV4, {
|
|
1425
|
+
serviceUrl: '/path/to/odata/service/with/trailing/slash;o=STARTUP123/?sap-client=foo&sap-server=bar',
|
|
1426
|
+
annotationURI: [
|
|
1427
|
+
'/path/to/odata/service/with/trailing/slash;o=STARTUP123/annotations.xml?sap-language=EN&sap-client=foo',
|
|
1428
|
+
'test-resources/sap/ui/core/qunit/component/testdata/v4models/sapSystem/path/to/local/odata/annotations/2?sap-language=EN&sap-client=foo'
|
|
1429
|
+
],
|
|
1430
|
+
metadataUrlParams: { "sap-language": "EN" }
|
|
1431
|
+
});
|
|
1432
|
+
|
|
1433
|
+
// model: "v4-ODataModel-OtherOrigins" with multi origin annotations
|
|
1434
|
+
sinon.assert.calledWithExactly(this.modelSpy.odataV4, {
|
|
1435
|
+
serviceUrl: '/path/to/odata/service/with/multi/origin/annotations;o=STARTUP123/?sap-client=foo&sap-server=bar',
|
|
1436
|
+
annotationURI: ["/path/to/other/odata/service;o=STARTUP123/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/$value?sap-language=EN&sap-client=foo",
|
|
1437
|
+
"test-resources/sap/ui/core/qunit/component/testdata/v4models/sapSystem/path/to/other/odata/service;o=STARTUP123/Annotations%28TechnicalName=%27%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE%27,Version=%270001%27%29/$value?sap-language=EN&sap-client=foo",
|
|
1438
|
+
"/path/to/other/odata/service/other2/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/?sap-language=EN&sap-client=foo",
|
|
1439
|
+
"/path/to/other3/odata/service/;o=sid(G1Y.400)/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/$value?sap-language=EN&sap-client=foo"
|
|
1440
|
+
],
|
|
1441
|
+
metadataUrlParams: { "sap-language": "EN" }
|
|
1442
|
+
});
|
|
1443
|
+
|
|
1444
|
+
// destroy the component
|
|
1445
|
+
this.oComponent.destroy();
|
|
1446
|
+
|
|
1447
|
+
// check if all models got destroyed (uses the models from #assertModelInstances)
|
|
1448
|
+
this.assertModelsDestroyed();
|
|
1449
|
+
});
|
|
1450
|
+
|
|
862
1451
|
QUnit.test("metadata v2 with dataSources (extension inheritance)", function(assert) {
|
|
863
1452
|
this.stubGetUriParameters();
|
|
864
1453
|
|
|
@@ -868,33 +1457,14 @@ sap.ui.define([
|
|
|
868
1457
|
}).then(function(oComponent) {
|
|
869
1458
|
this.oComponent = oComponent;
|
|
870
1459
|
|
|
871
|
-
/**
|
|
872
|
-
* @deprecated As of version 1.48
|
|
873
|
-
*/
|
|
874
|
-
if ( this.modelSpy.odata ) {
|
|
875
|
-
// sap.ui.model.odata.ODataModel
|
|
876
|
-
sinon.assert.callCount(this.modelSpy.odata, 1);
|
|
877
|
-
|
|
878
|
-
// model: "ODataModel"
|
|
879
|
-
sinon.assert.calledWithExactly(this.modelSpy.odata, {
|
|
880
|
-
serviceUrl: '/path/to/odata/service?sap-client=foo&sap-server=bar',
|
|
881
|
-
annotationURI: [ '/path/to/odata/annotations/1', 'test-resources/sap/ui/core/qunit/component/testdata/v2models/parent/path/to/local/odata/annotations/2' ],
|
|
882
|
-
useBatch: true,
|
|
883
|
-
skipMetadataAnnotationParsing: true,
|
|
884
|
-
refreshAfterChange: false,
|
|
885
|
-
json: true
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
|
|
890
1460
|
// sap.ui.model.odata.v2.ODataModel
|
|
891
|
-
sinon.assert.callCount(this.modelSpy.odataV2,
|
|
1461
|
+
sinon.assert.callCount(this.modelSpy.odataV2, 7);
|
|
892
1462
|
|
|
893
1463
|
// model: "default-with-annotations"
|
|
894
1464
|
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
895
1465
|
serviceUrl: '/path/to/default/datasource?sap-client=foo&sap-server=bar',
|
|
896
1466
|
annotationURI: [
|
|
897
|
-
'test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1467
|
+
'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/odata/annotations/2?sap-language=EN&sap-client=foo',
|
|
898
1468
|
'/path/to/odata/annotations/1?sap-language=EN&sap-client=foo',
|
|
899
1469
|
'test-resources/sap/ui/core/qunit/component/testdata/v2models/extension/path/to/local/extension/annotation?sap-language=EN&sap-client=foo'
|
|
900
1470
|
],
|
|
@@ -917,33 +1487,21 @@ sap.ui.define([
|
|
|
917
1487
|
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
918
1488
|
serviceUrl: '/path/to/odata/service',
|
|
919
1489
|
useBatch: true,
|
|
920
|
-
refreshAfterChange: true
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
// model: "invalid-annotations"
|
|
924
|
-
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
925
|
-
serviceUrl: '/path/to/odata/service?sap-client=foo&sap-server=bar',
|
|
926
|
-
annotationURI: [ '/path/to/odata/annotations/1?sap-language=EN&sap-client=foo' ],
|
|
927
|
-
metadataUrlParams: { "sap-language": "EN" }
|
|
1490
|
+
refreshAfterChange: true,
|
|
1491
|
+
skipMetadataAnnotationParsing: true
|
|
928
1492
|
});
|
|
929
1493
|
|
|
930
1494
|
// model: "v2-ODataModel" with multi origin annotations
|
|
931
1495
|
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
932
1496
|
serviceUrl: '/path/to/odata/service/with/multi/origin/annotations/?sap-client=foo&sap-server=bar',
|
|
933
1497
|
annotationURI: ["/path/to/other/odata/service/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/$value?sap-language=EN&sap-client=foo",
|
|
934
|
-
"test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1498
|
+
"test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/other/odata/service/Annotations%28TechnicalName=%27%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE%27,Version=%270001%27%29/$value?sap-language=EN&sap-client=foo",
|
|
935
1499
|
"/path/to/other/odata/service/other2/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/?sap-language=EN&sap-client=foo",
|
|
936
1500
|
"/path/to/other3/odata/service/;o=sid(G1Y.400)/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/$value?sap-language=EN&sap-client=foo"
|
|
937
1501
|
],
|
|
938
1502
|
metadataUrlParams: { "sap-language": "EN" }
|
|
939
1503
|
});
|
|
940
1504
|
|
|
941
|
-
// model: "v2-ODataModel-unknown-odataVersion"
|
|
942
|
-
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
943
|
-
serviceUrl: '/path/to/unknown/odataVersion?sap-client=foo&sap-server=bar',
|
|
944
|
-
metadataUrlParams: { "sap-language": "EN" }
|
|
945
|
-
});
|
|
946
|
-
|
|
947
1505
|
// sap.ui.model.json.JSONModel
|
|
948
1506
|
sinon.assert.callCount(this.modelSpy.json, 3);
|
|
949
1507
|
|
|
@@ -964,7 +1522,7 @@ sap.ui.define([
|
|
|
964
1522
|
sinon.assert.calledWithExactly(this.modelSpy.xml, '/path/to/data.xml?sap-client=foo&sap-server=bar');
|
|
965
1523
|
|
|
966
1524
|
// model: "xml-relative"
|
|
967
|
-
sinon.assert.calledWithExactly(this.modelSpy.xml, 'test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1525
|
+
sinon.assert.calledWithExactly(this.modelSpy.xml, 'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/data.xml?sap-client=foo&sap-server=bar');
|
|
968
1526
|
|
|
969
1527
|
// model: "xml-extension"
|
|
970
1528
|
sinon.assert.calledWithExactly(this.modelSpy.xml, 'test-resources/sap/ui/core/qunit/component/testdata/v2models/extension/path/to/local/data.xml?sap-client=foo&sap-server=bar');
|
|
@@ -980,10 +1538,9 @@ sap.ui.define([
|
|
|
980
1538
|
|
|
981
1539
|
// model: "resourceBundle-legacy-uri"
|
|
982
1540
|
sinon.assert.calledWithExactly(this.modelSpy.resource, {
|
|
983
|
-
bundleUrl: "test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1541
|
+
bundleUrl: "test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/i18n.properties"
|
|
984
1542
|
});
|
|
985
1543
|
|
|
986
|
-
|
|
987
1544
|
// sap.ui.test.v2models.parent.CustomModel
|
|
988
1545
|
sinon.assert.callCount(this.modelSpy.custom, 7);
|
|
989
1546
|
|
|
@@ -991,7 +1548,7 @@ sap.ui.define([
|
|
|
991
1548
|
sinon.assert.calledWithExactly(this.modelSpy.custom, '/path/to/custom.datatype?sap-client=foo&sap-server=bar');
|
|
992
1549
|
|
|
993
1550
|
// model: "custom-uri-relative-string"
|
|
994
|
-
sinon.assert.calledWithExactly(this.modelSpy.custom, 'test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1551
|
+
sinon.assert.calledWithExactly(this.modelSpy.custom, 'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/custom.datatype?sap-client=foo&sap-server=bar');
|
|
995
1552
|
|
|
996
1553
|
// model: "custom-uri-string-with-settings"
|
|
997
1554
|
sinon.assert.calledWithExactly(this.modelSpy.custom, '/path/to/custom.datatype?sap-client=foo&sap-server=bar', {
|
|
@@ -1017,29 +1574,12 @@ sap.ui.define([
|
|
|
1017
1574
|
uri: 'foo'
|
|
1018
1575
|
});
|
|
1019
1576
|
|
|
1020
|
-
// Log.error
|
|
1021
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: Missing \"type\" for model \"no-model-type\"/), "[\"sap.ui5\"][\"models\"][\"no-model-type\"]", this.oComponent.getMetadata().getComponentName());
|
|
1022
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Class \"sap.ui.not.defined.Model\" for model \"missing-model-class\" could not be loaded./), "[\"sap.ui5\"][\"models\"][\"missing-model-class\"]", this.oComponent.getMetadata().getComponentName());
|
|
1023
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: Class \"sap.ui.test.v2models.parent.ModelNotDefined\" for model \"model-not-found\" could not be found/), "[\"sap.ui5\"][\"models\"][\"model-not-found\"]", this.oComponent.getMetadata().getComponentName());
|
|
1024
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: ODataAnnotation \"undefined\" for dataSource \"odata-invalid-annotations\" could not be found in manifest/), "[\"sap.app\"][\"dataSources\"][\"undefined\"]", this.oComponent.getMetadata().getComponentName());
|
|
1025
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: Missing \"uri\" for ODataAnnotation \"annotation-without-uri\"/), "[\"sap.app\"][\"dataSources\"][\"annotation-without-uri\"]", this.oComponent.getMetadata().getComponentName());
|
|
1026
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: dataSource \"json\" was expected to have type \"ODataAnnotation\" but was \"JSON\"/), "[\"sap.app\"][\"dataSources\"][\"json\"]", this.oComponent.getMetadata().getComponentName());
|
|
1027
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: dataSource \"invalid\" for model \"dataSource-invalid\" not found or invalid/), "[\"sap.app\"][\"dataSources\"][\"invalid\"]", this.oComponent.getMetadata().getComponentName());
|
|
1028
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: dataSource \"does-not-exist\" for model \"dataSource-not-found\" not found or invalid/), "[\"sap.app\"][\"dataSources\"][\"does-not-exist\"]", this.oComponent.getMetadata().getComponentName());
|
|
1029
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: Provided OData version \"3.0\" in dataSource \"unknown-odataVersion\" for model \"v2-ODataModel-unknown-odataVersion\" is unknown. Falling back to default model type \"sap.ui.model.odata.v2.ODataModel\"./), "[\"sap.app\"][\"dataSources\"][\"unknown-odataVersion\"]", this.oComponent.getMetadata().getComponentName());
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
1577
|
// check if models are set on component (and save them internally)
|
|
1033
1578
|
this.assertModelInstances({
|
|
1034
1579
|
"": this.modelSpy.odataV2,
|
|
1035
1580
|
"default-with-annotations": this.modelSpy.odataV2,
|
|
1036
1581
|
"old-uri-syntax": this.modelSpy.odataV2,
|
|
1037
|
-
/**
|
|
1038
|
-
* @deprecated As of version 1.48
|
|
1039
|
-
*/
|
|
1040
|
-
"ODataModel": this.modelSpy.odata,
|
|
1041
1582
|
"v2-ODataModel": this.modelSpy.odataV2,
|
|
1042
|
-
"invalid-annotations": this.modelSpy.odataV2,
|
|
1043
1583
|
"json": this.modelSpy.json,
|
|
1044
1584
|
"json-relative": this.modelSpy.json,
|
|
1045
1585
|
"json-relative-2": this.modelSpy.json,
|
|
@@ -1075,12 +1615,6 @@ sap.ui.define([
|
|
|
1075
1615
|
}).then(function(oComponent) {
|
|
1076
1616
|
this.oComponent = oComponent;
|
|
1077
1617
|
|
|
1078
|
-
/**
|
|
1079
|
-
* @deprecated As of version 1.48
|
|
1080
|
-
*/
|
|
1081
|
-
// sap.ui.model.odata.ODataModel
|
|
1082
|
-
sinon.assert.callCount(this.modelSpy.odata, 0);
|
|
1083
|
-
|
|
1084
1618
|
// sap.ui.model.odata.v2.ODataModel
|
|
1085
1619
|
sinon.assert.callCount(this.modelSpy.odataV2, 0);
|
|
1086
1620
|
// sap.ui.model.json.JSONModel
|
|
@@ -1111,21 +1645,6 @@ sap.ui.define([
|
|
|
1111
1645
|
}).then(function(oComponent) {
|
|
1112
1646
|
this.oComponent = oComponent;
|
|
1113
1647
|
|
|
1114
|
-
/**
|
|
1115
|
-
* @deprecated As of version 1.48
|
|
1116
|
-
*/
|
|
1117
|
-
if ( this.modelSpy.odata ) {
|
|
1118
|
-
// sap.ui.model.odata.ODataModel
|
|
1119
|
-
sinon.assert.callCount(this.modelSpy.odata, 1);
|
|
1120
|
-
|
|
1121
|
-
// model: "sfapi"
|
|
1122
|
-
sinon.assert.calledWithExactly(this.modelSpy.odata, {
|
|
1123
|
-
serviceUrl: 'test-resources/sap/ui/core/qunit/component/testdata/v1/some/odata/service',
|
|
1124
|
-
json: true
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
1648
|
// sap.ui.model.resource.ResourceModel
|
|
1130
1649
|
sinon.assert.callCount(this.modelSpy.resource, 1);
|
|
1131
1650
|
|
|
@@ -1137,10 +1656,7 @@ sap.ui.define([
|
|
|
1137
1656
|
// check if models are set on component (and save them internally)
|
|
1138
1657
|
this.assertModelInstances({
|
|
1139
1658
|
"i18n": this.modelSpy.resource,
|
|
1140
|
-
|
|
1141
|
-
* @deprecated As of version 1.48
|
|
1142
|
-
*/
|
|
1143
|
-
"sfapi": this.modelSpy.odata
|
|
1659
|
+
"sfapi": this.modelSpy.odataV2
|
|
1144
1660
|
});
|
|
1145
1661
|
|
|
1146
1662
|
// destroy the component
|
|
@@ -1391,31 +1907,14 @@ sap.ui.define([
|
|
|
1391
1907
|
noSyncTest_afterEach.call(this, assert);
|
|
1392
1908
|
},
|
|
1393
1909
|
assertAll: function(assert) {
|
|
1394
|
-
/**
|
|
1395
|
-
* @deprecated As of version 1.48
|
|
1396
|
-
*/
|
|
1397
|
-
if ( this.modelSpy.odata ) {
|
|
1398
|
-
// sap.ui.model.odata.ODataModel
|
|
1399
|
-
sinon.assert.callCount(this.modelSpy.odata, 1);
|
|
1400
|
-
|
|
1401
|
-
// model: "ODataModel"
|
|
1402
|
-
sinon.assert.calledWithExactly(this.modelSpy.odata, {
|
|
1403
|
-
serviceUrl: '/path/to/odata/service?sap-client=foo&sap-server=bar',
|
|
1404
|
-
annotationURI: [ '/path/to/odata/annotations/1', 'test-resources/sap/ui/core/qunit/component/testdata/v2models/parent/path/to/local/odata/annotations/2' ],
|
|
1405
|
-
useBatch: false,
|
|
1406
|
-
refreshAfterChange: false,
|
|
1407
|
-
json: true
|
|
1408
|
-
});
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
1910
|
// sap.ui.model.odata.v2.ODataModel
|
|
1412
|
-
sinon.assert.callCount(this.modelSpy.odataV2,
|
|
1911
|
+
sinon.assert.callCount(this.modelSpy.odataV2, 7);
|
|
1413
1912
|
|
|
1414
1913
|
// model: "default-with-annotations"
|
|
1415
1914
|
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
1416
1915
|
serviceUrl: '/path/to/default/datasource?sap-client=foo&sap-server=bar',
|
|
1417
1916
|
annotationURI: [
|
|
1418
|
-
'test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1917
|
+
'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/odata/annotations/2?sap-language=EN&sap-client=foo',
|
|
1419
1918
|
'/path/to/odata/annotations/1?sap-language=EN&sap-client=foo'
|
|
1420
1919
|
],
|
|
1421
1920
|
headers: { "Cache-Control": "max-age=500" },
|
|
@@ -1440,31 +1939,17 @@ sap.ui.define([
|
|
|
1440
1939
|
refreshAfterChange: true
|
|
1441
1940
|
});
|
|
1442
1941
|
|
|
1443
|
-
// model: "invalid-annotations"
|
|
1444
|
-
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
1445
|
-
serviceUrl: '/path/to/odata/service?sap-client=foo&sap-server=bar',
|
|
1446
|
-
annotationURI: [ '/path/to/odata/annotations/1?sap-language=EN&sap-client=foo' ],
|
|
1447
|
-
metadataUrlParams: { "sap-language": "EN" }
|
|
1448
|
-
});
|
|
1449
|
-
|
|
1450
1942
|
// model: "v2-ODataModel" with multi origin annotations
|
|
1451
1943
|
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
1452
1944
|
serviceUrl: '/path/to/odata/service/with/multi/origin/annotations/?sap-client=foo&sap-server=bar',
|
|
1453
1945
|
annotationURI: ["/path/to/other/odata/service/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/$value?sap-language=EN&sap-client=foo",
|
|
1454
|
-
"test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1946
|
+
"test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/other/odata/service/Annotations%28TechnicalName=%27%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE%27,Version=%270001%27%29/$value?sap-language=EN&sap-client=foo",
|
|
1455
1947
|
"/path/to/other/odata/service/other2/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/?sap-language=EN&sap-client=foo",
|
|
1456
1948
|
"/path/to/other3/odata/service/;o=sid(G1Y.400)/Annotations(TechnicalName='%2FIWBEP%2FTEA_TEST_ANNOTATION_FILE',Version='0001')/$value?sap-language=EN&sap-client=foo"
|
|
1457
1949
|
],
|
|
1458
1950
|
metadataUrlParams: { "sap-language": "EN" }
|
|
1459
1951
|
});
|
|
1460
1952
|
|
|
1461
|
-
// model: "v2-ODataModel-unknown-odataVersion"
|
|
1462
|
-
sinon.assert.calledWithExactly(this.modelSpy.odataV2, {
|
|
1463
|
-
serviceUrl: '/path/to/unknown/odataVersion?sap-client=foo&sap-server=bar',
|
|
1464
|
-
metadataUrlParams: { "sap-language": "EN" }
|
|
1465
|
-
});
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
1953
|
// sap.ui.model.json.JSONModel
|
|
1469
1954
|
sinon.assert.callCount(this.modelSpy.json, 3);
|
|
1470
1955
|
|
|
@@ -1472,7 +1957,7 @@ sap.ui.define([
|
|
|
1472
1957
|
sinon.assert.calledWithExactly(this.modelSpy.json, '/path/to/data.json?sap-client=foo&sap-server=bar');
|
|
1473
1958
|
|
|
1474
1959
|
// model: "json-relative"
|
|
1475
|
-
sinon.assert.calledWithExactly(this.modelSpy.json, 'test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1960
|
+
sinon.assert.calledWithExactly(this.modelSpy.json, 'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/data.json?sap-client=foo&sap-server=bar');
|
|
1476
1961
|
|
|
1477
1962
|
// model: "json-relative-2"
|
|
1478
1963
|
sinon.assert.calledWithExactly(this.modelSpy.json, 'test-resources/sap/ui/core/qunit/component/testdata/path/to/other/data.json?sap-client=foo&sap-server=bar');
|
|
@@ -1485,7 +1970,7 @@ sap.ui.define([
|
|
|
1485
1970
|
sinon.assert.calledWithExactly(this.modelSpy.xml, '/path/to/data.xml?sap-client=foo&sap-server=bar');
|
|
1486
1971
|
|
|
1487
1972
|
// model: "xml-relative"
|
|
1488
|
-
sinon.assert.calledWithExactly(this.modelSpy.xml, 'test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1973
|
+
sinon.assert.calledWithExactly(this.modelSpy.xml, 'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/data.xml?sap-client=foo&sap-server=bar');
|
|
1489
1974
|
|
|
1490
1975
|
|
|
1491
1976
|
// sap.ui.model.resource.ResourceModel
|
|
@@ -1498,7 +1983,7 @@ sap.ui.define([
|
|
|
1498
1983
|
|
|
1499
1984
|
// model: "resourceBundle-legacy-uri"
|
|
1500
1985
|
sinon.assert.calledWithExactly(this.modelSpy.resource, {
|
|
1501
|
-
bundleUrl: "test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1986
|
+
bundleUrl: "test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/i18n.properties"
|
|
1502
1987
|
});
|
|
1503
1988
|
|
|
1504
1989
|
|
|
@@ -1509,7 +1994,7 @@ sap.ui.define([
|
|
|
1509
1994
|
sinon.assert.calledWithExactly(this.modelSpy.custom, '/path/to/custom.datatype?sap-client=foo&sap-server=bar');
|
|
1510
1995
|
|
|
1511
1996
|
// model: "custom-uri-relative-string"
|
|
1512
|
-
sinon.assert.calledWithExactly(this.modelSpy.custom, 'test-resources/sap/ui/core/qunit/component/testdata/v2models/
|
|
1997
|
+
sinon.assert.calledWithExactly(this.modelSpy.custom, 'test-resources/sap/ui/core/qunit/component/testdata/v2models/parentValid/path/to/local/custom.datatype?sap-client=foo&sap-server=bar');
|
|
1513
1998
|
|
|
1514
1999
|
// model: "custom-uri-string-with-settings"
|
|
1515
2000
|
sinon.assert.calledWithExactly(this.modelSpy.custom, '/path/to/custom.datatype?sap-client=foo&sap-server=bar', {
|
|
@@ -1535,30 +2020,12 @@ sap.ui.define([
|
|
|
1535
2020
|
uri: 'foo'
|
|
1536
2021
|
});
|
|
1537
2022
|
|
|
1538
|
-
|
|
1539
|
-
// Log.error
|
|
1540
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: Missing \"type\" for model \"no-model-type\"/), "[\"sap.ui5\"][\"models\"][\"no-model-type\"]", this.oComponent.getMetadata().getComponentName());
|
|
1541
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Class \"sap.ui.not.defined.Model\" for model \"missing-model-class\" could not be loaded./), "[\"sap.ui5\"][\"models\"][\"missing-model-class\"]", this.oComponent.getMetadata().getComponentName());
|
|
1542
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: Class \"sap.ui.test.v2models.parent.ModelNotDefined\" for model \"model-not-found\" could not be found/), "[\"sap.ui5\"][\"models\"][\"model-not-found\"]", this.oComponent.getMetadata().getComponentName());
|
|
1543
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: ODataAnnotation \"undefined\" for dataSource \"odata-invalid-annotations\" could not be found in manifest/), "[\"sap.app\"][\"dataSources\"][\"undefined\"]", this.oComponent.getMetadata().getComponentName());
|
|
1544
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: Missing \"uri\" for ODataAnnotation \"annotation-without-uri\"/), "[\"sap.app\"][\"dataSources\"][\"annotation-without-uri\"]", this.oComponent.getMetadata().getComponentName());
|
|
1545
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: dataSource \"json\" was expected to have type \"ODataAnnotation\" but was \"JSON\"/), "[\"sap.app\"][\"dataSources\"][\"json\"]", this.oComponent.getMetadata().getComponentName());
|
|
1546
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: dataSource \"invalid\" for model \"dataSource-invalid\" not found or invalid/), "[\"sap.app\"][\"dataSources\"][\"invalid\"]", this.oComponent.getMetadata().getComponentName());
|
|
1547
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: dataSource \"does-not-exist\" for model \"dataSource-not-found\" not found or invalid/), "[\"sap.app\"][\"dataSources\"][\"does-not-exist\"]", this.oComponent.getMetadata().getComponentName());
|
|
1548
|
-
sinon.assert.calledWithExactly(this.oLogSpy, sinon.match(/Component Manifest: Provided OData version \"3.0\" in dataSource \"unknown-odataVersion\" for model \"v2-ODataModel-unknown-odataVersion\" is unknown. Falling back to default model type \"sap.ui.model.odata.v2.ODataModel\"./), "[\"sap.app\"][\"dataSources\"][\"unknown-odataVersion\"]", this.oComponent.getMetadata().getComponentName());
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
2023
|
// check if models are set on component (and save them internally)
|
|
1552
2024
|
this.assertModelInstances({
|
|
1553
2025
|
"": this.modelSpy.odataV2,
|
|
1554
2026
|
"default-with-annotations": this.modelSpy.odataV2,
|
|
1555
2027
|
"old-uri-syntax": this.modelSpy.odataV2,
|
|
1556
|
-
/**
|
|
1557
|
-
* @deprecated As of version 1.48
|
|
1558
|
-
*/
|
|
1559
|
-
"ODataModel": this.modelSpy.odata,
|
|
1560
2028
|
"v2-ODataModel": this.modelSpy.odataV2,
|
|
1561
|
-
"invalid-annotations": this.modelSpy.odataV2,
|
|
1562
2029
|
"json": this.modelSpy.json,
|
|
1563
2030
|
"json-relative": this.modelSpy.json,
|
|
1564
2031
|
"json-relative-2": this.modelSpy.json,
|
|
@@ -1710,16 +2177,7 @@ sap.ui.define([
|
|
|
1710
2177
|
"i18n2": {
|
|
1711
2178
|
"type": "sap.ui.model.resource.ResourceModel",
|
|
1712
2179
|
"uri": "./i18n.properties"
|
|
1713
|
-
},
|
|
1714
|
-
|
|
1715
|
-
// This model should not get preloaded as the class is not declared and a warning should get logged
|
|
1716
|
-
// When creating the model on component init an error should get logged
|
|
1717
|
-
// but all other models should still be created
|
|
1718
|
-
"class-not-loaded": {
|
|
1719
|
-
"type": "sap.ui.sample.model.MyModel",
|
|
1720
|
-
"preload": true
|
|
1721
2180
|
}
|
|
1722
|
-
|
|
1723
2181
|
}
|
|
1724
2182
|
}
|
|
1725
2183
|
};
|
|
@@ -1813,12 +2271,6 @@ sap.ui.define([
|
|
|
1813
2271
|
assert.ok(this.modelSpy.resource.getCall(1).returnValue.getResourceBundle() instanceof ResourceBundle,
|
|
1814
2272
|
"ResourceBundle should be available");
|
|
1815
2273
|
|
|
1816
|
-
// check error log for "class-not-loaded" model
|
|
1817
|
-
sinon.assert.calledWithExactly(this.oLogErrorSpy,
|
|
1818
|
-
sinon.match(/Component Manifest: Class \"sap.ui.sample.model.MyModel\" for model \"class-not-loaded\" could not be loaded./),
|
|
1819
|
-
"[\"sap.ui5\"][\"models\"][\"class-not-loaded\"]",
|
|
1820
|
-
this.oComponent.getMetadata().getComponentName());
|
|
1821
|
-
|
|
1822
2274
|
assert.ok(this.oComponent.getMetadata() instanceof UIComponentMetadata, "The metadata is instance of UIComponentMetadata");
|
|
1823
2275
|
assert.ok(this.oComponent.getManifest(), "Manifest is available");
|
|
1824
2276
|
assert.deepEqual(this.oComponent.getManifest(), this.oManifest, "Manifest matches the manifest behind manifestUrl");
|
|
@@ -1933,11 +2385,6 @@ sap.ui.define([
|
|
|
1933
2385
|
// sap.ui.model.resource.ResourceModel
|
|
1934
2386
|
sinon.assert.callCount(this.modelSpy.resource, 2);
|
|
1935
2387
|
|
|
1936
|
-
// check error log for "class-not-loaded" model
|
|
1937
|
-
sinon.assert.calledWithExactly(this.oLogErrorSpy,
|
|
1938
|
-
sinon.match(/Component Manifest: Class \"sap.ui.sample.model.MyModel\" for model \"class-not-loaded\" could not be loaded./),
|
|
1939
|
-
"[\"sap.ui5\"][\"models\"][\"class-not-loaded\"]",
|
|
1940
|
-
this.oComponent.getMetadata().getComponentName());
|
|
1941
2388
|
|
|
1942
2389
|
assert.ok(this.oComponent.getMetadata() instanceof UIComponentMetadata, "The metadata is instance of UIComponentMetadata");
|
|
1943
2390
|
assert.ok(this.oComponent.getManifest(), "Manifest is available");
|
|
@@ -2112,13 +2559,6 @@ sap.ui.define([
|
|
|
2112
2559
|
|
|
2113
2560
|
var oResourceModel2 = this.modelSpy.resource.getCall(1).returnValue;
|
|
2114
2561
|
assert.ok(oResourceModel2.bDestroyed, "ResourceModel should have been destroyed.");
|
|
2115
|
-
|
|
2116
|
-
// check warning log for "class-not-loaded" model
|
|
2117
|
-
sinon.assert.calledWithExactly(this.oLogWarningSpy,
|
|
2118
|
-
"Can not preload model \"class-not-loaded\" as required class has not been loaded: \"sap.ui.sample.model.MyModel\"",
|
|
2119
|
-
this.oManifest["sap.app"]["id"],
|
|
2120
|
-
"sap.ui.core.Component");
|
|
2121
|
-
|
|
2122
2562
|
}.bind(this));
|
|
2123
2563
|
});
|
|
2124
2564
|
|
|
@@ -2172,13 +2612,6 @@ sap.ui.define([
|
|
|
2172
2612
|
|
|
2173
2613
|
var oResourceModel2 = this.modelSpy.resource.getCall(1).returnValue;
|
|
2174
2614
|
assert.ok(oResourceModel2.bDestroyed, "ResourceModel should have been destroyed.");
|
|
2175
|
-
|
|
2176
|
-
// check warning log for "class-not-loaded" model
|
|
2177
|
-
sinon.assert.calledWithExactly(this.oLogWarningSpy,
|
|
2178
|
-
"Can not preload model \"class-not-loaded\" as required class has not been loaded: \"sap.ui.sample.model.MyModel\"",
|
|
2179
|
-
this.oManifest["sap.app"]["id"],
|
|
2180
|
-
"sap.ui.core.Component");
|
|
2181
|
-
|
|
2182
2615
|
}.bind(this));
|
|
2183
2616
|
});
|
|
2184
2617
|
|