blob: a8be4dd0212094cd74bace56fbeff75cca9121e9 [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() {
await TestRunner.loadModule('axe_core_test_runner');
await TestRunner.loadModule('sources_test_runner');
TestRunner.addResult('Testing accessibility in the javascript breakpoints pane.');
await SourcesTestRunner.startDebuggerTestPromise(true);
await TestRunner.navigatePromise('../../sources/debugger/resources/set-breakpoint.html');
const sourceFrame = await SourcesTestRunner.showScriptSourcePromise('set-breakpoint.html');
TestRunner.addResult('Setting a breakpoint.');
await SourcesTestRunner.createNewBreakpoint(sourceFrame, 13, '', true)
await SourcesTestRunner.createNewBreakpoint(sourceFrame, 11, '', false)
await UI.viewManager.showView('sources.jsBreakpoints');
const breakpointsPaneElement = runtime.sharedInstance(Sources.JavaScriptBreakpointsSidebarPane).contentElement;
TestRunner.addResult('Running axe on the javascript breakpoints pane.');
await AxeCoreTestRunner.runValidation(breakpointsPaneElement);
SourcesTestRunner.completeDebuggerTest();
})();