Skip to content

console logging is messed up when not colored #934

Closed

Description

@stevebroshar

When the colors config is false, I've noticed various bad behaviors related to using console.log in the test code.

For both PhantomJS and Chrome (the only two browsers I tried), I see that the logged text always starts on the line after the LOG prefix, and there is no line terminator between the text and the next logged line. For example console.log('xxxxxxx') logs as:

LOG: LOG
'xxxxxxx'PhantomJS 1.9.0 (Windows 7): Executed 0 of 1 SUCCESS (0 secs / 0 secs)

Further, for PhantomJS (not Chrome), if the text is less than 7 characters long, it logs nothing. For example console.log('xxxxx') logs as:

LOG: LOG
PhantomJS 1.9.0 (Windows 7): Executed 1 of 1 SUCCESS (0.37 secs / 0.035 secs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions