~fboucault/unity-webapps-qml/crossbuild_fixes

« back to all changes in this revision

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

Improve paramater passing to launchEmbedded UI Fixes: #1417776
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013 Canonical Ltd.
 
3
 *
 
4
 * This file is part of unity-webapps-qml.
 
5
 *
 
6
 * unity-webapps-qml is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; version 3.
 
9
 *
 
10
 * unity-webapps-qml is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
1
19
import QtQuick 2.0
2
20
import QtTest 1.0
3
21
import Ubuntu.UnityWebApps 0.1
37
55
        compare(spy.count, 1, "Script has been injected");
38
56
    }
39
57
 
40
 
    function test_initAndMessageHandlerAdded() {
41
 
        setup();
42
 
 
43
 
        spy.clear();
44
 
        spy.target = mockedWebView;
45
 
        spy.signalName = "loadingStartedConnected";
46
 
 
47
 
        webapps.name = "test_initAndMessageHandlerAdded";
48
 
        webapps.bindee = mockedWebView;
49
 
 
50
 
        compare(spy.count, 1, "WebApp message connected on load started");
51
 
    }
52
 
 
53
58
    function test_initWithNoName() {
54
59
        setup();
55
60