Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4.  
  5. /* global add_task, loadScripts, accessibleTestTask, expandedStateChecker,
  6. invokeExpandNode */
  7.  
  8. 'use strict';
  9.  
  10. loadScripts('common.js', 'role.js', 'states.js', 'events.js');
  11.  
  12. function* expandNode(browser, aID, aIsExpanded) {
  13. let checkExpandedState = expandedStateChecker(aIsExpanded, aID);
  14. yield invokeExpandNode(browser, aID, aIsExpanded);
  15. yield checkExpandedState;
  16. }
  17.  
  18. add_task(function*() {
  19. yield accessibleTestTask('doc_events_aria_statechange.html',
  20. function*(browser) {
  21. yield* expandNode(browser, 'section', true);
  22. yield* expandNode(browser, 'section', false);
  23. });
  24. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement