TS 67 EditorOptions

Test Specification: Editor Options

Author: Jiri Prox
Version: 6.7
Introduction: This test specification covers two panels in Options Dialog - Fonts&Colors and Keymap.
Setup: No specific steps are required

Contents


Test suite: Fonts & Colors - syntax

  1. All languages - default
    1. Open options dialog
    2. Go to Fonts & Colors, tab Syntax
    3. Select language All Languages, and category Default
    4. Change Font to Monospaced 14 Bold
    5. Change Foreground, Backaground, Effect and Effect color
    • EXPECTED RESULT: All fonts is changed to the set valued, unless the values are not overridden in some specific category java keyword color stay unchanged, since is specified later.
  2. All language - comment
    1. Change color of comment in language All Languages
    2. Check several types of files (Java, HTML, XML ...)
    • EXPECTED RESULT: The color of comment are changed correctly
  3. inherited color
    1. Select the color of Comment for all languages to 'Inherited'
    2. Change color for category Default
    • EXPECTED RESULT: The color square next to label 'Inherited' should have color of Default element. When this value is selected the color of comment element is inherited from the superior element - 'default' in this case. After changing color of 'default' the color of 'comment' is changed as well
  4. Preview
    1. Select language All languages'
    2. Click on several places in preview
    • EXPECTED RESULT: The proper category is selected

Test suite: Fonts & Colors - java specific syntax

Setup: Reset any changed which were made during previous testsuite by pressing 'Restore' button. After each test case, revert the changes. Open class TestClass_TS_67_EditorOptions.java

  1. Language specific color
    1. Select language Java
    2. Set color/fonts for Abstract Element
    • EXPECTED RESULT: The abstract elements on lines 6, 9 and 10 are colored by specified color
  2. Language specific color
    1. Select language Java
    2. Set color/fonts for Annotation declaration and Annotation Use
    • EXPECTED RESULT: The annotation declaration on line 21 and annotation use at line 2 are colored according to set values
  3. Language specific color
    1. Select language Java
    2. Set color/fonts for Character
    • EXPECTED RESULT: Character literal on line 38 is colored by specified color
  4. Language specific color
    1. Select language Java
    2. Set color/fonts for Class Use and Class Declaration
    • EXPECTED RESULT: The all class usages (lines 40,42,46) and class declarations (3, 9, 13) are colored by specified color
  5. Language specific color
    1. Select language Java
    2. Set color/fonts for Comment
    • EXPECTED RESULT: All comments (block and inline) are colored by specified color
  6. Language specific color
    1. Select language Java
    2. Set color/fonts for Constructor Use and Constructor Declaration
    • EXPECTED RESULT: Constructor Use (line 47) and Constructor Declaration (line 50) are colored by specified color
  7. Language specific color
    1. Select language Java
    2. Set color/fonts for Deprecated Element
    • EXPECTED RESULT: The rendering of deprecated elements are changed (lines 3,47)
  8. Language specific color
    1. Select language Java
    2. Set color/fonts for Enum Use and Enum Declaration
    • EXPECTED RESULT: Enum Use (line 44) and Enum Declaration (line 16) are colored by specified color
  9. Language specific color
    1. Select language Java
    2. Set color/fonts for Field Declaration and Filed Use
    • EXPECTED RESULT: The Field Declaration (lines 18, 23 - 26,32) and Filed Use (47) are colored by specified color
  10. Language specific color
    1. Select language Java
    2. Set color/fonts for Identifier
    • EXPECTED RESULT: All identifiers are colored by specific color
  11. Language specific color
    1. Select language Java
    2. Set color/fonts for Interface Declaration and Interface Use
    • EXPECTED RESULT: The Interface Declaration (line 5) and Interface Use (line 43) are colored by specified color
  12. Language specific color
    1. Select language Java
    2. Set color/fonts for Javadoc HTML tag
    • EXPECTED RESULT: HTML tags in javadoc (line 28) has correct color
  13. Language specific color
    1. Select language Java
    2. Set color/fonts for Keyword and Keyword directive
    • EXPECTED RESULT: All keywords (as public, void, class ...) and keyword directives (as return ...) are colored by specific color
  1. Language specific color
    1. Select language Java
    2. Set color/fonts for Local Variable Declaration and Local Variable Use
    • EXPECTED RESULT: The Local Variable Declaration on lines 38, 40, 42 45 and Local Variable Use on line 46 are colored by specified color
  1. Language specific color
    1. Select language Java
    2. Set color/fonts for Mark Occurrence
    3. Put cursor on 'method' on line 37
    • EXPECTED RESULT: The occurrence on line 41 has correct color
  1. Language specific color
    1. Select language Java
    2. Set color/fonts for Method Declaration and Method Use
    • EXPECTED RESULT: Method Declaration (6,10,37) and Method Use (41,46) are colored by specified color
  1. Language specific color
    1. Select language Java
    2. Set color/fonts for Number
    • EXPECTED RESULT: Numbers (52,53) have correct color
  1. Language specific color
    1. Select language Java
    2. Set color/fonts for Operator and Separator
    • {{{1}}}
  1. Language specific color
    1. Select language Java
    2. Set color/fonts for Package Private Element, Private Element, Protected Element and Public Element
    • EXPECTED RESULT: See if elements with each of the access modifier have correct color
  1. Language specific color
    1. Select language Java
    2. Set color/fonts for Parameter Declaration and Parameter Use
    • EXPECTED RESULT: Parameter Declaration (51) and Parameter Use (54) have correct color
  1. Language specific color
    1. Select language Java
    2. Set color/fonts for Static Element
    • EXPECTED RESULT: Static Element (line 5, 16, 18, 21, 23, 43,44, 46) have correct color
  1. Language specific color
    1. Select language Java
    2. Set color/fonts for String, String Escape Sequence and String Escape Sequence (Invalid)
    • EXPECTED RESULT: String (line 40), String Escape Sequence (\n on line 40) and invalid String Escape Sequence (\d on line 40) have correct color
  1. Language specific color
    1. Select language Java
    2. Set color/fonts for Unused Element
    • EXPECTED RESULT: All unused private elements (25, 38, 43,44,52) have correct color
  1. Language specific color
    1. Select language Java
    2. Set color/fonts for Whitespace
    • EXPECTED RESULT: All white spaces - space, tab - are colored by specified color (note that there are no visible color, so setting foreground color does nothing)

Test suite: Fonts & Colors - highlighting

    • EXPECTED RESULT:

Test suite: Fonts & Colors - annotations

    • EXPECTED RESULT:

Test suite: Fonts & Colors - profiles

    • EXPECTED RESULT:

Test suite: Keymaps - setting shortcuts

    • EXPECTED RESULT:

Test suite: Keymaps - profiles

    • EXPECTED RESULT:
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo