Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
- /* global add_task, loadScripts, accessibleTestTask, expandedStateChecker,
- invokeExpandNode */
- 'use strict';
- loadScripts('common.js', 'role.js', 'states.js', 'events.js');
- function* expandNode(browser, aID, aIsExpanded) {
- let checkExpandedState = expandedStateChecker(aIsExpanded, aID);
- yield invokeExpandNode(browser, aID, aIsExpanded);
- yield checkExpandedState;
- }
- add_task(function*() {
- yield accessibleTestTask('doc_events_aria_statechange.html',
- function*(browser) {
- yield* expandNode(browser, 'section', true);
- yield* expandNode(browser, 'section', false);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement