~timo-jyrinki/ubuntu/trusty/maliit-framework/fix_qt52

« back to all changes in this revision

Viewing changes to tests/ft_exampleplugin/ft_exampleplugin.cpp

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo, Sergio Schvezov, Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mfrom: (1.1.2) (1.2.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130723194704-1lsy1kmlda069cea
Tags: 0.99.0+git20130615+97e8335-0ubuntu1
[ Sergio Schvezov ]
* New build from HEAD 97e8335.
* Packaging import from lp:phablet-extras/maliit-framework.

[ Ricardo Salveti de Araujo ]
* debian/control: adding vcs and fixing dependencies
* General package cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
void Ft_ExamplePlugin::testFunction_data()
45
45
{
46
46
    QTest::addColumn<QString>("testPluginPath");
47
 
    QTest::newRow("Hello world")
48
 
        << "helloworld/libcxxhelloworldplugin.so";
49
 
    QTest::newRow("Override")
50
 
        << "override/libcxxoverrideplugin.so";
 
47
//    QTest::newRow("Hello world")
 
48
//        << "helloworld/libcxxhelloworldplugin.so";
 
49
//    QTest::newRow("Override")
 
50
//        << "override/libcxxoverrideplugin.so";
51
51
}
52
52
 
53
53
void Ft_ExamplePlugin::testFunction()
54
54
{
 
55
    QSKIP("Currently there are no example plugins to test");
55
56
    QFETCH(QString, testPluginPath);
56
57
 
57
 
    MIndicatorServiceClient fakeService;
58
 
 
59
58
    const QDir pluginDir = MaliitTestUtils::isTestingInSandbox() ?
60
59
                QDir(IN_TREE_TEST_PLUGIN_DIR"/cxx") : QDir(MALIIT_TEST_PLUGINS_DIR"/examples/cxx");
61
60
    const QString pluginPath = pluginDir.absoluteFilePath(testPluginPath);
69
68
    Maliit::Plugins::InputMethodPlugin *plugin =  qobject_cast<Maliit::Plugins::InputMethodPlugin *>(pluginInstance);
70
69
    QVERIFY(plugin != 0);
71
70
 
72
 
    MaliitTestUtils::TestInputMethodHost host(fakeService, pluginId, plugin->name());
 
71
    MaliitTestUtils::TestInputMethodHost host(pluginId, plugin->name());
73
72
    plugin->createInputMethod(&host);
74
73
 
75
74
    QCOMPARE(host.lastCommit, QString("Maliit"));