.. link: .. description: .. tags: .. date: 2013/08/18 00:00:00 .. title: NINJA-IDE .. slug: test_highlighter .. class:: alert alert-info pull-top .. contents:: *Module:* `test_highlighter.py `_ API ================================================================================================== No description. *Imports:* ------------ - `unittest `_ - `PyQt4.QtGui.QFont `_ - `__future__.absolute_import `_ - `ninja_ide.gui.editor.highlighter `_ - `__future__.unicode_literals `_ *Class:* `SyntaxUserDataTestCase(unittest.TestCase) `_ --------------------------------------------------------------------------------------------------------------------------------------------------------------------- .. code:: python class SyntaxUserDataTestCase(unittest.TestCase): No description. *Attributes* ~~~~~~~~~~~~~~ - `comment_start [at ln:97] `_ - `err_sud [at ln:83] `_ - `error [at ln:95] `_ - `noerr_sud [at ln:84] `_ - `str_groups [at ln:96] `_ *Function:* `setUp() [at ln:82] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def setUp(): No description. ---- *Function:* `test_adds_string() [at ln:103] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def test_adds_string(): No description. ---- *Function:* `test_clears_correctly() [at ln:94] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def test_clears_correctly(): No description. ---- *Function:* `test_comment_start() [at ln:108] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def test_comment_start(): No description. ---- *Function:* `test_initializes_correctly() [at ln:86] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def test_initializes_correctly(): No description. ---- *Class:* `HighlighterFormatTestCase(unittest.TestCase) `_ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ .. code:: python class HighlighterFormatTestCase(unittest.TestCase): No description. *Attributes* ~~~~~~~~~~~~~~ - `FONT_FAMILY [at ln:34] `_ - `_a_format [at ln:30] `_ - `_bold_italic [at ln:32] `_ - `_color [at ln:29] `_ - `_new_font [at ln:33] `_ - `_new_font_format [at ln:35] `_ - `_old_font [at ln:27] `_ *Function:* `setUp() [at ln:26] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def setUp(): No description. ---- *Function:* `tearDown() [at ln:37] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def tearDown(): No description. ---- *Function:* `test_format_set_font() [at ln:57] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def test_format_set_font(): No description. ---- *Function:* `test_format_sets_bold() [at ln:44] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def test_format_sets_bold(): No description. ---- *Function:* `test_format_sets_color() [at ln:40] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def test_format_sets_color(): No description. ---- *Function:* `test_format_sets_italic() [at ln:51] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def test_format_sets_italic(): No description. ---- *Class:* `HighlighterRestyleTestCase(unittest.TestCase) `_ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- .. code:: python class HighlighterRestyleTestCase(unittest.TestCase): No description. *Attributes* ~~~~~~~~~~~~~~ - `COLOR_SCHEME [at ln:69] `_ - `SDEFAULTS [at ln:67] `_ *Function:* `setUp() [at ln:66] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def setUp(): No description. ---- *Function:* `tearDown() [at ln:72] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def tearDown(): No description. ---- *Function:* `test_scheme_populates_styles() [at ln:75] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def test_scheme_populates_styles(): No description.