Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML reporter: Allow the error to contain a formatted HTML error message #1349

Merged
merged 2 commits into from
Jun 5, 2015

Commits on Apr 27, 2015

  1. Split message and stack into two separate variables

    This refactoring is to first step towards supporting error.htmlMessage.
    We restructured the code to have a variable for the error message and
    the error stack. This will allow us to use error.htmlMessage instead of
    error.message as the message displayed to the user. The next commit will
    take advantage of this separation.
    sunesimonsen authored and papandreou committed Apr 27, 2015
    Configuration menu
    Copy the full SHA
    68ba3b2 View commit details
    Browse the repository at this point in the history
  2. Handling of error.htmlMessage in the HTML reporter

    If an error has a htmlMessage property it will be inserted verbatim into
    the DOM. That gives assertion libraries complete control over the
    formatting of the error message shown by the HTML test runner.
    sunesimonsen authored and papandreou committed Apr 27, 2015
    Configuration menu
    Copy the full SHA
    a93f9fe View commit details
    Browse the repository at this point in the history