Commit Graph

2255 Commits

Author SHA1 Message Date
89f270a19a SortSelector -> SortTabControl 2019-10-14 21:32:41 +09:00
ae1a361f9f Merge branch 'master' into commenst_header 2019-10-14 21:20:05 +09:00
00f0957cc3 Merge branch 'master' into editor-grids-2 2019-10-12 23:28:51 +09:00
7ffe5ac539 Merge remote-tracking branch 'refs/remotes/ppy/master' into commenst_header 2019-10-12 15:02:12 +03:00
26a33bfa4e Merge branch 'master' into fix-resume-from-player-audio 2019-10-11 19:21:14 +09:00
631f155554 Add grid to make the test not appear empty 2019-10-11 18:24:33 +09:00
050d86a741 Always use the local coordinate space 2019-10-11 18:24:33 +09:00
9ecec806c2 Rename grid creation method + parameter 2019-10-11 18:24:33 +09:00
5f0cd356d7 Rename startPosition to centrePosition 2019-10-11 18:24:33 +09:00
824595427d Remove extra whitespace 2019-10-11 18:24:33 +09:00
2aa3d0bb39 Implement base class for beat snapping grids 2019-10-11 18:24:33 +09:00
c7eb0b401b Merge branch 'master' into ignore-macosx-folder-in-archives 2019-10-11 14:36:52 +09:00
f6e1e5b2ed Merge branch 'master' into fix-line-buffered-reader-tests 2019-10-11 12:42:58 +09:00
11acd177f1 Add import test with files to be filtered out
Add a test case reproducing the conditions encountered "in the wild"
wherein a skin import would be performed incorrectly due to a __MACOSX
resource fork directory present next to a directory with the actual skin
files in the archive.
2019-10-10 23:54:17 +02:00
c8ffc134d4 Use nameof when instantiating headless game hosts
As a purely cosmetic code improvement, substitute string literals
in constructor calls of HeadlessGameHost in ImportBeatmapTest for nameof
operator usages.
2019-10-10 22:36:43 +02:00
cb1f7e2dc7 Fix platform dependency in buffered reader test
Tests for the line-buffered reader added in 7b1ff38 were subtly
dependent on the execution environment due to differing end-of-line
markers on Windows and Unix-based systems.

Because StreamReader discards all newlines when reading line-by-line,
LineBufferedReader used a StringBuilder to patch the peeked lines
back together with the remaining contents of the file being read.
As StringBuilder.AppendLine uses the environment-specific newline
delimiter, the delimiters after the peeked-but-unconsumed lines can
therefore be substituted by the platform-specific variants, causing
the test failures due to the overly-simplified way they were written.

Reformulate the test to avoid such issues from resurfacing again
by splitting lines by \r or \n and then testing each line individually.
Additionally remove all raw literals in favour of explicitly mixing
various line delimiter character sequences for additional coverage.
2019-10-10 15:33:18 +02:00
8255a94cd4 Merge branch 'master' into fix-resume-from-player-audio 2019-10-10 22:08:20 +09:00
b45e7246b8 Rename SortCommentsBy to CommentsSortCriteria 2019-10-10 15:56:08 +03:00
5eba33e876 Simplify logic and add test coverage for remaining case 2019-10-10 20:12:47 +09:00
64f62bd2bf Implement CommentsHeader component 2019-10-10 12:06:25 +03:00
5d6648d9c9 Update 2.2 references 2019-10-10 17:45:38 +09:00
8df2e359c4 Fix tests on CI 2019-10-10 17:42:15 +09:00
f74c79c2b8 Fix audio playback position being reset after resuming to song select 2019-10-10 11:58:43 +09:00
f2adae8fd1 Rename test case to better match underlying class 2019-10-09 16:05:38 +09:00
69b9e359bf Merge branch 'master' into fix-ss-track-playback 2019-10-09 12:26:07 +09:00
e8276dc562 Merge branch 'master' into fix-ignored-test 2019-10-09 11:39:40 +09:00
4446a2972c Move WaveContainer test out of editor namespace 2019-10-08 18:08:05 +09:00
8ebccfe31f Add comprehensive audio state tests 2019-10-08 17:03:13 +09:00
f284d096b7 Fix ignored song select test 2019-10-08 16:37:47 +09:00
46d6c5ec3b Add failing test 2019-10-07 15:17:03 +09:00
62c4c1266e Move private functions to bottom 2019-10-07 15:17:03 +09:00
93c0cf14c1 Merge branch 'master' into allow-fallback-decoder-overwrite 2019-10-05 10:56:57 +08:00
de658c932e Fix test regression 2019-10-04 17:22:42 -07:00
76c74719a4 Add test for fallback decoder overwrite
LegacyDifficultyCalculatorBeatmapDecoder was registered as a fallback
decoder in commit ffde389 for future use in the server-side difficulty
calculation components. Due to the pre-existing fallback registrations
this causes a runtime crash when the diffcalc components are started.
Add a test reproducing this scenario to prevent the issue from
resurfacing in the future.
2019-10-04 17:00:51 +02:00
9eab56e2fc Merge branch 'master' into editor-beatmap-changed-event 2019-10-04 17:58:58 +08:00
457e0c4d7b Merge pull request #6117 from bdach/beatmap-parsing-fallback-v2
Add fallback decoder option for badly-headered files
2019-10-04 15:03:10 +09:00
49fdb4b731 Fix Alt-F4 being blocked during gameplay (#6369)
Fix Alt-F4 being blocked during gameplay

Co-authored-by: Dean Herbert <pe@ppy.sh>
2019-10-04 13:33:00 +08:00
2b61bb709e Merge branch 'master' into beatmap-parsing-fallback-v2 2019-10-04 14:08:27 +09:00
f1772d01d2 Add the new switch button + labelled switch button (#6257)
Add the new switch button + labelled switch button

Co-authored-by: Dean Herbert <pe@ppy.sh>
2019-10-04 13:01:57 +08:00
dc984d0d81 Merge branch 'master' into beatmap-parsing-fallback-v2 2019-10-04 13:51:56 +09:00
626f7388c8 Add tests for quick retry and quick exit scenarios 2019-10-04 12:23:01 +08:00
e646b2677c Add test coverage 2019-10-04 11:25:23 +08:00
a7b58cad99 Merge branch 'master' into labelled-switch-button 2019-10-04 11:15:54 +08:00
a5e1cb8feb Merge remote-tracking branch 'Game4all/master' into truncate-metadata-on-wedge 2019-10-04 11:21:33 +09:00
d87f6d270b Merge branch 'master' into fix-alt-f4-being-blocked-by-overlays 2019-10-03 08:43:31 -07:00
dbcb9e51c2 Merge branch 'master' into muted-notification 2019-10-03 12:51:22 +02:00
e9c73ce30f Fix random failures on BeatmapCarousel filter test
The "un-filter" step causes a `SelectNextRandom` invocation. If this happens to select a difficulty in set 3 other than the previously buffered difficulty #2, the subsequent test would fail.

I've split this test out to remove the random element, but added a new assert to ensure buffered (previously visited?) difficulty is re-selected on return to the same set.
2019-10-03 16:21:14 +08:00
6268bbcfc8 Merge branch 'master' into beatmap-parsing-fallback-v2 2019-10-03 15:12:21 +08:00
3fb0b0b668 Rename to StartTimeChanged and add xmldocs 2019-10-03 14:37:16 +09:00
f2719afd0e Add tests for Editorbeatmap 2019-10-03 14:27:40 +09:00