blob: cc50e5c142ea812f1b8c617a4c8a7336574f4c0b [file] [log] [blame]
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {checkSystemPermissions, initializeViews} from './bluetooth_internals.js';
import {BluetoothInternalsHandler} from './bluetooth_internals.mojom-webui.js';
import {loadTestModule} from './test_loader_util.js';
document.addEventListener('DOMContentLoaded', async () => {
// Using a query of "module" provides a hook for the test suite to perform
// setup actions.
const loaded = await loadTestModule();
if (!loaded) {
checkSystemPermissions(
BluetoothInternalsHandler.getRemote(), initializeViews);
}
});