Skip to content

Commit 9f0a53e

Browse files
committed
Move out of the class that is disabled from MT tests.
1 parent 8c8dbeb commit 9f0a53e

File tree

1 file changed

+7
-7
lines changed
  • src/libraries/System.Runtime.InteropServices.JavaScript/tests/System.Runtime.InteropServices.JavaScript.UnitTests/System/Runtime/InteropServices/JavaScript

1 file changed

+7
-7
lines changed

src/libraries/System.Runtime.InteropServices.JavaScript/tests/System.Runtime.InteropServices.JavaScript.UnitTests/System/Runtime/InteropServices/JavaScript/JSExportTest.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ public async Task JsExportInt32DiscardNoWait(int value)
4848
res = await invoke(value, echoName);
4949
Assert.Equal<T>(value, res);
5050
}
51+
52+
[Fact]
53+
public async void JSExportCompletedTaskReturnsResolvedPromise()
54+
{
55+
string result = await JavaScriptTestHelper.InvokeReturnCompletedTask();
56+
Assert.Equal("resolved", result);
57+
}
5158
}
5259

5360
[ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWasmThreadingSupported))]
@@ -436,12 +443,5 @@ public async Task InternalsVisibleToDoesntBreak()
436443
{
437444
Assert.Equal(JavaScriptLibrary.JavaScriptInterop.ValidationMethod(5, 6), await JavaScriptTestHelper.callJavaScriptLibrary(5, 6));
438445
}
439-
440-
[Fact]
441-
public async void JSExportCompletedTaskReturnsResolvedPromise()
442-
{
443-
string result = await JavaScriptTestHelper.InvokeReturnCompletedTask();
444-
Assert.Equal("resolved", result);
445-
}
446446
}
447447
}

0 commit comments

Comments
 (0)