Revision control
Copy as Markdown
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtTest
import QtLocation
TestCase {
id: testCase
name: "Supplier"
property supplier emptySupplier;
function test_empty() {
compare(emptySupplier.supplierId, "");
compare(emptySupplier.name, "");
compare(emptySupplier.url, "");
verify(emptySupplier.icon);
}
property supplier qmlSupplier
qmlSupplier {
supplierId: "test-supplier-id"
name: "Test Supplier"
}
function test_qmlConstructedSupplier() {
compare(qmlSupplier.supplierId, "test-supplier-id");
compare(qmlSupplier.name, "Test Supplier");
verify(qmlSupplier.icon);
}
}