diff --git a/test/fixtures/linter/rules/NoDeprecatedApi/XMLViewNestedView.view.xml b/test/fixtures/linter/rules/NoDeprecatedApi/XMLViewNestedView.view.xml new file mode 100644 index 000000000..2f227844b --- /dev/null +++ b/test/fixtures/linter/rules/NoDeprecatedApi/XMLViewNestedView.view.xml @@ -0,0 +1,8 @@ + + + + diff --git a/test/fixtures/transpiler/xml/XMLViewNestedView.view.xml b/test/fixtures/transpiler/xml/XMLViewNestedView.view.xml new file mode 100644 index 000000000..2f227844b --- /dev/null +++ b/test/fixtures/transpiler/xml/XMLViewNestedView.view.xml @@ -0,0 +1,8 @@ + + + + diff --git a/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md b/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md index aeaa82754..107fe39d0 100644 --- a/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md +++ b/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md @@ -767,6 +767,21 @@ Generated by [AVA](https://avajs.dev). }, ] +## General: XMLViewNestedView.view.xml + +> Snapshot 1 + + [ + { + coverageInfo: [], + errorCount: 0, + fatalErrorCount: 0, + filePath: 'XMLViewNestedView.view.xml', + messages: [], + warningCount: 0, + }, + ] + ## General: jQuery-device.js > Snapshot 1 diff --git a/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap b/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap index b46b6090a..4e1231a42 100644 Binary files a/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap and b/test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap differ diff --git a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md index ca49b159a..643981410 100644 --- a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md +++ b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md @@ -930,6 +930,47 @@ Generated by [AVA](https://avajs.dev). [] +## Transpile XMLViewNestedView.view.xml + +> Snapshot 1 + + `import View from "sap/ui/core/mvc/View";␊ + import View2 from "sap/ui/core/mvc/View";␊ + import XMLView from "sap/ui/core/mvc/XMLView";␊ + const oXMLView = new XMLView({␊ + viewName: "ui5.walkthrough.view.HelloPanel",␊ + });␊ + ␊ + const oView = new View({␊ + type: "JSON",␊ + viewName: "ui5.walkthrough.view.HelloPanel",␊ + });␊ + ␊ + export default const oView2 = new View2({␊ + content: [␊ + oXMLView,␊ + oView,␊ + ],␊ + });␊ + ␊ + ` + +> Snapshot 2 + + { + file: 'XMLViewNestedView.view.js', + mappings: 'AAMC,wCAAkE;AANnE,yCAIC;AACA,8CAAyD;iBAAzD,aAAyD;IAA5C,4CAA0C;;;cACvD,UAAkE;IAAxD,aAAW;IAAC,4CAA0C;;;8BANjE,WAIC;IACA,OAAyD', + names: [], + sources: [ + 'XMLViewNestedView.view.xml', + ], + version: 3, + } + +> Snapshot 3 + + [] + ## Transpile XMLViewWithLowerCaseControl.view.xml > Snapshot 1 diff --git a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.snap b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.snap index f3e34aec8..92fec7391 100644 Binary files a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.snap and b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.snap differ