Skip to content

Commit

Permalink
Update baselines, skip design time verification where tracked by dotn…
Browse files Browse the repository at this point in the history
  • Loading branch information
333fred committed Oct 8, 2024
1 parent 13b3767 commit 312ad1e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ public void AfterTag()
""");

AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
if (!DesignTime)
{
// https://github.com/dotnet/razor/issues/10981
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
}
CompileToAssembly(generated,
// x:\dir\subdir\Test\TestComponent.cshtml(7,1): error CS1028: Unexpected preprocessor directive
// #endif
Expand Down Expand Up @@ -254,7 +258,11 @@ public void StartOfLine_05()
""");

AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
if (!DesignTime)
{
// https://github.com/dotnet/razor/issues/10981
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
}
CompileToAssembly(generated);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup.
(0,0): Warning RZ1042: Possible C# preprocessor directive is misplaced. C# preprocessor directives must be at the start of the line, except for whitespace.
(7,4): Warning RZ1042: Possible C# preprocessor directive is misplaced. C# preprocessor directives must be at the start of the line, except for whitespace.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
CSharpStatementLiteral - [2..64)::62 - [LF#if falseLF}LF<div>LF <p>Content</p>LF</div>LF@{ #endif }] - Gen<Stmt>
NewLine;[LF];
CSharpDirective;[#if falseLF];
CSharpDisabledText;[}LF<div>LF <p>Content</p>LF</div>LF@{ #endif }];RZ1042(56:-1,-1 [6] )
CSharpDisabledText;[}LF<div>LF <p>Content</p>LF</div>LF@{ #endif }];RZ1042(56:6,3 [6] )
RazorMetaCode - [64..64)::0 - Gen<None>
RightBrace;[<Missing>];
EndOfFile;[];

0 comments on commit 312ad1e

Please sign in to comment.