mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 13:40:17 -10:00
If the user tries to insert text without moving the cursor, the invisible break will become visible, which from the user's perspective means an extra line break was inserted for no reason. The IsVisBreak change here is a bit scary, because it may result in unexpected behavior changes, but it seems to improve correctness. If it turns out to cause problems, it can be added as a special case to GetGoodSelPointForNode instead. MozReview-Commit-ID: 7SRQYHYtJvF
15 lines
945 B
Plaintext
15 lines
945 B
Plaintext
Most of this directory tests conformance to the editing spec written long ago
|
|
by Aryeh Gregor. Nobody actually implements the spec, but the tests are still
|
|
useful for regression testing. The files in data/ were generated from a
|
|
JavaScript implementation of the specification using a complex procedure that
|
|
can't actually be replicated right now as-is. Editing them manually is
|
|
possible, but they're not really meant to be human-readable. If anyone is
|
|
interested, it would be possible for Aryeh to get the test generation procedure
|
|
working again. Or you could look into the repository history and figure out
|
|
how to do it yourself, if you're brave.
|
|
|
|
There is also a directory other/ that contains additional editor-related tests.
|
|
They aren't necessarily based on any specification, but try to specify sensible
|
|
behavior, and are meant to be helpful with regression testing for existing
|
|
implementations and finding bugs in new implementations.
|