<commit_before>/*
 * Copyright 2016 <NAME>.a.s.
 * 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 disabledTestCasesPatterns = [
    // The following test fails, it needs to be fixed or removed:
    "test/aria/pageEngine/siteRootModule/ModelBindingTestCase.js",

    // The following test fails in all browsers except PhantomJS...
    // ... but PhantomJS is known not to correctly handle the viewport size,
    // ... and this test seems to be linked to exactly that!
    // The test needs to be fixed or removed.
    "test/aria/widgets/container/dialog/viewportResize/ViewportHugeShrinkTestCase.js"
];

var microsoftMapsTests = [
    "test/aria/map/MapManagerThreeTestCase.js",
    "test/aria/map/MapManagerTwoTestCase.js",
    "test/aria/map/Microsoft8MapProviderTestCase.js",
    "test/aria/templates/keyboardNavigation/bingCompatibility/KeyMapBingCompatibilityTestCase.js"
];

var unpackagedOnlyPatterns = [
    // The following test does not work in packaged mode (because it tries to open a file from
    // the bootstrap, but it is packaged, and bootstrap files are not in the map)
    "test/aria/core/JsonValidatorTestCase.js"
];

var unpackagedPatterns = [
    // Includes a simple template test in unpackaged mode, to check that the framework
    // can correctly load a template in unpackaged mode
    "test/aria/widgets/form/datepicker/pickdate/PickDateTestCase.js"
].concat(unpackagedOnlyPatterns);

var jawsOnlyPatterns = [
    "test/**/*JawsTestCase.js"
];

var noFlashExcludesPatterns = [
    "test/aria/core/io/IOXDRTestCase.js"
];

var playwrightExcludesPatterns = [
    "test/aria/dom/basic/DomTestCase.js",
    "test/aria/templates/events/delegate/DelegateTestCase.js",
    "test/aria/widgets/container/dialog/container/ResizeDialogContainerRobotTestCase.js",
    "test/aria/widgets/container/dialog/indicators/DialogTestCase.js",
    "test/aria/widgets/form/select/onBlur/SelectOnBlurSimpleRobotTestCase.js",
    "test/aria/widgets/verticalAlign/VerticalAlignTestCase.js",
    "test/aria/utils/overlay/loadingIndicator/scrollbar/ScrollbarTestCase.js"
];

var noplaywrightExcludesPatterns = [
    // Excluded on travis-ci because there is no window manager (and a <select> needs one):
    "test/aria/widgets/form/select/onBlur/SelectOnBlurSimpleRobotTestCase.js"
];

