Commit Graph

40898 Commits

Author SHA1 Message Date
Ryan Nowak 7ef2242805 Extension methods for IHtmlContentBuilder
Resolves a bunch of duplication between TagHelperContent and
BufferedHtmlContent, plus adds a few more convenience overloads we don't
have in one of the two places.
2015-09-15 16:50:01 -07:00
Nate McMaster e3458ceb1b Add libuv to travis ui build script 2015-09-15 16:28:17 -07:00
Nate McMaster d162fff906 Temporary workaround for https://github.com/aspnet/EntityFramework/issues/3144 2015-09-15 15:33:02 -07:00
Daniel Lo Nigro bc8cf1f7b6 Update xmldoc for SetNormalizedUserNameAsync
The parameter name specified in the xmldoc didn't match the actual parameter name.
2015-09-15 15:20:02 -07:00
Hao Kung eb4aaa5800 Fix PR 2015-09-15 15:11:09 -07:00
Kiran Challa 5008e2743d Removed style cop related shade files 2015-09-15 14:19:00 -07:00
Hisham Bin Ateya a2cbaa0666 Using 'nameof' operator instead of magic string 2015-09-15 23:25:37 +03:00
Glenn Condron 1d06f1f935 Merge pull request #925 from mariusGundersen/patch-1
Removed dot from dnx run command
2015-09-15 12:49:15 -07:00
Chris R 2e225b0db6 Hosting#331 Add IServerAddressesFeature. 2015-09-15 12:47:18 -07:00
Jason Loeffler b25d4b537f Removed references to Shouldly 2015-09-15 14:22:38 -05:00
Doug Bunting 22952e1806 Add `restoreDir` parameter in `_k-restore.shade`
- enables use of this command where it's currently overridden
- in turn, this means `--quiet` would be honoured in those `makefile.shade` files

For example can use this hook to shut DNX build up a bit
- `makefile.shade` there calls `dnu restore` directly and ignores `--quiet`
2015-09-15 11:58:48 -07:00
Nate McMaster 8e7fca953c React to changes in EF. https://github.com/aspnet/EntityFramework/pull/3108 2015-09-15 11:43:00 -07:00
Doug Bunting d03a851ab3 Use `MvcTextFixture` as much as possible
- #3066
  - reduce `TestServer` -> `PhysicalFileProvider` -> `FileSystemWatcher` count enough to run with Core CLR on Linux
- remove use of `HttpClient.DefaultRequestHeaders`; any client change affects other tests
- remove use of `RequestBuilder` class; creates a per-test `HttpClient` and requires the `TestServer`
- updated a few expectations because `CommonTestEncoder` does JavaScript a bit differently
  - "JavaScriptEncode[[...]]" -> "JavaScriptStringEncode[[...]]"
- side benefit: xUnit reports functional tests execute for only ~12.4s; was >30s before this change

Infrastructure: Enhance `MvcTestFixture`
- handle `ConfigureServices()` methods that are not `void`
- handle `Configure(IApplicationBuilder, ILoggerFactory)`
- ensure server is initialized with consistent `CurrentCulture` and `CurrentUICulture`
- add `FilteredDefaultAssemblyProviderFixture<TStartup>` and `MvcEncodedTestFixture<TStartup>`
  - add `MvcTextFixture.AddAdditionalServices()` extension point supporting these

- do not expose the `TestServer`; an anti-pattern for tests to manipulate the server
- update class names to match containing files
- use existing `TestApplicationEnvironment`
  - apply some `MvcTestFixture` improvements to the shared `TestApplicationEnvironment` class
- remove unused methods from `TestHelper`

