Bug 1103196 - Add insecure certificate error; r=automatedtester

MozReview-Commit-ID: 26wwOuqWhog

--HG--
extra : rebase_source : ad5cd93e9360545932e9cd05f4efdbc9aa8f2712
This commit is contained in:
Andreas Tolfsen 2016-11-06 18:00:18 +00:00
Родитель 6482c0f79b
Коммит 9ac8f3690e
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -55,6 +55,10 @@ class ElementNotSelectableException(MarionetteException):
status = "element not selectable"
class InsecureCertificateException(MarionetteException):
status = "insecure certificate"
class InvalidArgumentException(MarionetteException):
status = "invalid argument"

Просмотреть файл

@ -9,6 +9,7 @@ const {interfaces: Ci, utils: Cu} = Components;
const ERRORS = new Set([
"ElementNotAccessibleError",
"ElementNotVisibleError",
"InsecureCertificateError",
"InvalidArgumentError",
"InvalidElementStateError",
"InvalidSelectorError",
@ -229,6 +230,13 @@ this.ElementNotVisibleError = function(msg) {
};
ElementNotVisibleError.prototype = Object.create(WebDriverError.prototype);
this.InsecureCertificateError = function(msg) {
WebDriverError.call(this, msg);
this.name = "InsecureCertificateError";
this.status = "insecure certificate";
};
InsecureCertificateError.prototype = Object.create(WebDriverError.prototype);
this.InvalidArgumentError = function(msg) {
WebDriverError.call(this, msg);
this.name = "InvalidArgumentError";