Skip to content

Commit 7747a0a

Browse files
committed
Add conditional test case for WebGLGamepad in UI tests
1 parent feae2e7 commit 7747a0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/Tests/InputSystem/Plugins/UITests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2873,7 +2873,9 @@ public IEnumerator UI_CanOperateMultiplayerUILocallyUsingGamepads()
28732873
[Category("UI")]
28742874

28752875
[TestCase("Gamepad", ExpectedResult = 1)]
2876+
#if UNITY_WEBGL || UNITY_EDITOR
28762877
[TestCase("WebGLGamepad", ExpectedResult = 1)]
2878+
#endif
28772879
public IEnumerator UI_CanDriveUIFromGamepad(string deviceLayout)
28782880
{
28792881
var gamepad = (Gamepad)InputSystem.AddDevice(deviceLayout);

0 commit comments

Comments
 (0)