зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1103196 - Add insecure certificate error; r=automatedtester
MozReview-Commit-ID: 26wwOuqWhog --HG-- extra : rebase_source : ad5cd93e9360545932e9cd05f4efdbc9aa8f2712
This commit is contained in:
Родитель
6482c0f79b
Коммит
9ac8f3690e
|
@ -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";
|
||||
|
|
Загрузка…
Ссылка в новой задаче