How to use the ariatemplates/Aria.classDefinition function in ariatemplates

To help you get started, we’ve selected a few ariatemplates examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ariatemplates / ariatemplates / test / aria / widgets / wai / input / label / MultiSelectJawsTestCase.js View on Github external
* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

var Aria = require("ariatemplates/Aria");

module.exports = Aria.classDefinition({
    $classpath : "test.aria.widgets.wai.input.label.MultiSelectJawsTestCase",
    $extends : require("./LabelJawsBase"),
    $prototype : {
        elementsToTest : "msWaiEnabledStart",

        // The Multiselect needs extra tabs now that the icon is focusable:
        nbTabs: 4
    }
});
github ariatemplates / ariatemplates / test / aria / widgets / wai / popup / dialog / modal / RobotBase.js View on Github external
var ariaCoreBrowser = require('ariatemplates/core/Browser');
var ariaUtilsString = require('ariatemplates/utils/String');
var subst = ariaUtilsString.substitute;
var ariaUtilsDom = require('ariatemplates/utils/Dom');

var ariaPopupsPopupManager = require('ariatemplates/popups/PopupManager');

var Model = require('./Model');



////////////////////////////////////////////////////////////////////////////////
// Model: Test
////////////////////////////////////////////////////////////////////////////////

module.exports = Aria.classDefinition({
    $classpath : 'test.aria.widgets.wai.popup.dialog.modal.RobotBase',
    $extends : require('test/EnhancedRobotBase'),

    $constructor : function () {
        this.$EnhancedRobotBase.constructor.call(this);

        this.setTestEnv({
            data: Model.buildData(this.indexOfWidgetToTest),
            template: 'test.aria.widgets.wai.popup.dialog.modal.Tpl'
        });
    },

    $prototype : {
        ////////////////////////////////////////////////////////////////////////
        // Tests
        ////////////////////////////////////////////////////////////////////////
github ariatemplates / ariatemplates / test / aria / widgets / container / dialog / resize / dontSelectOnResize / DialogResizeDontSelectRobotTestCase.js View on Github external
* limitations under the License.
 */

var Aria = require('ariatemplates/Aria');

var ariaUtilsString = require('ariatemplates/utils/String');
var subst = ariaUtilsString.substitute;
var Dom = require('ariatemplates/utils/Dom');
var Browser = require('ariatemplates/core/Browser');
var Caret = require('ariatemplates/utils/Caret');

var EnhancedRobotBase = require('test/EnhancedRobotBase');



module.exports = Aria.classDefinition({
    $classpath: 'test.aria.widgets.container.dialog.resize.dontSelectOnResize.DialogResizeDontSelectRobotTestCase',
    $extends: EnhancedRobotBase,

    $prototype: {
        ////////////////////////////////////////////////////////////////////////
        // Tests
        ////////////////////////////////////////////////////////////////////////

        _getCommonData: function () {
            return this.templateCtxt._tpl.getCommonData();
        },

        runTemplateTest: function () {
            // --------------------------------------------------- destructuring

            var commonData = this._getCommonData();
github ariatemplates / ariatemplates / test / aria / widgets / wai / autoComplete / AutoCompleteGlobalNonWaiRobotTestCase.js View on Github external
* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

var Aria = require("ariatemplates/Aria");

module.exports = Aria.classDefinition({
    $classpath : "test.aria.widgets.wai.autoComplete.AutoCompleteGlobalNonWaiRobotTestCase",
    $extends : require("./AutoCompleteRobotBase"),
    $prototype: {
        myAutoCompleteId: "city1",
        myAutoCompleteAccessible: false
    }
});
github ariatemplates / ariatemplates / test / aria / widgets / wai / input / checkbox / CheckboxTestCase.js View on Github external
* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

var Aria = require("ariatemplates/Aria");

module.exports = Aria.classDefinition({
    $classpath : "test.aria.widgets.wai.input.checkbox.CheckboxTestCase",
    $extends : require("../InputBase"),
    $prototype : {
        myTemplate : "test.aria.widgets.wai.input.checkbox.CheckboxLabelTestCaseTpl"
    }
});
github ariatemplates / ariatemplates / test / aria / widgets / wai / tabs / Suite.js View on Github external
* You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

var Aria = require('ariatemplates/Aria');



module.exports = Aria.classDefinition({
    $classpath : 'test.aria.widgets.wai.tabs.Suite',
    $extends : require('ariatemplates/jsunit/TestSuite'),

    $constructor : function () {
        this.$TestSuite.constructor.call(this);

        this.addTests('test.aria.widgets.wai.tabs.Group1RobotTestCase');
        this.addTests('test.aria.widgets.wai.tabs.Group2RobotTestCase');
        this.addTests('test.aria.widgets.wai.tabs.Group3RobotTestCase');
        this.addTests('test.aria.widgets.wai.tabs.Group4RobotTestCase');
    }
});
github ariatemplates / ariatemplates / test / aria / widgets / wai / dropdown / DropdownTestSuite.js View on Github external
* You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

var Aria = require('ariatemplates/Aria');



module.exports = Aria.classDefinition({
    $classpath : 'test.aria.widgets.wai.dropdown.DropdownTestSuite',
    $extends : require('ariatemplates/jsunit/TestSuite'),

    $constructor : function () {
        this.$TestSuite.constructor.call(this);

        this.addTests('test.aria.widgets.wai.dropdown.AutoCompleteDropdownTogglingRobotTestCase');
        this.addTests('test.aria.widgets.wai.dropdown.DatePickerDropdownTogglingRobotTestCase');
        this.addTests('test.aria.widgets.wai.dropdown.MultiAutoCompleteDropdownTogglingRobotTestCase');
        this.addTests('test.aria.widgets.wai.dropdown.MultiSelectDropdownTogglingRobotTestCase');
        this.addTests('test.aria.widgets.wai.dropdown.SelectDropdownTogglingRobotTestCase');
        this.addTests('test.aria.widgets.wai.dropdown.SelectBoxDropdownTogglingRobotTestCase');
    }
});
github ariatemplates / ariatemplates / test / aria / templates / keyboardNavigation / dialog / escape / DialogEscapeSelectBoxRobotTestCase.js View on Github external
* You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

var Aria = require('ariatemplates/Aria');



module.exports = Aria.classDefinition({
    $classpath : 'test.aria.templates.keyboardNavigation.dialog.escape.DialogEscapeSelectBoxRobotTestCase',

    $extends : require('./RobotBase'),

    $statics : {
        idOfWidgetToTest: 'selectBox'
    }
});
github ariatemplates / ariatemplates / test / aria / widgets / wai / input / InputBaseTestCase.js View on Github external
* you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

var Aria = require("ariatemplates/Aria");
var AppEnvironment = require("ariatemplates/core/AppEnvironment");

module.exports = Aria.classDefinition({
    $classpath : "test.aria.widgets.wai.input.InputBaseTestCase",
    $extends : require("ariatemplates/jsunit/TemplateTestCase"),
    $constructor : function () {
        this.$TemplateTestCase.constructor.call(this);
        this.setTestEnv({
            template : this.myTemplate
        });
    },
    $prototype : {
        run : function () {
            AppEnvironment.setEnvironment({
                appSettings : {
                    waiAria : null
                }
            }, {
                scope : this,
github ariatemplates / ariatemplates / test / aria / widgets / wai / popup / dialog / titleTag / DialogTitleTagJawsTestCase.js View on Github external
* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

var Aria = require("ariatemplates/Aria");

module.exports = Aria.classDefinition({
    $classpath : "test.aria.widgets.wai.popup.dialog.titleTag.DialogTitleTagJawsTestCase",
    $extends : require("ariatemplates/jsunit/JawsTestCase"),

    $constructor : function() {
        this.$JawsTestCase.constructor.call(this);
        this.setTestEnv({
            template : "test.aria.widgets.wai.popup.dialog.titleTag.DialogTitleTagTpl"
        });
     },

    $prototype : {

        skipClearHistory: true,

        runTemplateTest : function () {
            this.execute([