Class: PhantomFormatter

Inherits:
BrowserFormatter show all
Defined in:
opal/lib/mspec/opal/runner.rb

Instance Method Summary collapse

Methods inherited from BrowserFormatter

#after, #before, #enter, #exception, #exception?, #failure?, #finish, #finish_with_code, #initialize, #register, #start

Constructor Details

This class inherits a constructor from BrowserFormatter

Instance Method Details

#green(str) ⇒ Object



125
126
127
# File 'opal/lib/mspec/opal/runner.rb', line 125

def green(str)
  `console.log('\\033[32m' + str + '\\033[0m')`
end

#log(str) ⇒ Object



133
134
135
# File 'opal/lib/mspec/opal/runner.rb', line 133

def log(str)
  `console.log(str)`
end

#red(str) ⇒ Object



129
130
131
# File 'opal/lib/mspec/opal/runner.rb', line 129

def red(str)
  `console.log('\\033[31m' + str + '\\033[0m')`
end