~ubuntu-branches/ubuntu/oneiric/mozc/oneiric

« back to all changes in this revision

Viewing changes to session/ime_switch_util_test.cc

  • Committer: Bazaar Package Importer
  • Author(s): Nobuhiro Iwamatsu
  • Date: 2010-07-14 03:26:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100714032647-13qjisj6m8cm8jdx
Tags: 0.12.410.102-1
* New upstream release (Closes: #588971).
  - Add mozc-server, mozc-utils-gui and scim-mozc packages.
* Update debian/rules.
  Add --gypdir option to build_mozc.py.
* Update debian/control.
  - Bumped standards-version to 3.9.0.
  - Update description.
* Add mozc icon (Closes: #588972).
* Add patch which revises issue 18.
  ibus_mozc_issue18.patch
* kFreeBSD build support.
  support_kfreebsd.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
  {
78
78
    commands::KeyEvent key;
79
79
    KeyParser::ParseKey("HENKAN", &key);
80
 
    EXPECT_FALSE(ImeSwitchUtil::IsTurnOnInDirectMode(key));
 
80
    EXPECT_TRUE(ImeSwitchUtil::IsTurnOnInDirectMode(key));
81
81
  }
82
82
  {
83
83
    commands::KeyEvent key;
120
120
  {
121
121
    commands::KeyEvent key;
122
122
    KeyParser::ParseKey("HENKAN", &key);
 
123
    // HENKAN key in MSIME is TurnOn key while it's not in KOTOERI.
 
124
    // This is not good as a test case but effective enough to make
 
125
    // sure how it works.
 
126
    // TODO(toshiyuki): reorganize the test cases not to need such
 
127
    // tricks.
 
128
#ifdef OS_WINDOWS
 
129
    EXPECT_TRUE(ImeSwitchUtil::IsTurnOnInDirectMode(key));
 
130
#else
123
131
    EXPECT_FALSE(ImeSwitchUtil::IsTurnOnInDirectMode(key));
 
132
#endif
124
133
  }
125
134
  {
126
135
    commands::KeyEvent key;