[go: nahoru, domu]

blob: 522e3de465704bd3ab520a95e991758e808df509 [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();
})();