summaryrefslogtreecommitdiffstats
path: root/remote/shared/webdriver/test
diff options
context:
space:
mode:
Diffstat (limited to 'remote/shared/webdriver/test')
-rw-r--r--remote/shared/webdriver/test/xpcshell/test_Errors.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/remote/shared/webdriver/test/xpcshell/test_Errors.js b/remote/shared/webdriver/test/xpcshell/test_Errors.js
index 22e3526039..d4803dee87 100644
--- a/remote/shared/webdriver/test/xpcshell/test_Errors.js
+++ b/remote/shared/webdriver/test/xpcshell/test_Errors.js
@@ -36,6 +36,7 @@ const errors = [
error.StaleElementReferenceError,
error.TimeoutError,
error.UnableToSetCookieError,
+ error.UnableToSetFileInputError,
error.UnexpectedAlertOpenError,
error.UnknownCommandError,
error.UnknownError,
@@ -510,6 +511,14 @@ add_task(function test_UnableToSetCookieError() {
ok(err instanceof error.WebDriverError);
});
+add_task(function test_UnableToSetFileInputError() {
+ let err = new error.UnableToSetFileInputError("foo");
+ equal("UnableToSetFileInputError", err.name);
+ equal("foo", err.message);
+ equal("unable to set file input", err.status);
+ ok(err instanceof error.WebDriverError);
+});
+
add_task(function test_UnexpectedAlertOpenError() {
let err = new error.UnexpectedAlertOpenError("foo");
equal("UnexpectedAlertOpenError", err.name);