From faca23163c8aa7416c1df92e0f4534dfbc6e47dd Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 26 Oct 2016 17:26:26 +0900 Subject: [PATCH 1/2] Fix incorrect framework specification for VisualTests. --- osu.Desktop.VisualTests/Program.cs | 2 +- .../Tests/TestCaseChatDisplay.cs | 14 +++++++------- .../Tests/TestCaseGamefield.cs | 8 ++++---- .../Tests/TestCaseHitObjects.cs | 11 +++-------- .../Tests/TestCaseKeyCounter.cs | 5 ++--- .../Tests/TestCaseMenuButtonSystem.cs | 2 +- osu.Desktop.VisualTests/Tests/TestCasePlayer.cs | 8 ++++---- .../Tests/TestCaseScoreCounter.cs | 15 ++++++--------- .../Tests/TestCaseTextAwesome.cs | 12 ++++-------- osu.Desktop.VisualTests/VisualTestGame.cs | 4 ++-- .../osu.Desktop.VisualTests.csproj | 4 ++-- 11 files changed, 36 insertions(+), 49 deletions(-) diff --git a/osu.Desktop.VisualTests/Program.cs b/osu.Desktop.VisualTests/Program.cs index 4dcfaff987..7d9e3a76b6 100644 --- a/osu.Desktop.VisualTests/Program.cs +++ b/osu.Desktop.VisualTests/Program.cs @@ -5,7 +5,7 @@ using System; using osu.Framework.Desktop; using osu.Framework.Platform; -namespace osu.Framework.VisualTests +namespace osu.Desktop.VisualTests { public static class Program { diff --git a/osu.Desktop.VisualTests/Tests/TestCaseChatDisplay.cs b/osu.Desktop.VisualTests/Tests/TestCaseChatDisplay.cs index 32135a06f2..efc9b5dfa3 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseChatDisplay.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseChatDisplay.cs @@ -1,23 +1,23 @@ //Copyright (c) 2007-2016 ppy Pty Ltd . //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE -using OpenTK; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using osu.Framework; using osu.Framework.GameModes.Testing; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; +using osu.Framework.Graphics.Sprites; using osu.Framework.Threading; using osu.Game; using osu.Game.Online.API; using osu.Game.Online.API.Requests; using osu.Game.Online.Chat; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using osu.Framework.Graphics.Sprites; using osu.Game.Online.Chat.Display; -using osu.Framework; +using OpenTK; -namespace osu.Desktop.Tests +namespace osu.Desktop.VisualTests.Tests { class TestCaseChatDisplay : TestCase { diff --git a/osu.Desktop.VisualTests/Tests/TestCaseGamefield.cs b/osu.Desktop.VisualTests/Tests/TestCaseGamefield.cs index 316a099e38..d5b9a9fd03 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseGamefield.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseGamefield.cs @@ -1,10 +1,11 @@ //Copyright (c) 2007-2016 ppy Pty Ltd . //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE -using OpenTK; +using System.Collections.Generic; using osu.Framework.GameModes.Testing; using osu.Framework.Graphics; using osu.Framework.MathUtils; +using osu.Framework.Timing; using osu.Game.Beatmaps; using osu.Game.Beatmaps.Objects; using osu.Game.Beatmaps.Objects.Osu; @@ -12,10 +13,9 @@ using osu.Game.GameModes.Play.Catch; using osu.Game.GameModes.Play.Mania; using osu.Game.GameModes.Play.Osu; using osu.Game.GameModes.Play.Taiko; -using System.Collections.Generic; -using osu.Framework.Timing; +using OpenTK; -namespace osu.Desktop.Tests +namespace osu.Desktop.VisualTests.Tests { class TestCaseGamefield : TestCase { diff --git a/osu.Desktop.VisualTests/Tests/TestCaseHitObjects.cs b/osu.Desktop.VisualTests/Tests/TestCaseHitObjects.cs index dc881f8c21..fecaad00e4 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseHitObjects.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseHitObjects.cs @@ -1,20 +1,15 @@ //Copyright (c) 2007-2016 ppy Pty Ltd . //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using osu.Framework; using osu.Framework.GameModes.Testing; -using osu.Framework.Timing; using osu.Framework.Graphics; +using osu.Framework.Timing; +using osu.Game.Beatmaps.Objects; using osu.Game.Beatmaps.Objects.Osu; using osu.Game.Beatmaps.Objects.Osu.Drawable; -using osu.Game.Beatmaps.Objects; -namespace osu.Desktop.Tests +namespace osu.Desktop.VisualTests.Tests { class TestCaseHitObjects : TestCase { diff --git a/osu.Desktop.VisualTests/Tests/TestCaseKeyCounter.cs b/osu.Desktop.VisualTests/Tests/TestCaseKeyCounter.cs index 7be7d24860..fdb07df6ad 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseKeyCounter.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseKeyCounter.cs @@ -1,13 +1,12 @@ //Copyright (c) 2007-2016 ppy Pty Ltd . //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE -using System; -using OpenTK.Input; using osu.Framework.GameModes.Testing; using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; +using OpenTK.Input; -namespace osu.Desktop.Tests +namespace osu.Desktop.VisualTests.Tests { class TestCaseKeyCounter : TestCase { diff --git a/osu.Desktop.VisualTests/Tests/TestCaseMenuButtonSystem.cs b/osu.Desktop.VisualTests/Tests/TestCaseMenuButtonSystem.cs index ef8e5e5b12..eaa0a3eea4 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseMenuButtonSystem.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseMenuButtonSystem.cs @@ -4,7 +4,7 @@ using osu.Framework.GameModes.Testing; using osu.Game.GameModes.Menu; -namespace osu.Desktop.Tests +namespace osu.Desktop.VisualTests.Tests { class TestCaseMenuButtonSystem : TestCase { diff --git a/osu.Desktop.VisualTests/Tests/TestCasePlayer.cs b/osu.Desktop.VisualTests/Tests/TestCasePlayer.cs index 52474d0995..69b56ef17d 100644 --- a/osu.Desktop.VisualTests/Tests/TestCasePlayer.cs +++ b/osu.Desktop.VisualTests/Tests/TestCasePlayer.cs @@ -1,17 +1,17 @@ //Copyright (c) 2007-2016 ppy Pty Ltd . //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE -using OpenTK; +using System.Collections.Generic; using osu.Framework.GameModes.Testing; using osu.Framework.MathUtils; +using osu.Framework.Timing; using osu.Game.Beatmaps; using osu.Game.Beatmaps.Objects; using osu.Game.Beatmaps.Objects.Osu; -using System.Collections.Generic; -using osu.Framework.Timing; using osu.Game.GameModes.Play; +using OpenTK; -namespace osu.Desktop.Tests +namespace osu.Desktop.VisualTests.Tests { class TestCasePlayer : TestCase { diff --git a/osu.Desktop.VisualTests/Tests/TestCaseScoreCounter.cs b/osu.Desktop.VisualTests/Tests/TestCaseScoreCounter.cs index 0fac933dc0..eb5f51d883 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseScoreCounter.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseScoreCounter.cs @@ -2,23 +2,20 @@ //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; -using OpenTK.Input; using osu.Framework.GameModes.Testing; using osu.Framework.Graphics; -using osu.Game.Graphics.UserInterface; -using osu.Framework.Graphics.UserInterface; -using osu.Framework.Graphics.Transformations; -using OpenTK; -using OpenTK.Graphics; -using osu.Framework.MathUtils; using osu.Framework.Graphics.Sprites; +using osu.Framework.MathUtils; +using osu.Game.GameModes.Play; using osu.Game.GameModes.Play.Catch; using osu.Game.GameModes.Play.Mania; using osu.Game.GameModes.Play.Osu; using osu.Game.GameModes.Play.Taiko; -using osu.Game.GameModes.Play; +using osu.Game.Graphics.UserInterface; +using OpenTK; +using OpenTK.Graphics; -namespace osu.Desktop.Tests +namespace osu.Desktop.VisualTests.Tests { class TestCaseScoreCounter : TestCase { diff --git a/osu.Desktop.VisualTests/Tests/TestCaseTextAwesome.cs b/osu.Desktop.VisualTests/Tests/TestCaseTextAwesome.cs index d7aba30c3e..e783ec775a 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseTextAwesome.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseTextAwesome.cs @@ -1,20 +1,16 @@ //Copyright (c) 2007-2016 ppy Pty Ltd . //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE -using OpenTK; -using OpenTK.Graphics; +using System; using osu.Framework.GameModes.Testing; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.MathUtils; using osu.Game.Graphics; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using OpenTK; +using OpenTK.Graphics; -namespace osu.Desktop.Tests +namespace osu.Desktop.VisualTests.Tests { class TestCaseTextAwesome : TestCase { diff --git a/osu.Desktop.VisualTests/VisualTestGame.cs b/osu.Desktop.VisualTests/VisualTestGame.cs index 323923591d..d056a678a4 100644 --- a/osu.Desktop.VisualTests/VisualTestGame.cs +++ b/osu.Desktop.VisualTests/VisualTestGame.cs @@ -1,11 +1,11 @@ // Copyright (c) 2007-2016 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE +using osu.Framework; using osu.Framework.GameModes.Testing; -using osu.Framework.Graphics.Cursor; using osu.Game; -namespace osu.Framework.VisualTests +namespace osu.Desktop.VisualTests { class VisualTestGame : OsuGameBase { diff --git a/osu.Desktop.VisualTests/osu.Desktop.VisualTests.csproj b/osu.Desktop.VisualTests/osu.Desktop.VisualTests.csproj index 55de7cf39b..59e43181ad 100644 --- a/osu.Desktop.VisualTests/osu.Desktop.VisualTests.csproj +++ b/osu.Desktop.VisualTests/osu.Desktop.VisualTests.csproj @@ -6,7 +6,7 @@ AnyCPU WinExe Properties - osu.Desktop + osu.Desktop.VisualTests osu! 3CF060CD28877D0E3112948951A64B2A7CEEC909 codesigning.pfx @@ -18,7 +18,7 @@ 3.5 - osu.Framework.VisualTests.Program + osu.Desktop.VisualTests.Program OnOutputUpdated false LocalIntranet From 3f23900347f96b160c84c59f630ab5b3841eb7c1 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 26 Oct 2016 17:31:32 +0900 Subject: [PATCH 2/2] Framework & OpenTK updates. --- osu-framework | 2 +- osu.Game.Tests/osu.Game.Tests.csproj | 2 +- osu.Game.Tests/packages.config | 2 +- osu.Game/osu.Game.csproj | 2 +- osu.Game/packages.config | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/osu-framework b/osu-framework index a5f1aa9277..5eb743100d 160000 --- a/osu-framework +++ b/osu-framework @@ -1 +1 @@ -Subproject commit a5f1aa927799360163dcda3387653339c4bb27fa +Subproject commit 5eb743100d61dc19b34b09ac3530e2242c0adbc2 diff --git a/osu.Game.Tests/osu.Game.Tests.csproj b/osu.Game.Tests/osu.Game.Tests.csproj index 264eabd85c..42c4e3c9ce 100644 --- a/osu.Game.Tests/osu.Game.Tests.csproj +++ b/osu.Game.Tests/osu.Game.Tests.csproj @@ -32,7 +32,7 @@ True - ..\packages\ppy.OpenTK.2.0.50727.1337\lib\net20\OpenTK.dll + ..\packages\ppy.OpenTK.2.0.50727.1339\lib\net45\OpenTK.dll True diff --git a/osu.Game.Tests/packages.config b/osu.Game.Tests/packages.config index 00f92c3cb8..94d8889f23 100644 --- a/osu.Game.Tests/packages.config +++ b/osu.Game.Tests/packages.config @@ -1,5 +1,5 @@  - + \ No newline at end of file diff --git a/osu.Game/osu.Game.csproj b/osu.Game/osu.Game.csproj index 545d777098..3062c86100 100644 --- a/osu.Game/osu.Game.csproj +++ b/osu.Game/osu.Game.csproj @@ -38,7 +38,7 @@ True - ..\packages\ppy.OpenTK.2.0.50727.1337\lib\net20\OpenTK.dll + ..\packages\ppy.OpenTK.2.0.50727.1339\lib\net45\OpenTK.dll True diff --git a/osu.Game/packages.config b/osu.Game/packages.config index 08d0e984a2..30ac6bb021 100644 --- a/osu.Game/packages.config +++ b/osu.Game/packages.config @@ -6,7 +6,7 @@ Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/maste - +