// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_ACCESSIBILITY_PLATFORM_INSPECT_AX_INSPECT_SCENARIO_H_ #define UI_ACCESSIBILITY_PLATFORM_INSPECT_AX_INSPECT_SCENARIO_H_ #include <optional> #include <string> #include <string_view> #include <vector> #include "base/component_export.h" #include "ui/accessibility/platform/inspect/ax_inspect.h" namespace base { class FilePath; } namespace ui { class AXScriptInstruction; // Describes the test execution flow, which is parsed from a sequence // of testing directives (instructions). The testing directives are typically // found in a testing file in the comment section. For example, such section // in a dump_tree HTML test file will instruct to wait for 'bananas' text in // a document and then dump an accessible tree which includes aria-live property // on all platforms: // <!-- // @WAIT-FOR:bananas // @MAC-ALLOW:AXARIALive // @WIN-ALLOW:live* // @UIA-WIN-ALLOW:LiveSetting* // @BLINK-ALLOW:live* // @BLINK-ALLOW:container* // @AURALINUX-ALLOW:live* // --> class COMPONENT_EXPORT(AX_PLATFORM) AXInspectScenario { … }; } // namespace ui #endif // UI_ACCESSIBILITY_PLATFORM_INSPECT_AX_INSPECT_SCENARIO_H_