// Some tests do not succeed in some browsers, and are listed here.
// They should be investigated and fixed.
var generalBrowserExcludes = {
    "Firefox 3": [
        "test/aria/map/Google3MapProviderTestCase.js",
        "test/aria/utils/HistoryTestCase.js",
        "test/aria/core/io/JSONPTestCase.js",
        "test/aria/pageEngine/pageEngine/externalHashNavigation/ExternalHashNavigationTestCase.js",
        "test/aria/pageEngine/pageEngine/PageEngineFiveTestCase.js",
        "test/aria/pageEngine/pageEngine/PageEngineFourTestCase.js",
        "test/aria/pageEngine/utils/HashManagerTestCase.js",
        "test/aria/pageEngine/utils/HistoryManagerTestCase.js",
        "test/aria/storage/localStorage/EventIssueTestCase.js",
        "test/aria/utils/hashManager/HashManagerOneTestCase.js"
    ].concat(microsoftMapsTests),
    "Firefox 11": [
        "test/aria/map/Google3MapProviderTestCase.js",
        "test/aria/core/io/JSONPTestCase.js",
        "test/aria/pageEngine/pageEngine/PageEngineSixTestCase.js",
        "test/aria/pageEngine/pageEngine/PageEngineTemplateDisposalWithAnimationsTestCase.js",
        "test/aria/pageEngine/utils/HashManagerTestCase.js",
        "test/aria/pageEngine/utils/HistoryManagerTestCase.js",
        "test/aria/utils/css/AnimationsTestCase.js"
    ],
    "Firefox": [
        "test/aria/utils/events/scroll/OnscrollRobotTestCase.js",

        // The following tests fail on Firefox >= 49 because the default action for SHIFT-F10 can no longer be prevented:
        "test/aria/widgets/wai/dropdown/AutoCompleteDropdownTogglingRobotTestCase.js",
        "test/aria/widgets/wai/dropdown/DatePickerDropdownTogglingRobotTestCase.js",
        "test/aria/widgets/wai/dropdown/MultiAutoCompleteDropdownTogglingRobotTestCase.js",
        "test/aria/widgets/wai/dropdown/SelectBoxDropdownTogglingRobotTestCase.js",
        "test/aria/widgets/wai/dropdown/SelectDropdownTogglingRobotTestCase.js",
        "test/aria/widgets/wai/dropdown/MultiSelectDropdownTogglingRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/dialog/escape/DialogEscapeAutoCompleteRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/dialog/escape/DialogEscapeDatePickerRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/dialog/escape/DialogEscapeMultiAutoCompleteRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/dialog/escape/DialogEscapeMultiSelectRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/dialog/escape/DialogEscapeSelectBoxRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/dialog/escape/DialogEscapeSelectRobotTestCase.js",
        "test/aria/widgets/form/multiselect/escapeKey/MultiSelectRobotTestCase.js"
    ],
    "Chrome": [
        "test/aria/utils/mouse/MouseDragKoRobotTestCase.js"
    ],
    "Safari": [
        // Currently failing in Safari 12.1.1, an investigation should be done:
        "test/aria/utils/HistoryTestCase.js",
        "test/aria/pageEngine/utils/HashManagerTestCase.js",
        "test/aria/pageEngine/utils/HistoryManagerTestCase.js",
        "test/aria/html/textarea/autoselect/AutoselectRobotTestCase.js",
        "test/aria/html/textinput/autoselect/AutoselectRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/actionWidgets/ActionWidgetsRobotTestCase.js",
        "test/aria/widgets/wai/tabs/Group4RobotTestCase.js",
        "test/aria/widgets/wai/tabs/Group3RobotTestCase.js",
        // Excluded because a <select> in Safari behaves differently (pressing the down arrow key opens the
        // dropdown instead of changing the selection):
        "test/aria/widgets/form/select/onBlur/SelectOnBlurSimpleRobotTestCase.js"
    ],
    "IE 7": [
        "test/aria/utils/domNavigationManager/DomNavigationManagerRobotTestCase.js"
    ],
    "IE 8": [
        "test/aria/widgets/container/dialog/container/ResizeDialogContainerRobotTestCase.js",
        "test/aria/html/textinput/placeholder/PlaceholderTestCase.js",
        "test/aria/map/Google3MapProviderTestCase.js",
        "test/aria/modules/RequestMgrTimeoutTestCase.js",
        "test/aria/storage/localStorage/EventIssueTestCase.js",
        "test/aria/utils/dragdrop/DragConstraintRobotTestCase.js",
        "test/aria/utils/dragdrop/DragProxyRobotTestCase.js",
        "test/aria/utils/hashManager/HashManagerOneTestCase.js",
        "test/aria/utils/mouse/MouseDragKoRobotTestCase.js",
        "test/aria/widgets/form/labelClick/FocusTestCase.js",
        "test/aria/widgets/wai/tabs/Group3RobotTestCase.js",
        "test/aria/widgets/wai/tabs/Group4RobotTestCase.js",
        "test/aria/widgets/action/link/disabled/LinkDisabledTestCase.js",
        "test/aria/widgets/form/multiselect/downArrowKeyPreventDef/MSDownArrowKeyRobotTestCase.js",
        "test/aria/widgets/form/textinput/helpText/HelpTextTestCase.js",
        "test/aria/widgets/container/dialog/restoreFocusOnClose/*.js"
    ].concat(microsoftMapsTests),
    "IE 9": [
        "test/aria/map/Google3MapProviderTestCase.js",
        "test/aria/widgets/container/dialog/resize/dontSelectOnResize/DialogResizeDontSelectRobotTestCase.js",
        "test/aria/utils/hashManager/HashManagerOneTestCase.js",
        "test/aria/utils/mouse/MouseDragKoRobotTestCase.js",
        "test/aria/widgets/wai/dropdown/DatePickerDropdownTogglingRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/dialog/escape/DialogEscapeDatePickerRobotTestCase.js",
        "test/aria/widgets/wai/popup/dialog/modal/ThirdRobotTestCase.js",
        "test/aria/widgets/wai/popup/dialog/modal/FourthRobotTestCase.js",
        "test/aria/widgets/wai/popup/dialog/modal/SecondRobotTestCase.js",
        // The following 3 tests were successful in 1.7.21 and started to fail in 1.7.22:
        "test/aria/html/textinput/placeholder/PlaceholderTestCase.js",
        "test/aria/widgets/dropdown/touchDevices/AutoCompleteNoExpButPopupDesktopRobotTestCase.js",
        "test/aria/widgets/dropdown/touchDevices/AutoCompleteNoExpButPopupTouchRobotTestCase.js"
    ].concat(microsoftMapsTests),
    "IE 10": [
        "test/aria/utils/mouse/MouseDragKoRobotTestCase.js",
        "test/aria/widgets/dropdown/touchDevices/MultiSelectPopupTouchRobotTestCase.js"
    ],
    "IE 11": [
        "test/aria/storage/localStorage/EventIssueTestCase.js",
        "test/aria/utils/mouse/MouseDragKoRobotTestCase.js",
        "test/aria/widgets/form/multiautocomplete/navigation/input/InputFieldRobotTestCase.js"
    ],
    "IE 11 [JAWS16]": [
        "test/aria/widgets/wai/errorlist/binding/ErrorListBindingJawsTestCase.js"
    ],
    "IE 11 [JAWS18]": [],
    "Edge": [
        "test/aria/utils/bridge/BridgeTestCase.js",
        "test/aria/storage/localStorage/EventIssueTestCase.js",
        "test/aria/widgets/container/dialog/container/FocusDialogContainerRobotTestCase.js",
        "test/aria/widgets/form/multiselect/downArrowKeyPreventDef/MSDownArrowKeyRobotTestCase.js",
        "test/aria/widgets/form/multiselect/focusMove/Issue968RobotTestCase.js",
        "test/aria/widgets/container/dialog/resize/test3/DialogOnResizeRobotTestCase.js"
    ]
};

