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> <script>window.getSelection().selectAllChildren(foo);</script>
Then I get: <HTML> <HEAD> <SCRIPT src="../../resources/dump-as-markup.js"></SCRIPT> <#text> </#text> </HEAD> <BODY> <DIV id="foo"> <#text><selection-anchor>This is a dumpAsMarkup test.<selection-focus></#text> </DIV> <#text> </#text> <SCRIPT> window.getSelection().selectAllChildren(foo); </SCRIPT> <#text> </#text> </BODY> </HTML> See Writing DumpAsMarkup Tests<http://trac.webkit.org/wiki/Writing%20DumpAsMarkup%20Tests>for more ways you can use dump-as-markup.js Best regards, Ryosuke Niwa
_______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

