Class: Webr::Jasmine::Browser
Instance Attribute Summary
Attributes inherited from Browser
#env, #runtime, #scripts
Instance Method Summary
collapse
Methods inherited from Browser
#html, #html=, #open, #root, #root=
Constructor Details
#initialize(format) ⇒ Browser
Returns a new instance of Browser.
3
4
5
6
7
|
# File 'lib/webr/jasmine/browser.rb', line 3
def initialize(format)
super()
@scripts << "#{Webr::HOME_PATH}/ext/jasmine/lib/jasmine.js"
@env["WebrReporter"] = Reporter[format]
end
|
Instance Method Details
#start ⇒ Object
9
10
11
12
|
# File 'lib/webr/jasmine/browser.rb', line 9
def start
@scripts << "#{Webr::HOME_PATH}/js/jasmine-start.js"
super
end
|