Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-aria-1.1.js

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+})

Powered by Google App Engine
This is Rietveld 408576698