diff --git a/index.html b/index.html index c0d92baf1..00017b529 100644 --- a/index.html +++ b/index.html @@ -40,7 +40,7 @@

Test Patterns for Review

Index Review 26 - db93fd4 Generate test files again + d02dd7e Regenerate test files @@ -48,22 +48,30 @@

Test Patterns for Review

Index Review 30 - db93fd4 Generate test files again + d02dd7e Regenerate test files + + combobox-select-only + Index + Review + 38 + + menu-button-actions-active-descendant Index Review 26 - + d02dd7e Regenerate test files + menubar-editor Index Review 40 - db93fd4 Generate test files again + d02dd7e Regenerate test files @@ -71,7 +79,7 @@

Test Patterns for Review

Index Review 29 - db93fd4 Generate test files again + d02dd7e Regenerate test files @@ -79,7 +87,7 @@

Test Patterns for Review

Index Review 29 - db93fd4 Generate test files again + d02dd7e Regenerate test files diff --git a/review/checkbox.html b/review/checkbox.html index 7e7c8cf65..62f69a9c9 100644 --- a/review/checkbox.html +++ b/review/checkbox.html @@ -128,6 +128,34 @@ cb.filter = cb.comboboxNode.value; cb.filterOptions(); cb.open(); +}, moveFocusAfterCombobox: function(testPageDocument){ + // sets focus on a link after the Combobox + testPageDocument.querySelector('#afterlink').focus(); +}, moveFocusBeforeCombobox: function(testPageDocument){ + // sets focus on a link before the Combobox + testPageDocument.querySelector('#beforelink').focus(); +}, moveFocusToCombobox: function(testPageDocument){ + // sets focus on the combobox + testPageDocument.querySelector('[role="combobox"]').focus(); +}, openListbox: function(testPageDocument){ + // sets focus on and expands the Combobox + testPageDocument.querySelector('[role="combobox"]').focus(); + 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(); + 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(); + 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(); + testPageDocument.defaultView.selectController.updateMenuState(true); + testPageDocument.defaultView.selectController.onOptionChange(12); }, openMenuAndSetFocusToFirstItem: function(testPageDocument){ // opens the menu, and sets focus on 'Action 1' testPageDocument.defaultView.menuController.openPopup(); @@ -259,7 +287,7 @@

Test 1: Navigate to an unchecked checkbox in reading mode