[websocket-error.any.serviceworker.html]
  [WebSocketError defaults should be correct]
    expected: FAIL

  [WebSocketError should be initialised from arguments]
    expected: FAIL

  [new WebSocketError with invalid code 999 should throw]
    expected: FAIL

  [new WebSocketError with invalid code 1001 should throw]
    expected: FAIL

  [new WebSocketError with invalid code 2999 should throw]
    expected: FAIL

  [new WebSocketError with invalid code 5000 should throw]
    expected: FAIL

  [passing only close code to WebSocketError should work]
    expected: FAIL

  [passing a non-empty reason should cause the close code to be set to 1000]
    expected: FAIL

  [overlong reason should throw]
    expected: FAIL

  [reason should be rejected based on utf-8 bytes, not character count]
    expected: FAIL


[websocket-error.any.sharedworker.html]
  [WebSocketError defaults should be correct]
    expected: FAIL

  [WebSocketError should be initialised from arguments]
    expected: FAIL

  [new WebSocketError with invalid code 999 should throw]
    expected: FAIL

  [new WebSocketError with invalid code 1001 should throw]
    expected: FAIL

  [new WebSocketError with invalid code 2999 should throw]
    expected: FAIL

  [new WebSocketError with invalid code 5000 should throw]
    expected: FAIL

  [passing only close code to WebSocketError should work]
    expected: FAIL

  [passing a non-empty reason should cause the close code to be set to 1000]
    expected: FAIL

  [overlong reason should throw]
    expected: FAIL

  [reason should be rejected based on utf-8 bytes, not character count]
    expected: FAIL


[websocket-error.any.html]
  expected:
    if (os == "android") and not debug: [OK, CRASH]
  [WebSocketError defaults should be correct]
    expected: FAIL

  [WebSocketError should be initialised from arguments]
    expected: FAIL

  [new WebSocketError with invalid code 999 should throw]
    expected: FAIL

  [new WebSocketError with invalid code 1001 should throw]
    expected: FAIL

  [new WebSocketError with invalid code 2999 should throw]
    expected: FAIL

  [new WebSocketError with invalid code 5000 should throw]
    expected: FAIL

  [passing only close code to WebSocketError should work]
    expected: FAIL

  [passing a non-empty reason should cause the close code to be set to 1000]
    expected: FAIL

  [overlong reason should throw]
    expected: FAIL

  [reason should be rejected based on utf-8 bytes, not character count]
    expected: FAIL


[websocket-error.any.worker.html]
  expected:
    if (os == "mac") and not debug: [OK, CRASH]
    if os == "android": [OK, CRASH]
  [WebSocketError defaults should be correct]
    expected: FAIL

  [WebSocketError should be initialised from arguments]
    expected: FAIL

  [new WebSocketError with invalid code 999 should throw]
    expected: FAIL

  [new WebSocketError with invalid code 1001 should throw]
    expected: FAIL

  [new WebSocketError with invalid code 2999 should throw]
    expected: FAIL

  [new WebSocketError with invalid code 5000 should throw]
    expected: FAIL

  [passing only close code to WebSocketError should work]
    expected: FAIL

  [passing a non-empty reason should cause the close code to be set to 1000]
    expected: FAIL

  [overlong reason should throw]
    expected: FAIL

  [reason should be rejected based on utf-8 bytes, not character count]
    expected: FAIL
