Skip to content

[Blazor] Use inline boot config in tests #61557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/Components/WebAssembly/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@
<!-- Avoid source build issues with WebAssembly -->
<ExcludeFromSourceOnlyBuild>true</ExcludeFromSourceOnlyBuild>
</PropertyGroup>
<PropertyGroup>
<WasmInlineBootConfig>false</WasmInlineBootConfig>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public void CachesResourcesAfterFirstLoad()
Navigate("/");
WaitUntilLoaded();
var initialResourcesRequested = GetAndClearRequestedPaths();
Assert.NotEmpty(initialResourcesRequested.Where(path => path.Contains(".boot.js", StringComparison.Ordinal)));
Assert.NotEmpty(initialResourcesRequested.Where(path =>
path.Contains("/dotnet.native.", StringComparison.Ordinal) &&
path.EndsWith(".wasm", StringComparison.Ordinal)));
Expand All @@ -52,14 +51,11 @@ public void CachesResourcesAfterFirstLoad()
!path.Contains("/dotnet.native.", StringComparison.Ordinal) &&
path.EndsWith(".wasm", StringComparison.Ordinal)));

// On subsequent loads, we skip the items referenced from blazor.boot.json or dotnet.boot.js
// which includes .wasm (original .dll) files and dotnet.native.[fingerprint].wasm
Navigate("about:blank");
Browser.Equal(string.Empty, () => Browser.Title);
Navigate("/");
WaitUntilLoaded();
var subsequentResourcesRequested = GetAndClearRequestedPaths();
Assert.NotEmpty(initialResourcesRequested.Where(path => path.Contains(".boot.js", StringComparison.Ordinal)));
Assert.DoesNotContain(subsequentResourcesRequested, path =>
path.Contains("/dotnet.native.", StringComparison.Ordinal) &&
path.EndsWith(".wasm", StringComparison.Ordinal));
Expand Down
3 changes: 0 additions & 3 deletions src/Components/test/testassets/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,4 @@
<_Parameter2>true</_Parameter2>
</AssemblyAttribute>
</ItemGroup>
<PropertyGroup>
<WasmInlineBootConfig>false</WasmInlineBootConfig>
</PropertyGroup>
</Project>
Loading