tangled
alpha
login
or
join now
keii.dev
/
osu-framework
A game framework written with osu! in mind.
0
fork
atom
overview
issues
pulls
pipelines
Add failing test case
Bartłomiej Dach
4 years ago
fb43c0e1
14a38e87
+18
1 changed file
expand all
collapse all
unified
split
osu.Framework.Tests
Visual
UserInterface
TestScenePopoverContainer.cs
+18
osu.Framework.Tests/Visual/UserInterface/TestScenePopoverContainer.cs
···
151
151
}
152
152
153
153
[Test]
154
154
+
public void TestShowHideViaExtensionMethod()
155
155
+
{
156
156
+
createContent(button => new BasicPopover
157
157
+
{
158
158
+
Child = new SpriteText
159
159
+
{
160
160
+
Text = $"{button.Anchor} popover"
161
161
+
}
162
162
+
});
163
163
+
164
164
+
AddStep("show popover manually", () => this.ChildrenOfType<DrawableWithPopover>().First().ShowPopover());
165
165
+
AddAssert("popover shown", () => this.ChildrenOfType<Popover>().Any(popover => popover.State.Value == Visibility.Visible));
166
166
+
167
167
+
AddStep("hide popover manually", () => popoverContainer.HidePopover());
168
168
+
AddAssert("all hidden", () => this.ChildrenOfType<Popover>().All(popover => popover.State.Value != Visibility.Visible));
169
169
+
}
170
170
+
171
171
+
[Test]
154
172
public void TestClickBetweenMultiple()
155
173
{
156
174
createContent(button => new BasicPopover