# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.

WEB_PLATFORM_TESTS_MANIFESTS += [
    ('meta/MANIFEST.json', 'tests/'),
    ('mozilla/meta/MANIFEST.json', 'mozilla/tests/')
]

TEST_HARNESS_FILES['web-platform'] += [
    'mach_commands_base.py',
    'mach_test_package_commands.py',
    'outbound/**',
    'runtests.py',
    'wptrunner.ini'
]

TEST_HARNESS_FILES['web-platform'].certs = [
    'certs/cacert.pem',
    'certs/web-platform.test.key',
    'certs/web-platform.test.pem',
]

with Files("**"):
    SCHEDULES.exclusive = [
        'web-platform-tests',
        'web-platform-tests-reftests',
        'web-platform-tests-wdspec',
    ]

with Files("moz.build"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("README.md"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("wptrunner.ini"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("meta/**"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("products/README"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("outbound/README"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("outbound/meta/**"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("outbound/tests/placeholder"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("mozilla/README"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("mozilla/meta/**"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("mozilla/tests/dom/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("mozilla/tests/editor/**"):
    BUG_COMPONENT = ("Core", "Editor")

with Files("mozilla/tests/fetch/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("mozilla/tests/focus/**"):
    BUG_COMPONENT = ("Core", "Editor")

with Files("mozilla/tests/html/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("mozilla/tests/html/semantics/forms/**"):
    BUG_COMPONENT = ("Core", "Layout: Form Controls")

with Files("mozilla/tests/html/semantics/scripting-1/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("mozilla/tests/placeholder"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("mozilla/tests/wasm/**"):
    BUG_COMPONENT = ("Core", "JavaScript Engine: JIT")

with Files("update/**"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("certs/**"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("mach*"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("*.py"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/*.md"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/**"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")
    SCHEDULES.inclusive += ['test-verify-wpt']

with Files("tests/LICENSE"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/check_stability.ini"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/lint.whitelist"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/serve.py"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/testharness_runner.html"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/update-built-tests.sh"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/wpt"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/wpt.py"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")


with Files("tests/2dcontext/**"):
    BUG_COMPONENT = ("Core", "Canvas: 2D")

with Files("tests/FileAPI/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/IndexedDB/**"):
    BUG_COMPONENT = ("Core", "DOM: IndexedDB")

with Files("tests/WebCryptoAPI/**"):
    BUG_COMPONENT = ("Core", "DOM: Security")

with Files("tests/WebIDL/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/xhr/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/accelerometer/**"):
    BUG_COMPONENT = ("Core", "DOM: Device Interfaces")

with Files("tests/ambient-light/**"):
    BUG_COMPONENT = ("Core", "DOM: Device Interfaces")

with Files("tests/annotation-model/**"):
    BUG_COMPONENT = ("Toolkit", "Places")

with Files("tests/annotation-protocol/**"):
    BUG_COMPONENT = ("Toolkit", "Places")

with Files("tests/annotation-vocab/**"):
    BUG_COMPONENT = ("Toolkit", "Places")

with Files("tests/apng/**"):
    BUG_COMPONENT = ("Core", "ImageLib")

with Files("tests/audio-output/**"):
    BUG_COMPONENT = ("Core", "Audio/Video: Playback")

with Files("tests/background-fetch/**"):
    BUG_COMPONENT = ("Core", "DOM: Service Workers")

with Files("tests/battery-status/**"):
    BUG_COMPONENT = ("Core", "DOM: Device Interfaces")

with Files("tests/beacon/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/bluetooth/**"):
    BUG_COMPONENT = ("Core", "DOM: Device Interfaces")

with Files("tests/clear-site-data/**"):
    BUG_COMPONENT = ("Core", "DOM: Security")

with Files("tests/clipboard-apis/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/common/**"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

# Appears to be testing -webkit specific css properties
with Files("tests/compat/**"):
    BUG_COMPONENT = ("Core", "Layout")

with Files("tests/conformance-checkers/**"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/console/**"):
    BUG_COMPONENT = ("DevTools", "Console")

with Files("tests/content-security-policy/**"):
    BUG_COMPONENT = ("Core", "DOM: Security")

with Files("tests/cookies/**"):
    BUG_COMPONENT = ("Core", "Networking: Cookies")

with Files("tests/core-aam/**"):
    BUG_COMPONENT = ("Core", "Disability Access APIs")

with Files("tests/cors/**"):
    BUG_COMPONENT = ("Core", "DOM: Security")

with Files("tests/credential-management/**"):
    BUG_COMPONENT = ("Core", "DOM: Security")

with Files("tests/css/**"):
    BUG_COMPONENT = ("Core", "CSS Parsing and Computation")

with Files("tests/css/css-backgrounds/**"):
    BUG_COMPONENT = ("Core", "Layout")

with Files("tests/css/css-cascade/**"):
    BUG_COMPONENT = ("Core", "CSS Parsing and Computation")

with Files("tests/css/css-font-loading/**"):
    BUG_COMPONENT = ("Core", "Layout: Text")

with Files("tests/css/css-fonts/**"):
    BUG_COMPONENT = ("Core", "Layout: Text")

with Files("tests/css/css-paint-api/**"):
    BUG_COMPONENT = ("Core", "Layout: Web Painting")

with Files("tests/css/css-scoping/**"):
    BUG_COMPONENT = ("Core", "CSS Parsing and Computation")

with Files("tests/css/css-timing/**"):
    BUG_COMPONENT = ("Core", "Layout")

with Files("tests/css/css-typed-om/**"):
    BUG_COMPONENT = ("Core", "DOM: CSS Object Model")

with Files("tests/css/cssom/**"):
    BUG_COMPONENT = ("Core", "DOM: CSS Object Model")

with Files("tests/css/cssom-view/**"):
    BUG_COMPONENT = ("Core", "DOM: CSS Object Model")

with Files("tests/css/selectors/**"):
    BUG_COMPONENT = ("Core", "CSS Parsing and Computation")

with Files("tests/custom-elements/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/docs/**"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/dom/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/domparsing/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/domxpath/**"):
    BUG_COMPONENT = ("Core", "XSLT")

with Files("tests/dpub-aam/**"):
    BUG_COMPONENT = ("Core", "Disability Access APIs")

with Files("tests/dpub-aria/**"):
    BUG_COMPONENT = ("Core", "Disability Access APIs")

with Files("tests/editing/**"):
    BUG_COMPONENT = ("Core", "Editor")

# as per Bug 746911
with Files("tests/encoding/**"):
    BUG_COMPONENT = ("Core", "Internationalization")

with Files("tests/encrypted-media/**"):
    BUG_COMPONENT = ("Core", "Audio/Video: Playback")

with Files("tests/entries-api/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/eventsource/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/feature-policy/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/fetch/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/fonts/**"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/fonts/math/**"):
    BUG_COMPONENT = ("Core", "MathML")

with Files("tests/fullscreen/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/gamepad/**"):
    BUG_COMPONENT = ("Core", "DOM: Device Interfaces")

# Bug 1359076 - Deleting this feature due to security
with Files("tests/geolocation-API/**"):
    BUG_COMPONENT = ("Core", "Geolocation")

with Files("tests/gyroscope/**"):
    BUG_COMPONENT = ("Core", "DOM: Device Interfaces")

with Files("tests/hr-time/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/html/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/html-imports/**"):
    BUG_COMPONENT = ("Core", "DOM: Core & HTML")

with Files("tests/html-longdesc/**"):
    BUG_COMPONENT = ("Core", "DOM: Core & HTML")

# Not implemented yet, see Bug 741393
with Files("tests/html-media-capture/**"):
    BUG_COMPONENT = ("Core", "DOM: Core & HTML")

with Files("tests/imagebitmap-renderingcontext/**"):
    BUG_COMPONENT = ("Core", "Canvas: 2D")

with Files("tests/images/**"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/infrastructure/**"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/input-events/**"):
    BUG_COMPONENT = ("Core", "General")

with Files("tests/interfaces/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/intersection-observer/**"):
    BUG_COMPONENT = ("Core", "Layout")

with Files("tests/js/**"):
    BUG_COMPONENT = ("Core", "JavaScript Engine")

# To be implemented in bug 1348405
with Files("tests/keyboard-lock/**"):
    BUG_COMPONENT = ("Core", "DOM: Core & HTML")

# No reference to longtask in bugzilla or codebase
with Files("tests/longtask-timing/**"):
    BUG_COMPONENT = ("Core", "DOM")

# depends on generic-sensor, check bug 1359076
with Files("tests/magnetometer/**"):
    BUG_COMPONENT = ("Core", "DOM: Device Interfaces")

with Files("tests/mathml/**"):
    BUG_COMPONENT = ("Core", "MathML")

with Files("tests/media/**"):
    BUG_COMPONENT = ("Core", "Audio/Video: Playback")

with Files("tests/media-capabilities/**"):
    BUG_COMPONENT = ("Core", "WebRTC: Audio/Video")

with Files("tests/mediasession/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/media-source/**"):
    BUG_COMPONENT = ("Core", "Audio/Video: Playback")

with Files("tests/mediacapture-fromelement/**"):
    BUG_COMPONENT = ("Core", "Audio/Video: Recording")

with Files("tests/mediacapture-image/**"):
    BUG_COMPONENT = ("Core", "Audio/Video: Recording")

with Files("tests/mediacapture-record/**"):
    BUG_COMPONENT = ("Core", "Audio/Video: Recording")

with Files("tests/mediacapture-streams/**"):
    BUG_COMPONENT = ("Core", "Audio/Video: MediaStreamGraph")

with Files("tests/mixed-content/**"):
    BUG_COMPONENT = ("Core", "DOM: Security")

with Files("tests/navigation-timing/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/netinfo/**"):
    BUG_COMPONENT = ("Core", "DOM: Device Interfaces")

with Files("tests/notifications/**"):
    BUG_COMPONENT = ("Toolkit", "Notifications and Alerts")

with Files("tests/offscreen-canvas/**"):
    BUG_COMPONENT = ("Core", "Canvas: 2D")

# No tests are run here
with Files("tests/old-tests/submission/Microsoft/foreigncontent/**"):
    BUG_COMPONENT = ("Core", "SVG")

with Files("tests/old-tests/submission/Microsoft/history/**"):
    BUG_COMPONENT = ("Core", "Document Navigation")

with Files("tests/old-tests/submission/Microsoft/selection/**"):
    BUG_COMPONENT = ("Core", "Selection")

with Files("tests/orientation-event/**"):
    BUG_COMPONENT = ("Core", "DOM: Device Interfaces")

with Files("tests/orientation-sensor/**"):
    BUG_COMPONENT = ("Core", "DOM: Device Interfaces")

with Files("tests/page-visibility/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/paint-timing/**"):
    BUG_COMPONENT = ("Core", "DOM")

# No tests in here
with Files("tests/payment-handler/**"):
    BUG_COMPONENT = ("Core", "DOM: Web Payments")

# No tests in here
with Files("tests/payment-method-basic-card/**"):
    BUG_COMPONENT = ("Core", "DOM: Web Payments")

# No tests in here
with Files("tests/payment-method-id/**"):
    BUG_COMPONENT = ("Core", "DOM: Web Payments")

with Files("tests/payment-request/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/performance-timeline/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/pointerevents/**"):
    BUG_COMPONENT = ("Core", "DOM: Events")

with Files("tests/pointerlock/**"):
    BUG_COMPONENT = ("Core", "DOM: Events")

with Files("tests/preload/**"):
    BUG_COMPONENT = ("Core", "DOM: Core & Html")

with Files("tests/presentation-api/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/proximity/**"):
    BUG_COMPONENT = ("Core", "DOM: Device Interfaces")

with Files("tests/quirks/**"):
    BUG_COMPONENT = ("Core", "Layout")

with Files("tests/remote-playback/**"):
    BUG_COMPONENT = ("Core", "Audio/Video: Playback")

with Files("tests/referrer-policy/**"):
    BUG_COMPONENT = ("Core", "DOM: Security")

with Files("tests/requestidlecallback/**"):
    BUG_COMPONENT = ("Core", "DOM")

# To be implemented in bug 1272409
with Files("tests/resize-observer/**"):
    BUG_COMPONENT = ("Core", "Layout")

with Files("tests/resource-timing/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/resources/**"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/screen-orientation/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/secure-contexts/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/selection/**"):
    BUG_COMPONENT = ("Core", "Selection")

with Files("tests/server-timing/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/service-workers/**"):
    BUG_COMPONENT = ("Core", "DOM: Service Workers")

with Files("tests/shadow-dom/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/speech-api/**"):
    BUG_COMPONENT = ("Core", "Web Speech")

with Files("tests/storage/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/streams/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/subresource-integrity/**"):
    BUG_COMPONENT = ("Core", "DOM: Security")

with Files("tests/svg/**"):
    BUG_COMPONENT = ("Core", "SVG")

with Files("tests/svg-aam/**"):
    BUG_COMPONENT = ("Core", "SVG")

with Files("tests/touch-events/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/tools/**"):
    BUG_COMPONENT = ("Testing", "web-platform-tests")

with Files("tests/trusted-types/**"):
    BUG_COMPONENT = ("Core", "DOM: Security")

with Files("tests/uievents/**"):
    BUG_COMPONENT = ("Core", "DOM: Events")

with Files("tests/upgrade-insecure-requests/**"):
    BUG_COMPONENT = ("Core", "DOM: Security")

with Files("tests/url/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/user-timing/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/vibration/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/visual-viewport/**"):
    BUG_COMPONENT = ("Core", "Layout")

with Files("tests/wai-aria/**"):
    BUG_COMPONENT = ("Core", "Disability Access APIs")

with Files("tests/wasm/**"):
    BUG_COMPONENT = ("Core", "JavaScript Engine: JIT")

with Files("tests/web-animations/**"):
    BUG_COMPONENT = ("Core", "DOM: Animation")

with Files("tests/webaudio/**"):
    BUG_COMPONENT = ("Core", "Web Audio")

with Files("tests/webauthn/**"):
    BUG_COMPONENT = ("Core", "DOM: Device Interfaces")

with Files("tests/webdriver/**"):
    BUG_COMPONENT = ("Testing", "geckodriver")

with Files("tests/webgl/**"):
    BUG_COMPONENT = ("Core", "Canvas: WebGL")

with Files("tests/webmessaging/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/web-nfc/**"):
    BUG_COMPONENT = ("Core", "DOM: Device Interfaces")

with Files("tests/webrtc/**"):
    BUG_COMPONENT = ("Core", "WebRTC")

with Files("tests/web-share/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/websockets/**"):
    BUG_COMPONENT = ("Core", "Networking: WebSockets")

with Files("tests/webstorage/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/webusb/**"):
    BUG_COMPONENT = ("Core", "DOM: Device Interfaces")

with Files("tests/webvr/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/webvtt/**"):
    BUG_COMPONENT = ("Core", "Audio/Video: Playback")

with Files("tests/workers/**"):
    BUG_COMPONENT = ("Core", "DOM: Workers")

# to be implemented in bug 1315239
with Files("tests/worklets/**"):
    BUG_COMPONENT = ("Core", "DOM")

with Files("tests/x-frame-options/**"):
    BUG_COMPONENT = ("Core", "DOM: Security")
