~unity-api-team/hud/test-failures

« back to all changes in this revision

Viewing changes to tests/unit/qtgmenu/TestQtGMenu.cpp

  • Committer: Pete Woods
  • Author(s): Marcus Tomlinson
  • Date: 2014-03-20 06:46:57 UTC
  • Revision ID: marcus.tomlinson@canonical.com-20140320064657-wkhneqc37nxe4e4i
Fixed tests to use appropriate action prefixes for menu items.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
protected:
42
42
  TestQtGMenu()
43
 
      : m_importer( c_service, QDBusObjectPath( c_path ), "", QDBusObjectPath( c_path ) ),
 
43
      : m_importer( c_service, QDBusObjectPath( c_path ), "app", QDBusObjectPath( c_path ) ),
44
44
 
45
45
        m_items_changed_spy( &m_importer, SIGNAL( MenuItemsChanged() ) ),
46
46
 
376
376
 
377
377
  m_action_enabled_spy.wait();
378
378
  EXPECT_FALSE( m_action_enabled_spy.empty() );
379
 
  EXPECT_EQ( "new", m_action_enabled_spy.at( 0 ).at( 0 ).toString().toStdString() );
 
379
  EXPECT_EQ( "app.new", m_action_enabled_spy.at( 0 ).at( 0 ).toString().toStdString() );
380
380
  EXPECT_EQ( "false", m_action_enabled_spy.at( 0 ).at( 1 ).toString().toStdString() );
381
381
  m_action_enabled_spy.clear();
382
382
 
384
384
 
385
385
  m_action_enabled_spy.wait();
386
386
  EXPECT_FALSE( m_action_enabled_spy.empty() );
387
 
  EXPECT_EQ( "new", m_action_enabled_spy.at( 0 ).at( 0 ).toString().toStdString() );
 
387
  EXPECT_EQ( "app.new", m_action_enabled_spy.at( 0 ).at( 0 ).toString().toStdString() );
388
388
  EXPECT_EQ( "true", m_action_enabled_spy.at( 0 ).at( 1 ).toString().toStdString() );
389
389
  m_action_enabled_spy.clear();
390
390