Project

General

Profile

Defect #31695 » tests_for_a_elements_without_href.patch

Marius BĂLTEANU, 2019-11-04 21:10

View differences:

test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb
31 31

  
32 32
    assert_equal 'foo [bar](http://example.com/) baz',
33 33
      @parser.to_text('foo<a href="http://example.com/">bar</a>baz')
34

  
34 35
    assert_equal 'foo http://example.com/ baz',
35 36
      @parser.to_text('foo<a href="http://example.com/"></a>baz')
37

  
38
    assert_equal 'foo bar baz',
39
      @parser.to_text('foo<a name="Header-one">bar</a>baz')
40

  
41
    assert_equal 'foo baz',
42
      @parser.to_text('foo<a name="Header-one"/>baz')
36 43
  end
37 44

  
38 45
  def test_html_tables_conversion
test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb
31 31

  
32 32
    assert_equal 'foo "bar":http://example.com/ baz',
33 33
      @parser.to_text('foo<a href="http://example.com/">bar</a>baz')
34

  
34 35
    assert_equal 'foo http://example.com/ baz',
35 36
      @parser.to_text('foo<a href="http://example.com/"></a>baz')
37

  
38
    assert_equal 'foo bar baz',
39
      @parser.to_text('foo<a name="Header-one">bar</a>baz')
40

  
41
    assert_equal 'foo baz',
42
      @parser.to_text('foo<a name="Header-one"/>baz')
36 43
  end
37 44

  
38 45
  def test_html_tables_conversion
(2-2/3)