opal-spec 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/opal/spec/browser_formatter.rb +13 -13
- data/lib/opal/spec/version.rb +1 -1
- metadata +2 -2
@@ -56,15 +56,15 @@ module Spec
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def start
|
59
|
-
|
59
|
+
Document.ready? do
|
60
|
+
@summary_element = Element.new '<p class="summary"></p>'
|
61
|
+
@summary_element.append_to_body
|
60
62
|
|
61
|
-
|
62
|
-
|
63
|
+
@groups_element = Element.new '<ul class="example_groups"></ul>'
|
64
|
+
@groups_element.append_to_body
|
63
65
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
DOM("<style>#{ CSS }</style>").append_to_head
|
66
|
+
Element.new("<style>#{ CSS }</style>").append_to_head
|
67
|
+
end
|
68
68
|
end
|
69
69
|
|
70
70
|
def finish
|
@@ -76,7 +76,7 @@ module Spec
|
|
76
76
|
@example_group = group
|
77
77
|
@example_group_failed = false
|
78
78
|
|
79
|
-
@group_element =
|
79
|
+
@group_element = Element.new <<-HTML
|
80
80
|
<li>
|
81
81
|
<span class="group_description">
|
82
82
|
#{ group.description }
|
@@ -84,7 +84,7 @@ module Spec
|
|
84
84
|
</li>
|
85
85
|
HTML
|
86
86
|
|
87
|
-
@example_list =
|
87
|
+
@example_list = Element.new <<-HTML
|
88
88
|
<ul class="examples"></ul>
|
89
89
|
HTML
|
90
90
|
|
@@ -119,12 +119,12 @@ module Spec
|
|
119
119
|
output += " #{exception.backtrace.join "\n "}\n"
|
120
120
|
end
|
121
121
|
|
122
|
-
wrapper =
|
122
|
+
wrapper = Element.new('<li class="example failed"></li>')
|
123
123
|
|
124
|
-
description =
|
124
|
+
description = Element.new('<span class="example_description"></span>')
|
125
125
|
description.text = example.description
|
126
126
|
|
127
|
-
exception =
|
127
|
+
exception = Element.new('<pre class="exception"></pre>')
|
128
128
|
exception.text = output
|
129
129
|
|
130
130
|
wrapper << description
|
@@ -135,7 +135,7 @@ module Spec
|
|
135
135
|
end
|
136
136
|
|
137
137
|
def example_passed example
|
138
|
-
out =
|
138
|
+
out = Element.new <<-HTML
|
139
139
|
<li class="example passed">
|
140
140
|
<span class="example_description">#{ example.description }</span>
|
141
141
|
</li>
|
data/lib/opal/spec/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal-spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-28 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Opal compatible spec library
|
15
15
|
email: adam@adambeynon.com
|