Skip to content

Conversation

@jleandroperez
Copy link
Contributor

Fixes #645

Scenario: Unit Tests!

Please: Verify that the Unit Tests run correctly

Scenario: Blockquote Within List

  1. Launch the empty editor
  2. Toggle Ordered List
  3. Insert a Blockquote in the first bullet
  4. Enter a word, press Shift + Enter, enter a second word
  5. Verify that the first word's Blockquote BG does not get clipped off
  6. Verify that the List Marker does not get incorrectly rendered.

Scenario: List Within Blockquote

  1. Launch the empty editor
  2. Insert a Blockquote
  3. Insert an Ordered List
  4. Enter a word, press Shift + Enter, enter a second word
  5. Verify that the first word's Blockquote BG does not get clipped off
  6. Verify that the List Marker does not get incorrectly rendered.

Needs Review: @diegoreymendez
Thanks in advance!

@jleandroperez jleandroperez added this to the Beta 11 (bugfixes) milestone Sep 4, 2017
@jleandroperez jleandroperez self-assigned this Sep 4, 2017
Copy link
Contributor

@diegoreymendez diegoreymendez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working great!

Nice job.

assert(index != startIndex)

let previousIndex = self.index(before: index)
guard previousIndex != endIndex else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed privately, this will need to change in an upcoming PR since it's impossible to trigger this guard.

Documenting for history.

@jleandroperez
Copy link
Contributor Author

Thanks Diego!

@jleandroperez jleandroperez merged commit ead5000 into develop Sep 6, 2017
@jleandroperez jleandroperez deleted the issue/645-blockquote-within-list-glitch branch September 6, 2017 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants