Open Bug 1307902 Opened 8 years ago Updated 2 years ago

Add tests for the backend

Categories

(DevTools :: Console, task, P2)

task

Tracking

(Not tracked)

People

(Reporter: linclark, Unassigned)

Details

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
Priority: -- → P2
Whiteboard: new-console
Flags: qe-verify-
Whiteboard: new-console → [new-console]
Priority: P2 → P3
Whiteboard: [new-console] → [reserve-new-console]
Whiteboard: [reserve-new-console] → [reserve-console-html]
Priority: P3 → P4
Flags: qe-verify-
Priority: P4 → P2
Whiteboard: [reserve-console-html] → [newconsole-mvp]
Whiteboard: [newconsole-mvp]
Product: Firefox → DevTools
Type: enhancement → task
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.