Many Minor Fixes
Fixed a whole bunch of minor stuff. Had a go at getting some of the plethora of broken tests to pass.
This commit is contained in:
parent
0ddd422059
commit
2da672ec5b
13 changed files with 108 additions and 84 deletions
3
vendor/plugins/HTML5lib/tests/test_parser.rb
vendored
3
vendor/plugins/HTML5lib/tests/test_parser.rb
vendored
|
@ -12,7 +12,7 @@ begin
|
|||
rescue LoadError
|
||||
end
|
||||
|
||||
$CHECK_PARSER_ERRORS = false
|
||||
$CHECK_PARSER_ERRORS = ARGV.delete('-p')
|
||||
|
||||
puts 'Testing tree builders: ' + $tree_types_to_test * ', '
|
||||
|
||||
|
@ -55,6 +55,7 @@ class Html5ParserTestCase < Test::Unit::TestCase
|
|||
'Line: %i Col: %i %s' % [line, col, message]
|
||||
end
|
||||
assert_equal expected_errors.length, parser.errors.length, [
|
||||
'Input', input + "\n",
|
||||
'Expected errors:', expected_errors.join("\n"),
|
||||
'Actual errors:', actual_errors.join("\n")
|
||||
].join("\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue