diff --git a/src/UniTask/Assets/Tests/AsyncTest.cs b/src/UniTask/Assets/Tests/AsyncTest.cs index 73a0564..c329dbf 100644 --- a/src/UniTask/Assets/Tests/AsyncTest.cs +++ b/src/UniTask/Assets/Tests/AsyncTest.cs @@ -55,6 +55,8 @@ namespace Cysharp.Threading.TasksTests } } +#if !UNITY_WEBGL + [UnityTest] public IEnumerator DelayAnd() => UniTask.ToCoroutine(async () => { @@ -76,6 +78,8 @@ namespace Cysharp.Threading.TasksTests } }); +#endif + [UnityTest] public IEnumerator DelayIgnore() => UniTask.ToCoroutine(async () => { @@ -183,6 +187,8 @@ namespace Cysharp.Threading.TasksTests diff.Should().Be(11); }); +#if !UNITY_WEBGL + [UnityTest] public IEnumerator SwitchTo() => UniTask.ToCoroutine(async () => { @@ -215,6 +221,8 @@ namespace Cysharp.Threading.TasksTests currentThreadId.Should().Be(switchedThreadId2); }); +#endif + //[UnityTest] //public IEnumerator ObservableConversion() => UniTask.ToCoroutine(async () => //{ diff --git a/src/UniTask/Assets/Tests/CoroutineToUniTaskTest.cs b/src/UniTask/Assets/Tests/CoroutineToUniTaskTest.cs index a27f30b..0ac19bb 100644 --- a/src/UniTask/Assets/Tests/CoroutineToUniTaskTest.cs +++ b/src/UniTask/Assets/Tests/CoroutineToUniTaskTest.cs @@ -135,6 +135,8 @@ namespace Cysharp.Threading.TasksTests l.Add(30); } +#if !UNITY_WEBGL + [UnityTest] public IEnumerator WaitForSecondsTest() => UniTask.ToCoroutine(async () => { @@ -162,6 +164,8 @@ namespace Cysharp.Threading.TasksTests yield return new WaitForSeconds(3.0f); } +#endif + IEnumerator Worker(List<(int, int)> l) { l.Add((0, Time.frameCount)); diff --git a/src/UniTask/Assets/Tests/DelayTest.cs b/src/UniTask/Assets/Tests/DelayTest.cs index 3040341..22cde4a 100644 --- a/src/UniTask/Assets/Tests/DelayTest.cs +++ b/src/UniTask/Assets/Tests/DelayTest.cs @@ -175,6 +175,7 @@ namespace Cysharp.Threading.TasksTests } }); +#if !UNITY_WEBGL [UnityTest] public IEnumerator DelayInThreadPool() => UniTask.ToCoroutine(async () => @@ -185,6 +186,8 @@ namespace Cysharp.Threading.TasksTests }); }); +#endif + [UnityTest] public IEnumerator DelayRealtime() => UniTask.ToCoroutine(async () => { diff --git a/src/UniTask/Assets/Tests/RunTest.cs b/src/UniTask/Assets/Tests/RunTest.cs index b9f6f7f..3ee0b0d 100644 --- a/src/UniTask/Assets/Tests/RunTest.cs +++ b/src/UniTask/Assets/Tests/RunTest.cs @@ -37,6 +37,7 @@ namespace Cysharp.Threading.TasksTests { #if CSHARP_7_OR_LATER || (UNITY_2018_3_OR_NEWER && (NET_STANDARD_2_0 || NET_4_6)) #if !UNITY_WSA +#if !UNITY_WEBGL //[UnityTest] //public IEnumerator RunThread() => UniTask.ToCoroutine(async () => @@ -88,7 +89,7 @@ namespace Cysharp.Threading.TasksTests } }); - +#endif #endif #endif }