generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Detect deprecated 'type' in
View.create
/ <mvc:View>
This adds the detection of the partial deprecation of the View.create factory. In addition, nested views within XML that use the general <mvc:View> tag are now also detected when using a deprecated 'type'. JIRA: CPOUI5FOUNDATION-907
- Loading branch information
Showing
14 changed files
with
617 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
test/fixtures/transpiler/xml/XMLFragmentDefinitionNestedViews.fragment.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<core:FragmentDefinition xmlns:core="sap.ui.core" | ||
xmlns="sap.m" | ||
xmlns:mvc="sap.ui.core.mvc" | ||
> | ||
|
||
<mvc:View type="XML" viewName="com.myapp.view.Home"/> | ||
<mvc:View type="JS" viewName="com.myapp.view.Home"/> | ||
<mvc:View type="JSON" viewName="com.myapp.view.Home"/> | ||
<mvc:View type="HTML" viewName="com.myapp.view.Home"/> | ||
<mvc:View type="Template" viewName="com.myapp.view.Home"/> | ||
|
||
<mvc:XMLView viewName="com.myapp.view.Home"/> | ||
<mvc:JSView viewName="com.myapp.view.Home"/> | ||
<mvc:JSONView viewName="com.myapp.view.Home"/> | ||
<mvc:HTMLView viewName="com.myapp.view.Home"/> | ||
<mvc:TemplateView viewName="com.myapp.view.Home"/> | ||
|
||
</core:FragmentDefinition> |
17 changes: 17 additions & 0 deletions
17
test/fixtures/transpiler/xml/XMLFragmentNestedViews.fragment.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<VBox xmlns="sap.m" | ||
xmlns:mvc="sap.ui.core.mvc" | ||
> | ||
|
||
<mvc:View type="XML" viewName="com.myapp.view.Home"/> | ||
<mvc:View type="JS" viewName="com.myapp.view.Home"/> | ||
<mvc:View type="JSON" viewName="com.myapp.view.Home"/> | ||
<mvc:View type="HTML" viewName="com.myapp.view.Home"/> | ||
<mvc:View type="Template" viewName="com.myapp.view.Home"/> | ||
|
||
<mvc:XMLView viewName="com.myapp.view.Home"/> | ||
<mvc:JSView viewName="com.myapp.view.Home"/> | ||
<mvc:JSONView viewName="com.myapp.view.Home"/> | ||
<mvc:HTMLView viewName="com.myapp.view.Home"/> | ||
<mvc:TemplateView viewName="com.myapp.view.Home"/> | ||
|
||
</VBox> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<mvc:View xmlns:mvc="sap.ui.core.mvc" | ||
xmlns="sap.m" | ||
controllerName="com.myapp.controller.Main" | ||
> | ||
|
||
<mvc:View type="XML" viewName="com.myapp.view.Home"/> | ||
<mvc:View type="JS" viewName="com.myapp.view.Home"/> | ||
<mvc:View type="JSON" viewName="com.myapp.view.Home"/> | ||
<mvc:View type="HTML" viewName="com.myapp.view.Home"/> | ||
<mvc:View type="Template" viewName="com.myapp.view.Home"/> | ||
|
||
<mvc:XMLView viewName="com.myapp.view.Home"/> | ||
<mvc:JSView viewName="com.myapp.view.Home"/> | ||
<mvc:JSONView viewName="com.myapp.view.Home"/> | ||
<mvc:HTMLView viewName="com.myapp.view.Home"/> | ||
<mvc:TemplateView viewName="com.myapp.view.Home"/> | ||
|
||
</mvc:View> |
Oops, something went wrong.