~mhr3/unity-scopes-shell/test-empty-department

« back to all changes in this revision

Viewing changes to tests/resultstest.cpp

  • Committer: CI bot
  • Author(s): Michal Hruby
  • Date: 2014-06-26 11:07:36 UTC
  • mfrom: (102.1.5 unity-scopes-shell)
  • Revision ID: ps-jenkins@lists.canonical.com-20140626110736-9aowzzrrg8967rdz
Implemented customizations property as per latest unity-api. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
        QCOMPARE(m_scope->visible(), true);
178
178
        QCOMPARE(m_scope->searchQuery(), QString());
179
179
 
 
180
        QVariantMap customizations(m_scope->customizations());
 
181
        QVERIFY(customizations.size() > 0);
 
182
        QCOMPARE(static_cast<QMetaType::Type>(customizations["page-header"].type()), QMetaType::QVariantMap);
 
183
        QVariantMap headerCustomizations(customizations["page-header"].toMap());
 
184
        QCOMPARE(headerCustomizations["logo"], QVariant("http://assets.ubuntu.com/sites/ubuntu/1110/u/img/logos/logo-ubuntu-orange.svg"));
 
185
        QCOMPARE(headerCustomizations["foreground-color"], QVariant("white"));
 
186
        QCOMPARE(headerCustomizations["background"], QVariant("color://black"));
 
187
        QCOMPARE(customizations["shape-images"], QVariant(false));
 
188
 
180
189
        QCOMPARE(m_scope->isActive(), false);
181
190
        m_scope->setActive(true);
182
191
        QCOMPARE(m_scope->isActive(), true);
644
653
};
645
654
 
646
655
QTEST_GUILESS_MAIN(ResultsTest)
647
 
#include <resultstest.moc>
 
 
b'\\ No newline at end of file'
 
656
#include <resultstest.moc>