~saviq/unity/phablet-mods.bump-release

« back to all changes in this revision

Viewing changes to tests/test_session_controller.cpp

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2013-03-19 22:32:11 UTC
  • mfrom: (3227.1.12 shutdown-fixes)
  • Revision ID: tarmac-20130319223211-msjn1dme4rse2nr9
SessionController: set the view's default action button as key-focus area on init. Fixes: https://bugs.launchpad.net/bugs/1155562.

Approved by PS Jenkins bot, Andrea Azzarone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
  controller.Show(GetParam());
71
71
  EXPECT_TRUE(controller.Visible());
72
72
  EXPECT_EQ(controller.view_->mode(), GetParam());
73
 
  EXPECT_EQ(nux::GetWindowCompositor().GetKeyFocusArea(), controller.view_.GetPointer());
 
73
  EXPECT_EQ(nux::GetWindowCompositor().GetKeyFocusArea(), controller.view_->key_focus_area());
74
74
  EXPECT_TRUE(controller.view_->live_background());
75
75
}
76
76