1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Remove some trivial documents

This commit is contained in:
Takashi Kokubun 2015-06-07 23:00:25 +09:00
parent cf77045f95
commit 1191340cd1
4 changed files with 8 additions and 113 deletions

View file

@ -7,17 +7,5 @@ Showing incompatibilities against [Haml](https://github.com/haml/haml) and [Faml
- [engine/old\_attributes\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/engine/old_attributes.md) - [engine/old\_attributes\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/engine/old_attributes.md)
- [engine/script\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/engine/script.md) - [engine/script\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/engine/script.md)
- [engine/silent\_script\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/engine/silent_script.md)
- [engine/tag\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/engine/tag.md) - [engine/tag\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/engine/tag.md)
- [engine/text\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/engine/text.md) - [engine/text\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/engine/text.md)
## filters
- [filters/coffee\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/filters/coffee.md)
- [filters/erb\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/filters/erb.md)
- [filters/javascript\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/filters/javascript.md)
- [filters/less\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/filters/less.md)
- [filters/markdown\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/filters/markdown.md)
- [filters/plain\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/filters/plain.md)
- [filters/sass\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/filters/sass.md)
- [filters/scss\_spec.rb](https://github.com/k0kubun/hamlit/blob/master/doc/filters/scss.md)

View file

@ -1,97 +0,0 @@
# [silent\_script\_spec.rb:79](https://github.com/k0kubun/hamlit/blob/master/spec/hamlit/engine/silent_script_spec.rb#L79)
## Input
```haml
%span
- if false
- elsif false
```
## Output
### Haml, Hamlit
```html
<span>
</span>
```
### Faml
```html
SyntaxError: (eval):4: syntax error, unexpected end-of-input, expecting keyword_end
; _buf << ("</span>\n".freeze); _buf = _buf.join
^
```
# [silent\_script\_spec.rb:90](https://github.com/k0kubun/hamlit/blob/master/spec/hamlit/engine/silent_script_spec.rb#L90)
## Input
```haml
%span
- if false
ng
- else
```
## Output
### Haml, Hamlit
```html
<span>
</span>
```
### Faml
```html
SyntaxError: (eval):5: syntax error, unexpected end-of-input, expecting keyword_end
; _buf << ("</span>\n".freeze); _buf = _buf.join
^
```
# [silent\_script\_spec.rb:102](https://github.com/k0kubun/hamlit/blob/master/spec/hamlit/engine/silent_script_spec.rb#L102)
## Input
```haml
%span
- case
- when false
```
## Output
### Haml, Hamlit
```html
<span>
</span>
```
### Faml
```html
SyntaxError: (eval):4: syntax error, unexpected end-of-input, expecting keyword_end
; _buf << ("</span>\n".freeze); _buf = _buf.join
^
```
# [silent\_script\_spec.rb:190](https://github.com/k0kubun/hamlit/blob/master/spec/hamlit/engine/silent_script_spec.rb#L190)
## Input
```haml
- foo = [',
']
= foo
```
## Output
### Haml, Hamlit
```html
[&quot;, &quot;]
```
### Faml
```html
[&quot;,\n &quot;]
```

View file

@ -76,7 +76,7 @@ describe Hamlit::Engine do
HTML HTML
end end
it 'renders empty elsif statement' do it 'renders empty elsif statement', skipdoc: true do
assert_render(<<-'HAML', <<-HTML, compatible_only: :haml, error_with: :faml) assert_render(<<-'HAML', <<-HTML, compatible_only: :haml, error_with: :faml)
%span %span
- if false - if false
@ -87,7 +87,7 @@ describe Hamlit::Engine do
HTML HTML
end end
it 'renders empty else statement' do it 'renders empty else statement', skipdoc: true do
assert_render(<<-'HAML', <<-HTML, compatible_only: :haml, error_with: :faml) assert_render(<<-'HAML', <<-HTML, compatible_only: :haml, error_with: :faml)
%span %span
- if false - if false
@ -99,7 +99,7 @@ describe Hamlit::Engine do
HTML HTML
end end
it 'renders empty when statement' do it 'renders empty when statement', skipdoc: true do
assert_render(<<-'HAML', <<-HTML, compatible_only: :haml, error_with: :faml) assert_render(<<-'HAML', <<-HTML, compatible_only: :haml, error_with: :faml)
%span %span
- case - case
@ -187,7 +187,7 @@ describe Hamlit::Engine do
HTML HTML
end end
it 'joins a next line if a current line ends with ","' do it 'joins a next line if a current line ends with ","', skipdoc: true do
assert_render("- foo = [', \n ']\n= foo", <<-HTML, compatible_only: :haml) assert_render("- foo = [', \n ']\n= foo", <<-HTML, compatible_only: :haml)
[&quot;, &quot;] [&quot;, &quot;]
HTML HTML

View file

@ -156,6 +156,10 @@ class TestCase < Struct.new(:file, :dir, :lineno, :src_haml, :haml_html, :faml_h
TOC TOC
incompatibilities.group_by(&:dir).each do |dir, tests| incompatibilities.group_by(&:dir).each do |dir, tests|
# TODO: Split incompatibility documents into haml and faml
# There are too many noisy documents now.
next if dir == 'filters'
table_of_contents << "\n## #{dir}\n" table_of_contents << "\n## #{dir}\n"
tests.group_by(&:doc_path).each do |path, tests| tests.group_by(&:doc_path).each do |path, tests|