2
* This file is part of Checkbox
4
* Copyright 2014, 2015 Canonical Ltd.
7
* - Maciej Kisielewski <maciej.kisielewski@canonical.com>
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; version 3.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
/*! \brief Test verification page
24
This page asks user whether the action was completed successfully
25
See design document at: http://goo.gl/ghR9wL
29
import Ubuntu.Components 1.1
30
import QtQuick.Layouts 1.1
31
import Ubuntu.Components.Popups 0.1
36
property var test: { "name": "", "verificationDescription": "", "test_number": 0, "tests_count": 0}
38
signal testDone(var test);
40
objectName: "testVerificationPage"
41
title: i18n.tr("Verification")
52
body: test["verificationDescription"]
56
objectName: "showOutputButton"
57
visible: ((test["command"]) ? true : false)
59
Layout.fillWidth: true
62
pageStack.push(commandOutputPage);
68
objectName: "passButton"
69
unlatchedColor: UbuntuColors.green
70
Layout.fillWidth: true
71
// TRANSLATORS: this string is on a button that marks the given test as passed
74
test["outcome"] = "pass";
82
objectName: "failButton"
83
unlatchedColor: UbuntuColors.red
84
Layout.fillWidth: true
85
// TRANSLATORS: this string is on a button that marks the given test as failed
88
test["outcome"] = "fail";
94
function latchingTestDone() {
95
passButton.state = "latched";
96
failButton.state = "latched";