[webkit-dev] Introducing dumpAsMarkup

Ryosuke Niwa rniwa at webkit.org
Mon Jul 26 15:06:53 PDT 2010

If tests you write only require comparing DOMs, you want to read this.

We've recently added dump-as-markup. It allows your tests to be platform
independent and gives output that is easier to read than render tree dumps.
For example, if I have:
<script src="../../resources/dump-as-markup.js"></script>
<div id=foo>This is a dumpAsMarkup test.</div>

Then I get:

<SCRIPT src="../../resources/dump-as-markup.js"></SCRIPT>
<DIV id="foo">
<#text><selection-anchor>This is a dumpAsMarkup
<SCRIPT> window.getSelection().selectAllChildren(foo); </SCRIPT>

See Writing DumpAsMarkup
more ways you can use dump-as-markup.js

Best regards,
Ryosuke Niwa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100726/08f8cade/attachment.html>

More information about the webkit-dev mailing list