Skip to content

Commit

Permalink
[WASM] Clean up of HybridGlobalization in tests (#45412)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilonatommy authored Dec 12, 2024
1 parent 42b3293 commit ff7e757
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,6 @@ public enum GlobalizationMode : int
/// Load custom icu file provided by the developer.
/// </summary>
Custom = 3,

/// <summary>
/// Use the reduced icudt_hybrid.dat file
/// </summary>
Hybrid = 4,
}

[DataContract]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public class WasmBuildIntegrationTest(ITestOutputHelper log) : BlazorWasmBaselin
{
private static string customIcuFilename = "icudt_custom.dat";
private static string fullIcuFilename = "icudt.dat";
private static string hybridIcuFilename = "icudt_hybrid.dat";
private static string[] icuShardFilenames = new string[] {
"icudt_EFIGS.dat",
"icudt_CJK.dat",
Expand Down Expand Up @@ -491,15 +490,13 @@ public void Build_WithBlazorWebAssemblyLoadAllGlobalizationData_SetsICUDataMode(

bootJsonData.resources.wasmNative.Should().ContainKey("dotnet.native.wasm");
bootJsonData.resources.icu.Should().ContainKey(fullIcuFilename);
bootJsonData.resources.icu.Should().NotContainKey(hybridIcuFilename);
foreach (var shardFilename in icuShardFilenames)
{
bootJsonData.resources.icu.Should().NotContainKey(shardFilename);
}

new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist();
new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", fullIcuFilename)).Should().Exist();
new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", hybridIcuFilename)).Should().NotExist();
foreach (var shardFilename in icuShardFilenames)
{
new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", shardFilename)).Should().NotExist();
Expand Down Expand Up @@ -535,15 +532,13 @@ public void Publish_WithBlazorWebAssemblyLoadAllGlobalizationData_SetsGlobalizat

bootJsonData.resources.wasmNative.Should().ContainKey("dotnet.native.wasm");
bootJsonData.resources.icu.Should().ContainKey(fullIcuFilename);
bootJsonData.resources.icu.Should().NotContainKey(hybridIcuFilename);
foreach (var shardFilename in icuShardFilenames)
{
bootJsonData.resources.icu.Should().NotContainKey(shardFilename);
}

new FileInfo(Path.Combine(publishDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist();
new FileInfo(Path.Combine(publishDirectory, "wwwroot", "_framework", fullIcuFilename)).Should().Exist();
new FileInfo(Path.Combine(publishDirectory, "wwwroot", "_framework", hybridIcuFilename)).Should().NotExist();
foreach (var shardFilename in icuShardFilenames)
{
new FileInfo(Path.Combine(publishDirectory, "wwwroot", "_framework", shardFilename)).Should().NotExist();
Expand Down

0 comments on commit ff7e757

Please sign in to comment.