Class: JsTestServer::Server::Views::Suites::Jasmine
Instance Attribute Summary collapse
Instance Method Summary
collapse
project_css_files, project_css_files=, project_js_files, project_js_files=
Methods inherited from Page
#content
Instance Attribute Details
#framework_path ⇒ Object
Returns the value of attribute framework_path.
3
4
5
|
# File 'lib/js_test_server/server/views/suites/jasmine.html.rb', line 3
def framework_path
@framework_path
end
|
#spec_files ⇒ Object
Returns the value of attribute spec_files.
3
4
5
|
# File 'lib/js_test_server/server/views/suites/jasmine.html.rb', line 3
def spec_files
@spec_files
end
|
Instance Method Details
#body_content ⇒ Object
27
28
29
|
# File 'lib/js_test_server/server/views/suites/jasmine.html.rb', line 27
def body_content
div :id => "jasmine_content"
end
|
#core_js_files ⇒ Object
19
20
21
22
23
24
25
|
# File 'lib/js_test_server/server/views/suites/jasmine.html.rb', line 19
def core_js_files
jasmine_file = File.basename(Dir["#{framework_path}/jasmine*.js"].sort.last)
javascript :src => "/framework/#{jasmine_file}"
javascript :src => "/framework/TrivialReporter.js"
javascript :src => "/js_test_server.js"
javascript :src => "/js_test_server/jasmine_driver.js"
end
|
#head_content ⇒ Object
9
10
11
12
13
14
15
16
17
|
# File 'lib/js_test_server/server/views/suites/jasmine.html.rb', line 9
def head_content
core_js_files
project_js_files
link :rel => "stylesheet", :href => "/framework/jasmine.css"
project_css_files
spec_script_elements
javascript "JsTestServer.JasmineDriver.init();"
end
|
#title_text ⇒ Object
5
6
7
|
# File 'lib/js_test_server/server/views/suites/jasmine.html.rb', line 5
def title_text
"Jasmine suite"
end
|