Skip to content

Tests: Add tests covering callback failures#1634

Merged
Krinkle merged 1 commit intoqunitjs:mainfrom
Krinkle:test-bad-callbacks
Jul 5, 2021
Merged

Tests: Add tests covering callback failures#1634
Krinkle merged 1 commit intoqunitjs:mainfrom
Krinkle:test-bad-callbacks

Conversation

@Krinkle
Copy link
Copy Markdown
Member

@Krinkle Krinkle commented Jul 5, 2021

Capture the status quo before changing it.

Minor changes:

  • Switch remaining notEquals/indexOf uses to the preferred assert.true( str.includes() ) idiom.

  • Fix duplicate printing of error message due to V8's Error#stack, as used by onUncaughtException.
    Ref Core: Fix late onerror handling #1629.

  • Start normalizing stderror in tests like we do with stdout.

  • Account for qunit.js stack frames from native Promise in V8, which doesn't include a function name or paranthesis.

Ref #1446.
Ref #1633.

Capture the status quo before changing it.

Minor changes:

* Switch remaining notEquals/indexOf uses to the preferred
  `assert.true( str.includes() )` idiom.

* Fix duplicate printing of error message due to V8's `Error#stack`,
  as used by onUncaughtException.
  Ref qunitjs#1629.

* Start normalizing stderror in tests like we do with stdout.

* Account for qunit.js stack frames from native Promise in V8,
  which doesn't include a function name or paranthesis.

Ref qunitjs#1446.
Ref qunitjs#1633.
@Krinkle Krinkle force-pushed the test-bad-callbacks branch from 8d4d0bf to 656414a Compare July 5, 2021 03:54
@Krinkle Krinkle merged commit 66081d6 into qunitjs:main Jul 5, 2021
@Krinkle Krinkle deleted the test-bad-callbacks branch July 5, 2021 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant