mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
e5010028a2
Many tests that result in throwing errors, amongst those many type- and platform checks, are repeated throughout the Marionette code base. This patch centralises the most common of these, typically reducing consumer calls from three to one line. Example usage: assert.defined(cmd.parameters.value); assert.postiveInteger(cmd.parameters.value, error.pprint`Expected 'value' (${value}) to be a signed integer`); // InvalidArgumentError: Expected 'value' ([object Object] {"foo": "bar"}) to be a positive integer MozReview-Commit-ID: BHOaDazeGer --HG-- extra : rebase_source : 1d35c10e29d4fd536829e9714ae65bcd14ad21f8
16 lines
389 B
INI
16 lines
389 B
INI
# 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/.
|
|
|
|
# xpcshell unit tests for Marionette
|
|
|
|
[DEFAULT]
|
|
skip-if = appname == "thunderbird"
|
|
|
|
[test_action.js]
|
|
[test_assert.js]
|
|
[test_element.js]
|
|
[test_error.js]
|
|
[test_message.js]
|
|
[test_navigate.js]
|