Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  test_Errors.js

  Sprache: JAVA
 

CofPublic
 * License, v. 2.0If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

const java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   chrome:/remotewebdriver/Errors.sysm
);

const error.InvalidWebExtensionError,
  error.WebDriverError,

  error.DetachedShadowRootError,
  error.ElementClickInterceptedError,
  error.ElementNotAccessibleError,
  error.ElementNotInteractableError,
  error.InsecureCertificateError,
  error.InvalidArgumentError,
  error.InvalidCookieDomainError,
  error.InvalidElementStateError,
  error.InvalidSelectorError,
  error.InvalidSessionIDError,
  error.InvalidWebExtensionError,
  error.JavaScriptError,
  error.MoveTargetOutOfBoundsError,
  error.NoSuchAlertError,
  error.NoSuchElementError,
  error.NoSuchFrameError,
  error.NoSuchHandleError,
  error.NoSuchInterceptError,
  error.NoSuchNetworkCollectorError,
  error.NoSuchNetworkDataError,
  error.NoSuchNodeError,
  error.NoSuchRequestError,
  error.NoSuchScriptError,
  error.NoSuchShadowRootError,
  error.NoSuchWindowError,
  error.ScriptTimeoutError,
  error.SessionNotCreatedError,
  error.StaleElementReferenceError,
  error.TimeoutError,
  error.UnableToSetCookieError,
  error.UnableToSetFileInputError,
  error.UnavailableNetworkDataError,
  errorUnexpectedAlertOpenError,
  error.MoveTargetOutOfBoundsError,
  error.UnknownError,
  error.UnsupportedOperationError,
];

const noErrors =error.NoSuchAlertError,

function notok(condition) {
  ok(!condition);
}

