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

« back to all changes in this revision

Viewing changes to tests/unit/test_qml/tst_cleanup.qml

  • 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:
47
47
    function createWebAppsDispatcherWithSimpleBackend(mockedwebview) {
48
48
        var simple_backend = {This: { Is: { A: {Backend: function (args) { mockedWebView.called(args) } } } } };
49
49
 
50
 
        var bindeeProxies = UnityWebAppsUtils.makeProxiesForQtWebViewBindee(mockedwebview);
51
 
        return new UnityWebAppsJs.UnityWebApps(null,
52
 
                                               bindeeProxies,
53
 
                                               simple_backend,
54
 
                                               []);
 
50
        var bindeeProxies = UnityWebAppsUtils.makeProxiesForWebViewBindee(mockedwebview);
 
51
        var bridge = new UnityWebAppsJs.UnityWebApps(null, bindeeProxies);
 
52
        bridge.setBackends(simple_backend);
 
53
        return bridge;
55
54
    }
56
55
 
57
56
    function test_cleanupOnce() {