Class/Module Index [+]

Quicksearch

HTML5::TestSupport

Public Instance Methods

convertTreeDump(treedump) click to toggle source

convert the output of str(document) to the format used in the testcases

# File lib/feed_tools/vendor/html5/tests/preamble.rb, line 27
def convertTreeDump(treedump)
  treedump.split(/\n/)[1..-1].map { |line| (line.length > 2 and line[0] == ||) ? line[3..-1] : line }.join("\n")
end
sortattrs(output) click to toggle source
# File lib/feed_tools/vendor/html5/tests/preamble.rb, line 31
def sortattrs(output)
  output.gsub(/^(\s+)\w+=.*(\n\11\\w+=.*)+/) do |match|
     match.split("\n").sort.join("\n")
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.