gecko-dev/testing/marionette
Andreas Tolfsen d9976f6943 Bug 1336214 - Use static lookup of errors; r=maja_zf
To avoid errors from being needlessly constructed on starting the
Marionette server, this changes testing/marionette/error.js to use a
static lookup table for error status codes.

This also provides some added security since individual custom errors
may have specific constructor logic that would cause an error to throw
an error if the correct arguments were not provided, and we cannot
guarantee that we provide the right ones generically when loading in
the error module.

MozReview-Commit-ID: 1sejpNzsjJp

--HG--
extra : rebase_source : 1d57c56675d5a374bc97c463898e7b5ed77ef7b8
2017-02-10 18:33:37 +00:00
..
chrome Bug 1331037 - Fix failures in test_localization.py for Fennec. r=ato 2017-01-18 09:47:58 +01:00
client Bug 1283216 - Fix by allowing the marionette client object to be constructed with the build from the local environment as default. r=ato 2017-02-14 12:16:40 +05:30
components Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
harness Bug 1078237: Reenable frame switching test on Windows. r=whimboo 2017-02-10 16:05:42 +00:00
puppeteer Bug 1333803 - Revert setting of the update channel to modifying channel-prefs.js. r=maja_zf 2017-01-30 17:05:27 +01:00
accessibility.js Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
action.js Bug 1335240 - actions.InputState does not record correct type for key and pointer; r=ato 2017-02-01 13:30:58 -05:00
addon.js Bug 1316975 - Correct function definition style in Marionette components; r=ato 2016-12-04 12:42:52 +01:00
assert.js Bug 1336124 - Add assert.session for checking if session is active; r=maja_zf 2017-02-02 16:09:14 +00:00
atom.js Bug 1316975 - Correct function definition style in Marionette components; r=ato 2016-12-04 12:42:52 +01:00
browser.js Bug 1319237 - Calculate correct window position; r=automatedtester 2016-11-21 23:33:03 +01:00
capture.js Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
cert.js Bug 1316975 - Correct function definition style in Marionette components; r=ato 2016-12-04 12:42:52 +01:00
cookies.js
dispatcher.js Bug 1336124 - Return error when there is no session; r=maja_zf 2017-02-02 16:15:31 +00:00
driver.js Bug 1319237 - Avoid reposition waiting if position is unchanged; r=maja_zf 2017-02-02 14:58:36 +00:00
element.js Bug 1319237 - Generalise wait condition utility; r=automatedtester,maja_zf 2016-11-21 23:41:20 +01:00
error.js Bug 1336214 - Use static lookup of errors; r=maja_zf 2017-02-10 18:33:37 +00:00
evaluate.js Bug 1322862 - Make __webDriverArguments et al. content safe; r=automatedtester 2016-12-10 16:15:53 -10:00
event.js Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
frame.js Bug 1316975 - Correct function definition style in Marionette components; r=ato 2016-12-04 12:42:52 +01:00
interaction.js Bug 1338257 - Remove remaining legacy generator from testing/marionette/. r=ato 2017-02-11 11:47:57 +09:00
jar.mn Bug 1319237 - Generalise wait condition utility; r=automatedtester,maja_zf 2016-11-21 23:41:20 +01:00
l10n.js Bug 1331037 - Fix failures in test_localization.py for Fennec. r=ato 2017-01-18 09:47:58 +01:00
legacyaction.js Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
listener.js Bug 1334199 - script-generated patch to omit getComputedStyle's second argument when it's falsy, r=jaws. 2017-01-27 10:51:02 +01:00
logging.js
mach_commands.py Bug 1323217 - Fix mach marionette-test. r=whimboo a=test-only 2016-12-13 18:10:51 +01:00
mach_test_package_commands.py Bug 1334209 - Activate mozharness virtualenv in-process from one click loaner mach commands, r=jmaher 2017-01-31 11:53:36 -05:00
marionette.eslintrc.js Bug 1315402: Make toolkit/mozapps/update pass no-undef. r=jaws 2016-11-04 17:03:01 -07:00
message.js Bug 1316975 - Correct function definition style in Marionette components; r=ato 2016-12-04 12:42:52 +01:00
modal.js Bug 1316975 - Correct function definition style in Marionette components; r=ato 2016-12-04 12:42:52 +01:00
moz.build Bug 1320073 - Rename marionette-client to marionette-harness and release version 4.0.0. r=gps,maja_zf,mtseng,SingingTree 2016-12-12 13:05:34 +01:00
navigate.js Bug 1316975 - Correct function definition style in Marionette components; r=ato 2016-12-04 12:42:52 +01:00
proxy.js Bug 1316975 - Correct function definition style in Marionette components; r=ato 2016-12-04 12:42:52 +01:00
server.js Bug 1316975 - Correct function definition style in Marionette components; r=ato 2016-12-04 12:42:52 +01:00
session.js Bug 1326534 - Rewrite capabilities parsing in Marionette; r=automatedtester 2016-12-31 12:21:34 +00:00
simpletest.js
test_action.js Bug 1335240 - actions.InputState does not record correct type for key and pointer; r=ato 2017-02-01 13:30:58 -05:00
test_assert.js Bug 1336124 - Add assert.session for checking if session is active; r=maja_zf 2017-02-02 16:09:14 +00:00
test_element.js Bug 1303234 - Implement extracting action chain from a request; r=ato,jgraham 2016-10-26 13:04:48 -04:00
test_error.js Bug 1336214 - Remove duplicate error.wrap; r=maja_zf 2017-02-09 19:28:30 +00:00
test_message.js Bug 1326534 - Preserve stacks when passing error protos to WebDriverError; r=automatedtester 2016-12-30 11:26:30 +00:00
test_navigate.js Bug 1280300 - Support navigation by fragment; r=automatedtester 2016-07-19 18:47:33 +01:00
test_session.js Bug 1326534 - Rewrite capabilities parsing in Marionette; r=automatedtester 2016-12-31 12:21:34 +00:00
test_wait.js Bug 1319237 - Lower timeout elapse evaluation count; r=me a=followup-to-prevent-back out 2017-02-13 12:02:01 -08:00
unit.ini Bug 1319237 - Generalise wait condition utility; r=automatedtester,maja_zf 2016-11-21 23:41:20 +01:00
wait.js Bug 1319237 - Generalise wait condition utility; r=automatedtester,maja_zf 2016-11-21 23:41:20 +01:00