Add tests for the backend

NEW
Unassigned

Status

()

Firefox
Developer Tools: Console
P2
enhancement
2 years ago
2 months ago

People

(Reporter: linclark, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
Originally posted by:linclark

see https://github.com/devtools-html/gecko-dev/issues/173

There are some things that we can unit test in the backend.

- [ ] console.count()
  - If called multiple times with label / without label, is the counter incremented?
  - Are "external counts" handled? See browser_webconsole_count.js
- [ ] console.log()
  - Is the return order of packets from console api calls 1. consoleAPICall, then 2. evaluationResult (currently tested in browser_webconsole_output_order.js)
- [ ] console.assert()
  - `console.assert(true)` does not emit a packet
- [ ] page error
  - "document.querySelector('buggy;selector');",
  - "throw new DOMException('DOMException');",

- [ ] browser_webconsole_strict_mode_errors.js
- [ ] browser_webconsole_show_subresource_security_errors.js
- [ ] browser_webconsole_netlogging_basic.js
- [ ] browser_webconsole_netlogging.js
- [ ] browser_webconsole_hsts_invalid-headers.js
- [ ] browser_webconsole_hpkp_invalid-headers.js
- [ ] browser_webconsole_for_of.js
- [ ] browser_webconsole_console_trace_async.js
- [ ] browser_webconsole_console_api_stackframe.js
- [ ] browser_webconsole_column_numbers.js
- [ ] browser_webconsole_bug_646025_console_file_location.js
- [ ] browser_webconsole_certificate_messages.js
- [ ] browser_webconsole_bug_837351_securityerrors.js
- [ ] browser_webconsole_bug_621644_jsterm_dollar.js
- [ ] browser_webconsole_bug_618078_network_exceptions.js
- [ ] browser_webconsole_bug_603750_websocket.js
- [ ] browser_webconsole_bug_597136_external_script_errors.js
- [ ] browser_webconsole_bug_595934_message_categories.js
- [ ] browser_webconsole_bug_592442_closing_brackets.js
- [ ] browser_webconsole_bug_580454_timestamp_l10n.js
- [ ] browser_webconsole_bug_1010953_cspro.js
- [ ] browser_console_consolejsm_output.js
- [ ] browser_webconsole_bug_630733_response_redirect_headers.js
(Reporter)

Updated

2 years ago
Priority: -- → P2
Whiteboard: new-console
Blocks: 1308219
Flags: qe-verify-
Whiteboard: new-console → [new-console]
Priority: P2 → P3
Whiteboard: [new-console] → [reserve-new-console]
Whiteboard: [reserve-new-console] → [reserve-console-html]

Updated

10 months ago
Priority: P3 → P4

Updated

6 months ago
Flags: qe-verify-
Priority: P4 → P2
Whiteboard: [reserve-console-html] → [newconsole-mvp]
No longer blocks: 1308219
Whiteboard: [newconsole-mvp]
You need to log in before you can comment on or make changes to this bug.