Modify tests to account for no indent helpers.
Modified outputs of generated files to not indent helpers. Also fixed LineMapping verifications.
This commit is contained in:
parent
9f05cf8fbb
commit
f5759635b1
|
|
@ -261,18 +261,18 @@ namespace Microsoft.AspNet.Razor.Test.Generator
|
|||
tabTest: TabTest.NoTabs,
|
||||
expectedDesignTimePragmas: new List<LineMapping>()
|
||||
{
|
||||
BuildLineMapping(222, 16, 8, 182, 9, 0, 7),
|
||||
BuildLineMapping(229, 16, 323, 14, 15, 26),
|
||||
BuildLineMapping(265, 18, 430, 21, 18, 9),
|
||||
BuildLineMapping(274, 20, 523, 29, 0, 1),
|
||||
BuildLineMapping(20, 1, 881, 46, 13, 36),
|
||||
BuildLineMapping(74, 2, 1021, 53, 22, 1),
|
||||
BuildLineMapping(79, 2, 1124, 58, 27, 15),
|
||||
BuildLineMapping(113, 7, 1223, 65, 2, 12),
|
||||
BuildLineMapping(129, 8, 1331, 71, 1, 4),
|
||||
BuildLineMapping(142, 8, 1498, 77, 14, 3),
|
||||
BuildLineMapping(153, 8, 1635, 84, 25, 1),
|
||||
BuildLineMapping(204, 13, 1786, 91, 5, 3)
|
||||
BuildLineMapping(222, 16, 8, 174, 9, 0, 7),
|
||||
BuildLineMapping(229, 16, 315, 14, 15, 26),
|
||||
BuildLineMapping(265, 18, 422, 21, 18, 9),
|
||||
BuildLineMapping(274, 20, 515, 29, 0, 1),
|
||||
BuildLineMapping(20, 1, 873, 46, 13, 36),
|
||||
BuildLineMapping(74, 2, 1013, 53, 22, 1),
|
||||
BuildLineMapping(79, 2, 1116, 58, 27, 15),
|
||||
BuildLineMapping(113, 7, 1215, 65, 2, 12),
|
||||
BuildLineMapping(129, 8, 1323, 71, 1, 4),
|
||||
BuildLineMapping(142, 8, 1490, 77, 14, 3),
|
||||
BuildLineMapping(153, 8, 1627, 84, 25, 1),
|
||||
BuildLineMapping(204, 13, 1778, 91, 5, 3)
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace TestOutput
|
|||
public class DesignTime
|
||||
{
|
||||
private static object @__o;
|
||||
public static Template
|
||||
public static Template
|
||||
#line 17 "DesignTime.cshtml"
|
||||
Foo() {
|
||||
#line default
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ namespace TestOutput
|
|||
|
||||
public class Helpers
|
||||
{
|
||||
public Template
|
||||
public Template
|
||||
#line 1 "Helpers.cshtml"
|
||||
Bold(string s) {
|
||||
#line default
|
||||
|
|
@ -35,7 +35,7 @@ Bold(string s) {
|
|||
#line default
|
||||
#line hidden
|
||||
|
||||
public Template
|
||||
public Template
|
||||
#line 6 "Helpers.cshtml"
|
||||
Italic(string s) {
|
||||
#line default
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ namespace TestOutput
|
|||
|
||||
public class Helpers
|
||||
{
|
||||
public static Template
|
||||
public static Template
|
||||
#line 1 "Helpers.cshtml"
|
||||
Bold(string s) {
|
||||
#line default
|
||||
|
|
@ -35,7 +35,7 @@ Bold(string s) {
|
|||
#line default
|
||||
#line hidden
|
||||
|
||||
public static Template
|
||||
public static Template
|
||||
#line 6 "Helpers.cshtml"
|
||||
Italic(string s) {
|
||||
#line default
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ namespace TestOutput
|
|||
|
||||
public class HelpersMissingCloseParen
|
||||
{
|
||||
public static Template
|
||||
public static Template
|
||||
#line 1 "HelpersMissingCloseParen.cshtml"
|
||||
Bold(string s) {
|
||||
#line default
|
||||
|
|
@ -35,7 +35,7 @@ Bold(string s) {
|
|||
#line default
|
||||
#line hidden
|
||||
|
||||
public static Template
|
||||
public static Template
|
||||
#line 6 "HelpersMissingCloseParen.cshtml"
|
||||
Italic(string s
|
||||
@Bold("Hello")
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ namespace TestOutput
|
|||
|
||||
public class HelpersMissingOpenBrace
|
||||
{
|
||||
public static Template
|
||||
public static Template
|
||||
#line 1 "HelpersMissingOpenBrace.cshtml"
|
||||
Bold(string s) {
|
||||
#line default
|
||||
|
|
@ -35,7 +35,7 @@ Bold(string s) {
|
|||
#line default
|
||||
#line hidden
|
||||
|
||||
public static Template
|
||||
public static Template
|
||||
#line 6 "HelpersMissingOpenBrace.cshtml"
|
||||
Italic(string s)
|
||||
#line default
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ namespace TestOutput
|
|||
|
||||
public class HelpersMissingOpenParen
|
||||
{
|
||||
public static Template
|
||||
public static Template
|
||||
#line 1 "HelpersMissingOpenParen.cshtml"
|
||||
Bold(string s) {
|
||||
#line default
|
||||
|
|
@ -35,7 +35,7 @@ Bold(string s) {
|
|||
#line default
|
||||
#line hidden
|
||||
|
||||
public static Template
|
||||
public static Template
|
||||
#line 6 "HelpersMissingOpenParen.cshtml"
|
||||
Italic
|
||||
#line default
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ namespace TestOutput
|
|||
|
||||
public class InlineBlocks
|
||||
{
|
||||
public static Template
|
||||
public static Template
|
||||
#line 1 "InlineBlocks.cshtml"
|
||||
Link(string link) {
|
||||
#line default
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ namespace TestOutput
|
|||
|
||||
public class NestedHelpers
|
||||
{
|
||||
public static Template
|
||||
public static Template
|
||||
#line 1 "NestedHelpers.cshtml"
|
||||
Italic(string s) {
|
||||
#line default
|
||||
|
|
@ -41,7 +41,7 @@ Italic(string s) {
|
|||
#line default
|
||||
#line hidden
|
||||
|
||||
public static Template
|
||||
public static Template
|
||||
#line 3 "NestedHelpers.cshtml"
|
||||
Bold(string s) {
|
||||
#line default
|
||||
|
|
|
|||
Loading…
Reference in New Issue