~brandontschaefer/unity/move-window-buttons-unity-shared

« back to all changes in this revision

Viewing changes to tests/test_shortcut_view.cpp

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2013-01-23 10:36:37 UTC
  • mfrom: (2919.3.60 shortcut-WS-dynamic)
  • Revision ID: tarmac-20130123103637-jm981x8jre95g5v6
ShortcutModeller: added a modeller that generates the shortcuts models for both compiz and standalone view.

Approved by Andrea Azzarone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
  EXPECT_FALSE(model->categories_per_column.changed.empty());
74
74
}
75
75
 
 
76
TEST_F(TestShortcutView, SetNullModel)
 
77
{
 
78
  view.SetModel(GetMockModel({}, 0));
 
79
  view.SetModel(nullptr);
 
80
  EXPECT_EQ(view.GetModel(), nullptr);
 
81
  EXPECT_TRUE(view.columns_layout_->GetChildren().empty());
 
82
}
 
83
 
76
84
TEST_F(TestShortcutView, SettingModelAddsColumns)
77
85
{
78
86
  auto model = GetMockModel({"Cat1", "Cat2"}, 1);