• 
      

    Fix unit test failures with TextEditorView usage.

    Review Request #6470 — Created Oct. 20, 2014 and submitted

    Information

    Review Board
    release-2.0.x
    ff0452c...

    Reviewers

    Some of the unit tests were breaking with the transition to
    TextEditorView, in particular with the plain text backend. In some
    cases, they were expecting access to methods that no longer existed, or
    looking up the wrong data key.

    This did expose a real bug in the change event handling, which now looks
    for key events as well as change events, and allows the events to bubble
    so that key bindings work.

    Unit tests pass.

    Description From Last Updated

    Old debug code?

    david david
    reviewbot
    1. Tool: Pyflakes
      Ignored Files:
          reviewboard/static/rb/js/ui/views/textEditorView.js
          reviewboard/static/rb/js/views/tests/reviewRequestEditorViewTests.js
          reviewboard/static/rb/js/views/tests/commentDialogViewTests.js
          reviewboard/static/rb/js/views/reviewRequestEditorView.js
      
      
      
      Tool: PEP8 Style Checker
      Ignored Files:
          reviewboard/static/rb/js/ui/views/textEditorView.js
          reviewboard/static/rb/js/views/tests/reviewRequestEditorViewTests.js
          reviewboard/static/rb/js/views/tests/commentDialogViewTests.js
          reviewboard/static/rb/js/views/reviewRequestEditorView.js
      
      
    2. 
        
    david
    1. 
        
    2. Show all issues

      Old debug code?

    3. 
        
    chipx86
    reviewbot
    1. Tool: PEP8 Style Checker
      Ignored Files:
          reviewboard/static/rb/js/ui/views/textEditorView.js
          reviewboard/static/rb/js/views/tests/reviewRequestEditorViewTests.js
          reviewboard/static/rb/js/views/tests/commentDialogViewTests.js
          reviewboard/static/rb/js/views/reviewRequestEditorView.js
      
      
      
      Tool: Pyflakes
      Ignored Files:
          reviewboard/static/rb/js/ui/views/textEditorView.js
          reviewboard/static/rb/js/views/tests/reviewRequestEditorViewTests.js
          reviewboard/static/rb/js/views/tests/commentDialogViewTests.js
          reviewboard/static/rb/js/views/reviewRequestEditorView.js
      
      
    2. 
        
    david
    1. Ship It!

    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to markdown-redesign (594bc57)