Methods
T
Instance Public methods
test_blank()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 5
def test_blank
  tokenize ""
  assert_end
end
test_cdata_tag()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 75
def test_cdata_tag
  tokenize %Q{<![CDATA[<br>]]>}
  assert_next %Q{<![CDATA[<br>]]>}
  assert_end
end
test_doctype_tag()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 68
def test_doctype_tag
  tokenize %Q{<!DOCTYPE "blah" "blah" "blah">\n    <html>}
  assert_next %Q{<!DOCTYPE "blah" "blah" "blah">}
  assert_next %Q{\n    }
  assert_next %Q{<html>}
end
test_less_than_with_space()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 88
def test_less_than_with_space
  tokenize %Q{original < hello > world}
  assert_next %Q{original }
  assert_next %Q{< hello > world}
end
test_less_than_without_matching_greater_than()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 94
def test_less_than_without_matching_greater_than
  tokenize %Q{hello <span onmouseover="gotcha"\n<b>foo</b>\nbar</span>}
  assert_next %Q{hello }
  assert_next %Q{<span onmouseover="gotcha"\n}
  assert_next %Q{<b>}
  assert_next %Q{foo}
  assert_next %Q{</b>}
  assert_next %Q{\nbar}
  assert_next %Q{</span>}
  assert_end
end
test_space()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 10
def test_space
  tokenize " "
  assert_next " "
  assert_end
end
test_tag_simple_closing()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 28
def test_tag_simple_closing
  tokenize "</tag>"
  assert_next "</tag>"
end
test_tag_simple_open()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 16
def test_tag_simple_open
  tokenize "<tag>"
  assert_next "<tag>"
  assert_end
end
test_tag_simple_self_closing()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 22
def test_tag_simple_self_closing
  tokenize "<tag />"
  assert_next "<tag />"
  assert_end
end
test_tag_with_double_quoted_attribute()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 43
def test_tag_with_double_quoted_attribute
  tokenize %Q{<tag a="hello">x}
  assert_next %Q{<tag a="hello">}
end
test_tag_with_double_quoted_attribute_with_escape()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 48
def test_tag_with_double_quoted_attribute_with_escape
  tokenize %Q{<tag a="hello\\"">x}
  assert_next %Q{<tag a="hello\\"">}
end
test_tag_with_gt_char_in_attribute()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 63
def test_tag_with_gt_char_in_attribute
  tokenize %Q{<tag a="x > y">x}
  assert_next %Q{<tag a="x > y">}
end
test_tag_with_lt_char_in_attribute()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 58
def test_tag_with_lt_char_in_attribute
  tokenize %Q{<tag a="x < y">x}
  assert_next %Q{<tag a="x < y">}
end
test_tag_with_single_quoted_attribute()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 33
def test_tag_with_single_quoted_attribute
  tokenize %Q{<tag a='hello'>x}
  assert_next %Q{<tag a='hello'>}
end
test_tag_with_single_quoted_attribute_with_escape()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 38
def test_tag_with_single_quoted_attribute_with_escape
  tokenize %Q{<tag a='hello\\''>x}
  assert_next %Q{<tag a='hello\\''>}
end
test_tag_with_unquoted_attribute()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 53
def test_tag_with_unquoted_attribute
  tokenize %Q{<tag a=hello>x}
  assert_next %Q{<tag a=hello>}
end
test_unterminated_cdata_tag()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 81
def test_unterminated_cdata_tag
  tokenize %Q{<content:encoded><![CDATA[ neverending...}
  assert_next %Q{<content:encoded>}
  assert_next %Q{<![CDATA[ neverending...}
  assert_end
end
test_unterminated_comment()
# File actionpack/test/template/html-scanner/tokenizer_test.rb, line 106
def test_unterminated_comment
  tokenize %Q{hello <!-- neverending...}
  assert_next %Q{hello }
  assert_next %Q{<!-- neverending...}
  assert_end
end