@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
|
/*global sinon QUnit */
|
|
2
2
|
sap.ui.define([
|
|
3
|
+
"sap/base/future",
|
|
3
4
|
"sap/base/Log",
|
|
4
5
|
"sap/m/Button",
|
|
5
6
|
'sap/ui/core/Component',
|
|
@@ -10,7 +11,7 @@ sap.ui.define([
|
|
|
10
11
|
"sap/ui/model/json/JSONModel",
|
|
11
12
|
"sap/ui/thirdparty/jquery",
|
|
12
13
|
"sap/ui/base/DesignTime"
|
|
13
|
-
], function(Log, Button, Component, UIComponent, XMLTemplateProcessor, XMLProcessingMode, XMLView, JSONModel, jQuery, DesignTime) {
|
|
14
|
+
], function(future, Log, Button, Component, UIComponent, XMLTemplateProcessor, XMLProcessingMode, XMLView, JSONModel, jQuery, DesignTime) {
|
|
14
15
|
"use strict";
|
|
15
16
|
|
|
16
17
|
QUnit.module("enrichTemplateIdsPromise", {
|
|
@@ -490,7 +491,11 @@ sap.ui.define([
|
|
|
490
491
|
}
|
|
491
492
|
});
|
|
492
493
|
|
|
493
|
-
|
|
494
|
+
/**
|
|
495
|
+
* @deprecated
|
|
496
|
+
*/
|
|
497
|
+
QUnit.test("[Simple Binding] Async loading of data types (future=false)", function(assert) {
|
|
498
|
+
future.active = false;
|
|
494
499
|
var oModel = new JSONModel({
|
|
495
500
|
value: 1234,
|
|
496
501
|
customDataValue: "#FF06B5",
|
|
@@ -501,7 +506,7 @@ sap.ui.define([
|
|
|
501
506
|
var oView;
|
|
502
507
|
|
|
503
508
|
return XMLView.create({
|
|
504
|
-
viewName: "testdata/mvc/
|
|
509
|
+
viewName: "testdata/mvc/XMLViewWithTypesFailure",
|
|
505
510
|
models: {"undefined": oModel}
|
|
506
511
|
}).then(function (oFinishedView) {
|
|
507
512
|
oView = oFinishedView;
|
|
@@ -543,6 +548,56 @@ sap.ui.define([
|
|
|
543
548
|
if (oView) {
|
|
544
549
|
oView.destroy();
|
|
545
550
|
}
|
|
551
|
+
future.active = undefined;
|
|
552
|
+
});
|
|
553
|
+
});
|
|
554
|
+
|
|
555
|
+
QUnit.test("[Simple Binding] Async loading of data types (future=false)", async function(assert) {
|
|
556
|
+
future.active = true;
|
|
557
|
+
var oModel = new JSONModel({
|
|
558
|
+
value: 1234,
|
|
559
|
+
customDataValue: "#FF06B5",
|
|
560
|
+
amount: 12.345,
|
|
561
|
+
date: 1682600768240
|
|
562
|
+
});
|
|
563
|
+
|
|
564
|
+
var oView;
|
|
565
|
+
|
|
566
|
+
await assert.rejects(XMLView.create({
|
|
567
|
+
viewName: "testdata/mvc/XMLViewWithTypesFailure",
|
|
568
|
+
models: {"undefined": oModel}
|
|
569
|
+
})).then(() => {
|
|
570
|
+
return XMLView.create({
|
|
571
|
+
viewName: "testdata/mvc/XMLViewWithTypes",
|
|
572
|
+
models: {"undefined": oModel}
|
|
573
|
+
});
|
|
574
|
+
}).then(function (oFinishedView) {
|
|
575
|
+
oView = oFinishedView;
|
|
576
|
+
oFinishedView.placeAt("qunit-fixture");
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
// test binding values
|
|
581
|
+
var oInput = oView.byId("inputField");
|
|
582
|
+
assert.equal(oInput.getValue(), "1.234", "Input field has correct value '1.234'");
|
|
583
|
+
|
|
584
|
+
var oInputInvalidType = oView.byId("inputField_invalidType");
|
|
585
|
+
assert.equal(oInputInvalidType.getValue(), "1234", "Input field has correct unformatted(!) value '1234'.");
|
|
586
|
+
|
|
587
|
+
// test CustomData binding values
|
|
588
|
+
var oPanel = oView.byId("panel");
|
|
589
|
+
var oCustomData = oPanel.getCustomData().find(function(oCustomData) {
|
|
590
|
+
return oCustomData.getKey() === "myColor";
|
|
591
|
+
});
|
|
592
|
+
assert.equal(oCustomData.getValue(), "#FF06B5", "CustomData is correctly bound: myColor value = #FF06B5.");
|
|
593
|
+
|
|
594
|
+
var oLabel = oView.byId("label");
|
|
595
|
+
assert.equal(oLabel.getText(), "12.3 EUR on 2023-04-27", "Composite binding is resolved correctly");
|
|
596
|
+
}).finally(function(){
|
|
597
|
+
if (oView) {
|
|
598
|
+
oView.destroy();
|
|
599
|
+
}
|
|
600
|
+
future.active = undefined;
|
|
546
601
|
});
|
|
547
602
|
});
|
|
548
603
|
});
|
|
@@ -3,6 +3,7 @@ sap.ui.define([
|
|
|
3
3
|
'sap/ui/core/Component',
|
|
4
4
|
"sap/ui/core/mvc/View",
|
|
5
5
|
"sap/m/InstanceManager",
|
|
6
|
+
"sap/base/future",
|
|
6
7
|
"sap/base/Log",
|
|
7
8
|
"sap/base/util/merge",
|
|
8
9
|
"sap/ui/model/json/JSONModel",
|
|
@@ -10,7 +11,7 @@ sap.ui.define([
|
|
|
10
11
|
"sap/ui/core/routing/HashChanger",
|
|
11
12
|
"sap/ui/qunit/utils/nextUIUpdate"
|
|
12
13
|
], function(Component, View,
|
|
13
|
-
InstanceManager, Log, merge, JSONModel, XMLView, HashChanger, nextUIUpdate) {
|
|
14
|
+
InstanceManager, future, Log, merge, JSONModel, XMLView, HashChanger, nextUIUpdate) {
|
|
14
15
|
"use strict";
|
|
15
16
|
|
|
16
17
|
var TESTDATA_PREFIX = "testdata.xml-require";
|
|
@@ -347,8 +348,13 @@ sap.ui.define([
|
|
|
347
348
|
InstanceManager.closeAllDialogs();
|
|
348
349
|
InstanceManager.closeAllPopovers();
|
|
349
350
|
}
|
|
350
|
-
},
|
|
351
|
-
|
|
351
|
+
},
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* @deprecated
|
|
355
|
+
*/
|
|
356
|
+
{
|
|
357
|
+
testDescription: "Parsing core:require in XMLView with fragment with missing definition in require context (future=false)",
|
|
352
358
|
viewName: ".view.XMLTemplateProcessorAsync_fragment_insufficient_require",
|
|
353
359
|
settings: {
|
|
354
360
|
async: {
|
|
@@ -358,10 +364,30 @@ sap.ui.define([
|
|
|
358
364
|
}
|
|
359
365
|
}
|
|
360
366
|
},
|
|
367
|
+
future: false,
|
|
361
368
|
runAssertions: function (oView, mSpies, assert, bAsync) {
|
|
362
369
|
var oWarningSpy = mSpies.warning;
|
|
363
370
|
assert.ok(oWarningSpy.calledWith(sinon.match(/Event handler name 'Toast.show\('This is a toast'\)' could not be resolved to an event handler function/)));
|
|
364
371
|
}
|
|
372
|
+
}, {
|
|
373
|
+
testDescription: "Parsing core:require in XMLView with fragment with missing definition in require context (future=true)",
|
|
374
|
+
viewName: ".view.XMLTemplateProcessorAsync_fragment_insufficient_require",
|
|
375
|
+
settings: {
|
|
376
|
+
async: {
|
|
377
|
+
create: async (name, setting, assert) => {
|
|
378
|
+
const oView = createView(name, setting);
|
|
379
|
+
assert.rejects(oView);
|
|
380
|
+
await oView.catch((err) => {
|
|
381
|
+
assert.ok(err.message.includes("Event handler name 'Toast.show('This is a toast')' could not be resolved to an event handler function"),
|
|
382
|
+
"View creation rejects with correct error");
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
future: true,
|
|
388
|
+
runAssertions: function (oView, mSpies, assert, bAsync) {
|
|
389
|
+
|
|
390
|
+
}
|
|
365
391
|
}, {
|
|
366
392
|
testDescription: "Parsing core:require in XMLView with fragment with missing definition in require context with preprocessors enabled",
|
|
367
393
|
viewName: ".view.XMLTemplateProcessorAsync_fragment_insufficient_require",
|
|
@@ -383,8 +409,13 @@ sap.ui.define([
|
|
|
383
409
|
sinon.assert.neverCalledWith(oWarningSpy, "Variable: Toast isn't defined in the require context of the current XMLView/Fragment");
|
|
384
410
|
assert.ok(oWarningSpy.neverCalledWith(sinon.match(/Event handler name 'Toast.show\('This is a toast'\)' could not be resolved to an event handler function/)));
|
|
385
411
|
}
|
|
386
|
-
},
|
|
387
|
-
|
|
412
|
+
},
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* @deprecated
|
|
416
|
+
*/
|
|
417
|
+
{
|
|
418
|
+
testDescription: "Parsing core:require in XMLView with fragment w/o require context (future=false)",
|
|
388
419
|
viewName: ".view.XMLTemplateProcessorAsync_fragment_require_noRequire",
|
|
389
420
|
settings: {
|
|
390
421
|
async: {
|
|
@@ -394,12 +425,37 @@ sap.ui.define([
|
|
|
394
425
|
}
|
|
395
426
|
}
|
|
396
427
|
},
|
|
428
|
+
future: false,
|
|
397
429
|
runAssertions: function (oView, mSpies, assert, bAsync) {
|
|
398
430
|
var oWarningSpy = mSpies.warning;
|
|
399
431
|
assert.ok(oWarningSpy.calledWith(sinon.match(/Event handler name 'Toast.show\('Problem occurred'\)' could not be resolved to an event handler function/)));
|
|
400
432
|
}
|
|
401
433
|
}, {
|
|
402
|
-
testDescription: "Parsing core:require in XMLView with
|
|
434
|
+
testDescription: "Parsing core:require in XMLView with fragment w/o require context (future=true)",
|
|
435
|
+
viewName: ".view.XMLTemplateProcessorAsync_fragment_require_noRequire",
|
|
436
|
+
settings: {
|
|
437
|
+
async: {
|
|
438
|
+
create: async (name, setting, assert) => {
|
|
439
|
+
const oView = createView(name, setting);
|
|
440
|
+
assert.rejects(oView);
|
|
441
|
+
await oView.catch((err) => {
|
|
442
|
+
assert.ok(err.message.includes("Event handler name 'Toast.show('Problem occurred')' could not be resolved to an event handler function"),
|
|
443
|
+
"View creation rejects with correct error");
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
future: true,
|
|
449
|
+
runAssertions: function (oView, mSpies, assert, bAsync) {
|
|
450
|
+
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* @deprecated
|
|
456
|
+
*/
|
|
457
|
+
{
|
|
458
|
+
testDescription: "Parsing core:require in XMLView with nested view and the require context isn't forwarded to nested view (future=false)",
|
|
403
459
|
viewName: ".view.XMLTemplateProcessorAsync_require_nested",
|
|
404
460
|
settings: {
|
|
405
461
|
async: {
|
|
@@ -410,6 +466,7 @@ sap.ui.define([
|
|
|
410
466
|
}
|
|
411
467
|
}
|
|
412
468
|
},
|
|
469
|
+
future: false,
|
|
413
470
|
runAssertions: function (oView, mSpies, assert, bAsync) {
|
|
414
471
|
var oCreateSpy = mSpies._create;
|
|
415
472
|
var oWarningSpy = mSpies.warning;
|
|
@@ -420,7 +477,34 @@ sap.ui.define([
|
|
|
420
477
|
});
|
|
421
478
|
}
|
|
422
479
|
}, {
|
|
423
|
-
testDescription: "Parsing core:require in
|
|
480
|
+
testDescription: "Parsing core:require in XMLView with nested view and the require context isn't forwarded to nested view (future=true)",
|
|
481
|
+
viewName: ".view.XMLTemplateProcessorAsync_require_nested",
|
|
482
|
+
settings: {
|
|
483
|
+
async: {
|
|
484
|
+
create: async (name, setting, assert) => {
|
|
485
|
+
const oView = createView(name, setting)
|
|
486
|
+
.then((oView) => {
|
|
487
|
+
return oView.getContent()[0].loaded();
|
|
488
|
+
});
|
|
489
|
+
assert.rejects(oView);
|
|
490
|
+
await oView.catch((err) => {
|
|
491
|
+
assert.ok(err.message.includes("Event handler name 'Box.show('MessageBox')' could not be resolved to an event handler function"),
|
|
492
|
+
"View creation rejects with correct error");
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
future: true,
|
|
498
|
+
runAssertions: function (oView, mSpies, assert, bAsync) {
|
|
499
|
+
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* @deprecated
|
|
505
|
+
*/
|
|
506
|
+
{
|
|
507
|
+
testDescription: "Parsing core:require in ExtensionPoint (future=false)",
|
|
424
508
|
settings: {
|
|
425
509
|
async: {
|
|
426
510
|
create: function () {
|
|
@@ -435,6 +519,7 @@ sap.ui.define([
|
|
|
435
519
|
}
|
|
436
520
|
}
|
|
437
521
|
},
|
|
522
|
+
future: false,
|
|
438
523
|
runAssertions: function (oView, mSpies, assert, bAsync) {
|
|
439
524
|
var oWarningSpy = mSpies.warning;
|
|
440
525
|
|
|
@@ -464,8 +549,35 @@ sap.ui.define([
|
|
|
464
549
|
});
|
|
465
550
|
}
|
|
466
551
|
}, {
|
|
467
|
-
testDescription: "Parsing core:require in
|
|
468
|
-
|
|
552
|
+
testDescription: "Parsing core:require in ExtensionPoint (future=true)",
|
|
553
|
+
settings: {
|
|
554
|
+
async: {
|
|
555
|
+
create: async (name, settings, assert) => {
|
|
556
|
+
const oComponent = Component.create({
|
|
557
|
+
name: TESTDATA_PREFIX + ".extension-points.Child"
|
|
558
|
+
}).then(function (oComponent) {
|
|
559
|
+
return oComponent.getRootControl().loaded();
|
|
560
|
+
});
|
|
561
|
+
assert.rejects(oComponent);
|
|
562
|
+
await oComponent.catch((err) => {
|
|
563
|
+
assert.ok(err.message.includes("Event handler name 'Toast.show('Do you really want to close?')' could not be resolved to an event handler function"),
|
|
564
|
+
"View creation rejects with correct error");
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
future: true,
|
|
570
|
+
runAssertions: function (oView, mSpies, assert, bAsync) {
|
|
571
|
+
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* @deprecated
|
|
577
|
+
*/
|
|
578
|
+
{
|
|
579
|
+
testDescription: "Parsing core:require in ExpressionBinding (future=false)",
|
|
580
|
+
viewName: ".view.XMLTemplateProcessorAsync_require_expressionFaulty",
|
|
469
581
|
settings: {
|
|
470
582
|
async: {
|
|
471
583
|
create: createView,
|
|
@@ -477,6 +589,7 @@ sap.ui.define([
|
|
|
477
589
|
}
|
|
478
590
|
}
|
|
479
591
|
},
|
|
592
|
+
future: false,
|
|
480
593
|
runAssertions: function (oView, mSpies, assert, bAsync) {
|
|
481
594
|
|
|
482
595
|
var oModel = new JSONModel({
|
|
@@ -542,11 +655,13 @@ sap.ui.define([
|
|
|
542
655
|
bAsync = true,
|
|
543
656
|
mSpies;
|
|
544
657
|
|
|
658
|
+
future.active = oConfig.future;
|
|
659
|
+
|
|
545
660
|
if (oConfig.settings.async.spies) {
|
|
546
661
|
mSpies = createSpies(oConfig.settings.async.spies, this);
|
|
547
662
|
}
|
|
548
663
|
|
|
549
|
-
return oConfig.settings.async.create(oConfig.viewName, oConfig.settings.async.additionalViewSettings)
|
|
664
|
+
return oConfig.settings.async.create(oConfig.viewName, oConfig.settings.async.additionalViewSettings, assert)
|
|
550
665
|
.then(function (oView) {
|
|
551
666
|
return oConfig.runAssertions.call(that, oView, mSpies, assert, bAsync);
|
|
552
667
|
}, function(oError) {
|
|
@@ -555,6 +670,8 @@ sap.ui.define([
|
|
|
555
670
|
} else {
|
|
556
671
|
throw oError;
|
|
557
672
|
}
|
|
673
|
+
}).then(() => {
|
|
674
|
+
future.active = undefined;
|
|
558
675
|
});
|
|
559
676
|
});
|
|
560
677
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*global QUnit, sinon */
|
|
2
2
|
sap.ui.define([
|
|
3
|
+
"sap/base/future",
|
|
3
4
|
'sap/base/Log',
|
|
4
5
|
"sap/base/i18n/Localization",
|
|
5
6
|
'sap/base/i18n/ResourceBundle',
|
|
@@ -18,7 +19,7 @@ sap.ui.define([
|
|
|
18
19
|
'./AnyView.qunit',
|
|
19
20
|
'sap/ui/thirdparty/jquery',
|
|
20
21
|
"sap/ui/qunit/utils/nextUIUpdate"
|
|
21
|
-
], function(Log, Localization, ResourceBundle, Element, coreLibrary, Controller, View, XMLView, RenderManager, JSONModel, ResourceModel, VerticalLayout, XMLHelper, Button, Panel, testsuite, jQuery, nextUIUpdate) {
|
|
22
|
+
], function(future, Log, Localization, ResourceBundle, Element, coreLibrary, Controller, View, XMLView, RenderManager, JSONModel, ResourceModel, VerticalLayout, XMLHelper, Button, Panel, testsuite, jQuery, nextUIUpdate) {
|
|
22
23
|
"use strict";
|
|
23
24
|
|
|
24
25
|
// shortcut for sap.ui.core.mvc.ViewType
|
|
@@ -132,6 +133,24 @@ sap.ui.define([
|
|
|
132
133
|
});
|
|
133
134
|
});
|
|
134
135
|
|
|
136
|
+
QUnit.test("Using native HTML in XMLViews (future=false)", async function (assert) {
|
|
137
|
+
future.active = false;
|
|
138
|
+
const oView = await XMLView.create({
|
|
139
|
+
viewName: 'example.mvc.HtmlOnRoot'
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
assert.ok(oView, "XMLView containing native HTML content is created successfully.");
|
|
143
|
+
future.active = false;
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
QUnit.test("Using native HTML in XMLViews (future=true)", async function (assert) {
|
|
147
|
+
future.active = true;
|
|
148
|
+
await assert.rejects(XMLView.create({
|
|
149
|
+
viewName: 'example.mvc.HtmlOnRoot'
|
|
150
|
+
}), "View creation rejects because XMLView contains HTML content on root.");
|
|
151
|
+
future.active = false;
|
|
152
|
+
});
|
|
153
|
+
|
|
135
154
|
QUnit.test("async loading new Factory with resource bundle", function(assert) {
|
|
136
155
|
var oResourceBundleCreateSpy = sinon.spy(ResourceBundle, "create");
|
|
137
156
|
var oViewPromise = XMLView.create({definition: "" +
|
|
@@ -139,7 +158,7 @@ sap.ui.define([
|
|
|
139
158
|
"\t\t resourceBundleAlias=\"i18n\"\n" +
|
|
140
159
|
"\t\t xmlns:mvc=\"sap.ui.core.mvc\" xmlns=\"sap.m\" xmlns:html=\"http://www.w3.org/1999/xhtml\">\n" +
|
|
141
160
|
"\t<Panel id=\"aPanel\">\n" +
|
|
142
|
-
"\t\t<Button id=\"Button1\" text=\"{i18n>TEXT_CLOSE}\"
|
|
161
|
+
"\t\t<Button id=\"Button1\" text=\"{i18n>TEXT_CLOSE}\"></Button>\n" +
|
|
143
162
|
"\t</Panel>\n" +
|
|
144
163
|
"</mvc:View>" +
|
|
145
164
|
""});
|
|
@@ -245,6 +264,13 @@ sap.ui.define([
|
|
|
245
264
|
});
|
|
246
265
|
});
|
|
247
266
|
|
|
267
|
+
/**
|
|
268
|
+
* @deprecated As of version 1.120
|
|
269
|
+
*
|
|
270
|
+
* Preserve DOM is tested with a XMLView where HTML tags are used. Since
|
|
271
|
+
* the support of HTML tags in XMLView is deprecated, those tests are
|
|
272
|
+
* deprecated as well.
|
|
273
|
+
*/
|
|
248
274
|
QUnit.module("Preserve DOM");
|
|
249
275
|
|
|
250
276
|
QUnit.test("async loading", function(assert) {
|
|
@@ -981,7 +1007,7 @@ sap.ui.define([
|
|
|
981
1007
|
|
|
982
1008
|
QUnit.test("Named Aggregation", function(assert) {
|
|
983
1009
|
var sXmlWithNamedAggregations = [
|
|
984
|
-
'<mvc:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns:test="sap.ui.testlib" xmlns:html="http://www.w3.org/1999/xhtml">',
|
|
1010
|
+
'<mvc:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns:test="sap.ui.testlib" xmlns:html="http://www.w3.org/1999/xhtml" controllerName="example.mvc.test">',
|
|
985
1011
|
' <mvc:content>',
|
|
986
1012
|
' <test:TestButton id="contentButton" />',
|
|
987
1013
|
' <html:div id="div1">test1</html:div>',
|
|
@@ -996,7 +1022,7 @@ sap.ui.define([
|
|
|
996
1022
|
].join('');
|
|
997
1023
|
|
|
998
1024
|
var sXmlWithNamedDependents = [
|
|
999
|
-
'<mvc:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns:test="sap.ui.testlib">',
|
|
1025
|
+
'<mvc:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns:test="sap.ui.testlib" controllerName="example.mvc.test">',
|
|
1000
1026
|
' <test:TestButton id="contentButton" />',
|
|
1001
1027
|
' <mvc:dependents>',
|
|
1002
1028
|
' <test:TestButton id="dependentButton" />',
|
|
@@ -1006,7 +1032,7 @@ sap.ui.define([
|
|
|
1006
1032
|
].join('');
|
|
1007
1033
|
|
|
1008
1034
|
var sXmlWithWrongAggregation = [
|
|
1009
|
-
'<mvc:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns:test="sap.ui.testlib">',
|
|
1035
|
+
'<mvc:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns:test="sap.ui.testlib" controllerName="example.mvc.test">',
|
|
1010
1036
|
' <test:TestButton id="contentButton" />',
|
|
1011
1037
|
' <mvc:wrong>',
|
|
1012
1038
|
' <test:TestButton id="dependentButton" />',
|
|
@@ -1086,6 +1112,8 @@ sap.ui.define([
|
|
|
1086
1112
|
|
|
1087
1113
|
QUnit.module("Preprocessor API", {
|
|
1088
1114
|
beforeEach: function() {
|
|
1115
|
+
// reset global preprocessors
|
|
1116
|
+
View._mPreprocessors = {};
|
|
1089
1117
|
this.sViewContent = '<mvc:View xmlns:mvc="sap.ui.core.mvc"/>';
|
|
1090
1118
|
this.runPreprocessorSpy = sinon.spy(View.prototype, "runPreprocessor");
|
|
1091
1119
|
this.fnGetConfig = function(fnPreprocessor, bSyncSupport) {
|
|
@@ -1113,14 +1141,16 @@ sap.ui.define([
|
|
|
1113
1141
|
}.bind(this);
|
|
1114
1142
|
},
|
|
1115
1143
|
afterEach: function() {
|
|
1116
|
-
// reset global preprocessors
|
|
1117
|
-
View._mPreprocessors = {};
|
|
1118
1144
|
this.runPreprocessorSpy.restore();
|
|
1119
1145
|
delete this.xml;
|
|
1120
1146
|
}
|
|
1121
1147
|
});
|
|
1122
1148
|
|
|
1123
|
-
|
|
1149
|
+
/**
|
|
1150
|
+
* @deprecated
|
|
1151
|
+
*/
|
|
1152
|
+
QUnit.test("registration (future=false)", function(assert) {
|
|
1153
|
+
future.active = false;
|
|
1124
1154
|
var logSpyError = this.spy(Log, "error");
|
|
1125
1155
|
|
|
1126
1156
|
var noop = function() {};
|
|
@@ -1128,7 +1158,7 @@ sap.ui.define([
|
|
|
1128
1158
|
XMLView.registerPreprocessor(XMLView.PreprocessorType.VIEWXML, noop, false);
|
|
1129
1159
|
XMLView.registerPreprocessor(XMLView.PreprocessorType.CONTROLS, noop, false);
|
|
1130
1160
|
|
|
1131
|
-
assert.strictEqual(View._mPreprocessors["XML"]["xml"][
|
|
1161
|
+
assert.strictEqual(View._mPreprocessors["XML"]["xml"][0].preprocessor, noop, "Registration for xml successful");
|
|
1132
1162
|
assert.strictEqual(View._mPreprocessors["XML"]["viewxml"][0].preprocessor, noop, "Registration for viewxml successful");
|
|
1133
1163
|
assert.strictEqual(View._mPreprocessors["XML"]["controls"][0].preprocessor, noop, "Registration for content successful");
|
|
1134
1164
|
|
|
@@ -1141,6 +1171,7 @@ sap.ui.define([
|
|
|
1141
1171
|
|
|
1142
1172
|
logSpyError.resetHistory();
|
|
1143
1173
|
XMLView.registerPreprocessor(XMLView.PreprocessorType.XML, noop, false, true);
|
|
1174
|
+
XMLView.registerPreprocessor(XMLView.PreprocessorType.XML, noop, false, true);
|
|
1144
1175
|
assert.ok(
|
|
1145
1176
|
logSpyError.calledWith(sinon.match(/only one on-demand-preprocessor allowed/)),
|
|
1146
1177
|
"Error logged when registering more than one ondemand pp");
|
|
@@ -1158,6 +1189,50 @@ sap.ui.define([
|
|
|
1158
1189
|
assert.throws(function() {
|
|
1159
1190
|
XMLView.registerPreprocessor(XMLView.PreprocessorType.XML, fnUniquePP, "YAML", false);
|
|
1160
1191
|
}, TypeError, "TypeError thrown when registering for a view type other than XML");
|
|
1192
|
+
future.active = undefined;
|
|
1193
|
+
});
|
|
1194
|
+
|
|
1195
|
+
QUnit.test("registration (future=true)", function(assert) {
|
|
1196
|
+
future.active = true;
|
|
1197
|
+
var logSpyError = this.spy(Log, "error");
|
|
1198
|
+
|
|
1199
|
+
var noop = function() {};
|
|
1200
|
+
XMLView.registerPreprocessor(XMLView.PreprocessorType.XML, noop, false);
|
|
1201
|
+
XMLView.registerPreprocessor(XMLView.PreprocessorType.VIEWXML, noop, false);
|
|
1202
|
+
XMLView.registerPreprocessor(XMLView.PreprocessorType.CONTROLS, noop, false);
|
|
1203
|
+
|
|
1204
|
+
assert.strictEqual(View._mPreprocessors["XML"]["xml"][0].preprocessor, noop, "Registration for xml successful");
|
|
1205
|
+
assert.strictEqual(View._mPreprocessors["XML"]["viewxml"][0].preprocessor, noop, "Registration for viewxml successful");
|
|
1206
|
+
assert.strictEqual(View._mPreprocessors["XML"]["controls"][0].preprocessor, noop, "Registration for content successful");
|
|
1207
|
+
|
|
1208
|
+
logSpyError.resetHistory();
|
|
1209
|
+
let sExpectedMessage = 'Preprocessor could not be registered due to unknown sType "UNKNOWN"';
|
|
1210
|
+
assert.throws(() => XMLView.registerPreprocessor("unknown", noop, false, {type: "unknown"}),
|
|
1211
|
+
new Error(sExpectedMessage),
|
|
1212
|
+
"Error logged when registering invalid type");
|
|
1213
|
+
assert.strictEqual(View._mPreprocessors["XML"]["unknown"], undefined, "Registration for invalid type refused");
|
|
1214
|
+
|
|
1215
|
+
logSpyError.resetHistory();
|
|
1216
|
+
XMLView.registerPreprocessor(XMLView.PreprocessorType.XML, noop, false, true);
|
|
1217
|
+
sExpectedMessage = 'Registration for "xml" failed, only one on-demand-preprocessor allowed';
|
|
1218
|
+
assert.throws(() => XMLView.registerPreprocessor(XMLView.PreprocessorType.XML, noop, false, true),
|
|
1219
|
+
new Error(sExpectedMessage),
|
|
1220
|
+
"Error logged when registering more than one ondemand pp");
|
|
1221
|
+
assert.strictEqual(View._mPreprocessors["XML"]["unknown"], undefined, "Registration for invalid type refused");
|
|
1222
|
+
|
|
1223
|
+
// explicitly providing view type "XML" does not fail
|
|
1224
|
+
var fnUniquePP = function() {};
|
|
1225
|
+
XMLView.registerPreprocessor(XMLView.PreprocessorType.XML, fnUniquePP, "XML", false);
|
|
1226
|
+
assert.ok(Array.isArray(View._mPreprocessors["XML"]["xml"]) &&
|
|
1227
|
+
View._mPreprocessors["XML"]["xml"].some(function(entry) {
|
|
1228
|
+
return entry.preprocessor === fnUniquePP;
|
|
1229
|
+
}), "Preprocessor call passed through to View");
|
|
1230
|
+
|
|
1231
|
+
// explicitly providing an unsupported type fails
|
|
1232
|
+
assert.throws(function() {
|
|
1233
|
+
XMLView.registerPreprocessor(XMLView.PreprocessorType.XML, fnUniquePP, "YAML", false);
|
|
1234
|
+
}, TypeError, "TypeError thrown when registering for a view type other than XML");
|
|
1235
|
+
future.active = undefined;
|
|
1161
1236
|
});
|
|
1162
1237
|
|
|
1163
1238
|
QUnit.test("async: assignment of preprocessor results", function(assert) {
|
|
@@ -1242,7 +1317,11 @@ sap.ui.define([
|
|
|
1242
1317
|
|
|
1243
1318
|
QUnit.module("Compatibility");
|
|
1244
1319
|
|
|
1245
|
-
|
|
1320
|
+
/**
|
|
1321
|
+
* @deprecated
|
|
1322
|
+
*/
|
|
1323
|
+
QUnit.test("XMLView with wrong root node name should still be parsed correctly (future=false)", function(assert) {
|
|
1324
|
+
future.active = false;
|
|
1246
1325
|
var oLogErrorSpy = this.spy(Log, "error");
|
|
1247
1326
|
var sContent = [
|
|
1248
1327
|
'<mvc:view xmlns:mvc="sap.ui.core.mvc" xmlns:m="sap.m">',
|
|
@@ -1262,11 +1341,30 @@ sap.ui.define([
|
|
|
1262
1341
|
assert.equal(oView.getContent()[0], oView.byId("panel"), "The panel is added to the view's content aggregation");
|
|
1263
1342
|
|
|
1264
1343
|
oView.destroy();
|
|
1344
|
+
future.active = undefined;
|
|
1265
1345
|
}, function() {
|
|
1266
1346
|
assert.notOk(true, "The XMLView.create promise should not reject");
|
|
1267
1347
|
});
|
|
1268
1348
|
});
|
|
1269
1349
|
|
|
1350
|
+
QUnit.test("XMLView with wrong root node name should still be parsed correctly (future=true)", async function(assert) {
|
|
1351
|
+
future.active = true;
|
|
1352
|
+
var sContent = [
|
|
1353
|
+
'<mvc:view xmlns:mvc="sap.ui.core.mvc" xmlns:m="sap.m">',
|
|
1354
|
+
' <m:Panel id="panel">',
|
|
1355
|
+
' </m:Panel>',
|
|
1356
|
+
'</mvc:view>'
|
|
1357
|
+
].join('');
|
|
1358
|
+
|
|
1359
|
+
await assert.rejects(XMLView.create({
|
|
1360
|
+
id: "wrongRootNodeName",
|
|
1361
|
+
definition: sContent
|
|
1362
|
+
}),
|
|
1363
|
+
new Error("XMLView's root node must be 'View' or 'XMLView' and have the namespace 'sap.ui.core.mvc'"),
|
|
1364
|
+
"View creation rejects with correct error");
|
|
1365
|
+
});
|
|
1366
|
+
|
|
1367
|
+
|
|
1270
1368
|
// let test starter wait for the XML to be loaded
|
|
1271
1369
|
return pViewXMLLoaded;
|
|
1272
1370
|
});
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/*global QUnit */
|
|
2
2
|
|
|
3
3
|
sap.ui.define([
|
|
4
|
+
'sap/base/future',
|
|
4
5
|
'sap/ui/core/mvc/Controller',
|
|
5
6
|
'sap/ui/core/mvc/XMLView'
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
], function(Controller, XMLView) {
|
|
7
|
+
], function(future, Controller, XMLView) {
|
|
9
8
|
"use strict";
|
|
10
9
|
|
|
11
10
|
// create content div
|
|
@@ -190,6 +189,20 @@ sap.ui.define([
|
|
|
190
189
|
});
|
|
191
190
|
});
|
|
192
191
|
|
|
192
|
+
QUnit.module("Controller Member Legacy Extension final checks", {
|
|
193
|
+
beforeEach: function() {
|
|
194
|
+
this.pView = Controller.create({name:"my.test.MainMemberExtLegacyFinal"}).then(function(oController) {
|
|
195
|
+
return XMLView.create({
|
|
196
|
+
viewName: "my.test.Main",
|
|
197
|
+
controller: oController
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
},
|
|
201
|
+
afterEach: function() {
|
|
202
|
+
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
|
|
193
206
|
QUnit.test("controller final method check", function(assert) {
|
|
194
207
|
var done = assert.async();
|
|
195
208
|
this.pView.then(function(oView) {
|
|
@@ -201,8 +214,12 @@ sap.ui.define([
|
|
|
201
214
|
});
|
|
202
215
|
});
|
|
203
216
|
|
|
204
|
-
|
|
217
|
+
/**
|
|
218
|
+
* @deprecated
|
|
219
|
+
*/
|
|
220
|
+
QUnit.module("Controller Member Extension inline override", {
|
|
205
221
|
beforeEach: function() {
|
|
222
|
+
future.active = false;
|
|
206
223
|
this.pView = Controller.create({name:"my.test.MainMemberExtInlineOverride"}).then(function(oController) {
|
|
207
224
|
return XMLView.create({
|
|
208
225
|
viewName: "my.test.Main",
|
|
@@ -211,11 +228,11 @@ sap.ui.define([
|
|
|
211
228
|
});
|
|
212
229
|
},
|
|
213
230
|
afterEach: function() {
|
|
214
|
-
|
|
231
|
+
future.active = undefined;
|
|
215
232
|
}
|
|
216
233
|
});
|
|
217
234
|
|
|
218
|
-
QUnit.test("extension final method check", function(assert) {
|
|
235
|
+
QUnit.test("extension final method check (future=false)", function(assert) {
|
|
219
236
|
var done = assert.async();
|
|
220
237
|
this.pView.then(function(oView) {
|
|
221
238
|
var oController = oView.getController();
|
|
@@ -226,6 +243,28 @@ sap.ui.define([
|
|
|
226
243
|
});
|
|
227
244
|
});
|
|
228
245
|
|
|
246
|
+
QUnit.module("Controller Member Extension inline override", {
|
|
247
|
+
beforeEach: function() {
|
|
248
|
+
future.active = true;
|
|
249
|
+
this.pView = Controller.create({name:"my.test.MainMemberExtInlineOverride"}).then(function(oController) {
|
|
250
|
+
return XMLView.create({
|
|
251
|
+
viewName: "my.test.Main",
|
|
252
|
+
controller: oController
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
},
|
|
256
|
+
afterEach: function() {
|
|
257
|
+
future.active = undefined;
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
QUnit.test("extension final method check (future=true)", async function(assert) {
|
|
262
|
+
assert.rejects(this.pView);
|
|
263
|
+
await this.pView.catch((err) => {
|
|
264
|
+
assert.ok(err.message.endsWith("is flagged final and cannot be overridden by calling 'override'"), "Correct final check error thrown");
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
|
|
229
268
|
QUnit.module("Extend Controller", {
|
|
230
269
|
beforeEach: function() {
|
|
231
270
|
this.pView = Controller.create({name:"my.test.AnotherMain"}).then(function(oController) {
|
|
@@ -286,6 +325,7 @@ sap.ui.define([
|
|
|
286
325
|
|
|
287
326
|
QUnit.module("Controller final checks", {
|
|
288
327
|
beforeEach: function() {
|
|
328
|
+
future.active = true;
|
|
289
329
|
Controller.registerExtensionProvider("");
|
|
290
330
|
this.pView = Controller.create({name:"my.test.ExtendMain"}).then(function(oController) {
|
|
291
331
|
return XMLView.create({
|
|
@@ -295,11 +335,38 @@ sap.ui.define([
|
|
|
295
335
|
});
|
|
296
336
|
},
|
|
297
337
|
afterEach: function() {
|
|
338
|
+
future.active = undefined;
|
|
339
|
+
}
|
|
340
|
+
});
|
|
298
341
|
|
|
342
|
+
QUnit.test("override final metadata/function (future=true)", async function(assert) {
|
|
343
|
+
assert.expect(2);
|
|
344
|
+
assert.rejects(this.pView);
|
|
345
|
+
await this.pView.catch((err) => {
|
|
346
|
+
assert.equal(err.message, "failed to execute module factory for ''my/test/ExtendMain.controller.js'': Method: 'myFinalMethod' of controller 'my.test.Main' is final and cannot be overridden by controller 'my.test.ExtendMain'");
|
|
347
|
+
});
|
|
348
|
+
});
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* @deprecated
|
|
352
|
+
*/
|
|
353
|
+
QUnit.module("Controller final checks", {
|
|
354
|
+
beforeEach: function() {
|
|
355
|
+
future.active = false;
|
|
356
|
+
Controller.registerExtensionProvider("");
|
|
357
|
+
this.pView = Controller.create({name:"my.test.ExtendMainLegacy"}).then(function(oController) {
|
|
358
|
+
return XMLView.create({
|
|
359
|
+
viewName: "my.test.Main",
|
|
360
|
+
controller: oController
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
},
|
|
364
|
+
afterEach: function() {
|
|
365
|
+
future.active = undefined;
|
|
299
366
|
}
|
|
300
367
|
});
|
|
301
368
|
|
|
302
|
-
|
|
369
|
+
QUnit.test("override final metadata/function (future=false)", function(assert) {
|
|
303
370
|
var done = assert.async();
|
|
304
371
|
assert.expect(2);
|
|
305
372
|
this.pView.then(function(oView) {
|