[browser][non-icu] `HybridGlobalization` change case (#84019)
authorIlona Tomkowicz <32700855+ilonatommy@users.noreply.github.com>
Tue, 4 Apr 2023 07:07:04 +0000 (09:07 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Apr 2023 07:07:04 +0000 (09:07 +0200)
commit9afb7d42443fd38556dcebb07fcd12370f6b0ae2
tree9930969efda1c353cc677f0f4829deb0b6658adb
parent50c88957fb93ccaa0040b5b28ff459a29ecf88c6
[browser][non-icu] `HybridGlobalization` change case (#84019)

* Enabled `HybridGlobalization` mode.

* Enabled non-icu change case.

* Tests.

* Revert not connected changes.

* Fix: Add the new file to the project.

* Fix: this PR is for Browser, so add it to condition.

* Fixed calls to js.

* Trying to fix CI.

* False is default, redundant lines.

* Trying to fix the CI.

* Remove redundant code.

* This PR is partial solution, this file will be added in a follow-up.

* Fix for EAT lib tests.

* We do not trim anything for Hybrid currently.

* Check if functions invoked only in specific modes.

* Change confusing name + move the common property to the main part of the class.

* Applied @mkhamoyan's suggestion.

* Fix previous commit: missing directive.

* Fix previous commit: missing directive.

* It's not IOS-connected.

* Move hybrid tests to correct dir + separate ios and wasm + update sln.

* Invariant and hybrid cannot be both true.

* Remove old version of hybrid tests proj.

* Applied @kg's review.
21 files changed:
docs/design/features/hybrid-globalization.md [new file with mode: 0644]
eng/testing/tests.browser.targets
src/libraries/System.Globalization/System.Globalization.sln
src/libraries/System.Globalization/tests/Hybrid/Hybrid.IOS.Tests.csproj [moved from src/libraries/System.Globalization/tests/Hybrid/Hybrid.Tests.csproj with 97% similarity]
src/libraries/System.Globalization/tests/Hybrid/Hybrid.WASM.Tests.csproj [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/TextInfo.Icu.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/TextInfo.Nls.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/TextInfo.WebAssembly.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Globalization/TextInfo.cs
src/mono/wasm/build/WasmApp.targets
src/mono/wasm/runtime/corebindings.c
src/mono/wasm/runtime/dotnet.d.ts
src/mono/wasm/runtime/es6/dotnet.es6.lib.js
src/mono/wasm/runtime/exports-linker.ts
src/mono/wasm/runtime/icu.ts
src/mono/wasm/runtime/net6-legacy/method-calls.ts
src/mono/wasm/runtime/types.ts
src/tasks/WasmAppBuilder/WasmAppBuilder.cs
src/tasks/WasmAppBuilder/WasmAppBuilderBaseTask.cs