com.atlassian.confluence.selenium.client
Class RoundTripTester

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.RoundTripTester

public class RoundTripTester
extends Object

Helper class to test RTE roundtripping. Tests require wysiwyg editing to be the default.


Constructor Summary
RoundTripTester(Editor editor, ConfluenceRpc rpc, User testUser, Page testPage)
           
 
Method Summary
 void testWikiMarkupRoundTrip(String wikiMarkup)
          Test that the given wiki markup does not change when we change to the RTE and back.
 void testWikiMarkupRoundTrip(String originalWikiMarkup, String expectedAlteredWikiMarkup)
          Test that the given wiki markup changes in an expected way when we change to the RTE and back.
 void testWikiMarkupRoundTrip(String originalWikiMarkup, String xhtml, String eventualWikiMarkup)
          Tests the round-trip of a piece of wiki markup and checks the intermediate xhtml form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundTripTester

public RoundTripTester(Editor editor,
                       ConfluenceRpc rpc,
                       User testUser,
                       Page testPage)
Method Detail

testWikiMarkupRoundTrip

public void testWikiMarkupRoundTrip(String wikiMarkup)
Test that the given wiki markup does not change when we change to the RTE and back.


testWikiMarkupRoundTrip

public void testWikiMarkupRoundTrip(String originalWikiMarkup,
                                    String expectedAlteredWikiMarkup)
Test that the given wiki markup changes in an expected way when we change to the RTE and back.


testWikiMarkupRoundTrip

public void testWikiMarkupRoundTrip(String originalWikiMarkup,
                                    String xhtml,
                                    String eventualWikiMarkup)
Tests the round-trip of a piece of wiki markup and checks the intermediate xhtml form. Note that the xhtml is compared lowercase as different browsers produce different case from Editor.getRichTextContent().

WARNING: This method tends not to work across multiple browsers, but it can be handy for ad-hoc testing.



Copyright © 2003-2011 Atlassian. All Rights Reserved.