@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
|
@@ -7,16 +7,20 @@ sap.ui.define([
|
|
|
7
7
|
"sap/ui/test/autowaiter/_promiseWaiter",
|
|
8
8
|
"sap/ui/test/autowaiter/_cssTransitionWaiter",
|
|
9
9
|
"sap/ui/test/autowaiter/_cssAnimationWaiter",
|
|
10
|
+
"sap/ui/test/autowaiter/_UIUpdatesWaiter",
|
|
10
11
|
"sap/m/NavContainer",
|
|
11
12
|
"sap/m/App",
|
|
12
13
|
"sap/m/Page",
|
|
13
14
|
"sap/m/Button",
|
|
14
15
|
"sap/ui/test/opaQunit",
|
|
15
16
|
"sap/ui/test/Opa5",
|
|
16
|
-
"sap/ui/qunit/utils/nextUIUpdate"
|
|
17
|
+
"sap/ui/qunit/utils/nextUIUpdate",
|
|
18
|
+
"sap/ui/core/IntervalTrigger",
|
|
19
|
+
"sap/ui/core/ResizeHandler"
|
|
17
20
|
], function (_LogCollector, _autoWaiter, _timeoutWaiter, _XHRWaiter,
|
|
18
|
-
_promiseWaiter, _cssTransitionWaiter, _cssAnimationWaiter,
|
|
19
|
-
NavContainer, App, Page, Button, opaTest, Opa5,
|
|
21
|
+
_promiseWaiter, _cssTransitionWaiter, _cssAnimationWaiter, _UIUpdatesWaiter,
|
|
22
|
+
NavContainer, App, Page, Button, opaTest, Opa5,
|
|
23
|
+
nextUIUpdate, IntervalTrigger, ResizeHandler) {
|
|
20
24
|
"use strict";
|
|
21
25
|
|
|
22
26
|
var oLogCollector = _LogCollector.getInstance();
|
|
@@ -29,22 +33,26 @@ sap.ui.define([
|
|
|
29
33
|
this.oPromiseWaiterStub = sinon.stub(_promiseWaiter, "hasPending");
|
|
30
34
|
this.oCssTransitionWaiterStub = sinon.stub(_cssTransitionWaiter, "hasPending");
|
|
31
35
|
this.oCssAnimationWaiterStub = sinon.stub(_cssAnimationWaiter, "hasPending");
|
|
36
|
+
this.oUIUpdatesWaiterStub = sinon.stub(_UIUpdatesWaiter, "hasPending");
|
|
32
37
|
this.oTimeoutWaiterStub.returns(false);
|
|
33
38
|
this.oXHRWaiterStub.returns(false);
|
|
34
39
|
this.oPromiseWaiterStub.returns(false);
|
|
35
40
|
this.oCssTransitionWaiterStub.returns(false);
|
|
36
41
|
this.oCssAnimationWaiterStub.returns(false);
|
|
42
|
+
this.oUIUpdatesWaiterStub.returns(false);
|
|
37
43
|
|
|
38
44
|
this.oInitialPageButton = new Button();
|
|
39
45
|
this.oSecondPageButton = new Button();
|
|
40
|
-
|
|
46
|
+
this.oInitialPage = new Page({
|
|
47
|
+
showHeader: false,
|
|
41
48
|
content: this.oInitialPageButton
|
|
42
49
|
});
|
|
43
50
|
this.oSecondPage = new Page({
|
|
51
|
+
showHeader: false,
|
|
44
52
|
content: this.oSecondPageButton
|
|
45
53
|
});
|
|
46
54
|
this.oNavContainer = new FnConstructor({
|
|
47
|
-
pages: [oInitialPage, this.oSecondPage]
|
|
55
|
+
pages: [this.oInitialPage, this.oSecondPage]
|
|
48
56
|
}).placeAt("qunit-fixture");
|
|
49
57
|
|
|
50
58
|
return nextUIUpdate();
|
|
@@ -56,6 +64,7 @@ sap.ui.define([
|
|
|
56
64
|
this.oPromiseWaiterStub.restore();
|
|
57
65
|
this.oCssTransitionWaiterStub.restore();
|
|
58
66
|
this.oCssAnimationWaiterStub.restore();
|
|
67
|
+
this.oUIUpdatesWaiterStub.restore();
|
|
59
68
|
this.oNavContainer.destroy();
|
|
60
69
|
return nextUIUpdate();
|
|
61
70
|
}
|
|
@@ -64,25 +73,63 @@ sap.ui.define([
|
|
|
64
73
|
QUnit.test("Should not match a Button while its navContainer is navigating", function (assert) {
|
|
65
74
|
var fnDone = assert.async();
|
|
66
75
|
var oNavigationLogRegExp = new RegExp("The NavContainer " + this.oNavContainer + " is currently navigating", "g");
|
|
67
|
-
|
|
76
|
+
var bIsAfterNavigate;
|
|
77
|
+
|
|
78
|
+
var oIntervalListener = {
|
|
79
|
+
onTrigger: function() {
|
|
80
|
+
if (bIsAfterNavigate) {
|
|
81
|
+
var bInitialResultAfterNavigationFinished = _autoWaiter.hasToWait();
|
|
82
|
+
var bSecondResultAfterNavigationFinished = _autoWaiter.hasToWait();
|
|
83
|
+
assert.ok(!bInitialResultAfterNavigationFinished, "Navigation is done");
|
|
84
|
+
assert.ok(!bSecondResultAfterNavigationFinished, "Navigation is done");
|
|
85
|
+
assert.ok(!oLogCollector.getAndClearLog().match(oNavigationLogRegExp));
|
|
86
|
+
IntervalTrigger.removeListener(this.onTrigger, this);
|
|
87
|
+
fnDone();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
IntervalTrigger.addListener(oIntervalListener.onTrigger, oIntervalListener);
|
|
68
92
|
this.oNavContainer.to(this.oSecondPage);
|
|
69
93
|
var bInitialResultBeforeNavigationFinished = _autoWaiter.hasToWait();
|
|
70
94
|
var bSecondResultBeforeNavigationFinished = _autoWaiter.hasToWait();
|
|
71
95
|
|
|
72
96
|
assert.strictEqual(oLogCollector.getAndClearLog().match(oNavigationLogRegExp).length, 2);
|
|
97
|
+
assert.ok(bInitialResultBeforeNavigationFinished, "Navigation is in progress");
|
|
98
|
+
assert.ok(bSecondResultBeforeNavigationFinished, "Navigation is in progress");
|
|
73
99
|
|
|
74
100
|
this.oNavContainer.attachAfterNavigate(function () {
|
|
75
|
-
|
|
76
|
-
var bSecondResultAfterNavigationFinished = _autoWaiter.hasToWait();
|
|
77
|
-
|
|
78
|
-
assert.ok(bInitialResultBeforeNavigationFinished, "Navigation is in progress");
|
|
79
|
-
assert.ok(bSecondResultBeforeNavigationFinished, "Navigation is in progress");
|
|
80
|
-
assert.ok(!bInitialResultAfterNavigationFinished, "Navigation is done");
|
|
81
|
-
assert.ok(!bSecondResultAfterNavigationFinished, "Navigation is done");
|
|
82
|
-
assert.ok(!oLogCollector.getAndClearLog().match(oNavigationLogRegExp));
|
|
83
|
-
fnDone();
|
|
101
|
+
bIsAfterNavigate = true;
|
|
84
102
|
}, this);
|
|
85
103
|
});
|
|
104
|
+
|
|
105
|
+
QUnit.test("Should wait for resize notifications at navigatiion end", function (assert) {
|
|
106
|
+
var fnDone = assert.async();
|
|
107
|
+
var oResizeSpy = this.spy(ResizeHandler.prototype, "checkSizes");
|
|
108
|
+
var bIsAfterNavigate;
|
|
109
|
+
|
|
110
|
+
var oIntervalListener = {
|
|
111
|
+
onTrigger: function() {
|
|
112
|
+
if (bIsAfterNavigate) {
|
|
113
|
+
assert.ok(oResizeSpy.called, "the resize listener is called at the next interval trigger");
|
|
114
|
+
assert.notOk(_autoWaiter.hasToWait(), "no navigations in progress");
|
|
115
|
+
IntervalTrigger.removeListener(this.onTrigger, this);
|
|
116
|
+
fnDone();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
this.oNavContainer.setDefaultTransitionName("show");
|
|
121
|
+
// ensure ResizeHandler monitors at least one control for resize:
|
|
122
|
+
ResizeHandler.register(this.oInitialPage, function(){});
|
|
123
|
+
IntervalTrigger.addListener(oIntervalListener.onTrigger, oIntervalListener);
|
|
124
|
+
oResizeSpy.reset();
|
|
125
|
+
|
|
126
|
+
// Act
|
|
127
|
+
this.oNavContainer.to(this.oSecondPage);
|
|
128
|
+
bIsAfterNavigate = true;
|
|
129
|
+
|
|
130
|
+
// Check navigation detected
|
|
131
|
+
assert.ok(_autoWaiter.hasToWait(), "navigation in progress");
|
|
132
|
+
});
|
|
86
133
|
});
|
|
87
134
|
|
|
88
135
|
QUnit.module("NavigationContainerWaiter - iFrame");
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*global QUnit, sinon, hasher */
|
|
2
2
|
sap.ui.define([
|
|
3
|
+
"sap/base/future",
|
|
3
4
|
"sap/base/Log",
|
|
4
5
|
"sap/base/util/deepExtend",
|
|
5
6
|
"sap/ui/core/UIComponent",
|
|
@@ -14,7 +15,7 @@ sap.ui.define([
|
|
|
14
15
|
"./AsyncViewModuleHook",
|
|
15
16
|
"sap/ui/core/Component",
|
|
16
17
|
"sap/ui/core/ComponentContainer"
|
|
17
|
-
], function (Log, deepExtend, UIComponent, View, ViewType, HashChanger, Router, Views, App, NavContainer, Panel, ModuleHook, Component, ComponentContainer) {
|
|
18
|
+
], function (future, Log, deepExtend, UIComponent, View, ViewType, HashChanger, Router, Views, App, NavContainer, Panel, ModuleHook, Component, ComponentContainer) {
|
|
18
19
|
"use strict";
|
|
19
20
|
|
|
20
21
|
// This global namespace is used for creating custom component classes.
|
|
@@ -329,8 +330,11 @@ sap.ui.define([
|
|
|
329
330
|
|
|
330
331
|
});
|
|
331
332
|
|
|
332
|
-
|
|
333
|
-
|
|
333
|
+
/**
|
|
334
|
+
* @deprecated As of version 1.120
|
|
335
|
+
*/
|
|
336
|
+
QUnit.test("Should log a warning if a router gets destroyed while the hash changes (future=false)", function (assert) {
|
|
337
|
+
future.active = false;
|
|
334
338
|
// Arrange
|
|
335
339
|
var oWarningSpy = this.stub(Log, "warning"),
|
|
336
340
|
oFirstRouter = fnCreateRouter({
|
|
@@ -361,6 +365,38 @@ sap.ui.define([
|
|
|
361
365
|
assert.ok(oWarningSpy.args[0][0].indexOf("destroyed") !== -1, "The message contains the correct keyword");
|
|
362
366
|
assert.strictEqual(oWarningSpy.args[0][1], oRouterToBeDestroyed, "The second parameter to the warning call is correct");
|
|
363
367
|
oFirstRouter.destroy();
|
|
368
|
+
|
|
369
|
+
future.active = undefined;
|
|
370
|
+
hasher.setHash("");
|
|
371
|
+
});
|
|
372
|
+
|
|
373
|
+
QUnit.test("Should throw an error if a router gets destroyed while the hash changes (future=true)", function (assert) {
|
|
374
|
+
future.active = true;
|
|
375
|
+
// Arrange
|
|
376
|
+
const oFirstRouter = fnCreateRouter({
|
|
377
|
+
"matchingRoute": {
|
|
378
|
+
pattern: "matches"
|
|
379
|
+
}
|
|
380
|
+
}),
|
|
381
|
+
oRouterToBeDestroyed = fnCreateRouter({
|
|
382
|
+
"matchingRoute": {
|
|
383
|
+
pattern: "matches"
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
|
|
387
|
+
// first router has to init first it is the first registered router on the hashchanger
|
|
388
|
+
oFirstRouter.initialize();
|
|
389
|
+
oRouterToBeDestroyed.initialize();
|
|
390
|
+
|
|
391
|
+
this.stub(oFirstRouter, "parse").callsFake(function () {
|
|
392
|
+
Router.prototype.parse.apply(this, arguments);
|
|
393
|
+
oRouterToBeDestroyed.destroy();
|
|
394
|
+
});
|
|
395
|
+
|
|
396
|
+
// Act - trigger both routers
|
|
397
|
+
assert.throws(() => { hasher.setHash("matches"); }, new Error("This router has been destroyed while the hash changed. No routing events where fired by the destroyed instance."), "Error thrown because router has been destroyed while the hash changed.");
|
|
398
|
+
|
|
399
|
+
future.active = undefined;
|
|
364
400
|
});
|
|
365
401
|
|
|
366
402
|
QUnit.module("config", {
|
|
@@ -415,7 +451,12 @@ sap.ui.define([
|
|
|
415
451
|
});
|
|
416
452
|
});
|
|
417
453
|
|
|
418
|
-
|
|
454
|
+
/**
|
|
455
|
+
* @deprecated As of version 1.120
|
|
456
|
+
*/
|
|
457
|
+
QUnit.test("Handle setting invalid option 'viewName' in route (future=false)", function(assert) {
|
|
458
|
+
future.active = false;
|
|
459
|
+
|
|
419
460
|
var oLogSpy = this.spy(Log, "error");
|
|
420
461
|
|
|
421
462
|
//Arrange System under Test
|
|
@@ -433,6 +474,29 @@ sap.ui.define([
|
|
|
433
474
|
|
|
434
475
|
|
|
435
476
|
assert.ok(oLogSpy.calledWith(sinon.match(/The 'viewName' option shouldn't be used in Route. please use 'view' instead/)), "The error log is done and the log message is correct");
|
|
477
|
+
|
|
478
|
+
future.active = undefined;
|
|
479
|
+
});
|
|
480
|
+
|
|
481
|
+
QUnit.test("Throw Error when setting invalid option 'viewName' in route (future=true)", function (assert) {
|
|
482
|
+
future.active = true;
|
|
483
|
+
|
|
484
|
+
//Arrange System under Test
|
|
485
|
+
assert.throws(() => {
|
|
486
|
+
fnCreateRouter({
|
|
487
|
+
name: {
|
|
488
|
+
// This is a wrong usage, the option "view" should be set
|
|
489
|
+
// instead of "viewName"
|
|
490
|
+
// We should still support the usage but log an error to
|
|
491
|
+
// let the app be aware of the wrong usage
|
|
492
|
+
viewName: "myView",
|
|
493
|
+
viewType: "JS",
|
|
494
|
+
pattern: "view1"
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
}, new Error("The 'viewName' option shouldn't be used in Route. please use 'view' instead"), "Error thrown because invalid option 'viewName' is set for route.");
|
|
498
|
+
|
|
499
|
+
future.active = undefined;
|
|
436
500
|
});
|
|
437
501
|
|
|
438
502
|
QUnit.test("subroute handling", function(assert) {
|
|
@@ -1078,24 +1142,32 @@ sap.ui.define([
|
|
|
1078
1142
|
});
|
|
1079
1143
|
});
|
|
1080
1144
|
|
|
1081
|
-
QUnit.module("navTo", {
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
}
|
|
1145
|
+
QUnit.module("navTo", {});
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
QUnit.test("Throw Error when route doesn't exist (future=true)", function(assert) {
|
|
1149
|
+
future.active = true;
|
|
1150
|
+
const oRouter = fnCreateRouter();
|
|
1151
|
+
|
|
1152
|
+
assert.throws(() => oRouter.navTo("home"), new Error("Route with name home does not exist"), "Error thrown because route does not exist.");
|
|
1153
|
+
future.active = undefined;
|
|
1091
1154
|
});
|
|
1092
1155
|
|
|
1093
1156
|
QUnit.test("Should be able to chain NavTo", function (assert) {
|
|
1157
|
+
const oRouter = fnCreateRouter([
|
|
1158
|
+
{
|
|
1159
|
+
name: "home",
|
|
1160
|
+
pattern: ""
|
|
1161
|
+
}
|
|
1162
|
+
]);
|
|
1163
|
+
oRouter.oHashChanger = {
|
|
1164
|
+
setHash: function () { }
|
|
1165
|
+
};
|
|
1094
1166
|
// Act
|
|
1095
|
-
var oReturnValue =
|
|
1167
|
+
var oReturnValue = oRouter.navTo("home");
|
|
1096
1168
|
|
|
1097
1169
|
// Assert
|
|
1098
|
-
assert.strictEqual(oReturnValue,
|
|
1170
|
+
assert.strictEqual(oReturnValue, oRouter, "able to chain navTo");
|
|
1099
1171
|
});
|
|
1100
1172
|
|
|
1101
1173
|
QUnit.test("Should be able to use navTo with query parameters", function (assert) {
|
|
@@ -1141,9 +1213,6 @@ sap.ui.define([
|
|
|
1141
1213
|
}
|
|
1142
1214
|
});
|
|
1143
1215
|
oRouter.initialize();
|
|
1144
|
-
|
|
1145
|
-
// Act
|
|
1146
|
-
oRouter.navTo("home");
|
|
1147
1216
|
});
|
|
1148
1217
|
|
|
1149
1218
|
QUnit.test("Should throw an exception if route placeholder are not unique", function(assert){
|
|
@@ -3223,6 +3292,7 @@ sap.ui.define([
|
|
|
3223
3292
|
* @deprecated As of version 1.90
|
|
3224
3293
|
*/
|
|
3225
3294
|
QUnit.test("Should throw an error if a nested component has configured synchronous routing", function(assert){
|
|
3295
|
+
future.active = false;
|
|
3226
3296
|
return Component.create({
|
|
3227
3297
|
name: "qunit.router.component.nestedComponentSync.Parent",
|
|
3228
3298
|
id: "asyncParent"
|
|
@@ -3234,6 +3304,8 @@ sap.ui.define([
|
|
|
3234
3304
|
assert.equal(oHomeRouteMatchedSpy.callCount, 1, "The home route should be matched once");
|
|
3235
3305
|
return oHomeRouteMatchedSpy.getCall(0).returnValue.catch(function(oError){
|
|
3236
3306
|
assert.equal(oError.message, "The router of component 'asyncParent---syncChildComponent' which is loaded via the target 'home' is defined as synchronous which is not supported using as a nested component.", "The correct error should be thrown.");
|
|
3307
|
+
oParentComponent.destroy();
|
|
3308
|
+
future.active = undefined;
|
|
3237
3309
|
});
|
|
3238
3310
|
});
|
|
3239
3311
|
});
|
|
@@ -302,7 +302,7 @@ sap.ui.define([
|
|
|
302
302
|
}, function(oError) {
|
|
303
303
|
// Assert
|
|
304
304
|
assert.ok(oError instanceof Error, "The promise is rejected with an error object");
|
|
305
|
-
assert.ok(oError.message.includes("The target myTarget has a control id or a parent but no 'controlAggregation' was set, so the target could not be displayed.
|
|
305
|
+
assert.ok(oError.message.includes("The target myTarget has a control id or a parent but no 'controlAggregation' was set, so the target could not be displayed."), "The error message is correct");
|
|
306
306
|
});
|
|
307
307
|
});
|
|
308
308
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*global QUnit, sinon */
|
|
2
2
|
sap.ui.define([
|
|
3
|
+
"sap/base/future",
|
|
3
4
|
"sap/ui/core/mvc/XMLView",
|
|
4
5
|
"sap/ui/core/routing/Targets",
|
|
5
6
|
"sap/ui/core/routing/Views",
|
|
@@ -10,7 +11,7 @@ sap.ui.define([
|
|
|
10
11
|
"sap/m/App",
|
|
11
12
|
"sap/m/Panel",
|
|
12
13
|
"sap/ui/model/json/JSONModel"
|
|
13
|
-
], function(XMLView, Targets, Views, Router, Log, deepExtend, ModuleHook, App, Panel, JSONModel){
|
|
14
|
+
], function(future, XMLView, Targets, Views, Router, Log, deepExtend, ModuleHook, App, Panel, JSONModel){
|
|
14
15
|
"use strict";
|
|
15
16
|
|
|
16
17
|
// use sap.m.Panel as a lightweight drop-in replacement for the ux3.Shell
|
|
@@ -183,7 +184,11 @@ sap.ui.define([
|
|
|
183
184
|
assert.strictEqual(oTarget._oParent, this.oTargets.getTarget("myParent"), "correct parent should be set");
|
|
184
185
|
});
|
|
185
186
|
|
|
186
|
-
|
|
187
|
+
/**
|
|
188
|
+
* @deprecated As of version 1.120
|
|
189
|
+
*/
|
|
190
|
+
QUnit.test("Should kept the existing target and log an error message if 'addTarget' is called with the same name (future=false)", function (assert) {
|
|
191
|
+
future.active = false;
|
|
187
192
|
// Arrange
|
|
188
193
|
var oStub = this.stub(Log, "error");
|
|
189
194
|
|
|
@@ -200,6 +205,20 @@ sap.ui.define([
|
|
|
200
205
|
assert.notOk(oParent._oOptions.viewName, "config is converted to the new format");
|
|
201
206
|
// Check whether the error message is thrown
|
|
202
207
|
sinon.assert.calledWith(oStub, sinon.match(/myParent/), sinon.match(this.oTargets));
|
|
208
|
+
future.active = undefined;
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
QUnit.test("Throw Error if 'addTarget' is called with the same name (future=true)", function (assert) {
|
|
212
|
+
future.active = true;
|
|
213
|
+
|
|
214
|
+
// Act
|
|
215
|
+
assert.throws(() => {
|
|
216
|
+
this.oTargets.addTarget("myParent", {
|
|
217
|
+
viewName: "myNewParentView"
|
|
218
|
+
});
|
|
219
|
+
}, new Error("Target with name myParent already exists"), "");
|
|
220
|
+
|
|
221
|
+
future.active = undefined;
|
|
203
222
|
});
|
|
204
223
|
|
|
205
224
|
QUnit.module("config - defaults and additional values", {
|
|
@@ -246,13 +265,35 @@ sap.ui.define([
|
|
|
246
265
|
assert.strictEqual(oOptions.rootView, "changed", "Did pass one of the routing api values from the config");
|
|
247
266
|
});
|
|
248
267
|
|
|
249
|
-
QUnit.module("config - invalid parent"
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
268
|
+
QUnit.module("config - invalid parent");
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @deprecated As of version 1.120
|
|
272
|
+
*/
|
|
273
|
+
QUnit.test("Should complain about an non existing parent (future=false)", function (assert) {
|
|
274
|
+
future.active = false;
|
|
275
|
+
// Arrange
|
|
276
|
+
var oIncorrectConfig = {
|
|
277
|
+
targets: {
|
|
278
|
+
myChildWithoutParent: {
|
|
279
|
+
parent: "foo"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
oErrorStub = this.stub(Log, "error");
|
|
284
|
+
|
|
285
|
+
// System under test + Act
|
|
286
|
+
const oTargets = new Targets(oIncorrectConfig);
|
|
287
|
+
|
|
288
|
+
// Assert
|
|
289
|
+
sinon.assert.calledWith(oErrorStub, sinon.match(/was not found/), sinon.match(oTargets));
|
|
290
|
+
|
|
291
|
+
oTargets.destroy();
|
|
292
|
+
future.active = undefined;
|
|
253
293
|
});
|
|
254
294
|
|
|
255
|
-
QUnit.test("Should complain about an non existing parent", function (assert) {
|
|
295
|
+
QUnit.test("Should complain about an non existing parent (future=true)", function (assert) {
|
|
296
|
+
future.active = true;
|
|
256
297
|
// Arrange
|
|
257
298
|
var oIncorrectConfig = {
|
|
258
299
|
targets: {
|
|
@@ -260,14 +301,13 @@ sap.ui.define([
|
|
|
260
301
|
parent:"foo"
|
|
261
302
|
}
|
|
262
303
|
}
|
|
263
|
-
}
|
|
264
|
-
oErrorStub = this.stub(Log, "error");
|
|
304
|
+
};
|
|
265
305
|
|
|
266
306
|
// System under test + Act
|
|
267
|
-
this.oTargets = new Targets(oIncorrectConfig);
|
|
307
|
+
assert.throws(() => { this.oTargets = new Targets(oIncorrectConfig); },
|
|
308
|
+
new Error("The target 'myChildWithoutParent' has a parent 'foo' defined, but it was not found in the other targets"), "Throws an error because parent doesn't exist.");
|
|
268
309
|
|
|
269
|
-
|
|
270
|
-
sinon.assert.calledWith(oErrorStub, sinon.match(/was not found/), sinon.match(this.oTargets));
|
|
310
|
+
future.active = undefined;
|
|
271
311
|
});
|
|
272
312
|
|
|
273
313
|
QUnit.module("display", {
|
|
@@ -348,7 +388,11 @@ sap.ui.define([
|
|
|
348
388
|
|
|
349
389
|
});
|
|
350
390
|
|
|
351
|
-
|
|
391
|
+
/**
|
|
392
|
+
* @deprecated As of version 1.120
|
|
393
|
+
*/
|
|
394
|
+
QUnit.test("Should log an error if user tries to display a non existing Target (future=false)", function (assert) {
|
|
395
|
+
future.active = false;
|
|
352
396
|
// Assert
|
|
353
397
|
var oErrorStub = this.stub(Log, "error");
|
|
354
398
|
|
|
@@ -358,10 +402,21 @@ sap.ui.define([
|
|
|
358
402
|
assert.ok(aViewInfos[0].error.includes("The target with the name \"foo\" does not exist!"), "Matching error message is returned");
|
|
359
403
|
// Assert
|
|
360
404
|
sinon.assert.calledWith(oErrorStub, sinon.match(/does not exist/), sinon.match(this.oTargets));
|
|
405
|
+
future.active = undefined;
|
|
361
406
|
}.bind(this));
|
|
362
407
|
});
|
|
363
408
|
|
|
364
|
-
QUnit.test("Should
|
|
409
|
+
QUnit.test("Should throw an error if user tries to display a non existing Target (future=true)", function (assert) {
|
|
410
|
+
future.active = true;
|
|
411
|
+
assert.throws(() => { this.oTargets.display("foo"); }, new Error("The target with the name \"foo\" does not exist!"), "Promise rejects because target does not exist");
|
|
412
|
+
future.active = undefined;
|
|
413
|
+
});
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* @deprecated As of version 1.120
|
|
417
|
+
*/
|
|
418
|
+
QUnit.test("Should log an error if user tries to display a non existing Target, but should display existing ones (future=false)", function (assert) {
|
|
419
|
+
future.active = false;
|
|
365
420
|
// Assert
|
|
366
421
|
var oErrorStub = this.stub(Log, "error");
|
|
367
422
|
// Replace display with an empty fn
|
|
@@ -378,6 +433,7 @@ sap.ui.define([
|
|
|
378
433
|
assert.strictEqual(aViewInfos.length, 2, "Did resolve with two viewinfos");
|
|
379
434
|
assert.strictEqual(aViewInfos[1].name, "firstTarget", "Did resolve with first target");
|
|
380
435
|
assert.ok(aViewInfos[0].error.includes("The target with the name \"foo\" does not exist!"), "Did resolve with the error message of the erroneous target");
|
|
436
|
+
future.active = undefined;
|
|
381
437
|
}.bind(this));
|
|
382
438
|
});
|
|
383
439
|
|
|
@@ -990,7 +1046,11 @@ sap.ui.define([
|
|
|
990
1046
|
});
|
|
991
1047
|
});
|
|
992
1048
|
|
|
993
|
-
|
|
1049
|
+
/**
|
|
1050
|
+
* @deprecated As of version 1.120
|
|
1051
|
+
*/
|
|
1052
|
+
QUnit.test("multiple targets - provided TitleTarget pointing to target without title (future=false)", function (assert) {
|
|
1053
|
+
future.active = false;
|
|
994
1054
|
// Arrange
|
|
995
1055
|
var that = this,
|
|
996
1056
|
oData = {some : "data"},
|
|
@@ -1008,10 +1068,40 @@ sap.ui.define([
|
|
|
1008
1068
|
// Assert
|
|
1009
1069
|
return oDisplayed.then(function() {
|
|
1010
1070
|
assert.ok(fnEventSpy.notCalled, "the event isn't fired");
|
|
1071
|
+
future.active = undefined;
|
|
1011
1072
|
});
|
|
1012
1073
|
});
|
|
1013
1074
|
|
|
1014
|
-
QUnit.test("provided
|
|
1075
|
+
QUnit.test("multiple targets - provided TitleTarget pointing to target without title (future=true)", function (assert) {
|
|
1076
|
+
future.active = true;
|
|
1077
|
+
// Arrange
|
|
1078
|
+
const that = this,
|
|
1079
|
+
oData = { some: "data" },
|
|
1080
|
+
fnEventSpy = this.spy();
|
|
1081
|
+
|
|
1082
|
+
this.stub(this.oViews, "_getView").callsFake(function () {
|
|
1083
|
+
return that.oView;
|
|
1084
|
+
});
|
|
1085
|
+
|
|
1086
|
+
this.oTargets.attachTitleChanged(fnEventSpy);
|
|
1087
|
+
|
|
1088
|
+
// Act
|
|
1089
|
+
const myAssertFn = () => {
|
|
1090
|
+
this.oTargets.display(["myNoTitleTarget", "myTarget", "mySecondTarget"], oData, "myNoTitleTarget");
|
|
1091
|
+
};
|
|
1092
|
+
|
|
1093
|
+
// Assert
|
|
1094
|
+
assert.throws(myAssertFn, new Error("The target with the name \"myNoTitleTarget\" where the titleChanged event should be fired does not exist!"),
|
|
1095
|
+
"Throws an error because target does not exist.");
|
|
1096
|
+
assert.ok(fnEventSpy.notCalled, "the event isn't fired");
|
|
1097
|
+
future.active = undefined;
|
|
1098
|
+
});
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* @deprecated As of version 1.120
|
|
1102
|
+
*/
|
|
1103
|
+
QUnit.test("provided invalid TitleTarget (future=false)", function (assert) {
|
|
1104
|
+
future.active = false;
|
|
1015
1105
|
// Arrange
|
|
1016
1106
|
var that = this,
|
|
1017
1107
|
oData = {some : "data"},
|
|
@@ -1034,9 +1124,34 @@ sap.ui.define([
|
|
|
1034
1124
|
oLogSpy.calledWith(sinon.match(/The target with the name \"foo\" where the titleChanged event should be fired does not exist!/)),
|
|
1035
1125
|
this.oTargets
|
|
1036
1126
|
);
|
|
1127
|
+
future.active = undefined;
|
|
1037
1128
|
}.bind(this));
|
|
1038
1129
|
});
|
|
1039
1130
|
|
|
1131
|
+
QUnit.test("provided invalid TitleTarget (future=true)", function (assert) {
|
|
1132
|
+
future.active = true;
|
|
1133
|
+
// Arrange
|
|
1134
|
+
var that = this,
|
|
1135
|
+
oData = { some: "data" },
|
|
1136
|
+
fnEventSpy = this.spy();
|
|
1137
|
+
|
|
1138
|
+
this.stub(this.oViews, "_getView").callsFake(function () {
|
|
1139
|
+
return that.oView;
|
|
1140
|
+
});
|
|
1141
|
+
|
|
1142
|
+
this.oTargets.attachTitleChanged(fnEventSpy);
|
|
1143
|
+
|
|
1144
|
+
// Act
|
|
1145
|
+
const myAssertFn = () => {
|
|
1146
|
+
this.oTargets.display(["myTarget"], oData, "foo");
|
|
1147
|
+
};
|
|
1148
|
+
assert.throws(myAssertFn, new Error("The target with the name \"foo\" where the titleChanged event should be fired does not exist!"),
|
|
1149
|
+
"Throws an error because TitleTarget is invalid.");
|
|
1150
|
+
assert.ok(fnEventSpy.notCalled, "the event isn't fired");
|
|
1151
|
+
|
|
1152
|
+
future.active = undefined;
|
|
1153
|
+
});
|
|
1154
|
+
|
|
1040
1155
|
QUnit.test("single target which has its own title with parent", function (assert) {
|
|
1041
1156
|
// Arrange
|
|
1042
1157
|
var that = this,
|