nits:
- touched-up some leftover `_app` &c declarations to be more explicit and minimize `using`s
- moved statements into correct sections of methods in `RoutingTests`
- removed `TestLoggerFactory` and related classes from `TagHelperSampleTest`
2015-09-15 10:18:27 -07:00
Chris R ee2d263223 #434 Remove the nonce cache. 2015-09-15 09:13:26 -07:00
Kirthi Krishnamraju eefe518ac2 Add LocalizationOptions to specify resources location 2015-09-14 20:34:43 -07:00
Hisham Bin Ateya a7b1b1e4ec Remove unnecessary usings from Microsoft.Framework.Localization.Tests 2015-09-14 20:29:13 -07:00
Hisham Bin Ateya 56259c0564 Add missing 'Assert' in GetFallbackLanguage_ReturnsFirstNonNullCultureFromSupportedCultureList 2015-09-14 20:25:45 -07:00
Chris R ce06872b84 Hosting#331 Add IServerAddressesFeature. 2015-09-14 16:58:00 -07:00
Kirthi Krishnamraju a5a264d1ad fix #3: Add localized resources to the sample 2015-09-14 16:46:43 -07:00
Chris R 10176373c8 #351 Display hosting environment name and listening addresses on console. 2015-09-14 16:19:07 -07:00
Chris R bda0386a93 #331 Add IServerAddressesFeature. 2015-09-14 16:19:06 -07:00
Doug Bunting 6459fb0e30 Do not execute no-op tests
- consistently use `TestPlatformHelper` only to skip test cases or change expectations
2015-09-14 15:30:45 -07:00
Hao Kung da3c513ad4 React to security changes 2015-09-14 15:07:23 -07:00
Hao Kung e8090a3176 Remove authentication from names, async events 2015-09-14 14:54:51 -07:00
Pranav K 887ab64d75 Throw an exception if layouts have circular references.
Fixes #3100
2015-09-14 12:57:06 -07:00
Ryan Nowak 52cfdf75f2 Add AppendEncoded to the builder
This is needed because a builder may have an optimized path for an
unencoded string. There's also no 'common' encoded string implementation
so it's much more straightforward to put this on the interface.
2015-09-14 11:58:38 -07:00
Pranav K 381c055e2f Removing NotNullAttribute from Microsoft.AspNet.Razor 2015-09-14 11:58:28 -07:00
Pranav K 896c146e24 Replacing NotNullAttribute with thrown exceptions 2015-09-14 11:48:07 -07:00
Kiran Challa c79469c3b3 React to Cors api changes 2015-09-14 11:21:40 -07:00
Kiran Challa bfe1de4819 React to Cors api changes 2015-09-14 11:08:11 -07:00
Kirthi Krishnamraju 7b53bdd43e Fix for #38: Fallback to wrong language preference when the top preference is unavailable 2015-09-14 11:01:34 -07:00
Eilon Lipton 276e918e7a Merge pull request #61 from hishamco/using
Remove unnecessary 'Cache' usings
2015-09-14 10:48:53 -07:00
Hisham Abdullah Bin Ateya efcbb2a664 Add 'Microsoft.AspNet.Localization' Unit Tests 2015-09-14 10:28:41 -07:00
Kiran Challa 96c7850e4c [Fixes #33]AddCors should adopt new pattern 2015-09-14 10:28:18 -07:00
Pranav K d3f1437764 Replacing NotNullAttribute with thrown exceptions 2015-09-14 10:25:22 -07:00
Marius Gundersen aa37d8c776 Removed dot from dnx run command
The dot (current folder) isn't needed when using the latest dnx
2015-09-14 18:10:09 +02:00
Doug Bunting 29a25b2ed1 No need to add an instance in `WebApiCompatShimMvcBuilderExtensions`
- DI has changed since this class was written
2015-09-13 22:25:04 -07:00
David Fowler 7a24045953 Split ParsingHelpers classes into their own files
#397
2015-09-13 22:07:17 -07:00
N. Taylor Mullen 93735a5be6 React to Razor `TargetElementAttribute` rename.
aspnet/Razor#516
2015-09-13 19:14:30 -07:00
N. Taylor Mullen f71f9fb679 Rename `TargetElementAttribute` => `HtmlTargetElementAttribute`.
- Nearly every other `TagHelper` related element targeting attribute has `Html` a part of its name. With this rename, the attribute will be consistent.

#516
2015-09-13 19:14:08 -07:00
Ryan Nowak 94388a8804 React to BufferedHtmlContent changes 2015-09-13 13:51:53 -07:00
Ryan Nowak fcadbc9095 React to BufferedHtmlContent changes
This changes all TagHelperContent methods to assume that input has NOT
YET been encoded.
2015-09-13 13:49:05 -07:00
N. Taylor Mullen 4fd866f340 Update `RestrictChildrenAttribute`s properties and parameters to have consistent names.
- Other attributes such as `TargetElement` have names referring to tag names as "tags". This update makes both attributes more consistent.

#517
2015-09-13 11:57:48 -07:00
David Fowler 2766113ba9 Remove DiagnosticsPage middleware
- It's dead code
2015-09-13 11:13:32 -07:00
Hisham Bin Ateya c2a267b2df Remove unnecessary 'Cache' usings 2015-09-13 02:10:04 +03:00
Pranav K dca5829b29 Replacing NotNullAttribute with thrown exceptions 2015-09-12 12:39:25 -07:00
Pranav K e0ec2da711 Replacing NotNull with thrown exceptions 2015-09-11 17:07:52 -07:00
Pranav K c6941e797f Replacing NotNullAttribute with exceptions 2015-09-11 15:08:04 -07:00
Hao Kung 2bd83e1589 ConfigureSession => AddSession overload 2015-09-11 14:16:13 -07:00
Pranav K 85bb33a62a Fixing formatting in RoslynCompilationService 2015-09-11 12:22:34 -07:00