[フレーム]

Class: PhantomFormatter

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

Direct Known Subclasses

PhantomDocFormatter

Instance Method Summary collapse

Methods inherited from BrowserFormatter

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

Constructor Details

This class inherits a constructor from BrowserFormatter

Instance Method Details

#after(state) ⇒ Object

138
139
140
141
142
143
144
145
# File 'opal/lib/mspec/opal/runner.rb', line 138
def after(state)
 super
 unless exception?
 print '.'
 else
 print failure? ? 'F' : 'E'
 end
end

#green(str) ⇒ Object

126
127
128
# File 'opal/lib/mspec/opal/runner.rb', line 126
def green(str)
 `console.log('033円[32m' + str + '033円[0m')`
end

#log(str) ⇒ Object

134
135
136
# File 'opal/lib/mspec/opal/runner.rb', line 134
def log(str)
 `console.log(str)`
end

#red(str) ⇒ Object

130
131
132
# File 'opal/lib/mspec/opal/runner.rb', line 130
def red(str)
 `console.log('033円[31m' + str + '033円[0m')`
end

AltStyle によって変換されたページ (->オリジナル) /