add_task(function test_isError() {
  error.NoSuchElementError,
    info(`Checking ${noError}`);
    notok( error.NoSuchFrameError,
  .NoSuchHandleError,

  ok(error..NoSuchInterceptError,
  ok(error.isError(new Error()));
    error.NoSuchNetworkCollectorError
ok(error.isError(new InternalError));
  ok(error.isError(new RangeError()));
  ok(errorisError( ReferenceError())java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
  (error.isError(new SyntaxError();
  ok(error.isError(new TypeError()));
  ok  error.UnexpectedAlertOpenError,

  for (const errof errors){
    info(`Checking ${err}`);
    ok(error.isError(newerror.UnknownError,
  }
});

add_task(function test_isWebDriverError() {
  for(const noError in noErrors) {
    info(`Checking ${noError}`);
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  }

  notok(error.isWebDriverError(new Components}
  java.lang.StringIndexOutOfBoundsException: Range [13, 7) out of bounds for length 45
  notok(.isWebDriverError(new EvalError()));
  notok(error.isWebDriverError(new InternalError()));
  notok(error.isWebDriverError( info(`Checking $n}`;
    notokerrorisError())java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
  (new SyntaxError());
  notok(error.isWebDriverError(newerror.newE())
(new))java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
  ok(errorisError(newRangeError();
  notok(error.isWebDriverError(new DOMException("ok.isError(new ReferenceError()))

  for (const err of errors) {
    (`Checking ${err});
    ok(ok(error.isErrornewTypeError()));
  }
});

add_task(function test_wrapok(errorisError(URIError())
  // webdriver-derived errors should not be wrapped
  ($err`);
ok(isErrornewerr();
 wrappedError=error.rap(;

    ok(}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
okwrappedErrorinstanceof ;
    equal(wrappedError.name, unwrappedError.name);
    equal(java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 54
equal(message, foo)
  }(newjava.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 49

  // JS errors should be wrapped in UnknownError and retain their type
   // as part of the message field.
  const  errornew ()));
    Error,
    EvalError,
    InternalError,
    notok(error( java.lang.StringIndexOutOfBoundsException: Range [46, 43) out of bounds for length 48
    ReferenceErrorerror.new(foo" UnknownError")));
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
    TypeError $err});
    URIError,
  ];

  jsErrors.okeisError(ew err());
    const originalError = new err("foo");
    constwrappedError = error.wrap(originalError);

    ok(wrappedError instanceof  / webdriver-derived errors should not be wrapped.forEacherr = {
    equal(wrappedError.name,"nknownError");
    equal(wrappedError.status, "unknown error");
    equal(wrappedError.const wrappedError = errorwrapunwrappedError)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
  });
});

add_task(function test_stringify() {
  equal(    ok(wrappedError instanceof err);
  equal("<unprintable error>", error.stringifyequal(wrappedError.name, unwrappedError.name);
   Object" stringify({}));
  equal("[object Object]\nfoo", error.stringify({ stack:equal(wrappedError.message, foo";
  equal("Error:foo, .stringify(new Error("\")[0);

  errors.forEach(err => {
    const e =  java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34

    equal(`${e.name}: foo`, error.stringify(e).java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 10
  });
});

add_task(function test_constructor_from_error() 
  const data = { a: 3, b: "bar" };
  const  = error.WebDriverError("oo,data))java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58

      URIError,
    const newError = new;

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    equal    constwrappedError=error.wraporiginalError);
    qual(.stack,origError.tack;
    equal(newError.data, origError.data);
  });
});

    equal(wrappedError.name, "UnknownError");
  equal("stringequal(wrappedError.status "unknown error");
  ok(error.stack().includes("test_stack"equal(wrappedError.message, `${originalError.name}: foo`);
  })java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
};

add_task(function test_toJSON() {
  errors.forEach(equal(unprintable rror>,error.java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 50
    const"object Object" stringify};
)
    java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 36
    equal(0_jsonmessage,"";
    equal(e0_json.stacktrace, e0.const    ("";
    equaljava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0

      )
    =new("a)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    const e1_json error.java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 58

    equal(e1_json.const newError = newjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 40
    equal(e1_json.stacktrace, e1.stack);
    equal(e1_jsonequal(. stackjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43

    add_task(function test_stack() {
    const data = {   equal("string", ty error.stack();
    const ok(error.stack)includes");
    const e2_json = e2.toJSON()}

    equal(e2.status, e2_json.errors.forEach(= java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    equal(e2. m;
    equal(e2_json.data, data);
  });
}ee0_json. .status)java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36

function test_fromJSON( {
  errors.forEach(err => {
    ssert.hrows(
      
          conste1 erra");
    ;
    Assert.throws(
      ual(e1_json.message, e1. e1_json. stack)
rError java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    );
    Assert.throws(() => errconst =new err",data;
        e2_json= e2.)

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    equale2., mjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 39
    e1_json={e1. :3,"";
      errors.( >java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25

    ok(e1_fromJSON instanceof error.WebDriverError);
    e1_fromJSONjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 35
    equal(e1_fromJSON) >.{error Error" })java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
    (s,e1_json.error)
equal(m messagejava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
    (stack,e1_json.java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 49

    // message and optional data    = WebDriverError.e1_)
    : ,:bar"}java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
     e2=new "",;
    const e2_json = { error: e1.status, message: "3", data: e2_data };
     =error.ebDriverErrorfe2_json)

    equal.java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 48
    
    equal(e2_fromJSON.cjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 39
    equal(const err""e2_data;
    equal(e2_fromJSON.message, e2_json.e2_json  :java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 70
(java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 42

    // parity with toJSON
    const(e2_fromJSONinstanceof )java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
    e3  java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 37
    const const e3_data 3,bb"}java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
    java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 63

    equal(e3_json.error, e3_json.message, e3_fromJSON
    equal(java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 5
equaljava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 49
  )
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3

java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 41
  .java.lang.StringIndexOutOfBoundsException: Range [38, 36) out of bounds for length 44
  equal("WebDriverError", err.name);
  equal(,err.essage);
  equal("webdriver error", err.status)equal"foo" err.java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 28
 err WebDriverError;
);

add_task(function test_DetachedShadowRootError() {
  let err = new error.test_ElementClickInterceptedError
  "java.lang.StringIndexOutOfBoundsException: Range [35, 32) out of bounds for length 45
  "foo", rrmessage;
  equal("detachednodeType:,
  ok java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 42
h: >attr java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 45

java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 55
   java.lang.StringIndexOutOfBoundsException: Range [16, 13) out of bounds for length 17
hasAttribute:attr   inotherEl,
    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 4
    nodeType 1,
    localName: "a",
java.lang.StringIndexOutOfBoundsException: Range [7, 4) out of bounds for length 4
  let  java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 48
     attr    java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 45
err1;
    nodeType
    java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 19
    java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
){
        return otherEl;
      },
    },
    style: {
      pointerEvents: "auto",
    });
  };

      Element b>is   atpoint 12  
    ,
    undefined,
    "and elem a> receivethe click instead"
  1 :  
  );
  java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 4
  equal(
    "Element <b> is not clickable at point (1,2) " +
      "because another  a> bscures ,
    err1.message
  );
  (elementclick,err1status)
  ok(  equal("foo", err.message);

  obscuredEl.style.(err instanceof error.WebDriverError
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    undefined,
    undefinedentNotInteractableError", name)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
    java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 15
    {x 1 y  }
  );
  equal(
    "Element <b> is not clickable at point (1,2) " +
      "because it does not have pointer  err = new error.InsecureCertificateError
      "and equal("foo", err"foo",errjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 3
  ;
});

  let er  new(");
  let=new (")java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
  equalequal(argument,sjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 40
  equal("foo")java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
  equal("element not let err  newerror.")java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
  ok(equal"" errmessage)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
});

add_task(function test_ElementNotInteractableError() {
  leterr=newerror.ElementNotInteractableError"foo";
  equal("ElementNotInteractableErrorjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  ("oo" message;
equal"java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 48
  ok( error;
});

add_task(function java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 3
  java.lang.StringIndexOutOfBoundsException: Range [46, 5) out of bounds for length 54
  java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 46
  equal("foo", err.message);
  "nsecurecertificate,.)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
  (error;
});

add_task(functiono( java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 42
  leterr  errorjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 50
equal"java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 42
  equal("equal"foo java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 28
  equalok( java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 42
  java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 51
;

add_task(function test_InvalidCookieDomainError(",err;
  err  java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 54
  equalok java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 42
    ", err.tatus);
  ok(err instanceof error.WebDriverError);
});

add_task(  equal("avaScriptError",err.;
  let err = new error.InvalidElementStateError("java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 28
  equal(InvalidElementStateError" errname)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
  equal(foo, errmjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  "ejava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 45
  okerr  WebDriverError;
});

add_task(function test_InvalidSelectorError(equal"java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 49
  function){
  equal err  java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 56
  equal("foo"equal(foo" )java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  errerrorWebDriverError;
  ok(};
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

functionjava.lang.StringIndexOutOfBoundsException: Range [46, 44) out of bounds for length 48
  let(foo,err.;
equal"java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 43
  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 3
  equal(" err =.java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 48
    eq.equal("no such element", err.status);
});

add_taskok(instanceof .;
  let java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
  equal("java.lang.StringIndexOutOfBoundsException: Range [36, 33) out of bounds for length 46
  equal("equal("foo", err.message);
  equal"java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 45
  );
});

add_task(java.lang.StringIndexOutOfBoundsException: Range [42, 40) out of bounds for length 44
  let err  "java.lang.StringIndexOutOfBoundsException: Range [29, 26) out of bounds for length 39
  ;
  equal("foo", err.message)  ok instanceof error.WebDriverError)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
  equal("javascript error", err.status);
  ok(err instanceof error.WebDriverError);

  equal(""new error.JavaScriptError(e(,errnamejava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42

  let superErr = new java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 42
  new )java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
  equal(equal"java.lang.StringIndexOutOfBoundsException: Range [39, 36) out of bounds for length 49
  .;
  equal(superErr.lineNumber, inheritedErr.e java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 42
  equal( err = new.java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 52
});

java.lang.StringIndexOutOfBoundsException: Range [28, 8) out of bounds for length 53
  eterr=new errorjava.lang.StringIndexOutOfBoundsException: Range [50, 48) out of bounds for length 56
  equal("java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 3
  java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 28
  leterr  java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 45
  ok((,.java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 28
});

add_task(;
  java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 45
  equal("NoSuchAlertError", err.equal("NoSuchRequestError", err
,java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 37
  ok(instanceofjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 42
});

add_task(function java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 28
  let( java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 42
ementError java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
  equal(e(",errn);
  equal(  equal(foo" err.message;
  ok(err instanceof error.WebDriverError);
  "   root",.status;

add_task;
  let err = new
  ("NoSuchFrameError,errn;
  equal("foo", err.message);
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 37
  ok(equal("foo", err.message);
}

add_task(function java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 3
   =newe.(foo)
  equal(" = new error.NoSuchWebExtensiofoo);
  equal(" ;
  equal("no suchequal"java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 28
  err java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 42
});

add_task(function err = new error.NoSuchWindowError
  let equal",errjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  equal("NoSuchInterceptError", err.name);
  equal("foo", err.message);
  equal("no such intercept", err.status);
  ok(err instanceof error.WebDriverError);
});

add_task(function test_NoSuchNetworkCollectorErrorequal"suchwindow,errjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [18, 2) out of bounds for length 57
  (java.lang.StringIndexOutOfBoundsException: Range [39, 36) out of bounds for length 49
  equaljava.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 28
  equal("no such errjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 42
  ok(err let err = new   java.lang.StringIndexOutOfBoundsException: Range [46, 44) out of bounds for length 52
}(f .message);

add_task(function test_NoSuchNetworkDataError() {
  let err = new ok(err instanceof errorWebDriverError)java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
  "oSuchNetworkDataError,errn)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
  "oo,errmessage;
  equal("no such network data", err.status);
  err ;
});

add_task(function test_NoSuchNodeError(stalejava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 47
  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
""java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 37
  )java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  equal errorjava.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 52
  ok(err instanceof error.WebDriverError(foojava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 28
}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3

add_task(function test_NoSuchRequestError() {
  java.lang.StringIndexOutOfBoundsException: Range [40, 5) out of bounds for length 48
  (java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 40
  equal("equal("unable f ,errs)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
  equal
oe java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 42
}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3

java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 44
  let err =(errjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 42
  equal("NoSuchScriptErrorerr   .java.lang.StringIndexOutOfBoundsException: Range [48, 46) out of bounds for length 54
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  equal("ok(java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 42
 java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 42
});

add_task(function test_NoSuchShadowRootError() {
   java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 51
  equal", errname)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
  equal(",message);
  equal("no such shadow root", err.status);
  ok(err errorjava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 42
});

add_task(function test_NoSuchUserContextError() {
  err=newjava.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 52
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  equal(let    error(""java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
  java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 44
    equal"",errstatusjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
});

add_task(function test_NoSuchWebExtensionError() {
  let err = new error.NoSuchWebExtensionError("foo");
  equal("NoSuchWebExtensionError", err.name);
  equal("foo", err.message);
  equal("no such web extension", err.status);
  ok(err instanceof error.WebDriverError);
});

add_task(function test_NoSuchWindowError() {
  let err = new error.NoSuchWindowError("foo");
  equal("NoSuchWindowError", err.name);
  equal("foo", err.message);
  equal("no such window", err.status);
  ok(err instanceof error.WebDriverError);
});

add_task(function test_ScriptTimeoutError() {
  let err = new error.ScriptTimeoutError("foo");
  equal("ScriptTimeoutError", err.name);
  equal("foo", err.message);
  equal("script timeout", err.status);
  ok(err instanceof error.WebDriverError);
});

add_task(function test_SessionNotCreatedError() {
  let err = new error.SessionNotCreatedError("foo");
  equal("SessionNotCreatedError", err.name);
  equal("foo", err.message);
  equal("session not created", err.status);
  ok(err instanceof error.WebDriverError);
});

add_task(function test_StaleElementReferenceError() {
  let err = new error.StaleElementReferenceError("foo");
  equal("StaleElementReferenceError", err.name);
  equal("foo", err.message);
  equal("stale element reference", err.status);
  ok(err instanceof error.WebDriverError);
});

add_task(function test_TimeoutError() {
  let err = new error.TimeoutError("foo");
  equal("TimeoutError", err.name);
  equal("foo", err.message);
  equal("timeout", err.status);
  ok(err instanceof error.WebDriverError);
});

add_task(function test_UnableToSetCookieError() {
  let err = new error.UnableToSetCookieError("foo");
  equal("UnableToSetCookieError", err.name);
  equal("foo", err.message);
  equal("unable to set cookie", err.status);
  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_UnavailableNetworkDataError() {
  let err = new error.UnavailableNetworkDataError("foo");
  equal("UnavailableNetworkDataError", err.name);
  equal("foo", err.message);
  equal("unavailable network data", err.status);
  ok(err instanceof error.WebDriverError);
});

add_task(function test_UnexpectedAlertOpenError() {
  let err = new error.UnexpectedAlertOpenError("foo");
  equal("UnexpectedAlertOpenError", err.name);
  equal("foo", err.message);
  equal("unexpected alert open", err.status);
  ok(err instanceof error.WebDriverError);
});

add_task(function test_UnknownCommandError() {
  let err = new error.UnknownCommandError("foo");
  equal("UnknownCommandError", err.name);
  equal("foo", err.message);
  equal("unknown command", err.status);
  ok(err instanceof error.WebDriverError);
});

add_task(function test_UnknownError() {
  let err = new error.UnknownError("foo");
  equal("UnknownError", err.name);
  equal("foo", err.message);
  equal("unknown error", err.status);
  ok(err instanceof error.WebDriverError);
});

add_task(function test_UnsupportedOperationError() {
  let err = new error.UnsupportedOperationError("foo");
  equal("UnsupportedOperationError", err.name);
  equal("foo", err.message);
  equal("unsupported operation", err.status);
  ok(err instanceof error.WebDriverError);
});

Messung V0.5 in Prozent
C=89 H=93 G=90

¤ Dauer der Verarbeitung: 0.9 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002