~3v1n0/nux/rect-c++11

« back to all changes in this revision

Viewing changes to tests/nux_automated_test_framework.h

  • Committer: Tarmac
  • Author(s): Sam Spilsbury
  • Date: 2013-02-25 20:49:08 UTC
  • mfrom: (756.3.1 nux.fix_1097281)
  • Revision ID: tarmac-20130225204908-guhr92892a7uhzh3
Skip the composition key tests if the server doesn't support it so that
we don't SIGABRT when trying to use that functionality (LP: #1112321). Fixes: https://bugs.launchpad.net/bugs/1112321.

Approved by Brandon Schaefer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
  NuxAutomatedTestFramework(nux::WindowThread *window_thread);
31
31
  virtual ~NuxAutomatedTestFramework();
32
32
 
 
33
  //! Returns true if composition keys are supported by the server
 
34
  bool CompositionKeysSupported();
 
35
 
 
36
  //! Warn the developer composition keys are not supported
 
37
  void WarnCompositionKeysNotSupported();
 
38
 
33
39
  //! Initialize the testing framework.
34
40
  void Startup();
35
41
 
130
136
  int window_width_;
131
137
  int window_height_;
132
138
  bool terminate_when_test_over_;
 
139
  bool composition_keys_supported_;
133
140
 
134
141
  static int mouse_motion_time_span;    // in milliseconds
135
142
  static int mouse_click_time_span;     // in milliseconds