Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Remove ~/ handling from core Razor. #466

Merged
merged 1 commit into from
Aug 3, 2015

Conversation

NTaylorMullen
Copy link
Contributor

  • Removed parsing, chunk generation and code generation.
  • Removed related tests.
  • Did not modify existing unrelated tests with ~/ since it's just plain text and may be valid for end-users.
    Remove ~/ handling from core Razor. #427

MVC PR to add app-relative URL resolution: aspnet/Mvc#2875

@NTaylorMullen
Copy link
Contributor Author

/cc @dougbu @ajaybhargavb

@ajaybhargavb
Copy link
Contributor

This test AttributeBlockChunkGeneratorTest.GetHashCode_ReturnsSameValue_WhenEqual is failing.

@NTaylorMullen
Copy link
Contributor Author

@ajaybhargavb #465 (comment) :)

@@ -136,8 +136,6 @@ public struct GeneratedClassContext
public string WriteAttributeMethodName { get; set; }
public string WriteAttributeToMethodName { get; set; }

[SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Justification = "Property is not a URL property")]
public string ResolveUrlMethodName { get; set; }

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleanup this line as well

@ajaybhargavb
Copy link
Contributor

:shipit:

@@ -122,30 +122,6 @@ public void MultiValueExpressionAttribute()
}

[Fact]
public void VirtualPathAttributesWorkWithConditionalAttributes()
{
ParseBlockTest("<a href='@foo ~/Foo/Bar' />",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would prefer we keep one of these, showing the straightforward set of Spans and Blocks generated. Helps to show ~ remains not special at this level.

@dougbu
Copy link
Member

dougbu commented Jul 31, 2015

:shipit: with one restored (and simplified) test

- Removed parsing, chunk generation and code generation.
- Removed related tests.
- Did not modify existing unrelated tests with ~/ since it's just plain text and may be valid for end-users.

#427
@NTaylorMullen NTaylorMullen force-pushed the nimullen/apprelativeurls.427 branch from 39ec988 to 48a6b56 Compare July 31, 2015 22:55
@NTaylorMullen NTaylorMullen merged commit 48a6b56 into dev Aug 3, 2015
@NTaylorMullen NTaylorMullen deleted the nimullen/apprelativeurls.427 branch August 3, 2015 23:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants