| 1 |
// SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
/* global direct_address, bus_address, */ |
| 3 |
import { common_dbus_tests, dbus_track_tests } from "./test-dbus-common.js"; |
| 4 |
|
| 5 |
import QUnit from "qunit-tests"; |
| 6 |
|
| 7 |
/* no name */ |
| 8 |
const direct_options = { |
| 9 |
address: direct_address, |
| 10 |
bus: "none", |
| 11 |
capabilities: ["address"] |
| 12 |
}; |
| 13 |
|
| 14 |
common_dbus_tests(direct_options, null); |
| 15 |
|
| 16 |
/* with a name */ |
| 17 |
const address_options = { |
| 18 |
address: bus_address, |
| 19 |
bus: "none", |
| 20 |
capabilities: ["address"] |
| 21 |
}; |
| 22 |
common_dbus_tests(address_options, "com.redhat.Cockpit.DBusTests.Test"); |
| 23 |
dbus_track_tests(address_options, "com.redhat.Cockpit.DBusTests.Test"); |
| 24 |
|
| 25 |
QUnit.start(); |