Update to latest HTML5lib, Add Maruku testdir

Sync with the latest html5lib.
Having the Maruku unit tests on-hand may be useful for debugging; so let's include them.
This commit is contained in:
Jacques Distler 2008-01-08 00:01:35 -06:00
parent ebc409e1a0
commit 1085168bbf
337 changed files with 21290 additions and 72 deletions

View file

@ -2,7 +2,7 @@ require File.join(File.dirname(__FILE__), 'preamble')
require 'html5/treebuilders'
require 'html5/html5parser'
require 'html5/cli'
$tree_types_to_test = ['simpletree', 'rexml']
@ -45,7 +45,8 @@ class Html5ParserTestCase < Test::Unit::TestCase
].join("\n")
actual_errors = parser.errors.map do |(line, col), message, datavars|
'Line: %i Col: %i %s' % [line, col, E[message] % datavars]
message = CLI::PythonicTemplate.new(E[message]).to_s(datavars)
"Line: #{line} Col: #{col} #{message}"
end
assert_equal errors, actual_errors, [