Fix typos

This commit is contained in:
Adrian Wright 2018-10-18 10:33:01 +01:00 committed by Daniel Roth
parent 1661d38971
commit 5e0aa0c0fa
22 changed files with 55 additions and 55 deletions

View File

@ -163,7 +163,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
public static readonly RazorDiagnosticDescriptor BindAttribute_InvalidSyntax = public static readonly RazorDiagnosticDescriptor BindAttribute_InvalidSyntax =
new RazorDiagnosticDescriptor( new RazorDiagnosticDescriptor(
"BL9991", "BL9991",
() => "The attribute names could not be inferred from bind attibute '{0}'. Bind attributes should be of the form" + () => "The attribute names could not be inferred from bind attribute '{0}'. Bind attributes should be of the form" +
"'bind', 'bind-value' or 'bind-value-change'", "'bind', 'bind-value' or 'bind-value-change'",
RazorDiagnosticSeverity.Error); RazorDiagnosticSeverity.Error);

View File

@ -43,7 +43,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
public void VisitExtension(ComponentChildContentIntermediateNode node) public void VisitExtension(ComponentChildContentIntermediateNode node)
{ {
// Check that each child content has a unique parameter name within its scope. This is important // Check that each child content has a unique parameter name within its scope. This is important
// because the parameter name can be implict, and it doesn't work well when nested. // because the parameter name can be implicit, and it doesn't work well when nested.
if (node.IsParameterized) if (node.IsParameterized)
{ {
for (var i = 0; i < Ancestors.Count - 1; i++) for (var i = 0; i < Ancestors.Count - 1; i++)
@ -58,9 +58,9 @@ namespace Microsoft.AspNetCore.Blazor.Razor
node.Diagnostics.Add(BlazorDiagnosticFactory.Create_ChildContentRepeatedParameterName( node.Diagnostics.Add(BlazorDiagnosticFactory.Create_ChildContentRepeatedParameterName(
node.Source, node.Source,
node, node,
(ComponentExtensionNode)Ancestors[0], // Encosing component (ComponentExtensionNode)Ancestors[0], // Enclosing component
ancestor, // conflicting child content node ancestor, // conflicting child content node
(ComponentExtensionNode)Ancestors[i + 1])); // Encosing component of conflicting child content node (ComponentExtensionNode)Ancestors[i + 1])); // Enclosing component of conflicting child content node
} }
} }
} }

View File

@ -258,7 +258,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
// Happy path. // Happy path.
// //
// We need to compute a new source span because when we found the start tag before we knew // We need to compute a new source span because when we found the start tag before we knew
// the end poosition of the tag. // the end position of the tag.
var length = end.AbsoluteIndex - popped.Source.Value.AbsoluteIndex; var length = end.AbsoluteIndex - popped.Source.Value.AbsoluteIndex;
popped.Source = new SourceSpan( popped.Source = new SourceSpan(
popped.Source.Value.FilePath, popped.Source.Value.FilePath,
@ -426,7 +426,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
// in the DOM, which can accept content that has decoded entities. // in the DOM, which can accept content that has decoded entities.
// //
// In the event that we merge HtmlContent into an HtmlBlock, we need to // In the event that we merge HtmlContent into an HtmlBlock, we need to
// re-encode the entites. That's done in the HtmlBlock pass. // re-encode the entities. That's done in the HtmlBlock pass.
var tokens = _textSource.Tokenize(HtmlEntityService.Resolver); var tokens = _textSource.Tokenize(HtmlEntityService.Resolver);
return tokens; return tokens;
} }

View File

@ -140,7 +140,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
// //
// We don't want to create a child content for this case, because it can conflict // We don't want to create a child content for this case, because it can conflict
// with a child content that's set via an attribute. We don't want the formatting // with a child content that's set via an attribute. We don't want the formatting
// of insigificant whitespace to be annoying when setting attributes directly. // of insignificant whitespace to be annoying when setting attributes directly.
if (node.Children.Count == 1 && IsIgnorableWhitespace(node.Children[0])) if (node.Children.Count == 1 && IsIgnorableWhitespace(node.Children[0]))
{ {
return; return;
@ -149,11 +149,11 @@ namespace Microsoft.AspNetCore.Blazor.Razor
// From here we fork and behave differently based on whether the component's child content is // From here we fork and behave differently based on whether the component's child content is
// implicit or explicit. // implicit or explicit.
// //
// Explict child content will look like: <MyComponent><ChildContent><div>...</div></ChildContent></MyComponent> // Explicit child content will look like: <MyComponent><ChildContent><div>...</div></ChildContent></MyComponent>
// compared with implicit: <MyComponent><div></div></MyComponent> // compared with implicit: <MyComponent><div></div></MyComponent>
// //
// Using implicit child content: // Using implicit child content:
// 1. All content is grouped into a single child content lambda, and assiged to the property 'ChildContent' // 1. All content is grouped into a single child content lambda, and assigned to the property 'ChildContent'
// //
// Using explicit child content: // Using explicit child content:
// 1. All content must be contained within 'child content' elements that are direct children // 1. All content must be contained within 'child content' elements that are direct children
@ -232,7 +232,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
var child = children[i]; var child = children[i];
if (child is TagHelperBodyIntermediateNode body) if (child is TagHelperBodyIntermediateNode body)
{ {
// The body is all of the content we want to render, the rest of the childen will // The body is all of the content we want to render, the rest of the children will
// be the attributes. // be the attributes.
for (var j = 0; j < body.Children.Count; j++) for (var j = 0; j < body.Children.Count; j++)
{ {

View File

@ -117,7 +117,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
builder.Metadata[TagHelperMetadata.Runtime.Name] = BlazorMetadata.EventHandler.RuntimeName; builder.Metadata[TagHelperMetadata.Runtime.Name] = BlazorMetadata.EventHandler.RuntimeName;
// WTE has a bug in 15.7p1 where a Tag Helper without a display-name that looks like // WTE has a bug in 15.7p1 where a Tag Helper without a display-name that looks like
// a C# property will crash trying to create the toolips. // a C# property will crash trying to create the tooltips.
builder.SetTypeName(entry.TypeName); builder.SetTypeName(entry.TypeName);
builder.TagMatchingRule(rule => builder.TagMatchingRule(rule =>
@ -148,7 +148,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
a.Metadata.Add(BlazorMetadata.Component.WeaklyTypedKey, bool.TrueString); a.Metadata.Add(BlazorMetadata.Component.WeaklyTypedKey, bool.TrueString);
// WTE has a bug 15.7p1 where a Tag Helper without a display-name that looks like // WTE has a bug 15.7p1 where a Tag Helper without a display-name that looks like
// a C# property will crash trying to create the toolips. // a C# property will crash trying to create the tooltips.
a.SetPropertyName(entry.Attribute); a.SetPropertyName(entry.Attribute);
}); });

View File

@ -92,7 +92,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
// We need to verify that an argument was provided that 'covers' each type parameter. // We need to verify that an argument was provided that 'covers' each type parameter.
// //
// For example, consider a repeater where the generic type is the 'item' type, but the developer has // For example, consider a repeater where the generic type is the 'item' type, but the developer has
// not set the items. We won't be able to do type inference on this and so it will just be nonesense. // not set the items. We won't be able to do type inference on this and so it will just be nonsense.
var attributes = node.Attributes.Select(a => a.BoundAttribute).Concat(node.ChildContents.Select(c => c.BoundAttribute)); var attributes = node.Attributes.Select(a => a.BoundAttribute).Concat(node.ChildContents.Select(c => c.BoundAttribute));
foreach (var attribute in attributes) foreach (var attribute in attributes)
{ {
@ -139,7 +139,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
node.Diagnostics.Add(BlazorDiagnosticFactory.Create_GenericComponentTypeInferenceUnderspecified(node.Source, node, node.Component.GetTypeParameters())); node.Diagnostics.Add(BlazorDiagnosticFactory.Create_GenericComponentTypeInferenceUnderspecified(node.Source, node, node.Component.GetTypeParameters()));
} }
// Next we need to generate a type inference 'method' node. This repesents a method that we will codegen that // Next we need to generate a type inference 'method' node. This represents a method that we will codegen that
// contains all of the operations on the render tree building. Calling a method to operate on the builder // contains all of the operations on the render tree building. Calling a method to operate on the builder
// will allow the C# compiler to perform type inference. // will allow the C# compiler to perform type inference.
var documentNode = (DocumentIntermediateNode)Ancestors[Ancestors.Count - 1]; var documentNode = (DocumentIntermediateNode)Ancestors[Ancestors.Count - 1];
@ -253,7 +253,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
Bindings = bindings, Bindings = bindings,
Component = node, Component = node,
// Method name is generated and guaraneteed not to collide, since it's unique for each // Method name is generated and guaranteed not to collide, since it's unique for each
// component call site. // component call site.
MethodName = $"Create{node.TagName}_{_id++}", MethodName = $"Create{node.TagName}_{_id++}",
FullTypeName = @namespace + ".TypeInference", FullTypeName = @namespace + ".TypeInference",

View File

@ -14,7 +14,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
// Rewrites contiguous subtrees of HTML into a special node type to reduce the // Rewrites contiguous subtrees of HTML into a special node type to reduce the
// size of the Render tree. // size of the Render tree.
// //
// Does not preserve insigificant details of the HTML, like tag closing style // Does not preserve insignificant details of the HTML, like tag closing style
// or quote style. // or quote style.
internal class HtmlBlockPass : IntermediateNodePassBase, IRazorOptimizationPass internal class HtmlBlockPass : IntermediateNodePassBase, IRazorOptimizationPass
{ {

View File

@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.Blazor.Shared; using Microsoft.AspNetCore.Blazor.Shared;
@ -33,7 +33,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
builder.Metadata[TagHelperMetadata.Runtime.Name] = BlazorMetadata.Ref.RuntimeName; builder.Metadata[TagHelperMetadata.Runtime.Name] = BlazorMetadata.Ref.RuntimeName;
// WTE has a bug in 15.7p1 where a Tag Helper without a display-name that looks like // WTE has a bug in 15.7p1 where a Tag Helper without a display-name that looks like
// a C# property will crash trying to create the toolips. // a C# property will crash trying to create the tooltips.
builder.SetTypeName("Microsoft.AspNetCore.Blazor.Components.Ref"); builder.SetTypeName("Microsoft.AspNetCore.Blazor.Components.Ref");
builder.TagMatchingRule(rule => builder.TagMatchingRule(rule =>
@ -51,7 +51,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
attribute.Name = "ref"; attribute.Name = "ref";
// WTE has a bug 15.7p1 where a Tag Helper without a display-name that looks like // WTE has a bug 15.7p1 where a Tag Helper without a display-name that looks like
// a C# property will crash trying to create the toolips. // a C# property will crash trying to create the tooltips.
attribute.SetPropertyName("Ref"); attribute.SetPropertyName("Ref");
attribute.TypeName = typeof(object).FullName; attribute.TypeName = typeof(object).FullName;
}); });

View File

@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
@ -39,7 +39,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
{ {
for (var i = 0; i < node.Children.Count; i++) for (var i = 0; i < node.Children.Count; i++)
{ {
// We allow you to supress this error like: // We allow you to suppress this error like:
// <script suppress-error="BL9992" /> // <script suppress-error="BL9992" />
var attribute = node.Children[i] as HtmlAttributeIntermediateNode; var attribute = node.Children[i] as HtmlAttributeIntermediateNode;
if (attribute != null && if (attribute != null &&

View File

@ -150,7 +150,7 @@ namespace Microsoft.AspNetCore.Builder
if (!_includedSuffixes.Any(ext => eventArgs.Name.EndsWith(ext, StringComparison.OrdinalIgnoreCase))) if (!_includedSuffixes.Any(ext => eventArgs.Name.EndsWith(ext, StringComparison.OrdinalIgnoreCase)))
{ {
// Not a candiate file type // Not a candidate file type
return; return;
} }

View File

@ -10,7 +10,7 @@ using Interop = Microsoft.AspNetCore.Blazor.Browser.Services.BrowserUriHelperInt
namespace Microsoft.AspNetCore.Blazor.Server.Circuits namespace Microsoft.AspNetCore.Blazor.Server.Circuits
{ {
/// <summary> /// <summary>
/// A Server-Side Blazor implemenation of <see cref="IUriHelper"/>. /// A Server-Side Blazor implementation of <see cref="IUriHelper"/>.
/// </summary> /// </summary>
public class RemoteUriHelper : UriHelperBase public class RemoteUriHelper : UriHelperBase
{ {

View File

@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO; using System.IO;
@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.Blazor.Build.Test
public class FilePathRazorIntegrationTest : RazorIntegrationTestBase public class FilePathRazorIntegrationTest : RazorIntegrationTestBase
{ {
[Fact] [Fact]
public void FileNameIsInvalidClasName_SanitizesInvalidClassName() public void FileNameIsInvalidClassName_SanitizesInvalidClassName()
{ {
// Arrange // Arrange

View File

@ -7,7 +7,7 @@ using Xunit.Sdk;
namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests
{ {
public class IntializeTestFileAttribute : BeforeAfterTestAttribute public class InitializeTestFileAttribute : BeforeAfterTestAttribute
{ {
public override void Before(MethodInfo methodUnderTest) public override void Before(MethodInfo methodUnderTest)
{ {

View File

@ -12,7 +12,7 @@ using Xunit.Sdk;
namespace Microsoft.AspNetCore.Blazor.Build.Test namespace Microsoft.AspNetCore.Blazor.Build.Test
{ {
[IntializeTestFile] [InitializeTestFile]
public abstract class RazorBaselineIntegrationTestBase : RazorIntegrationTestBase public abstract class RazorBaselineIntegrationTestBase : RazorIntegrationTestBase
{ {
private static readonly AsyncLocal<string> _directoryPath = new AsyncLocal<string>(); private static readonly AsyncLocal<string> _directoryPath = new AsyncLocal<string>();
@ -198,7 +198,7 @@ namespace Microsoft.AspNetCore.Blazor.Build.Test
using (var writer = new StreamWriter(File.Open(filePath, FileMode.Create))) using (var writer = new StreamWriter(File.Open(filePath, FileMode.Create)))
{ {
// Force windows-style line endings so that we're consistent. This isn't // Force windows-style line endings so that we're consistent. This isn't
// required for correctness, but will prevent churcn when developing on OSX. // required for correctness, but will prevent churn when developing on OSX.
writer.NewLine = "\r\n"; writer.NewLine = "\r\n";
for (var i = 0; i < lines.Length; i++) for (var i = 0; i < lines.Length; i++)

View File

@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
public class BindTagHelperDescriptorProviderTest : BaseTagHelperDescriptorProviderTest public class BindTagHelperDescriptorProviderTest : BaseTagHelperDescriptorProviderTest
{ {
[Fact] [Fact]
public void Excecute_FindsBindTagHelperOnComponentType_CreatesDescriptor() public void Execute_FindsBindTagHelperOnComponentType_CreatesDescriptor()
{ {
// Arrange // Arrange
var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" var compilation = BaseCompilation.AddSyntaxTrees(Parse(@"
@ -75,7 +75,7 @@ namespace Test
"delegate to the 'MyPropertyChanged' property of the component.", "delegate to the 'MyPropertyChanged' property of the component.",
bind.Documentation); bind.Documentation);
// These are all trivally derived from the assembly/namespace/type name // These are all trivially derived from the assembly/namespace/type name
Assert.Equal("TestAssembly", bind.AssemblyName); Assert.Equal("TestAssembly", bind.AssemblyName);
Assert.Equal("Test.MyComponent", bind.Name); Assert.Equal("Test.MyComponent", bind.Name);
Assert.Equal("Test.MyComponent", bind.DisplayName); Assert.Equal("Test.MyComponent", bind.DisplayName);
@ -126,7 +126,7 @@ namespace Test
} }
[Fact] [Fact]
public void Excecute_NoMatchedPropertiesOnComponent_IgnoresComponent() public void Execute_NoMatchedPropertiesOnComponent_IgnoresComponent()
{ {
// Arrange // Arrange
var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" var compilation = BaseCompilation.AddSyntaxTrees(Parse(@"
@ -168,7 +168,7 @@ namespace Test
} }
[Fact] [Fact]
public void Excecute_BindOnElement_CreatesDescriptor() public void Execute_BindOnElement_CreatesDescriptor()
{ {
// Arrange // Arrange
var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" var compilation = BaseCompilation.AddSyntaxTrees(Parse(@"
@ -221,7 +221,7 @@ namespace Test
"delegate to the 'myevent' attribute.", "delegate to the 'myevent' attribute.",
bind.Documentation); bind.Documentation);
// These are all trivally derived from the assembly/namespace/type name // These are all trivially derived from the assembly/namespace/type name
Assert.Equal("TestAssembly", bind.AssemblyName); Assert.Equal("TestAssembly", bind.AssemblyName);
Assert.Equal("Bind", bind.Name); Assert.Equal("Bind", bind.Name);
Assert.Equal("Test.BindAttributes", bind.DisplayName); Assert.Equal("Test.BindAttributes", bind.DisplayName);
@ -544,7 +544,7 @@ namespace Test
} }
[Fact] [Fact]
public void Excecute_BindFallback_CreatesDescriptor() public void Execute_BindFallback_CreatesDescriptor()
{ {
// Arrange // Arrange
var compilation = BaseCompilation; var compilation = BaseCompilation;
@ -586,7 +586,7 @@ namespace Test
"to set the value to the 'onchange' attribute.", "to set the value to the 'onchange' attribute.",
bind.Documentation); bind.Documentation);
// These are all trivally derived from the assembly/namespace/type name // These are all trivially derived from the assembly/namespace/type name
Assert.Equal("Microsoft.AspNetCore.Blazor", bind.AssemblyName); Assert.Equal("Microsoft.AspNetCore.Blazor", bind.AssemblyName);
Assert.Equal("Bind", bind.Name); Assert.Equal("Bind", bind.Name);
Assert.Equal("Microsoft.AspNetCore.Blazor.Components.Bind", bind.DisplayName); Assert.Equal("Microsoft.AspNetCore.Blazor.Components.Bind", bind.DisplayName);

View File

@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
public class ComponentTagHelperDescriptorProviderTest : BaseTagHelperDescriptorProviderTest public class ComponentTagHelperDescriptorProviderTest : BaseTagHelperDescriptorProviderTest
{ {
[Fact] [Fact]
public void Excecute_FindsIComponentType_CreatesDescriptor() public void Execute_FindsIComponentType_CreatesDescriptor()
{ {
// Arrange // Arrange
@ -125,7 +125,7 @@ namespace Test
} }
[Fact] [Fact]
public void Excecute_FindsIComponentType_CreatesDescriptor_Generic() public void Execute_FindsIComponentType_CreatesDescriptor_Generic()
{ {
// Arrange // Arrange
@ -192,7 +192,7 @@ namespace Test
} }
[Fact] [Fact]
public void Excecute_FindsBlazorComponentType_CreatesDescriptor() public void Execute_FindsBlazorComponentType_CreatesDescriptor()
{ {
// Arrange // Arrange
@ -233,7 +233,7 @@ namespace Test
} }
[Fact] // bool properties support minimized attributes [Fact] // bool properties support minimized attributes
public void Excecute_BoolProperty_CreatesDescriptor() public void Execute_BoolProperty_CreatesDescriptor()
{ {
// Arrange // Arrange
@ -279,7 +279,7 @@ namespace Test
} }
[Fact] // enum properties have some special intellisense behavior [Fact] // enum properties have some special intellisense behavior
public void Excecute_EnumProperty_CreatesDescriptor() public void Execute_EnumProperty_CreatesDescriptor()
{ {
// Arrange // Arrange
@ -331,7 +331,7 @@ namespace Test
} }
[Fact] [Fact]
public void Excecute_GenericProperty_CreatesDescriptor() public void Execute_GenericProperty_CreatesDescriptor()
{ {
// Arrange // Arrange
@ -388,7 +388,7 @@ namespace Test
} }
[Fact] [Fact]
public void Excecute_MultipleGenerics_CreatesDescriptor() public void Execute_MultipleGenerics_CreatesDescriptor()
{ {
// Arrange // Arrange

View File

@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Blazor.Razor
public class EventHandlerTagHelperDescriptorProviderTest : BaseTagHelperDescriptorProviderTest public class EventHandlerTagHelperDescriptorProviderTest : BaseTagHelperDescriptorProviderTest
{ {
[Fact] [Fact]
public void Excecute_EventHandler_CreatesDescriptor() public void Execute_EventHandler_CreatesDescriptor()
{ {
// Arrange // Arrange
var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" var compilation = BaseCompilation.AddSyntaxTrees(Parse(@"
@ -62,7 +62,7 @@ namespace Test
"A delegate value should be of type 'System.Action<Microsoft.AspNetCore.Blazor.UIMouseEventArgs>'.", "A delegate value should be of type 'System.Action<Microsoft.AspNetCore.Blazor.UIMouseEventArgs>'.",
item.Documentation); item.Documentation);
// These are all trivally derived from the assembly/namespace/type name // These are all trivially derived from the assembly/namespace/type name
Assert.Equal("TestAssembly", item.AssemblyName); Assert.Equal("TestAssembly", item.AssemblyName);
Assert.Equal("onclick", item.Name); Assert.Equal("onclick", item.Name);
Assert.Equal("Test.EventHandlers", item.DisplayName); Assert.Equal("Test.EventHandlers", item.DisplayName);

View File

@ -1268,7 +1268,7 @@ namespace Microsoft.AspNetCore.Blazor.Test
var newComponentInstance = (FakeComponent)oldTree.GetFrames().Array[0].Component; var newComponentInstance = (FakeComponent)oldTree.GetFrames().Array[0].Component;
// Assert // Assert
Assert.Equal(1, renderBatch.UpdatedComponents.Count); // Because the diff builder only queues child component renders; it doesn't actually perfom them itself Assert.Equal(1, renderBatch.UpdatedComponents.Count); // Because the diff builder only queues child component renders; it doesn't actually perform them itself
Assert.Same(originalComponentInstance, newComponentInstance); Assert.Same(originalComponentInstance, newComponentInstance);
Assert.Equal("String did change", newComponentInstance.StringProperty); Assert.Equal("String did change", newComponentInstance.StringProperty);
Assert.Same(objectWillNotChange, newComponentInstance.ObjectProperty); Assert.Same(objectWillNotChange, newComponentInstance.ObjectProperty);

View File

@ -278,7 +278,7 @@ namespace Microsoft.AspNetCore.Blazor.Server
} }
[Fact] [Fact]
public void Send_CanRunSynchonously() public void Send_CanRunSynchronously()
{ {
// Arrange // Arrange
var context = new CircuitSynchronizationContext(); var context = new CircuitSynchronizationContext();

View File

@ -213,7 +213,7 @@ namespace Microsoft.AspNetCore.Blazor.Server
// Testing deduplication // Testing deduplication
RenderTreeFrame.Attribute(134, "Attribute with string value", "String value"), RenderTreeFrame.Attribute(134, "Attribute with string value", "String value"),
RenderTreeFrame.Element(135, "Some element") // Will be dedupliated RenderTreeFrame.Element(135, "Some element") // Will be deduplicated
.WithElementSubtreeLength(999), .WithElementSubtreeLength(999),
RenderTreeFrame.Text(136, "Some text"), // Will not be deduplicated RenderTreeFrame.Text(136, "Some text"), // Will not be deduplicated
RenderTreeFrame.Markup(137, "Some markup"), // Will not be deduplicated RenderTreeFrame.Markup(137, "Some markup"), // Will not be deduplicated

View File

@ -1,4 +1,4 @@
<h2>Textbox</h2> <h2>Textbox</h2>
<p> <p>
Initially blank: Initially blank:
<input id="textbox-initially-blank" bind="textboxInitiallyBlankValue" /> <input id="textbox-initially-blank" bind="textboxInitiallyBlankValue" />
@ -49,13 +49,13 @@
<h2>Text Area</h2> <h2>Text Area</h2>
<p> <p>
Initially blank: Initially blank:
<textarea id="textarea-initially-blank" bind="textAreaIntiallyBlankValue"></textarea> <textarea id="textarea-initially-blank" bind="textAreaInitiallyBlankValue"></textarea>
<span id="textarea-initially-blank-value">@textAreaIntiallyBlankValue</span> <span id="textarea-initially-blank-value">@textAreaInitiallyBlankValue</span>
</p> </p>
<p> <p>
Initially populated: Initially populated:
<textarea id="textarea-initially-populated" bind="textAreaIntiallyPopulatedValue"></textarea> <textarea id="textarea-initially-populated" bind="textAreaInitiallyPopulatedValue"></textarea>
<span id="textarea-initially-populated-value">@textAreaIntiallyPopulatedValue</span> <span id="textarea-initially-populated-value">@textAreaInitiallyPopulatedValue</span>
</p> </p>
<h2>Checkbox</h2> <h2>Checkbox</h2>
@ -91,8 +91,8 @@
string textboxInitiallyBlankValue = null; string textboxInitiallyBlankValue = null;
string textboxInitiallyPopulatedValue = "Hello"; string textboxInitiallyPopulatedValue = "Hello";
string textAreaIntiallyBlankValue = null; string textAreaInitiallyBlankValue = null;
string textAreaIntiallyPopulatedValue = "Hello"; string textAreaInitiallyPopulatedValue = "Hello";
bool checkboxInitiallyUncheckedValue = false; bool checkboxInitiallyUncheckedValue = false;
bool checkboxInitiallyCheckedValue = true; bool checkboxInitiallyCheckedValue = true;

View File

@ -21,7 +21,7 @@ namespace BasicTestApp
if (RuntimeInformation.IsOSPlatform(OSPlatform.Create("WEBASSEMBLY"))) if (RuntimeInformation.IsOSPlatform(OSPlatform.Create("WEBASSEMBLY")))
{ {
// Needed because the test server runs on a different port than the client app, // Needed because the test server runs on a different port than the client app,
// and we want to test sending/receiving cookies undering this config // and we want to test sending/receiving cookies underling this config
BrowserHttpMessageHandler.DefaultCredentials = FetchCredentialsOption.Include; BrowserHttpMessageHandler.DefaultCredentials = FetchCredentialsOption.Include;
GC.KeepAlive(ActivateMonoJSRuntime.EnsureActivated()); GC.KeepAlive(ActivateMonoJSRuntime.EnsureActivated());