var testSkinOnlyPatterns = [
    "test/aria/widgets/skin/ExternalCSSTestCase.js",
    "test/aria/widgets/icon/fontIcon/FontIconTestCase.js",
    "test/aria/widgets/form/widgetsfont/WidgetsFontTestCase.js",
    "test/aria/widgets/form/fullWidth/errorLog/ErrorLogTestCase.js"
];

var testSkinPatterns = [
    "test/aria/widgets/form/fullWidth/FullWidthTestCase.js"
].concat(testSkinOnlyPatterns);

var flatSkinOnlyPatterns = [
    "test/aria/widgets/skin/dialogTitleBar/DialogTitleBarTestCase.js"<commit_msg>fix/test: update Edge excluded tests now that it is based on Chromium<commit_after>/*
 * Copyright 2016 Amadeus s.a.s.
 * 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 disabledTestCasesPatterns = [
    // The following test fails, it needs to be fixed or removed:
    "test/aria/pageEngine/siteRootModule/ModelBindingTestCase.js",

    // The following test fails in all browsers except PhantomJS...
    // ... but PhantomJS is known not to correctly handle the viewport size,
    // ... and this test seems to be linked to exactly that!
    // The test needs to be fixed or removed.
    "test/aria/widgets/container/dialog/viewportResize/ViewportHugeShrinkTestCase.js"
];

var microsoftMapsTests = [
    "test/aria/map/MapManagerThreeTestCase.js",
    "test/aria/map/MapManagerTwoTestCase.js",
    "test/aria/map/Microsoft8MapProviderTestCase.js",
    "test/aria/templates/keyboardNavigation/bingCompatibility/KeyMapBingCompatibilityTestCase.js"
];

var unpackagedOnlyPatterns = [
    // The following test does not work in packaged mode (because it tries to open a file from
    // the bootstrap, but it is packaged, and bootstrap files are not in the map)
    "test/aria/core/JsonValidatorTestCase.js"
];

var unpackagedPatterns = [
    // Includes a simple template test in unpackaged mode, to check that the framework
    // can correctly load a template in unpackaged mode
    "test/aria/widgets/form/datepicker/pickdate/PickDateTestCase.js"
].concat(unpackagedOnlyPatterns);

var jawsOnlyPatterns = [
    "test/**/*JawsTestCase.js"
];

var noFlashExcludesPatterns = [
    "test/aria/core/io/IOXDRTestCase.js"
];

var playwrightExcludesPatterns = [
    "test/aria/dom/basic/DomTestCase.js",
    "test/aria/templates/events/delegate/DelegateTestCase.js",
    "test/aria/widgets/container/dialog/container/ResizeDialogContainerRobotTestCase.js",
    "test/aria/widgets/container/dialog/indicators/DialogTestCase.js",
    "test/aria/widgets/form/select/onBlur/SelectOnBlurSimpleRobotTestCase.js",
    "test/aria/widgets/verticalAlign/VerticalAlignTestCase.js",
    "test/aria/utils/overlay/loadingIndicator/scrollbar/ScrollbarTestCase.js"
];

