CompareVersionsTest
waitForElementPresent link=Document Library Test Page
clickAndWait link=Document Library Test Page
clickAndWait //b
clickAndWait //b
click //td[5]/ul/li/strong/span
waitForElementPresent link=Edit
clickAndWait link=Edit
waitForElementPresent _20_file
type _20_file L:\portal\build\portal-web\test\com\liferay\portalweb\portlet\documentlibrary\test_document.txt
waitForElementPresent //input[@value='Save']
clickAndWait //input[@value='Save']
waitForElementPresent //td[5]/ul/li/strong/span
click //td[5]/ul/li/strong/span
waitForElementPresent link=Edit
clickAndWait link=Edit
assertTextPresent 1.1
waitForElementPresent _20_rowIds
click _20_rowIds
waitForElementPresent //input[@value='Compare Versions']
clickAndWait //input[@value='Compare Versions']
assertTextPresent There are no differences between Test Document.txt 1.0 and Test Document.txt 1.1.
waitForElementPresent _20_tabs1TabsBack
clickAndWait _20_tabs1TabsBack
waitForElementPresent _20_file
type _20_file L:\portal\build\portal-web\test\com\liferay\portalweb\portlet\documentlibrary\test_CompareVersionsTest.txt
waitForElementPresent //input[@value='Save']
clickAndWait //input[@value='Save']
waitForElementPresent //td[5]/ul/li/strong/span
click //td[5]/ul/li/strong/span
waitForElementPresent link=Edit
clickAndWait link=Edit
assertTextPresent 1.2
waitForElementPresent //input[@name='_20_rowIds' and @value='1.0']
click //input[@name='_20_rowIds' and @value='1.0']
waitForElementPresent //input[@value='Compare Versions']
clickAndWait //input[@value='Compare Versions']
assertTextPresent CompareVersionsTest