~mardy/unity-webapps-qml/lp1427649-rtm

« back to all changes in this revision

Viewing changes to tests/unit/test_plugin/tst_manifestParser.cpp

  • Committer: CI bot
  • Author(s): Alexandre Abreu
  • Date: 2014-05-06 17:26:52 UTC
  • mfrom: (112.1.3 latest)
  • Revision ID: ps-jenkins@lists.canonical.com-20140506172652-i5u40rlivc449gso
Add UA override capabilities to webapps; clean some code and tests, Fixes: 1245465

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
        verifyChrome(filename, result);
119
119
    }
120
120
}
 
121
 
 
122
void ManifestParserTest::testParseUserOverride()
 
123
{
 
124
    UnityWebappsAppManifestParser parser;
 
125
    ManifestFileInfoOption result =
 
126
            parser.parse(manifestsDataPath + "/valid-with-ua-override.json");
 
127
    QVERIFY(result.value().userAgentOverride == "My Override");
 
128
}