var noplaywrightExcludesPatterns = [
    // Excluded on travis-ci because there is no window manager (and a <select> needs one):
    "test/aria/widgets/form/select/onBlur/SelectOnBlurSimpleRobotTestCase.js"
];

// Some tests do not succeed in some browsers, and are listed here.
// They should be investigated and fixed.
var generalBrowserExcludes = {
    "Firefox 3": [
        "test/aria/map/Google3MapProviderTestCase.js",
        "test/aria/utils/HistoryTestCase.js",
        "test/aria/core/io/JSONPTestCase.js",
        "test/aria/pageEngine/pageEngine/externalHashNavigation/ExternalHashNavigationTestCase.js",
        "test/aria/pageEngine/pageEngine/PageEngineFiveTestCase.js",
        "test/aria/pageEngine/pageEngine/PageEngineFourTestCase.js",
        "test/aria/pageEngine/utils/HashManagerTestCase.js",
        "test/aria/pageEngine/utils/HistoryManagerTestCase.js",
        "test/aria/storage/localStorage/EventIssueTestCase.js",
        "test/aria/utils/hashManager/HashManagerOneTestCase.js"
    ].concat(microsoftMapsTests),
    "Firefox 11": [
        "test/aria/map/Google3MapProviderTestCase.js",
        "test/aria/core/io/JSONPTestCase.js",
        "test/aria/pageEngine/pageEngine/PageEngineSixTestCase.js",
        "test/aria/pageEngine/pageEngine/PageEngineTemplateDisposalWithAnimationsTestCase.js",
        "test/aria/pageEngine/utils/HashManagerTestCase.js",
        "test/aria/pageEngine/utils/HistoryManagerTestCase.js",
        "test/aria/utils/css/AnimationsTestCase.js"
    ],
    "Firefox": [
        "test/aria/utils/events/scroll/OnscrollRobotTestCase.js",

        // The following tests fail on Firefox >= 49 because the default action for SHIFT-F10 can no longer be prevented:
        "test/aria/widgets/wai/dropdown/AutoCompleteDropdownTogglingRobotTestCase.js",
        "test/aria/widgets/wai/dropdown/DatePickerDropdownTogglingRobotTestCase.js",
        "test/aria/widgets/wai/dropdown/MultiAutoCompleteDropdownTogglingRobotTestCase.js",
        "test/aria/widgets/wai/dropdown/SelectBoxDropdownTogglingRobotTestCase.js",
        "test/aria/widgets/wai/dropdown/SelectDropdownTogglingRobotTestCase.js",
        "test/aria/widgets/wai/dropdown/MultiSelectDropdownTogglingRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/dialog/escape/DialogEscapeAutoCompleteRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/dialog/escape/DialogEscapeDatePickerRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/dialog/escape/DialogEscapeMultiAutoCompleteRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/dialog/escape/DialogEscapeMultiSelectRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/dialog/escape/DialogEscapeSelectBoxRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/dialog/escape/DialogEscapeSelectRobotTestCase.js",
        "test/aria/widgets/form/multiselect/escapeKey/MultiSelectRobotTestCase.js"
    ],
    "Chrome": [
        "test/aria/utils/mouse/MouseDragKoRobotTestCase.js"
    ],
    "Safari": [
        // Currently failing in Safari 12.1.1, an investigation should be done:
        "test/aria/utils/HistoryTestCase.js",
        "test/aria/pageEngine/utils/HashManagerTestCase.js",
        "test/aria/pageEngine/utils/HistoryManagerTestCase.js",
        "test/aria/html/textarea/autoselect/AutoselectRobotTestCase.js",
        "test/aria/html/textinput/autoselect/AutoselectRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/actionWidgets/ActionWidgetsRobotTestCase.js",
        "test/aria/widgets/wai/tabs/Group4RobotTestCase.js",
        "test/aria/widgets/wai/tabs/Group3RobotTestCase.js",
        // Excluded because a <select> in Safari behaves differently (pressing the down arrow key opens the
        // dropdown instead of changing the selection):
        "test/aria/widgets/form/select/onBlur/SelectOnBlurSimpleRobotTestCase.js"
    ],
    "IE 7": [
        "test/aria/utils/domNavigationManager/DomNavigationManagerRobotTestCase.js"
    ],
    "IE 8": [
        "test/aria/widgets/container/dialog/container/ResizeDialogContainerRobotTestCase.js",
        "test/aria/html/textinput/placeholder/PlaceholderTestCase.js",
        "test/aria/map/Google3MapProviderTestCase.js",
        "test/aria/modules/RequestMgrTimeoutTestCase.js",
        "test/aria/storage/localStorage/EventIssueTestCase.js",
        "test/aria/utils/dragdrop/DragConstraintRobotTestCase.js",
        "test/aria/utils/dragdrop/DragProxyRobotTestCase.js",
        "test/aria/utils/hashManager/HashManagerOneTestCase.js",
        "test/aria/utils/mouse/MouseDragKoRobotTestCase.js",
        "test/aria/widgets/form/labelClick/FocusTestCase.js",
        "test/aria/widgets/wai/tabs/Group3RobotTestCase.js",
        "test/aria/widgets/wai/tabs/Group4RobotTestCase.js",
        "test/aria/widgets/action/link/disabled/LinkDisabledTestCase.js",
        "test/aria/widgets/form/multiselect/downArrowKeyPreventDef/MSDownArrowKeyRobotTestCase.js",
        "test/aria/widgets/form/textinput/helpText/HelpTextTestCase.js",
        "test/aria/widgets/container/dialog/restoreFocusOnClose/*.js"
    ].concat(microsoftMapsTests),
    "IE 9": [
        "test/aria/map/Google3MapProviderTestCase.js",
        "test/aria/widgets/container/dialog/resize/dontSelectOnResize/DialogResizeDontSelectRobotTestCase.js",
        "test/aria/utils/hashManager/HashManagerOneTestCase.js",
        "test/aria/utils/mouse/MouseDragKoRobotTestCase.js",
        "test/aria/widgets/wai/dropdown/DatePickerDropdownTogglingRobotTestCase.js",
        "test/aria/templates/keyboardNavigation/dialog/escape/DialogEscapeDatePickerRobotTestCase.js",
        "test/aria/widgets/wai/popup/dialog/modal/ThirdRobotTestCase.js",
        "test/aria/widgets/wai/popup/dialog/modal/FourthRobotTestCase.js",
        "test/aria/widgets/wai/popup/dialog/modal/SecondRobotTestCase.js",
        // The following 3 tests were successful in 1.7.21 and started to fail in 1.7.22:
        "test/aria/html/textinput/placeholder/PlaceholderTestCase.js",
        "test/aria/widgets/dropdown/touchDevices/AutoCompleteNoExpButPopupDesktopRobotTestCase.js",
        "test/aria/widgets/dropdown/touchDevices/AutoCompleteNoExpButPopupTouchRobotTestCase.js"
    ].concat(microsoftMapsTests),
    "IE 10": [
        "test/aria/utils/mouse/MouseDragKoRobotTestCase.js",
        "test/aria/widgets/dropdown/touchDevices/MultiSelectPopupTouchRobotTestCase.js"
    ],
    "IE 11": [
        "test/aria/storage/localStorage/EventIssueTestCase.js",
        "test/aria/utils/mouse/MouseDragKoRobotTestCase.js",
        "test/aria/widgets/form/multiautocomplete/navigation/input/InputFieldRobotTestCase.js"
    ],
    "IE 11 [JAWS16]": [
        "test/aria/widgets/wai/errorlist/binding/ErrorListBindingJawsTestCase.js"
    ],
    "IE 11 [JAWS18]": [],
    "Edge": [
        "test/aria/utils/mouse/MouseDragKoRobotTestCase.js"
    ]
};

var testSkinOnlyPatterns = [
    "test/aria/widgets/skin/ExternalCSSTestCase.js",
    "test/aria/widgets/icon/fontIcon/FontIconTestCase.js",
    "test/aria/widgets/form/widgetsfont/WidgetsFontTestCase.js",
    "test/aria/widgets/form/fullWidth/errorLog/ErrorLogTestCase.js"
];

var testSkinPatterns = [
    "test/aria/widgets/form/fullWidth/FullWidthTestCase.js"
].concat(testSkinOnlyPatterns);

var flatSkinOnlyPatterns = [
    "test/aria/widgets/skin/dialogTitleBar/DialogTitleBarTestCase.js"
{'fraction_non_alphanumeric': 0.11321031048623316, 'fraction_numerical': 0.005272407732864675, 'mean_word_length': 3.7761716017719746, 'pattern_counts': {'":': 26, '<': 8, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4089612', 'n_tokens_mistral': 6378, 'n_tokens_neox': 6150, 'n_words': 880}