Commit Graph

2296 Commits

Author SHA1 Message Date
194e501f86 Merge branch 'master' into snapping-refactor 2019-10-26 14:20:08 +09:00
c2f6cd9c24 Merge branch 'master' into comments-vote-pill 2019-10-25 19:19:44 +09:00
a9ec6b2562 Fix testcase failure 2019-10-25 19:00:10 +09:00
ccc45dea20 Add hitobject composer snapping test 2019-10-25 18:19:26 +09:00
ae011e8ee8 Fix distance snap grid test scenes 2019-10-25 17:25:46 +09:00
607b4d874a Refactor flow of snapping through HitObjectComposer 2019-10-25 16:40:30 +09:00
661dfbefaf Change containment check to overlap
Due to scenarios wherein a formatted link ended up as part of a larger
raw link after parsing, change the containment check to an overlap check
and add appropriate tests for these edge cases.
2019-10-25 00:42:58 +02:00
cbd99cc767 Resolve link-in-link edge case
Testing with #6542 surfaced a crash scenario, caused by formatted links
that had URLs in the display text, for example

    [mean example - https://osu.ppy.sh](https://osu.ppy.sh)

In that case the outer Markdown link would get picked up once, and then
reduced to the link text when looking for other links, leading to it
being picked up again the second time when the raw link is found.

Add a check in the raw link parsing path that ensures that the found
URL is not a part of a bigger, pre-existing link.
2019-10-24 15:52:55 +02:00
a89ea78a7a Add extended testing for Markdown links
While reviewing #6542 it became apparent that there was another Markdown
link format variant, used in comments that came from the web API, called
the "inline link" style. It allows to specify the tooltip title within
the actual URL portion, as such:

    [link text](https://osu.ppy.sh "tooltip text")

Add tests with a couple of easy and trickier examples of such a format.
Moreover, add a new edge case of a Markdown link with a link inside
the display text, which during tests was detected to be problematic.
2019-10-24 15:52:55 +02:00
d83b9ef0e4 Rename grid snapping methods 2019-10-24 18:18:04 +09:00
40c202c394 Merge branch 'master' into comments-vote-pill 2019-10-23 15:41:54 +09:00
a3ab6d33c1 Add test 2019-10-22 01:37:30 +03:00
266f9a065f Merge remote-tracking branch 'refs/remotes/ppy/master' into comments-vote-pill 2019-10-18 19:25:05 +03:00
89f50b26f7 Fix hitobject combo colour potentially not getting adjusted 2019-10-18 17:32:11 +09:00
99ea45da41 Merge pull request #6474 from smoogipoo/osu-beatsnapping-grid
Implement osu!'s beat snapping grid
2019-10-18 16:27:03 +09:00
a437ff74cc Move VotePill to it's own file 2019-10-17 14:18:31 +03:00
bd57c0b58e Merge branch 'master' into fix-incorrect-beatmap-set-info-equality 2019-10-17 19:51:03 +09:00
f92331531c Rename grid to DistanceSnap to be more in line with its purpose 2019-10-17 15:32:02 +09:00
3a6a25ffe8 Merge branch 'master' into non-static-rulesetstore 2019-10-17 14:25:06 +09:00
40fc655b50 Add equality check test to ensure correct values 2019-10-17 01:19:50 +03:00
12cd57744b Make RulestStore initialise at construction time 2019-10-15 16:14:06 +09:00
42a06a54ff Don't use ProfileShowMoreButton in the test scene to avoid confusion 2019-10-15 01:08:23 +03:00
09621f066e Childs -> Children 2019-10-15 00:32:21 +03:00
7cd3f5656d Cleanups 2019-10-14 16:43:43 +03:00
7ac87494e0 Merge remote-tracking branch 'refs/remotes/ppy/master' into comments_api 2019-10-14 16:21:34 +03:00
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
2f209d1dfa Merge remote-tracking branch 'refs/remotes/ppy/master' into comments_api 2019-10-13 14:53:41 +03:00
a44cc2e70b Implement CommentsShowMoreButton 2019-10-13 14:43:30 +03:00
27e3ffd293 Update dependencies 2019-10-13 11:23:49 +03:00
7f867562ca Merge remote-tracking branch 'refs/remotes/ppy/master' into comments_api 2019-10-13 11:15:43 +03: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