Skip to content

Commit

Permalink
[wasm] Use cross origin policy headers (#62016)
Browse files Browse the repository at this point in the history
* Remove active issue.
* Use --web-server-use-cop.
  • Loading branch information
maraf committed Nov 29, 2021
1 parent efc8adb commit 95a9c72
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFrameworks>$(NetCoreAppCurrent)-Browser</TargetFrameworks>
<TestRuntime>true</TestRuntime>
<WasmXHarnessArgs>$(WasmXHarnessArgs) --engine-arg=--expose-gc</WasmXHarnessArgs>
<WasmXHarnessArgs>$(WasmXHarnessArgs) --engine-arg=--expose-gc --web-server-use-cop</WasmXHarnessArgs>
</PropertyGroup>
<ItemGroup>
<Compile Include="System\Runtime\InteropServices\JavaScript\JavaScriptTests.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ namespace System.Runtime.InteropServices.JavaScript.Tests
public static class JavaScriptTests
{
[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/61945", TestPlatforms.Browser)]
public static void CoreTypes()
{
var arr = new Uint8ClampedArray(50);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

namespace System.Runtime.InteropServices.JavaScript.Tests
{
[ActiveIssue("https://github.com/dotnet/runtime/issues/61945", TestPlatforms.Browser)]
public static class SharedArrayBufferTests
{
private static Function _objectPrototype;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ public static void Float64ArrayFrom(Function objectPrototype)
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/61945", TestPlatforms.Browser)]
[MemberData(nameof(Object_Prototype))]
public static void Uint8ClampedArrayFromSharedArrayBuffer(Function objectPrototype)
{
Expand All @@ -118,7 +117,6 @@ public static void Uint8ClampedArrayFromSharedArrayBuffer(Function objectPrototy
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/61945", TestPlatforms.Browser)]
[MemberData(nameof(Object_Prototype))]
public static void Uint8ArrayFromSharedArrayBuffer(Function objectPrototype)
{
Expand All @@ -128,7 +126,6 @@ public static void Uint8ArrayFromSharedArrayBuffer(Function objectPrototype)
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/61945", TestPlatforms.Browser)]
[MemberData(nameof(Object_Prototype))]
public static void Uint16ArrayFromSharedArrayBuffer(Function objectPrototype)
{
Expand All @@ -138,7 +135,6 @@ public static void Uint16ArrayFromSharedArrayBuffer(Function objectPrototype)
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/61945", TestPlatforms.Browser)]
[MemberData(nameof(Object_Prototype))]
public static void Uint32ArrayFromSharedArrayBuffer(Function objectPrototype)
{
Expand All @@ -148,7 +144,6 @@ public static void Uint32ArrayFromSharedArrayBuffer(Function objectPrototype)
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/61945", TestPlatforms.Browser)]
[MemberData(nameof(Object_Prototype))]
public static void Int8ArrayFromSharedArrayBuffer(Function objectPrototype)
{
Expand All @@ -158,7 +153,6 @@ public static void Int8ArrayFromSharedArrayBuffer(Function objectPrototype)
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/61945", TestPlatforms.Browser)]
[MemberData(nameof(Object_Prototype))]
public static void Int16ArrayFromSharedArrayBuffer(Function objectPrototype)
{
Expand All @@ -168,7 +162,6 @@ public static void Int16ArrayFromSharedArrayBuffer(Function objectPrototype)
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/61945", TestPlatforms.Browser)]
[MemberData(nameof(Object_Prototype))]
public static void Int32ArrayFromSharedArrayBuffer(Function objectPrototype)
{
Expand All @@ -178,7 +171,6 @@ public static void Int32ArrayFromSharedArrayBuffer(Function objectPrototype)
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/61945", TestPlatforms.Browser)]
[MemberData(nameof(Object_Prototype))]
public static void Float32ArrayFromSharedArrayBuffer(Function objectPrototype)
{
Expand All @@ -188,7 +180,6 @@ public static void Float32ArrayFromSharedArrayBuffer(Function objectPrototype)
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/61945", TestPlatforms.Browser)]
[MemberData(nameof(Object_Prototype))]
public static void Float64ArrayFromSharedArrayBuffer(Function objectPrototype)
{
Expand Down

0 comments on commit 95a9c72

Please sign in to comment.