Index: third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-aria-1.1.js |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-aria-1.1.js b/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-aria-1.1.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..19c39e8dd5ceab3c16ba6397bc23dfccf726dddd |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-aria-1.1.js |
@@ -0,0 +1,20 @@ |
+(async function(testRunner) { |
+ let {page, session, dp} = await testRunner.startHTML(` |
+ <input data-dump aria-errormessage='err'> |
+ <h3 id='err'>This text field has an error!</h3> |
+ |
+ <img data-dump aria-details='d1 d2' aria-label='Label'> |
+ <div id='d1'>Details 1</div> |
+ <div id='d2'>Details 2</div> |
+ |
+ <button data-dump aria-keyshortcuts='Ctrl+A'>Select All</button> |
+ |
+ <input data-dump type='checkbox' aria-roledescription='Lightswitch' checked> |
+ `, ''); |
+ |
+ var dumpAccessibilityNodesBySelectorAndCompleteTest = |
+ (await testRunner.loadScript('../resources/accessibility-dumpAccessibilityNodes.js'))(testRunner, session); |
+ |
+ var msg = await dp.DOM.getDocument(); |
+ dumpAccessibilityNodesBySelectorAndCompleteTest('[data-dump]', false, msg); |
+}) |