Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Write tests #58

Merged
merged 22 commits into from
Nov 10, 2015
Merged

Write tests #58

merged 22 commits into from
Nov 10, 2015

Commits on Oct 29, 2015

  1. Console: Ensure STDIN is defined before using it.

    Sometimes, `STDIN` is not defined when trying to start advanced
    interactions. So we must ensure that `STDIN` is correctly set.
    Hywan committed Oct 29, 2015
    Configuration menu
    Copy the full SHA
    de466b7 View commit details
    Browse the repository at this point in the history
  2. Console: Add the setTput static method.

    Now we are able to set our own instance of `Tput` class.
    Hywan committed Oct 29, 2015
    Configuration menu
    Copy the full SHA
    6e605a7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7ed67a2 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2015

  1. Configuration menu
    Copy the full SHA
    9d5ac13 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    001b415 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    651aab9 View commit details
    Browse the repository at this point in the history
  4. Window: The constructor must be private.

    Since the `Window` class is a singleton, its constructor must be
    private.
    Hywan committed Nov 10, 2015
    Configuration menu
    Copy the full SHA
    a134d4e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c93d576 View commit details
    Browse the repository at this point in the history
  6. Mouse: New constants representing pointer codes.

    Instead of using hard-coded number for pointer codes, we introduce
    constants:
    
      * `BUTTON_LEFT`,
      * `BUTTON_MIDDLE`,
      * `BUTTON_RIGHT`,
      * `BUTTON_RELEASE`,
      * `WHEEL_UP`,
      * `WHEEL_DOWN`.
    
    These codes are the ones used by the terminal.
    Hywan committed Nov 10, 2015
    Configuration menu
    Copy the full SHA
    bc62391 View commit details
    Browse the repository at this point in the history
  7. Mouse: Untrack when tracking fails.

    Instead of silently continue to loop when `stream_select` fails or timed
    out, i.e. when we no longer have a mouse input, we break the loop and
    untrack when `stream_select` fails. When it times out, we continue to
    loop.
    Hywan committed Nov 10, 2015
    Configuration menu
    Copy the full SHA
    a5bd983 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0419f78 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3082bd3 View commit details
    Browse the repository at this point in the history
  10. GetOption: Reset the $optionValue all the time.

    The first argument passed to `getOption` is a reference. Its value was
    not reset each time. Now this is fixed.
    Hywan committed Nov 10, 2015
    Configuration menu
    Copy the full SHA
    a0e4bc1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    00033a1 View commit details
    Browse the repository at this point in the history
  12. Readline: Use Console::getInput.

    The readline was previously based on `STDIN`. Now it is based on
    `Console::getInput` as every other classes in the `Hoa\Console`.
    Hywan committed Nov 10, 2015
    Configuration menu
    Copy the full SHA
    73d8c5c View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    6eb8f33 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    31a08c9 View commit details
    Browse the repository at this point in the history
  15. Terminfo: Add the xterm-256color database.

    1. We need it to test advanced part of the API,
    2. If a system is missing it, we can fallback to this database.
    Hywan committed Nov 10, 2015
    Configuration menu
    Copy the full SHA
    1d795bb View commit details
    Browse the repository at this point in the history
  16. Test: Use beforeTestMethod instead of setUp.

    As @jubianchi noticed, `setUp` runs in the parent process, no inside all
    child processes. This is what we expect.
    Hywan committed Nov 10, 2015
    Configuration menu
    Copy the full SHA
    073fdbb View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e01a6bc View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    af6e9ea View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    0e9a4cf View commit details
    Browse the repository at this point in the history