From 6e8baa5ecd930d507dbbcc90943eaa103df1f321 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Wed, 6 Apr 2016 16:33:09 +0100 Subject: [PATCH] Fix Unity Test Tools warnings --- .../TestRunner/Editor/PlatformRunner/PlatformRunner.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlatformRunner.cs b/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlatformRunner.cs index 2f649b08..3df90de3 100644 --- a/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlatformRunner.cs +++ b/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlatformRunner.cs @@ -109,8 +109,10 @@ namespace UnityTest.IntegrationTests { case BuildTargetGroup.Android: return BuildTarget.Android; + #if !UNITY_5_4_OR_NEWER case BuildTargetGroup.WebPlayer: return BuildTarget.WebPlayer; + #endif default: { switch (Application.platform) @@ -122,7 +124,11 @@ namespace UnityTest.IntegrationTests case RuntimePlatform.LinuxPlayer: return BuildTarget.StandaloneLinux; } + #if UNITY_5_4_OR_NEWER + return BuildTarget.WebGL; + #else return BuildTarget.WebPlayer; + #endif } } }