Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge master into netstandard #1214

Merged
merged 132 commits into from Dec 1, 2017
Merged
Show file tree
Hide file tree
Changes from 131 commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
6346934
BackgroundStackTraceCollector
peppy Nov 13, 2017
32bfb2e
Clear stack trace on new frame
peppy Nov 16, 2017
cfe6e85
Log elapsed time to log
peppy Nov 16, 2017
920e609
Fix nullref under mono runtime
peppy Nov 16, 2017
ddacaa6
Fix interleaving performance logs
peppy Nov 16, 2017
72cec51
Use Microsoft.Diagnostics.Runtime to source stack traces
peppy Nov 21, 2017
f07b5b6
Don't trim newlines from logger lines
peppy Nov 21, 2017
814ae9c
Improve log output and simplify spike duration setting
peppy Nov 21, 2017
33372a3
Fix CI detections
peppy Nov 21, 2017
9d20390
Fix incorrect threshold time being reported
peppy Nov 21, 2017
799b2ca
Added new LoadWrapper class that incorporates all functionality of th…
FreezyLemon Nov 21, 2017
7459cdd
Changed inheritance reference to the new LoadWrapper class (exact sam…
FreezyLemon Nov 21, 2017
f027f8e
Deleted both the deprecated AsyncLoadWrapper and DelayedLoadWrapper c…
FreezyLemon Nov 21, 2017
1100aff
Updated .csproj file to remove both old AsyncLoadWrapper.cs and Delay…
FreezyLemon Nov 21, 2017
40441a2
Fixed a bug where content wouldn't actually load when delayed.
FreezyLemon Nov 21, 2017
e12c42b
Changed the test cases to include the new LoadWrapper class instead o…
FreezyLemon Nov 21, 2017
8641a39
Added license header to the new class (file).
FreezyLemon Nov 21, 2017
4e172b2
Renamed LoadWrapper to DelayedLoadWrapper again.
FreezyLemon Nov 22, 2017
7ff56c1
Delay is now specified in the constructor and is not a public field a…
FreezyLemon Nov 22, 2017
09ea688
Implemented DelayedLoadWrapper changes in the framework tests
FreezyLemon Nov 22, 2017
65b423b
Made field timeBeforeLoad a readonly, and simplified the ShouldLoadCo…
FreezyLemon Nov 22, 2017
00352a7
Merge branch 'master' of https://github.com/ppy/osu-framework into lo…
FreezyLemon Nov 23, 2017
539c146
Added new test case for the "rectangular slider follow circle" bug
FreezyLemon Nov 23, 2017
f56bfab
Revert "Added new test case for the "rectangular slider follow circle…
FreezyLemon Nov 23, 2017
e44702f
Added new TestCase for the weird rectangular slider follow circle issue.
FreezyLemon Nov 23, 2017
b81984f
Actually added the file to the .csproj aswell so it gets included in …
FreezyLemon Nov 23, 2017
080304d
Removed the ThrottledFrameClock since it isn't actually working in the
FreezyLemon Nov 23, 2017
aed12c3
Fixed a small error, made the whole thing slower (no longer epilepsy
FreezyLemon Nov 23, 2017
63b2c7b
Made it somewhat less straining to look at (changed colors to darker
FreezyLemon Nov 23, 2017
90f134a
Move TestCase descriptions to attributes
peppy Nov 23, 2017
e48dd99
Added licence header
FreezyLemon Nov 23, 2017
81e787a
Fixed all the appveyor warnings.
FreezyLemon Nov 23, 2017
eea84aa
Merge pull request #1186 from peppy/attribute-descriptions
Tom94 Nov 23, 2017
7616774
Merge branch 'master' of https://github.com/ppy/osu-framework into sq…
FreezyLemon Nov 23, 2017
b0d6e40
Adapted to the new TestCase Description definition.
FreezyLemon Nov 23, 2017
1435220
Merge remote-tracking branch 'origin/master'
FreezyLemon Nov 23, 2017
ed6e43b
Merge branch 'load-optimization' of https://github.com/freezylemon/os…
FreezyLemon Nov 23, 2017
1ed7acc
Changed default delay in DelayedLoadWrapper to 500ms and removed some…
FreezyLemon Nov 23, 2017
d679217
fixed appveyor warnings
FreezyLemon Nov 23, 2017
33552d6
Removed load() and loadContentAsync(), replaced the last loadContentA…
FreezyLemon Nov 23, 2017
aed6d29
fixed appveyor warning (removed unused using directive)
FreezyLemon Nov 23, 2017
8a777ee
We can be a CompositeDrawable instead
peppy Nov 23, 2017
549126b
Merge pull request #1181 from FreezyLemon/load-optimization
peppy Nov 23, 2017
0eea8a7
Fully qualified System.ComponentModel.Description so it wouldn't use the
FreezyLemon Nov 23, 2017
19500bd
Merge branch 'master' of https://github.com/ppy/osu-framework into te…
FreezyLemon Nov 23, 2017
d87dab2
Merge pull request #1190 from FreezyLemon/testcase-description-fix
Tom94 Nov 23, 2017
7779515
Fix calling Reset on a TrackVirtual starting the track unexpectedly
peppy Nov 23, 2017
fe49ccb
Merge pull request #1191 from peppy/fix-track-virtual
smoogipoo Nov 23, 2017
3de74a6
Merge branch 'master' into stack-logging
peppy Nov 23, 2017
72177ae
Added new way of validating the floats inside DrawInfo.ApplyTransform…
FreezyLemon Nov 24, 2017
48213f9
Remove suspicious variables assignment
UselessToucan Nov 24, 2017
73a5f6b
appveyor
FreezyLemon Nov 24, 2017
8f8a117
Moved component checks before matrix transformations from DrawInfo to
FreezyLemon Nov 25, 2017
20a0cc1
appveyor
FreezyLemon Nov 25, 2017
f9f02da
Fixed logic mistake
FreezyLemon Nov 25, 2017
4696d23
Don't output to on-screen console
peppy Nov 25, 2017
665c9a3
Added check to RelativeAnchorPosition as it is indirectly a part of t…
FreezyLemon Nov 25, 2017
5a63145
ClickableContainers are disabled until they have an action assigned
peppy Nov 25, 2017
40d2600
Reduce default sample concurrency to two
peppy Nov 26, 2017
82a41d7
Merge pull request #1197 from peppy/clickable-containers-smart-enabled
smoogipoo Nov 27, 2017
07ffc25
Merge remote-tracking branch 'origin/master' into square-slider-follo…
smoogipoo Nov 27, 2017
f1091ce
Single out replication of single-frame cornerradius lag
smoogipoo Nov 27, 2017
bdab396
Fix one frame lag of CircularContainer
smoogipoo Nov 27, 2017
232fa21
No longer dependent on FPS
smoogipoo Nov 27, 2017
4a38e2a
Remove redundant string interpolation
smoogipoo Nov 27, 2017
6986f58
Reword docs slightly
peppy Nov 27, 2017
b4d1b0a
Merge pull request #1187 from FreezyLemon/square-slider-follow-circle…
peppy Nov 27, 2017
343e46f
Make variable readonly
peppy Nov 27, 2017
c023d96
Merge remote-tracking branch 'upstream/master' into sample-concurrency
peppy Nov 27, 2017
f33b34e
Merge pull request #1198 from peppy/sample-concurrency
smoogipoo Nov 27, 2017
36ae109
Merge branch 'master' into stack-logging
peppy Nov 27, 2017
d92cec7
Merge pull request #1155 from peppy/stack-logging
smoogipoo Nov 27, 2017
fd71dc0
Merge branch 'master' into apply-transform-performance
peppy Nov 27, 2017
b300978
Merge pull request #1193 from FreezyLemon/apply-transform-performance
peppy Nov 27, 2017
605b6e7
Don't add log header until the first time a log is written to
peppy Nov 29, 2017
29567f6
Make AutoSizeAxes virtual to allow implementations to track changes
peppy Nov 29, 2017
bb17ad9
Merge pull request #1206 from peppy/virtual-auto-size
smoogipoo Nov 29, 2017
5924c16
Merge branch 'master' into lazy-log-headers
peppy Nov 29, 2017
307e08c
Load new TestCase asynchronously when switching interactively
peppy Nov 29, 2017
de27cc6
GridSizeMode.Auto -> GridSizeMode.Distributed
smoogipoo Nov 29, 2017
a02321b
Implement auto-sized columns/rows for GridContainer
smoogipoo Nov 29, 2017
c8f0504
Fix possible negative sizing of distributed columns
smoogipoo Nov 29, 2017
21545f5
Merge pull request #1208 from peppy/testbrowser-async-switch
smoogipoo Nov 29, 2017
06266e2
Merge branch 'master' into lazy-log-headers
smoogipoo Nov 29, 2017
c04464c
Merge branch 'master' into gridcontainer-improvements
peppy Nov 29, 2017
0dd09c2
Merge pull request #1207 from peppy/lazy-log-headers
smoogipoo Nov 29, 2017
7305e8a
Merge branch 'master' into gridcontainer-improvements
peppy Nov 29, 2017
d316b3c
Rename Auto -> AutoSize
smoogipoo Nov 29, 2017
03c01ee
Fix straggling usages of Auto
smoogipoo Nov 29, 2017
5d47c0b
Fix case with auto-sizing child.
smoogipoo Nov 29, 2017
963e3f0
Merge pull request #1209 from smoogipoo/gridcontainer-improvements
peppy Nov 29, 2017
5428b62
Give BasicSliderBar some default non-black colours
peppy Nov 27, 2017
498b060
Add rate adjust slider to test browser
peppy Nov 27, 2017
ad37921
Use grid layout for TestBrowser toolbar
peppy Nov 27, 2017
250c144
Move toolbar into its own class
peppy Nov 29, 2017
9285628
Use new grid autosize layout mode
peppy Nov 29, 2017
5d1933a
Merge pull request #1202 from peppy/test-browser-rate-adjust
smoogipoo Nov 29, 2017
2d297b3
Add a new test button to wait until a delegate returns true
peppy Nov 29, 2017
4fc866e
Merge pull request #1210 from peppy/until-button
smoogipoo Nov 29, 2017
d22c1c0
Move isFinite methods to MathUtils.Validation
smoogipoo Nov 29, 2017
bf2a295
Add additional data validation checks
smoogipoo Nov 29, 2017
366b762
Remove data validation from computeDrawInfo
smoogipoo Nov 29, 2017
0f6cdbf
Add periods to exception messages
smoogipoo Nov 29, 2017
9230b12
Add to csproj
smoogipoo Nov 29, 2017
4c9f150
Merge remote-tracking branch 'origin/master' into netstandard
smoogipoo Nov 29, 2017
d830e87
Make everything compile again
smoogipoo Nov 29, 2017
92fd141
Move LangVer.props inside osu.Framework.props
smoogipoo Nov 29, 2017
506a82b
Add LangVer.props and osu.Framework.props for common csproj properties
smoogipoo Nov 29, 2017
bb62acb
Migrate to C#7
smoogipoo Nov 29, 2017
ac36b2b
Add xml namespace
smoogipoo Nov 29, 2017
3cbe94d
I think this should fix langver issue
smoogipoo Nov 29, 2017
89ea203
Fix LangVer issue
smoogipoo Nov 29, 2017
31cdc40
Update DotSettings
smoogipoo Nov 29, 2017
f205290
Move Microsoft.Net.Compilers props to LangVer
smoogipoo Nov 29, 2017
4bcd847
One more suggestion
smoogipoo Nov 29, 2017
2c4b890
Add RectangleF.LTRB
smoogipoo Nov 30, 2017
71503c5
Merge pull request #1217 from smoogipoo/add-rectangle-ltrb
Tom94 Nov 30, 2017
765937f
Make JoinNullCheckWithAssignment a hint
smoogipoo Dec 1, 2017
791a792
Merge branch 'master' into additional-isfinite-checks
peppy Dec 1, 2017
3085400
Merge LangVer and osu.Framework.props
smoogipoo Dec 1, 2017
02b06f6
Merge branch 'master' into csharp-7
smoogipoo Dec 1, 2017
afc0bcf
Merge pull request #1213 from smoogipoo/additional-isfinite-checks
peppy Dec 1, 2017
b2a8ab2
Fix regression in consecutive double-click behaviour
peppy Dec 1, 2017
a787520
Merge branch 'master' into RemoveSuspiciousVariablesAssignment
peppy Dec 1, 2017
e3ced9d
Fix unnecessary whitespace
peppy Dec 1, 2017
d7734a6
Merge pull request #1194 from UselessToucan/RemoveSuspiciousVariables…
peppy Dec 1, 2017
9577435
Merge branch 'master' into csharp-7
peppy Dec 1, 2017
87d68cd
Merge pull request #1215 from smoogipoo/csharp-7
peppy Dec 1, 2017
6313809
Merge remote-tracking branch 'origin/master' into netstandard
smoogipoo Dec 1, 2017
ead0f4c
Remove LangVer.props
smoogipoo Dec 1, 2017
a4ab62d
Fix up props import casing
smoogipoo Dec 1, 2017
13ba85a
This stuff isn't needed anymore
smoogipoo Dec 1, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 0 additions & 6 deletions LangVer.props

This file was deleted.

3 changes: 1 addition & 2 deletions SampleGame/SampleGame.csproj
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\LangVer.props" />
<Import Project="..\OpenTK.props" />
<Import Project="..\System.Drawing.props" />
<Import Project="..\osu.framework.props" />
<Import Project="..\osu.Framework.props" />

<PropertyGroup Label="Project">
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
Expand Down
5 changes: 5 additions & 0 deletions osu-framework.sln.DotSettings
Expand Up @@ -31,6 +31,7 @@
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertToAutoProperty/@EntryIndexedValue">HINT</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertToConstant_002ELocal/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertToLambdaExpression/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertToLocalFunction/@EntryIndexedValue">HINT</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertToStaticClass/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=DoubleNegationOperator/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=EmptyGeneralCatchClause/@EntryIndexedValue">DO_NOT_SHOW</s:String>
Expand All @@ -41,13 +42,16 @@
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ForCanBeConvertedToForeach/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=InconsistentNaming/@EntryIndexedValue">ERROR</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=InheritdocConsiderUsage/@EntryIndexedValue">HINT</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=InlineOutVariableDeclaration/@EntryIndexedValue">HINT</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=InvertIf/@EntryIndexedValue">HINT</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=InvokeAsExtensionMethod/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=JoinDeclarationAndInitializer/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=JoinNullCheckWithUsage/@EntryIndexedValue">HINT</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=MemberCanBeMadeStatic_002ELocal/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=MemberCanBePrivate_002EGlobal/@EntryIndexedValue">HINT</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=MemberCanBePrivate_002ELocal/@EntryIndexedValue">HINT</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=MemberCanBeProtected_002EGlobal/@EntryIndexedValue">HINT</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=MergeCastWithTypeCheck/@EntryIndexedValue">HINT</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=MergeConditionalExpression/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=MergeSequentialChecks/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=MethodSupportsCancellation/@EntryIndexedValue">WARNING</s:String>
Expand Down Expand Up @@ -146,6 +150,7 @@
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=UseNameofExpression/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=UseNullPropagation/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=UseObjectOrCollectionInitializer/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=UsePatternMatching/@EntryIndexedValue">HINT</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=UseStringInterpolation/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=VariableCanBeMadeConst/@EntryIndexedValue">WARNING</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=VirtualMemberCallInConstructor/@EntryIndexedValue">HINT</s:String>
Expand Down
3 changes: 1 addition & 2 deletions osu.Framework.Tests/Visual/TestCaseAnimation.cs
Expand Up @@ -15,10 +15,9 @@
namespace osu.Framework.Tests.Visual
{
[TestFixture]
[System.ComponentModel.Description("frame-based animations")]
internal class TestCaseAnimation : TestCase
{
public override string Description => "Various frame-based animations";

public TestCaseAnimation()
{
DrawableAnimation drawableAnimation;
Expand Down
2 changes: 0 additions & 2 deletions osu.Framework.Tests/Visual/TestCaseBufferedContainer.cs
Expand Up @@ -11,8 +11,6 @@ namespace osu.Framework.Tests.Visual
[TestFixture]
internal class TestCaseBufferedContainer : TestCaseMasking
{
public override string Description => @"Buffered containers containing almost all visual effects.";

private readonly BufferedContainer buffer;

public TestCaseBufferedContainer()
Expand Down
2 changes: 0 additions & 2 deletions osu.Framework.Tests/Visual/TestCaseCheckboxes.cs
Expand Up @@ -13,8 +13,6 @@ namespace osu.Framework.Tests.Visual
[TestFixture]
internal class TestCaseCheckboxes : TestCase
{
public override string Description => @"Checkboxes with clickable labels";

public TestCaseCheckboxes()
{
Children = new Drawable[]
Expand Down
52 changes: 52 additions & 0 deletions osu.Framework.Tests/Visual/TestCaseCircularContainer.cs
@@ -0,0 +1,52 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE

using osu.Framework.Graphics;
using OpenTK;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Testing;

namespace osu.Framework.Tests.Visual
{
[System.ComponentModel.Description(@"Checking for bugged corner radius")]
internal class TestCaseCircularContainer : TestCase
{
private SingleUpdateCircularContainer container;

public TestCaseCircularContainer()
{
AddStep("128x128 box", () => addContainer(new Vector2(128)));
AddAssert("Expect CornerRadius = 64", () => container.CornerRadius == 64);
AddStep("128x64 box", () => addContainer(new Vector2(128, 64)));
AddAssert("Expect CornerRadius = 32", () => container.CornerRadius == 32);
AddStep("64x128 box", () => addContainer(new Vector2(64, 128)));
AddAssert("Expect CornerRadius = 32", () => container.CornerRadius == 32);
}

private void addContainer(Vector2 size)
{
Clear();
Add(container = new SingleUpdateCircularContainer
{
Masking = true,
AutoSizeAxes = Axes.Both,
Child = new Box { Size = size }
});
}

private class SingleUpdateCircularContainer : CircularContainer
{
private bool firstUpdate = true;

public override bool UpdateSubTree()
{
if (!firstUpdate)
return true;
firstUpdate = false;

return base.UpdateSubTree();
}
}
}
}
2 changes: 0 additions & 2 deletions osu.Framework.Tests/Visual/TestCaseCircularProgress.cs
Expand Up @@ -15,8 +15,6 @@ namespace osu.Framework.Tests.Visual
[TestFixture]
internal class TestCaseCircularProgress : TestCase
{
public override string Description => @"Circular progress bar";

private readonly CircularProgress clock;

private int rotateMode;
Expand Down
2 changes: 0 additions & 2 deletions osu.Framework.Tests/Visual/TestCaseColourGradient.cs
Expand Up @@ -81,8 +81,6 @@ public TestCaseColourGradient() : base(2, 2)
}
}

public override string Description => @"Various cases of colour gradients.";

private readonly Box[] boxes = new Box[4];

protected override void Update()
Expand Down
3 changes: 1 addition & 2 deletions osu.Framework.Tests/Visual/TestCaseContainerState.cs
Expand Up @@ -12,10 +12,9 @@
namespace osu.Framework.Tests.Visual
{
[TestFixture]
[System.ComponentModel.Description("ensure valid container state in various scenarios")]
public class TestCaseContainerState : TestCase
{
public override string Description => "Ensuring a container's state is consistent in various scenarios.";

private readonly Container container;

public TestCaseContainerState()
Expand Down
2 changes: 0 additions & 2 deletions osu.Framework.Tests/Visual/TestCaseContextMenu.cs
Expand Up @@ -16,8 +16,6 @@ namespace osu.Framework.Tests.Visual
[TestFixture]
internal class TestCaseContextMenu : TestCase
{
public override string Description => @"Menu visible on right click";

private const int start_time = 0;
private const int duration = 1000;

Expand Down
4 changes: 2 additions & 2 deletions osu.Framework.Tests/Visual/TestCaseDelayedLoad.cs
Expand Up @@ -57,7 +57,7 @@ public TestCaseDelayedLoad()
}
});

var childrenWithAvatarsLoaded = flow.Children.Where(c => c.Children.OfType<DelayedLoadWrapper>().First().Children.FirstOrDefault()?.IsLoaded ?? false);
var childrenWithAvatarsLoaded = flow.Children.Where(c => c.Children.OfType<DelayedLoadWrapper>().First().Content?.IsLoaded ?? false);

AddWaitStep(10);
AddStep("scroll down", () => scroll.ScrollToEnd());
Expand Down Expand Up @@ -91,4 +91,4 @@ private void load()
};
}
}
}
}
Expand Up @@ -12,9 +12,9 @@
namespace osu.Framework.Tests.Visual
{
[TestFixture]
internal class TestCaseDspfContainer : TestCase
internal class TestCaseDrawSizePreservingFillContainer : TestCase
{
public TestCaseDspfContainer()
public TestCaseDrawSizePreservingFillContainer()
{
DrawSizePreservingFillContainer fillContainer;
Child = new Container
Expand Down Expand Up @@ -57,7 +57,5 @@ public TestCaseDspfContainer()
AddSliderStep("Width", 50, 650, 500, v => Child.Width = v);
AddSliderStep("Height", 50, 650, 500, v => Child.Height = v);
}

public override string Description => @"DrawSize-preserving fill container.";
}
}
2 changes: 0 additions & 2 deletions osu.Framework.Tests/Visual/TestCaseDrawablePath.cs
Expand Up @@ -103,8 +103,6 @@ public TestCaseDrawablePath() : base(2, 2)
Colour = Color4.White,
};

public override string Description => @"Various cases of drawable paths.";

private class UserDrawnPath : Path
{
public override bool HandleInput => true;
Expand Down
2 changes: 0 additions & 2 deletions osu.Framework.Tests/Visual/TestCaseDropdownBox.cs
Expand Up @@ -16,8 +16,6 @@ namespace osu.Framework.Tests.Visual
[TestFixture]
internal class TestCaseDropdownBox : TestCase
{
public override string Description => @"Drop-down boxes";

private const int items_to_add = 10;

public TestCaseDropdownBox()
Expand Down
3 changes: 1 addition & 2 deletions osu.Framework.Tests/Visual/TestCaseDynamicDepth.cs
Expand Up @@ -13,10 +13,9 @@
namespace osu.Framework.Tests.Visual
{
[TestFixture]
[System.ComponentModel.Description("changing depth of child dynamically")]
public class TestCaseDynamicDepth : TestCase
{
public override string Description => @"Dynamically change depth of a child.";

private void addDepthSteps(DepthBox box, Container container)
{
AddStep($@"bring forward {box.Name}", () => container.ChangeChildDepth(box, box.Depth - 1));
Expand Down
3 changes: 1 addition & 2 deletions osu.Framework.Tests/Visual/TestCaseEffects.cs
Expand Up @@ -15,10 +15,9 @@
namespace osu.Framework.Tests.Visual
{
[TestFixture]
[System.ComponentModel.Description("implementing the IEffect interface")]
internal class TestCaseEffects : TestCase
{
public override string Description => "Tests classes implement the IEffect interface.";

public TestCaseEffects()
{
var effect = new EdgeEffect
Expand Down
Expand Up @@ -20,10 +20,8 @@
namespace osu.Framework.Tests.Visual
{
[TestFixture]
internal class TestCaseFlow : TestCase
internal class TestCaseFillFlowContainer : TestCase
{
public override string Description => "Test lots of different settings for Flow Containers";

private FillDirectionDropdown selectionDropdown;

private Anchor childAnchor = Anchor.TopLeft;
Expand All @@ -36,7 +34,7 @@ internal class TestCaseFlow : TestCase
private ScheduledDelegate scheduledAdder;
private bool doNotAddChildren;

public TestCaseFlow()
public TestCaseFillFlowContainer()
{
reset();
}
Expand Down
3 changes: 1 addition & 2 deletions osu.Framework.Tests/Visual/TestCaseFillModes.cs
Expand Up @@ -16,6 +16,7 @@
namespace osu.Framework.Tests.Visual
{
[TestFixture]
[System.ComponentModel.Description("sprite stretching")]
internal class TestCaseFillModes : GridTestCase
{
public TestCaseFillModes() : base(3, 3)
Expand Down Expand Up @@ -76,8 +77,6 @@ protected override void LoadComplete()
}
}

public override string Description => @"Test sprite display and fill modes";

private Texture texture;

[BackgroundDependencyLoader]
Expand Down
33 changes: 33 additions & 0 deletions osu.Framework.Tests/Visual/TestCaseGridContainer.cs
Expand Up @@ -317,6 +317,39 @@ public TestCaseGridContainer()
}
};
});

AddStep("Auto size", () =>
{
reset();
grid.Content = new[]
{
new Drawable[] { new Box { Size = new Vector2(30) }, new FillBox(), new FillBox() },
new Drawable[] { new FillBox(), new FillBox(), new FillBox() },
new Drawable[] { new FillBox(), new FillBox(), new FillBox() }
};

grid.RowDimensions = new[] { new Dimension(GridSizeMode.AutoSize), new Dimension(GridSizeMode.Relative, 0.5f) };
grid.ColumnDimensions = new[] { new Dimension(GridSizeMode.AutoSize), new Dimension(GridSizeMode.Relative, 0.5f) };
});

AddStep("Autosizing child", () =>
{
reset();
grid.Content = new[]
{
new Drawable[]
{
new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
Child = new Box { Size = new Vector2(100, 50) }
},
new FillBox()
}
};

grid.ColumnDimensions = new[] { new Dimension(GridSizeMode.AutoSize) };
});
}

private void reset()
Expand Down
2 changes: 0 additions & 2 deletions osu.Framework.Tests/Visual/TestCaseHollowEdgeEffect.cs
Expand Up @@ -85,7 +85,5 @@ public TestCaseHollowEdgeEffect() : base(2, 2)
});
}
}

public override string Description => @"Hollow Container with EdgeEffect";
}
}
3 changes: 1 addition & 2 deletions osu.Framework.Tests/Visual/TestCaseInputResampler.cs
Expand Up @@ -16,6 +16,7 @@
namespace osu.Framework.Tests.Visual
{
[TestFixture]
[System.ComponentModel.Description("live path optimiastion")]
internal class TestCaseInputResampler : GridTestCase
{
public TestCaseInputResampler() : base(3, 3)
Expand Down Expand Up @@ -121,8 +122,6 @@ public TestCaseInputResampler() : base(3, 3)
Colour = Color4.White,
};

public override string Description => @"Live optimizing paths to relevant nodes.";

private class SmoothedPath : Path
{
protected SmoothedPath()
Expand Down
2 changes: 0 additions & 2 deletions osu.Framework.Tests/Visual/TestCaseKeyBindings.cs
Expand Up @@ -18,8 +18,6 @@ namespace osu.Framework.Tests.Visual
[TestFixture]
public class TestCaseKeyBindings : GridTestCase
{
public override string Description => @"Keybindings";

public TestCaseKeyBindings()
: base(2, 2)
{
Expand Down
2 changes: 0 additions & 2 deletions osu.Framework.Tests/Visual/TestCaseLocalisation.cs
Expand Up @@ -20,8 +20,6 @@ namespace osu.Framework.Tests.Visual
[TestFixture]
internal class TestCaseLocalisation : TestCase
{
public override string Description => "Localisation engine";

// ReSharper disable once PrivateFieldCanBeConvertedToLocalVariable
private readonly LocalisationEngine engine; //keep a reference to avoid GC of the engine

Expand Down
2 changes: 0 additions & 2 deletions osu.Framework.Tests/Visual/TestCaseMasking.cs
Expand Up @@ -17,8 +17,6 @@ namespace osu.Framework.Tests.Visual
[TestFixture]
internal class TestCaseMasking : TestCase
{
public override string Description => @"Various scenarios which potentially challenge masking calculations.";

protected Container TestContainer;

public TestCaseMasking()
Expand Down
2 changes: 0 additions & 2 deletions osu.Framework.Tests/Visual/TestCaseNestedHover.cs
Expand Up @@ -15,8 +15,6 @@ namespace osu.Framework.Tests.Visual
[TestFixture]
internal class TestCaseNestedHover : TestCase
{
public override string Description => @"Hovering multiple nested elements";

public TestCaseNestedHover()
{
HoverBox box1;
Expand Down
2 changes: 0 additions & 2 deletions osu.Framework.Tests/Visual/TestCasePadding.cs
Expand Up @@ -175,8 +175,6 @@ public TestCasePadding() : base(2, 2)
});
}

public override string Description => @"Add fixed padding via a PaddingContainer";

private class PaddedBox : Container
{
private readonly SpriteText t1;
Expand Down