Commit Graph

4005 Commits

Author SHA1 Message Date
9ddcd686ac Fix incorrect assert 2021-04-09 18:23:38 +09:00
b49997f531 Add test for no frames 2021-04-09 18:18:23 +09:00
589ce4bdc2 Add test 2021-04-09 18:16:10 +09:00
59d13b0dd3 Fixed indentation
sorry about the style fixes... I'm using JetBrains Rider from now on.
2021-04-08 21:53:42 -04:00
6b6a71d3c3 trim whitespace 2021-04-08 20:39:17 -04:00
493c095535 Fixed code style 2021-04-08 20:28:23 -04:00
6bccb3aab6 Use DI to implement battery detection, add BatteryCutoff property
- Removed the Xamarin.Essentials package from osu.Game and added it to osu.iOS and osu.Android only.
- iOS and Android implementations use Xamarin.Essentials.Battery, while the Desktop implementation
only returns 100% battery for now.
- Added a BatteryCutoff property to PowerStatus so it can be different for each platform (default 20%, 25% on iOS)
2021-04-08 19:55:11 -04:00
70cd018a98 Fix intermittent test failure 2021-04-08 21:38:58 +09:00
1e23f671fa Merge pull request #12321 from smoogipoo/add-spectate-button-and-state
Add multiplayer spectating user state and button
2021-04-08 19:48:58 +09:00
b38d332268 Fix broken test 2021-04-08 16:31:39 +09:00
545156d15c Add regression test coverage 2021-04-08 15:20:53 +09:00
8aff53172d Remove necessity for nested PassThroughInputManger 2021-04-08 15:18:31 +09:00
0a6baf670e Send a warning notification if device is unplugged and low battery
- Uses Xamarin.Essentials in osu.Game.PlayerLoader to check battery level
- Encapsulated battery checking in the public BatteryManager class so battery level and plugged in status can be accessed and edited in TestPlayerLoader
- When checking battery level, catch NotImplementedException thrown by Xamarin.Essentials.Battery on non-mobile platforms
- Added visual unit tests for battery notification
  To mock battery status and level, we had to define a batteryManager object in TestPlayerLoader and add a new function ResetPlayerWithBattery()

Co-Authored-By: Marlina José <marlina@umich.edu>
2021-04-07 15:56:50 -04:00
024adb699c Add test and fix several issues 2021-04-08 00:12:21 +09:00
214813154b Fix class name 2021-04-07 22:28:22 +09:00
99bee73ac1 Merge branch 'master' into add-spectate-button-and-state 2021-04-07 22:07:52 +09:00
6eb809f4c4 Merge pull request #9194 from boswelja/rebind-song-select
Allow rebinding Song Select mods/random/options keys
2021-04-07 20:55:45 +09:00
93c5935ebc Add match subscreen support + test 2021-04-07 20:46:30 +09:00
b4c6894d13 Add test coverage for song select footer area 2021-04-07 18:29:31 +09:00
abd637ffaa Add button to footer 2021-04-07 17:35:18 +09:00
56c13148f1 Fix typo in class name 2021-04-07 16:45:10 +09:00
c744f77cfa Add participant panel state 2021-04-07 16:40:24 +09:00
f5667125a0 Remove unnecessary method 2021-04-07 16:37:43 +09:00
6be9c9f0f4 Link up ready button to spectate state 2021-04-07 16:35:50 +09:00
1f57b6884d Add ready button to test scene 2021-04-07 16:30:40 +09:00
6de91d7b6b Add spectate button + test 2021-04-06 21:37:27 +09:00
ba3689b5b9 Merge pull request #12269 from PercyDan54/beatmap-details
Use OnlineViewContainer for BeatmapDetails
2021-04-06 17:52:32 +09:00
2321101518 Merge branch 'master' into fix-overzealousmouse-button-blocking 2021-04-06 16:45:25 +09:00
53c1bc666c Make addition of nested GlobalActionContainer in OsuGameTestScene optional 2021-04-06 15:18:00 +09:00
e486e521ff Fix regressed test 2021-04-05 22:46:01 +09:00
beebdb0734 Clean up implementation 2021-04-05 22:30:51 +09:00
b66ba43bc5 Add failing test scene 2021-04-03 14:02:46 +02:00
7d4b0e3f0a Fix editor clock scene not re-enabling beatmap
Could interfere with other tests due to causing crashes on attempts to
change `Beatmap.Value`.
2021-04-03 12:34:48 +02:00
1ff77754fd Use OnlineViewContainer 2021-04-02 20:14:31 +08:00
c3c7c18549 Fix tests 2021-04-01 23:48:26 +09:00
9e95441aa6 Rename Spectator -> SoloSpectator 2021-04-01 22:08:52 +09:00
0c53b4eb93 Fix wrong counting and add test 2021-03-31 14:09:39 +09:00
8dfff999f9 Add rotation slider 2021-03-30 12:40:50 +09:00
558f8fa51e Adjust testscene 2021-03-25 23:20:26 +01:00
6cb14e91c9 Make Player abstract and introduce SoloPlayer 2021-03-23 18:18:49 +09:00
aeff9bd853 Add return bool to HandleRequest to better trigger failures 2021-03-23 18:17:29 +09:00
a16c0641b2 Revert EF Core to version 2.2
This reverts commit f3faad74d5, reversing
changes made to 712e7bc7bf.

Several issues arose after migrating to 5.0, including, but possibly not
limited to, performance regressions in song select, as well as failures
when attempting to save beatmaps after metadata changes in the editor.
2021-03-21 11:05:15 +01:00
b9b351311a Merge pull request #11824 from peppy/fix-unsafe-skinnable-sample-play
Fix playing skinned samples being unsafe during skin changes
2021-03-20 11:29:34 +09:00
8e0536e1e2 Add failing test scene 2021-03-19 22:44:33 +01:00
f59327cc3e Merge branch 'master' into fix-unsafe-skinnable-sample-play 2021-03-19 20:29:44 +09:00
196f95ae54 Update to use new bindables and centered area offset 2021-03-19 19:01:32 +09:00
9a6a0f3df5 Add test coverage and better UI handling of no tablet connected scenario 2021-03-19 19:01:32 +09:00
a8e319a320 Remove min/max from test scene to fix weirdness when switching test sizings 2021-03-19 19:01:31 +09:00
382109c7a2 Make test scene feel more like settings (width-wise) 2021-03-19 19:01:31 +09:00
464702182d Consume device name 2021-03-19 19:01:31 +09:00