blob: 2b46552f07d79fb3b490e5b47376350ff2046a55 [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('Testing a11y in performance panel - main flamechart.');
await TestRunner.loadModule('axe_core_test_runner');
await TestRunner.loadModule('performance_test_runner');
await TestRunner.showPanel('timeline');
await PerformanceTestRunner.runPerfTraceWithReload();
const mainFlameChartElement = await PerformanceTestRunner.getMainFlameChartElement();
await AxeCoreTestRunner.runValidation(mainFlameChartElement);
TestRunner.completeTest();
})();