Sha256: b014329ba1131f2020df928a65fdcfd0a49c1f9f69fc26d9bfa7d62ec0cb5d75

Contents?: true

Size: 582 Bytes

Versions: 28

Compression:

Stored size: 582 Bytes

Contents

# encoding: UTF-8

require './test_helper'

require 'test/unit'

class TestHtmlParserContext < Test::Unit::TestCase
  def test_default_options
    context = XML::HTMLParser::Context.new
    assert_equal(0, context.options)
  end

  def test_no_options
    context = XML::HTMLParser::Context.new
    context.options = 0
    assert_equal(0, context.options)
  end

  def test_options
    context = XML::HTMLParser::Context.new
    context.options = XML::HTMLParser::Options::NOERROR
    assert_equal(XML::HTMLParser::Options::NOERROR, context.options)
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
libxml-ruby-2.8.0 test/tc_html_parser_context.rb
libxml-ruby-2.7.0-x86-mingw32 test/tc_html_parser_context.rb
libxml-ruby-2.7.0 test/tc_html_parser_context.rb
libxml-ruby-2.6.0-x86-mingw32 test/tc_html_parser_context.rb
libxml-ruby-2.6.0 test/tc_html_parser_context.rb
libxml-ruby-2.5.0-x86-mingw32 test/tc_html_parser_context.rb
libxml-ruby-2.5.0 test/tc_html_parser_context.rb
libxml-ruby-2.4.0-x86-mingw32 test/tc_html_parser_context.rb
libxml-ruby-2.4.0 test/tc_html_parser_context.rb
libxml-ruby-2.3.3-x86-mingw32 test/tc_html_parser_context.rb
libxml-ruby-2.3.3 test/tc_html_parser_context.rb
libxml-ruby-2.3.2 test/tc_html_parser_context.rb
libxml-ruby-2.3.0-x86-mingw32 test/tc_html_parser_context.rb
libxml-ruby-2.3.0 test/tc_html_parser_context.rb
libxml-ruby-2.2.2-x86-mingw32 test/tc_html_parser_context.rb
libxml-ruby-2.2.2 test/tc_html_parser_context.rb
libxml-ruby-2.2.1-x86-mingw32 test/tc_html_parser_context.rb
libxml-ruby-2.2.1 test/tc_html_parser_context.rb
libxml-ruby-2.2.0-x86-mingw32 test/tc_html_parser_context.rb
libxml-ruby-2.2.0 test/tc_html_parser_context.rb