Tests:
Changes by Darin. Reviewed by myself.
Added new layoutTestController method to dump the document as text.
* DumpRenderTree/main.m:
(-[LayoutTestController dumpAsText]): new method on layoutTestController to dump the innerText
of the body instead of dumping the render tree; better for tests that are not really about layout
(+[LayoutTestController isSelectorExcludedFromWebScript:]): added new dumpAsText selector
(dump): changed name of showRenderTree since it now sometimes dumps text instead
(-[WaitUntilDoneDelegate webView:locationChangeDone:forDataSource:]): calls new dump function
(-[LayoutTestController notifyDone]): calls new dump function
(dumpRenderTree): initializes global variables dumpAsText and waitLayoutTest
WebCore:
Changes by Darin. Reviewed by myself.
Changed the Render Tree debug code to write out an indication that the affinity is upstream
when writing out caret position. Updated the one layout test with output affected by the change.
Also updated one test to use the new dumpAsText method in dumpRenderTree.
* kwq/KWQRenderTreeDebug.cpp: (writeSelection): writes out affinity if it's upstream in the caret case
* layout-tests/editing/style/create-block-for-style-004-expected.txt: new results that contain the affinity
* layout-tests/fast/js/char-at.html: now calls layoutController.dumpAsText()
* layout-tests/fast/js/char-at-expected.txt: plain text result (replaces old render tree result)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9174
268f45cc-cd09-0410-ab3c-
d52691b4dbfc