adobe/brackets — pull request #2174 by njx (2012-11-21 07:17:00+00:00)
Title: Unit test suite for InlineColorEditor

@jasonsanjose

A few of these unit tests got checked in as part of an earlier pull request (and were reviewed by Peter F), but some of those got modified in this pull anyway, so it's probably worth just reviewing everything from scratch.

Note that these are all mocked tests in one form or another--the first set use a full InlineColorEditor and a mock editor/document (so the InlineColorEditor doesn't actually live in the mock editor); the later ones just test ColorEditor by itself (not inside an InlineColorEditor).

Let me know if you think I should build some more integration-y tests as well. I think these tests give pretty good overall coverage though.