From 01698f85787dcb7fc4c7b9f5e0f6642ffc6346ba Mon Sep 17 00:00:00 2001 From: jscholes Date: Sun, 22 Nov 2020 20:49:11 +0000 Subject: [PATCH] Generate test and review files automatically --- index.html | 6 +- review/checkbox.html | 69 +++++++++--------- review/combobox-autocomplete-both.html | 77 ++++++++++---------- review/combobox-select-only.html | 93 ++++++++++++------------ review/menubar-editor.html | 97 +++++++++++++------------- tests/combobox-select-only/scripts.js | 88 +++++++++-------------- 6 files changed, 197 insertions(+), 233 deletions(-) diff --git a/index.html b/index.html index 47bfd8566..21b4f9c5d 100644 --- a/index.html +++ b/index.html @@ -40,7 +40,7 @@

Test Patterns for Review

Index Review 26 - af45067 Change Command+Up/Down to Option+Up/Down in some commands + 0220017 Merge branch 'tests/combobox-select-only' of https://github.com/w3c/aria-at into tests/combobox-select-only @@ -48,7 +48,7 @@

Test Patterns for Review

Index Review 30 - af45067 Change Command+Up/Down to Option+Up/Down in some commands + 0220017 Merge branch 'tests/combobox-select-only' of https://github.com/w3c/aria-at into tests/combobox-select-only @@ -63,7 +63,7 @@

Test Patterns for Review

Index Review 40 - af45067 Change Command+Up/Down to Option+Up/Down in some commands + 0220017 Merge branch 'tests/combobox-select-only' of https://github.com/w3c/aria-at into tests/combobox-select-only diff --git a/review/checkbox.html b/review/checkbox.html index 25e4f80b0..d46ae0b2a 100644 --- a/review/checkbox.html +++ b/review/checkbox.html @@ -140,25 +140,22 @@ }, openListbox: function(testPageDocument){ // sets focus on and expands the Combobox testPageDocument.querySelector('[role="combobox"]').focus(); - window.setTimeout(onSelectReady, () => { - console.log('Opening listbox'); - window.selectController.updateMenuState(true) - }, 500); + testPageDocument.defaultView.selectController.updateMenuState(true); }, openListboxToApple: function(testPageDocument){ // sets focus on and expands the Combobox, and sets the focused option to 'Apple' testPageDocument.querySelector('[role="combobox"]').focus(); - window.selectController.updateMenuState(true); - window.selectController.onOptionChange(1); + testPageDocument.defaultView.selectController.updateMenuState(true); + testPageDocument.defaultView.selectController.onOptionChange(1); }, openListboxToGuava: function(testPageDocument){ // sets focus on and expands the Combobox, and sets the focused option to 'Guave' testPageDocument.querySelector('[role="combobox"]').focus(); - window.selectController.updateMenuState(true); - window.selectController.onOptionChange(11); + testPageDocument.defaultView.selectController.updateMenuState(true); + testPageDocument.defaultView.selectController.onOptionChange(11); }, openListboxToHuckleberry: function(testPageDocument){ // sets focus on and expands the Combobox, and sets the focused option to 'Huckleberry' testPageDocument.querySelector('[role="combobox"]').focus(); - window.selectController.updateMenuState(true); - window.selectController.onOptionChange(2); + testPageDocument.defaultView.selectController.updateMenuState(true); + testPageDocument.defaultView.selectController.onOptionChange(12); }, focusonfirstlink: function(testPageDocument){ // Move focus to the link just before the meunbar testPageDocument.querySelector('a').focus(); @@ -218,7 +215,7 @@

Test 1: Navigate to an unchecked checkbox in reading mode