[go: nahoru, domu]

blob: 310ccc00f2bdf51486c532c23b4e12b71fdf9882 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
TestRunner.addResult(
'Tests accessibility in the settings menu using the axe-core linter.');
await TestRunner.loadTestModule('axe_core_test_runner');
await TestRunner.loadModule('settings');
await TestRunner.loadLegacyModule('settings');
await UI.actionRegistry.action('settings.show').execute();
const tabbedPane = Settings.SettingsScreen.instance().tabbedLocation.tabbedPane();
// force tabs to update
tabbedPane.innerUpdateTabElements();
await AxeCoreTestRunner.runValidation([tabbedPane.headerElement, tabbedPane.tabsElement]);
TestRunner.completeTest();
})();