Skip to content

[CLOSED] Smallish cleanups to docs & unit tests; improve a few tests #3219

@core-ai-bot

Description

@core-ai-bot

Issue by peterflynn
Friday Apr 12, 2013 at 21:40 GMT
Originally opened as adobe/brackets#3429


  • SpecRunnerUtils:
    • Improve docs
    • Add assertion in case a mock Document is created without an Editor but then used in a way that would auto-create an Editor (which won't get cleaned up)
    • In DocumentManager, add assertion in _destroyEditorIfUnneeded() since its name makes it easy to call with the wrong type (including via SRU.destroyMockEditor())
    • Use waitsForDone() more
  • LanguageManager:
    • Minor docs cleanups (incorrect usage of "i.e.", missing
      docs for new fileNames option, etc.)
    • Remove a duplicated LanguageManager test (due to f67cfcd)
    • Move filename->language mapping tests from Editor-test to LanguageManager-test
  • InstallExtensionDialog: Add unit tests for install dialog cases where installer comes back with a result after clicking Cancel but before Cancel times out, or comes back vary late after timeout once user has opted to close the dialog
  • StringMatch: Add a few more tests to ensure tricky cases don't break in the opposite direction as before (including the test suggested by Kevin in [CLOSED] Jenkins updates #3417)
  • DocumentManager: use CollectionUtils.forEach() in notifyPathNameChanged() (removing early-exit optimization that's probably unneeded; can reintroduce when CollectionUtils.some() lands)
  • FileIndexManager: add another [CLOSED] LESS fails with an empty declaration #330 testcase as suggested by Glenn in [CLOSED] Fix #2645: [FRA, JPN]: The word "Loading..." is not localized. #3064
  • HTMLCodeHints: rename test suite & remove unused var
  • CSSUtils: remove unused vars
  • Dialogs: tiny docs improvement

peterflynn included the following code: https://github.com/adobe/brackets/pull/3429/commits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions