Skip to content
Browse files

LPS-27485

  • Loading branch information...
1 parent 51c3aee commit e0412275c9376a4da6f5a28ec02d2e80e24c3d7e @michaelhashimoto michaelhashimoto committed with brianchandotcom May 22, 2012
Showing with 3,041 additions and 9,261 deletions.
  1. +2 −2 ...b/portal/{StagingCommunityAssetPublisherTestSuite.java → StagingSiteAssetPublisherTestSuite.java}
  2. +2 −2 ...m/liferay/portalweb/portal/{StagingCommunityBlogsTestSuite.java → StagingSiteBlogsTestSuite.java}
  3. +2 −2 ...portal/{StagingCommunityDocumentLibraryTestSuite.java → StagingSiteDocumentLibraryTestSuite.java}
  4. +2 −2 ...m/liferay/portalweb/portal/{StagingCommunitySitesTestSuite.java → StagingSiteSitesTestSuite.java}
  5. +2 −2 ...al/{StagingCommunityWebContentDisplayTestSuite.java → StagingSiteWebContentDisplayTestSuite.java}
  6. +0 −356 ...iferay/portalweb/stagingcommunity/assetpublisher/assertcannoteditapentry/ActivateStagingTest.java
  7. +0 −63 ...al-web/test/com/liferay/portalweb/stagingcommunity/documentlibrary/document/DocumentTestPlan.java
  8. +0 −163 ...ry/document/deletedldocumentsitestaginglocallivedlactions/ActivateSiteStagingLocalLiveDLTest.java
  9. +0 −147 ...cument/deletedldocumentsitestaginglocallivedlactions/AddDLDocumentSiteStagingLocalLiveDLTest.java
  10. +0 −165 ...cumentlibrary/document/deletedldocumentsitestaginglocallivedlactions/AddSitePublicPageDLTest.java
  11. +0 −94 ...ibrary/document/deletedldocumentsitestaginglocallivedlactions/AddSitePublicPagePortletDLTest.java
  12. +0 −302 ...nity/documentlibrary/document/deletedldocumentsitestaginglocallivedlactions/TearDownSiteTest.java
  13. +0 −302 ...gingcommunity/documentlibrary/document/deletelivepagesitestaginglocallivedl/TearDownSiteTest.java
  14. +0 −163 ...ry/document/deletesitestaginglocallivedldldocumentactions/ActivateSiteStagingLocalLiveDLTest.java
  15. +0 −165 ...cumentlibrary/document/deletesitestaginglocallivedldldocumentactions/AddSitePublicPageDLTest.java
  16. +0 −94 ...ibrary/document/deletesitestaginglocallivedldldocumentactions/AddSitePublicPagePortletDLTest.java
  17. +0 −302 ...nity/documentlibrary/document/deletesitestaginglocallivedldldocumentactions/TearDownSiteTest.java
  18. +0 −302 ...gingcommunity/documentlibrary/document/publishtolivenowdldocumentnodatadock/TearDownSiteTest.java
  19. +0 −302 ...tagingcommunity/documentlibrary/document/publishtolivenowdldocumentnodldock/TearDownSiteTest.java
  20. +0 −165 ...unity/documentlibrary/document/publishtolivenowdldocumentnopagesdock/AddSitePublicPageDLTest.java
  21. +0 −94 ...ocumentlibrary/document/publishtolivenowdldocumentnopagesdock/AddSitePublicPagePortletDLTest.java
  22. +0 −302 ...ingcommunity/documentlibrary/document/publishtolivenowdldocumentnopagesdock/TearDownSiteTest.java
  23. +0 −302 ...stagingcommunity/documentlibrary/document/publishtolivenowpagedlnopagesdock/TearDownSiteTest.java
  24. +0 −163 ...ary/document/viewactivatedeactivatesitestaginglocallivedl/ActivateSiteStagingLocalLiveDLTest.java
  25. +0 −147 ...ocument/viewactivatedeactivatesitestaginglocallivedl/AddDLDocumentSiteStagingLocalLiveDLTest.java
  26. +0 −165 ...ocumentlibrary/document/viewactivatedeactivatesitestaginglocallivedl/AddSitePublicPageDLTest.java
  27. +0 −94 ...library/document/viewactivatedeactivatesitestaginglocallivedl/AddSitePublicPagePortletDLTest.java
  28. +0 −120 .../documentlibrary/document/viewactivatedeactivatesitestaginglocallivedl/DeactivateStagingTest.java
  29. +0 −302 ...unity/documentlibrary/document/viewactivatedeactivatesitestaginglocallivedl/TearDownSiteTest.java
  30. +0 −356 ...m/liferay/portalweb/stagingcommunity/sites/event/addeventrepeatneversptl/ActivateStagingTest.java
  31. +0 −302 .../com/liferay/portalweb/stagingcommunity/sites/event/addeventrepeatneversptl/TearDownSiteTest.java
  32. +0 −356 .../liferay/portalweb/stagingcommunity/sites/event/addeventrepeatweeklysptl/ActivateStagingTest.java
  33. +0 −302 ...com/liferay/portalweb/stagingcommunity/sites/event/addeventrepeatweeklysptl/TearDownSiteTest.java
  34. +0 −356 .../liferay/portalweb/stagingcommunity/sites/event/addeventrepeatyearlysptl/ActivateStagingTest.java
  35. +0 −165 ...iferay/portalweb/stagingcommunity/sites/event/addeventrepeatyearlysptl/AddSitePublicPageTest.java
  36. +0 −302 ...com/liferay/portalweb/stagingcommunity/sites/event/addeventrepeatyearlysptl/TearDownSiteTest.java
  37. +0 −165 ...iferay/portalweb/stagingcommunity/sites/pagevariation/addpagevariation/AddSitePublicPageTest.java
  38. +0 −302 ...com/liferay/portalweb/stagingcommunity/sites/pagevariation/addpagevariation/TearDownSiteTest.java
  39. +0 −165 ...talweb/stagingcommunity/sites/sitepagesvariation/addsitepagesvariation/AddSitePublicPageTest.java
  40. +0 −302 ...y/portalweb/stagingcommunity/sites/sitepagesvariation/addsitepagesvariation/TearDownSiteTest.java
  41. +0 −356 ...community/webcontentdisplay/wcwebcontent/assertcannoteditwcwebcontentwcd/ActivateStagingTest.java
  42. +0 −165 ...mmunity/webcontentdisplay/wcwebcontent/assertcannoteditwcwebcontentwcd/AddSitePublicPageTest.java
  43. +0 −302 ...ingcommunity/webcontentdisplay/wcwebcontent/assertcannoteditwcwebcontentwcd/TearDownSiteTest.java
  44. +0 −165 ...gingcommunity/webcontentdisplay/wcwebcontent/asserteditwcwebcontentwcd/AddSitePublicPageTest.java
  45. +0 −302 ...b/stagingcommunity/webcontentdisplay/wcwebcontent/asserteditwcwebcontentwcd/TearDownSiteTest.java
  46. +3 −3 ...com/liferay/portalweb/{stagingcommunity → stagingsite}/assetpublisher/AssetPublisherTestPlan.java
  47. 0 ...ditwcwebcontentwcd → stagingsite/assetpublisher/assertcannoteditapentry}/ActivateStagingTest.html
  48. +1 −1 ...entrepeatdailysptl → stagingsite/assetpublisher/assertcannoteditapentry}/ActivateStagingTest.java
  49. 0 ...er/asserteditapentry → stagingsite/assetpublisher/assertcannoteditapentry}/AddBlogsEntryTest.html
  50. +1 −1 ...eb/{stagingcommunity → stagingsite}/assetpublisher/assertcannoteditapentry/AddBlogsEntryTest.java
  51. 0 ...lisher/asserteditapentry → stagingsite/assetpublisher/assertcannoteditapentry}/AddPageAPTest.html
  52. +1 −1 ...talweb/{stagingcommunity → stagingsite}/assetpublisher/assertcannoteditapentry/AddPageAPTest.java
  53. 0 ...her/asserteditapentry → stagingsite/assetpublisher/assertcannoteditapentry}/AddPageBlogsTest.html
  54. +1 −1 ...web/{stagingcommunity → stagingsite}/assetpublisher/assertcannoteditapentry/AddPageBlogsTest.java
  55. 0 ...her/asserteditapentry → stagingsite/assetpublisher/assertcannoteditapentry}/AddPortletAPTest.html
  56. +1 −1 ...web/{stagingcommunity → stagingsite}/assetpublisher/assertcannoteditapentry/AddPortletAPTest.java
  57. 0 .../asserteditapentry → stagingsite/assetpublisher/assertcannoteditapentry}/AddPortletBlogsTest.html
  58. +1 −1 .../{stagingcommunity → stagingsite}/assetpublisher/assertcannoteditapentry/AddPortletBlogsTest.java
  59. 0 ...stagingcommunity → stagingsite}/assetpublisher/assertcannoteditapentry/AddSitePublicPageTest.html
  60. +1 −1 ...trepeatneversptl → stagingsite/assetpublisher/assertcannoteditapentry}/AddSitePublicPageTest.java
  61. 0 ...ditapentry → stagingsite/assetpublisher/assertcannoteditapentry}/AssertCannotEditAPEntryTest.html
  62. +1 −1 ...gcommunity → stagingsite}/assetpublisher/assertcannoteditapentry/AssertCannotEditAPEntryTest.java
  63. 0 ...community → stagingsite}/assetpublisher/assertcannoteditapentry/AssertCannotEditAPEntryTests.html
  64. +1 −1 ...community → stagingsite}/assetpublisher/assertcannoteditapentry/AssertCannotEditAPEntryTests.java
  65. 0 ...sserteditapentry → stagingsite/assetpublisher/assertcannoteditapentry}/AssertEditAPEntryTest.html
  66. +1 −1 ...stagingcommunity → stagingsite}/assetpublisher/assertcannoteditapentry/AssertEditAPEntryTest.java
  67. 0 ...twcwebcontentwcd → stagingsite/assetpublisher/assertcannoteditapentry}/DeactivateStagingTest.html
  68. +1 −1 ...stagingcommunity → stagingsite}/assetpublisher/assertcannoteditapentry/DeactivateStagingTest.java
  69. 0 ...rteditwcwebcontentwcd → stagingsite/assetpublisher/assertcannoteditapentry}/TearDownSiteTest.html
  70. +1 −1 ...deventrepeatdailysptl → stagingsite/assetpublisher/assertcannoteditapentry}/TearDownSiteTest.java
  71. 0 ...s/site/deactivatestaging → stagingsite/assetpublisher/asserteditapentry}/ActivateStagingTest.html
  72. +1 −1 ...s/site/deactivatestaging → stagingsite/assetpublisher/asserteditapentry}/ActivateStagingTest.java
  73. 0 ...er/assertcannoteditapentry → stagingsite/assetpublisher/asserteditapentry}/AddBlogsEntryTest.html
  74. +1 −1 ...ortalweb/{stagingcommunity → stagingsite}/assetpublisher/asserteditapentry/AddBlogsEntryTest.java
  75. 0 ...lisher/assertcannoteditapentry → stagingsite/assetpublisher/asserteditapentry}/AddPageAPTest.html
  76. +1 −1 ...ay/portalweb/{stagingcommunity → stagingsite}/assetpublisher/asserteditapentry/AddPageAPTest.java
  77. 0 ...her/assertcannoteditapentry → stagingsite/assetpublisher/asserteditapentry}/AddPageBlogsTest.html
  78. +1 −1 ...portalweb/{stagingcommunity → stagingsite}/assetpublisher/asserteditapentry/AddPageBlogsTest.java
  79. 0 ...her/assertcannoteditapentry → stagingsite/assetpublisher/asserteditapentry}/AddPortletAPTest.html
  80. +1 −1 ...portalweb/{stagingcommunity → stagingsite}/assetpublisher/asserteditapentry/AddPortletAPTest.java
  81. 0 .../assertcannoteditapentry → stagingsite/assetpublisher/asserteditapentry}/AddPortletBlogsTest.html
  82. +1 −1 ...talweb/{stagingcommunity → stagingsite}/assetpublisher/asserteditapentry/AddPortletBlogsTest.java
  83. 0 ...erteditwcwebcontentwcd → stagingsite/assetpublisher/asserteditapentry}/AddSitePublicPageTest.html
  84. +1 −1 ...lweb/{stagingcommunity → stagingsite}/assetpublisher/asserteditapentry/AddSitePublicPageTest.java
  85. 0 ...annoteditapentry → stagingsite/assetpublisher/asserteditapentry}/AssertCannotEditAPEntryTest.html
  86. +1 −1 ...stagingcommunity → stagingsite}/assetpublisher/asserteditapentry/AssertCannotEditAPEntryTest.java
  87. 0 ...ssertcannoteditapentry → stagingsite/assetpublisher/asserteditapentry}/AssertEditAPEntryTest.html
  88. +1 −1 ...lweb/{stagingcommunity → stagingsite}/assetpublisher/asserteditapentry/AssertEditAPEntryTest.java
  89. 0 ...web/{stagingcommunity → stagingsite}/assetpublisher/asserteditapentry/AssertEditAPEntryTests.html
  90. +1 −1 ...web/{stagingcommunity → stagingsite}/assetpublisher/asserteditapentry/AssertEditAPEntryTests.java
  91. 0 ...site/deactivatestaging → stagingsite/assetpublisher/asserteditapentry}/DeactivateStagingTest.html
  92. +1 −1 ...site/deactivatestaging → stagingsite/assetpublisher/asserteditapentry}/DeactivateStagingTest.java
  93. 0 ...rtcannoteditwcwebcontentwcd → stagingsite/assetpublisher/asserteditapentry}/TearDownSiteTest.html
  94. +1 −1 ...ites/site/deactivatestaging → stagingsite/assetpublisher/asserteditapentry}/TearDownSiteTest.java
  95. 0 ...al-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/ActivateStagingTest.html
  96. +1 −1 ...al-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/ActivateStagingTest.java
  97. 0 ...b/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/AddUserAdministratorTest.html
  98. +1 −1 ...b/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/AddUserAdministratorTest.java
  99. 0 ...om/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/AddUserPortalContentReviewerTest.html
  100. +1 −1 ...om/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/AddUserPortalContentReviewerTest.java
  101. 0 ...l-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/AddUserPowerUserTest.html
  102. +1 −1 ...l-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/AddUserPowerUserTest.java
  103. 0 ...eb/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/Administrator_LoginTest.html
  104. +1 −1 ...eb/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/Administrator_LoginTest.java
  105. 0 ...b/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/Administrator_LogoutTest.html
  106. +1 −1 ...b/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/Administrator_LogoutTest.java
  107. 0 ...alweb/{stagingcommunity → stagingsite}/blogs/Administrator_PublishToLiveStagedBlogsEntryTest.html
  108. +1 −1 ...alweb/{stagingcommunity → stagingsite}/blogs/Administrator_PublishToLiveStagedBlogsEntryTest.java
  109. 0 ...y/portalweb/{stagingcommunity → stagingsite}/blogs/Administrator_PublishToLiveStagedPageTest.html
  110. +1 −1 ...y/portalweb/{stagingcommunity → stagingsite}/blogs/Administrator_PublishToLiveStagedPageTest.java
  111. 0 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/BlogsTests.html
  112. +1 −1 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/BlogsTests.java
  113. 0 ...feray/portalweb/{stagingcommunity → stagingsite}/blogs/ConfigureBlogsEntrySingleApproverTest.html
  114. +1 −1 ...feray/portalweb/{stagingcommunity → stagingsite}/blogs/ConfigureBlogsEntrySingleApproverTest.java
  115. 0 ...-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/DeactivateStagingTest.html
  116. +1 −1 ...-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/DeactivateStagingTest.java
  117. 0 ...talweb/{stagingcommunity → stagingsite}/blogs/DefinePermissionsBlogsManagePagesPowerUserTest.html
  118. +1 −1 ...talweb/{stagingcommunity → stagingsite}/blogs/DefinePermissionsBlogsManagePagesPowerUserTest.java
  119. 0 ...test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/Guest_AssertBlogsEntryTest.html
  120. +1 −1 ...test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/Guest_AssertBlogsEntryTest.java
  121. 0 ...ray/portalweb/{stagingcommunity → stagingsite}/blogs/Guest_AssertNoBlogsEntryPreApprovalTest.html
  122. +1 −1 ...ray/portalweb/{stagingcommunity → stagingsite}/blogs/Guest_AssertNoBlogsEntryPreApprovalTest.java
  123. 0 ...eray/portalweb/{stagingcommunity → stagingsite}/blogs/Guest_AssertNoBlogsEntryPrePublishTest.html
  124. +1 −1 ...eray/portalweb/{stagingcommunity → stagingsite}/blogs/Guest_AssertNoBlogsEntryPrePublishTest.java
  125. 0 ...om/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/Guest_AssertNoPagePrePublishTest.html
  126. +1 −1 ...om/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/Guest_AssertNoPagePrePublishTest.java
  127. 0 ...est/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/Guest_AssertPagePresentTest.html
  128. +1 −1 ...est/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/Guest_AssertPagePresentTest.java
  129. 0 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/LoginTest.html
  130. +1 −1 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/LoginTest.java
  131. 0 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/LogoutTest.html
  132. +1 −1 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/LogoutTest.java
  133. 0 ...eray/portalweb/{stagingcommunity → stagingsite}/blogs/PCR_ApproveStagedBlogsEntryActionsTest.html
  134. +1 −1 ...eray/portalweb/{stagingcommunity → stagingsite}/blogs/PCR_ApproveStagedBlogsEntryActionsTest.java
  135. 0 ...y/portalweb/{stagingcommunity → stagingsite}/blogs/PCR_AssignToMeStagedBlogsEntryActionsTest.html
  136. +1 −1 ...y/portalweb/{stagingcommunity → stagingsite}/blogs/PCR_AssignToMeStagedBlogsEntryActionsTest.java
  137. 0 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/PCR_LoginTest.html
  138. +1 −1 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/PCR_LoginTest.java
  139. 0 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/PCR_LogoutTest.html
  140. +1 −1 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/PCR_LogoutTest.java
  141. 0 ...test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/PU_AddStagedBlogsEntryTest.html
  142. +1 −1 ...test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/PU_AddStagedBlogsEntryTest.java
  143. 0 ...l-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/PU_AddStagedPageTest.html
  144. +1 −1 ...l-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/PU_AddStagedPageTest.java
  145. 0 ...eb/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/PU_AddStagedPortletTest.html
  146. +1 −1 ...eb/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/PU_AddStagedPortletTest.java
  147. 0 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/PU_LoginTest.html
  148. +1 −1 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/PU_LoginTest.java
  149. 0 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/PU_LogoutTest.html
  150. +1 −1 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/PU_LogoutTest.java
  151. 0 ...eb/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/TearDownPermissionsTest.html
  152. +1 −1 ...eb/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/TearDownPermissionsTest.java
  153. 0 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/TearDownUserTest.html
  154. +1 −1 portal-web/test/com/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/TearDownUserTest.java
  155. 0 ...m/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/TearDownWorkflowConfigurationTest.html
  156. +1 −1 ...m/liferay/portalweb/{stagingcommunity → stagingsite}/blogs/TearDownWorkflowConfigurationTest.java
  157. +2 −2 ...m/liferay/portalweb/{stagingcommunity → stagingsite}/documentlibrary/DocumentLibraryTestPlan.java
  158. 0 ...m/liferay/portalweb/{stagingcommunity → stagingsite}/documentlibrary/dependencies/DLDocument.docx
  159. 0 ...om/liferay/portalweb/{stagingcommunity → stagingsite}/documentlibrary/dependencies/DLDocument.txt
  160. 0 ...m/liferay/portalweb/{stagingcommunity → stagingsite}/documentlibrary/dependencies/DLDocument.xlsx
  161. +63 −0 portal-web/test/com/liferay/portalweb/stagingsite/documentlibrary/document/DocumentTestPlan.java
  162. 0 ...mentlibrary/document/adddldocumentsitestaginglocallivedl}/ActivateSiteStagingLocalLiveDLTest.html
  163. +1 −1 ...mentlibrary/document/adddldocumentsitestaginglocallivedl}/ActivateSiteStagingLocalLiveDLTest.java
  164. 0 ...ibrary/document/adddldocumentsitestaginglocallivedl}/AddDLDocumentSiteStagingLocalLiveDLTest.html
  165. +1 −1 ...ibrary/document/adddldocumentsitestaginglocallivedl}/AddDLDocumentSiteStagingLocalLiveDLTest.java
  166. 0 ...ibrary/document/adddldocumentsitestaginglocallivedl/AddDLDocumentSiteStagingLocalLiveDLTests.html
  167. +1 −1 ...ibrary/document/adddldocumentsitestaginglocallivedl/AddDLDocumentSiteStagingLocalLiveDLTests.java
  168. 0 ...ngsite/documentlibrary/document/adddldocumentsitestaginglocallivedl}/AddSitePublicPageDLTest.html
  169. +1 −1 ...ngsite/documentlibrary/document/adddldocumentsitestaginglocallivedl}/AddSitePublicPageDLTest.java
  170. 0 ...documentlibrary/document/adddldocumentsitestaginglocallivedl}/AddSitePublicPagePortletDLTest.html
  171. +1 −1 ...documentlibrary/document/adddldocumentsitestaginglocallivedl}/AddSitePublicPagePortletDLTest.java
  172. 0 ...→ stagingsite/documentlibrary/document/adddldocumentsitestaginglocallivedl}/TearDownSiteTest.html
  173. +1 −1 ...→ stagingsite/documentlibrary/document/adddldocumentsitestaginglocallivedl}/TearDownSiteTest.java
  174. 0 ...ary/document/adddldocumentsitestaginglocallivedl/ViewAddDLDocumentSiteStagingLocalLiveDLTest.html
  175. +1 −1 ...ary/document/adddldocumentsitestaginglocallivedl/ViewAddDLDocumentSiteStagingLocalLiveDLTest.java
  176. 0 ...tlibrary/document/adddldocumentsitestaginglocallivenodl/ActivateSiteStagingLocalLiveNoDLTest.html
  177. +1 −1 ...tlibrary/document/adddldocumentsitestaginglocallivenodl/ActivateSiteStagingLocalLiveNoDLTest.java
  178. 0 ...ry/document/adddldocumentsitestaginglocallivenodl}/AddDLDocumentSiteStagingLocalLiveNoDLTest.html
  179. +1 −1 ...ry/document/adddldocumentsitestaginglocallivenodl}/AddDLDocumentSiteStagingLocalLiveNoDLTest.java
  180. 0 ...ry/document/adddldocumentsitestaginglocallivenodl/AddDLDocumentSiteStagingLocalLiveNoDLTests.html
  181. +1 −1 ...ry/document/adddldocumentsitestaginglocallivenodl/AddDLDocumentSiteStagingLocalLiveNoDLTests.java
  182. 0 ...site/documentlibrary/document/adddldocumentsitestaginglocallivenodl}/AddSitePublicPageDLTest.html
  183. +1 −1 ...site/documentlibrary/document/adddldocumentsitestaginglocallivenodl}/AddSitePublicPageDLTest.java
  184. 0 ...cumentlibrary/document/adddldocumentsitestaginglocallivenodl}/AddSitePublicPagePortletDLTest.html
  185. +1 −1 ...cumentlibrary/document/adddldocumentsitestaginglocallivenodl}/AddSitePublicPagePortletDLTest.java
  186. 0 ...stagingsite/documentlibrary/document/adddldocumentsitestaginglocallivenodl}/TearDownSiteTest.html
  187. +302 −0 .../stagingsite/documentlibrary/document/adddldocumentsitestaginglocallivenodl/TearDownSiteTest.java
  188. 0 ...document/adddldocumentsitestaginglocallivenodl/ViewAddDLDocumentSiteStagingLocalLiveNoDLTest.html
  189. +1 −1 ...document/adddldocumentsitestaginglocallivenodl/ViewAddDLDocumentSiteStagingLocalLiveNoDLTest.java
  190. 0 ...y/document/deletedldocumentsitestaginglocallivedlactions}/ActivateSiteStagingLocalLiveDLTest.html
  191. +1 −1 ...y/document/deletedldocumentsitestaginglocallivedlactions}/ActivateSiteStagingLocalLiveDLTest.java
  192. 0 ...ument/deletedldocumentsitestaginglocallivedlactions}/AddDLDocumentSiteStagingLocalLiveDLTest.html
  193. +147 −0 ...cument/deletedldocumentsitestaginglocallivedlactions/AddDLDocumentSiteStagingLocalLiveDLTest.java
  194. 0 ...umentlibrary/document/deletedldocumentsitestaginglocallivedlactions}/AddSitePublicPageDLTest.html
  195. +165 −0 ...cumentlibrary/document/deletedldocumentsitestaginglocallivedlactions/AddSitePublicPageDLTest.java
  196. 0 ...brary/document/deletedldocumentsitestaginglocallivedlactions}/AddSitePublicPagePortletDLTest.html
  197. +1 −1 ...brary/document/deletedldocumentsitestaginglocallivedlactions}/AddSitePublicPagePortletDLTest.java
  198. 0 ...etedldocumentsitestaginglocallivedlactions/DeleteDLDocumentSiteStagingLocalLiveDLActionsTest.html
  199. +1 −1 ...etedldocumentsitestaginglocallivedlactions/DeleteDLDocumentSiteStagingLocalLiveDLActionsTest.java
  200. 0 ...tedldocumentsitestaginglocallivedlactions/DeleteDLDocumentSiteStagingLocalLiveDLActionsTests.html
  201. +1 −1 ...tedldocumentsitestaginglocallivedlactions/DeleteDLDocumentSiteStagingLocalLiveDLActionsTests.java
  202. 0 ...ite/documentlibrary/document/deletedldocumentsitestaginglocallivedlactions}/TearDownSiteTest.html
  203. +1 −1 ...ite/documentlibrary/document/deletedldocumentsitestaginglocallivedlactions}/TearDownSiteTest.java
  204. 0 ...deletedldocumentsitestaginglocallivedlactions/ViewDeleteDLDocumentSiteStagingLocalLiveDLTest.html
  205. +1 −1 ...deletedldocumentsitestaginglocallivedlactions/ViewDeleteDLDocumentSiteStagingLocalLiveDLTest.java
  206. 0 ...entlibrary/document/deletelivepagesitestaginglocallivedl}/ActivateSiteStagingLocalLiveDLTest.html
  207. +1 −1 ...entlibrary/document/deletelivepagesitestaginglocallivedl}/ActivateSiteStagingLocalLiveDLTest.java
  208. 0 ...stagingsite}/documentlibrary/document/deletelivepagesitestaginglocallivedl/AddDLDocumentTest.html
  209. +1 −1 ...stagingsite}/documentlibrary/document/deletelivepagesitestaginglocallivedl/AddDLDocumentTest.java
  210. 0 ...gsite}/documentlibrary/document/deletelivepagesitestaginglocallivedl/AddSitePublicPageDLTest.html
  211. +1 −1 ...gsite}/documentlibrary/document/deletelivepagesitestaginglocallivedl/AddSitePublicPageDLTest.java
  212. 0 ...ocumentlibrary/document/deletelivepagesitestaginglocallivedl}/AddSitePublicPagePortletDLTest.html
  213. +1 −1 ...ocumentlibrary/document/deletelivepagesitestaginglocallivedl}/AddSitePublicPagePortletDLTest.java
  214. 0 ...ingsite}/documentlibrary/document/deletelivepagesitestaginglocallivedl/AddSitePublicPageTest.html
  215. +1 −1 ...ingsite}/documentlibrary/document/deletelivepagesitestaginglocallivedl/AddSitePublicPageTest.java
  216. 0 ...brary/document/deletelivepagesitestaginglocallivedl/DeleteLivePageSiteStagingLocalLiveDLTest.html
  217. +1 −1 ...brary/document/deletelivepagesitestaginglocallivedl/DeleteLivePageSiteStagingLocalLiveDLTest.java
  218. 0 ...rary/document/deletelivepagesitestaginglocallivedl/DeleteLivePageSiteStagingLocalLiveDLTests.html
  219. +1 −1 ...rary/document/deletelivepagesitestaginglocallivedl/DeleteLivePageSiteStagingLocalLiveDLTests.java
  220. 0 ... stagingsite/documentlibrary/document/deletelivepagesitestaginglocallivedl}/TearDownSiteTest.html
  221. +302 −0 ...b/stagingsite/documentlibrary/document/deletelivepagesitestaginglocallivedl/TearDownSiteTest.java
  222. 0 ...y/document/deletelivepagesitestaginglocallivedl/ViewDeleteLivePageSiteStagingLocalLiveDLTest.html
  223. +1 −1 ...y/document/deletelivepagesitestaginglocallivedl/ViewDeleteLivePageSiteStagingLocalLiveDLTest.java
  224. 0 ...y/document/deletesitestaginglocallivedldldocumentactions}/ActivateSiteStagingLocalLiveDLTest.html
  225. +1 −1 ...y/document/deletesitestaginglocallivedldldocumentactions}/ActivateSiteStagingLocalLiveDLTest.java
  226. 0 ...te}/documentlibrary/document/deletesitestaginglocallivedldldocumentactions/AddDLDocumentTest.html
  227. +1 −1 ...te}/documentlibrary/document/deletesitestaginglocallivedldldocumentactions/AddDLDocumentTest.java
  228. 0 ...umentlibrary/document/deletesitestaginglocallivedldldocumentactions}/AddSitePublicPageDLTest.html
  229. +165 −0 ...cumentlibrary/document/deletesitestaginglocallivedldldocumentactions/AddSitePublicPageDLTest.java
  230. 0 ...brary/document/deletesitestaginglocallivedldldocumentactions}/AddSitePublicPagePortletDLTest.html
  231. +94 −0 ...ibrary/document/deletesitestaginglocallivedldldocumentactions/AddSitePublicPagePortletDLTest.java
  232. 0 ...etesitestaginglocallivedldldocumentactions/DeleteSiteStagingLocalLiveDLDLDocumentActionsTest.html
  233. +1 −1 ...etesitestaginglocallivedldldocumentactions/DeleteSiteStagingLocalLiveDLDLDocumentActionsTest.java
  234. 0 ...tesitestaginglocallivedldldocumentactions/DeleteSiteStagingLocalLiveDLDLDocumentActionsTests.html
  235. +1 −1 ...tesitestaginglocallivedldldocumentactions/DeleteSiteStagingLocalLiveDLDLDocumentActionsTests.java
  236. 0 ...ite/documentlibrary/document/deletesitestaginglocallivedldldocumentactions}/TearDownSiteTest.html
  237. +302 −0 ...site/documentlibrary/document/deletesitestaginglocallivedldldocumentactions/TearDownSiteTest.java
  238. 0 ...deletesitestaginglocallivedldldocumentactions/ViewDeleteSiteStagingLocalLiveDLDLDocumentTest.html
  239. +1 −1 ...deletesitestaginglocallivedldldocumentactions/ViewDeleteSiteStagingLocalLiveDLDLDocumentTest.java
  240. 0 ...}/documentlibrary/document/publishtolivenowdldocumentdock/ActivateSiteStagingLocalLiveDLTest.html
  241. +1 −1 ...}/documentlibrary/document/publishtolivenowdldocumentdock/ActivateSiteStagingLocalLiveDLTest.java
  242. 0 ...mentlibrary/document/publishtolivenowdldocumentdock}/AddDLDocumentSiteStagingLocalLiveDLTest.html
  243. +1 −1 ...mentlibrary/document/publishtolivenowdldocumentdock}/AddDLDocumentSiteStagingLocalLiveDLTest.java
  244. 0 ...stagingsite}/documentlibrary/document/publishtolivenowdldocumentdock/AddSitePublicPageDLTest.html
  245. +1 −1 ...stagingsite}/documentlibrary/document/publishtolivenowdldocumentdock/AddSitePublicPageDLTest.java
  246. 0 ...site/documentlibrary/document/publishtolivenowdldocumentdock}/AddSitePublicPagePortletDLTest.html
  247. +1 −1 ...site/documentlibrary/document/publishtolivenowdldocumentdock}/AddSitePublicPagePortletDLTest.java
  248. 0 ...}/documentlibrary/document/publishtolivenowdldocumentdock/PublishToLiveNowDLDocumentDockTest.html
  249. +1 −1 ...}/documentlibrary/document/publishtolivenowdldocumentdock/PublishToLiveNowDLDocumentDockTest.java
  250. 0 .../documentlibrary/document/publishtolivenowdldocumentdock/PublishToLiveNowDLDocumentDockTests.html
  251. +1 −1 .../documentlibrary/document/publishtolivenowdldocumentdock/PublishToLiveNowDLDocumentDockTests.java
  252. 0 ...sptl → stagingsite/documentlibrary/document/publishtolivenowdldocumentdock}/TearDownSiteTest.html
  253. +302 −0 ...rtalweb/stagingsite/documentlibrary/document/publishtolivenowdldocumentdock/TearDownSiteTest.java
  254. 0 ...cumentlibrary/document/publishtolivenowdldocumentdock/ViewPublishToLiveNowDLDocumentDockTest.html
  255. +1 −1 ...cumentlibrary/document/publishtolivenowdldocumentdock/ViewPublishToLiveNowDLDocumentDockTest.java
  256. 0 ...entlibrary/document/publishtolivenowdldocumentnodatadock}/ActivateSiteStagingLocalLiveDLTest.html
  257. +163 −0 ...mentlibrary/document/publishtolivenowdldocumentnodatadock/ActivateSiteStagingLocalLiveDLTest.java
  258. 0 ...ibrary/document/publishtolivenowdldocumentnodatadock/AddDLDocumentSiteStagingLocalLiveDLTest.html
  259. +1 −1 ...brary/document/publishtolivenowdldocumentnodatadock}/AddDLDocumentSiteStagingLocalLiveDLTest.java
  260. 0 ...gsite}/documentlibrary/document/publishtolivenowdldocumentnodatadock/AddSitePublicPageDLTest.html
  261. +1 −1 ...gsite}/documentlibrary/document/publishtolivenowdldocumentnodatadock/AddSitePublicPageDLTest.java
  262. 0 ...ocumentlibrary/document/publishtolivenowdldocumentnodatadock}/AddSitePublicPagePortletDLTest.html
  263. +94 −0 ...documentlibrary/document/publishtolivenowdldocumentnodatadock/AddSitePublicPagePortletDLTest.java
  264. 0 ...brary/document/publishtolivenowdldocumentnodatadock/PublishToLiveNowDLDocumentNoDataDockTest.html
  265. +1 −1 ...brary/document/publishtolivenowdldocumentnodatadock/PublishToLiveNowDLDocumentNoDataDockTest.java
  266. 0 ...rary/document/publishtolivenowdldocumentnodatadock/PublishToLiveNowDLDocumentNoDataDockTests.html
  267. +1 −1 ...rary/document/publishtolivenowdldocumentnodatadock/PublishToLiveNowDLDocumentNoDataDockTests.java
  268. 0 ... stagingsite/documentlibrary/document/publishtolivenowdldocumentnodatadock}/TearDownSiteTest.html
  269. +302 −0 ...b/stagingsite/documentlibrary/document/publishtolivenowdldocumentnodatadock/TearDownSiteTest.java
  270. 0 ...y/document/publishtolivenowdldocumentnodatadock/ViewPublishToLiveNowDLDocumentNoDataDockTest.html
  271. +1 −1 ...y/document/publishtolivenowdldocumentnodatadock/ViewPublishToLiveNowDLDocumentNoDataDockTest.java
  272. 0 ...mentlibrary/document/publishtolivenowdldocumentnodldock/ActivateSiteStagingLocalLiveNoDLTest.html
  273. +1 −1 ...mentlibrary/document/publishtolivenowdldocumentnodldock/ActivateSiteStagingLocalLiveNoDLTest.java
  274. 0 ...brary/document/publishtolivenowdldocumentnodldock}/AddDLDocumentSiteStagingLocalLiveNoDLTest.html
  275. +1 −1 ...brary/document/publishtolivenowdldocumentnodldock}/AddDLDocumentSiteStagingLocalLiveNoDLTest.java
  276. 0 ...ingsite/documentlibrary/document/publishtolivenowdldocumentnodldock}/AddSitePublicPageDLTest.html
  277. +1 −1 ...ingsite/documentlibrary/document/publishtolivenowdldocumentnodldock}/AddSitePublicPageDLTest.java
  278. 0 .../documentlibrary/document/publishtolivenowdldocumentnodldock}/AddSitePublicPagePortletDLTest.html
  279. +94 −0 ...e/documentlibrary/document/publishtolivenowdldocumentnodldock/AddSitePublicPagePortletDLTest.java
  280. 0 ...ntlibrary/document/publishtolivenowdldocumentnodldock/PublishToLiveNowDLDocumentNoDLDockTest.html
  281. +1 −1 ...ntlibrary/document/publishtolivenowdldocumentnodldock/PublishToLiveNowDLDocumentNoDLDockTest.java
  282. 0 ...tlibrary/document/publishtolivenowdldocumentnodldock/PublishToLiveNowDLDocumentNoDLDockTests.html
  283. +1 −1 ...tlibrary/document/publishtolivenowdldocumentnodldock/PublishToLiveNowDLDocumentNoDLDockTests.java
  284. 0 ... → stagingsite/documentlibrary/document/publishtolivenowdldocumentnodldock}/TearDownSiteTest.html
  285. +1 −1 ... → stagingsite/documentlibrary/document/publishtolivenowdldocumentnodldock}/TearDownSiteTest.java
  286. 0 ...brary/document/publishtolivenowdldocumentnodldock/ViewPublishToLiveNowDLDocumentNoDLDockTest.html
  287. +1 −1 ...brary/document/publishtolivenowdldocumentnodldock/ViewPublishToLiveNowDLDocumentNoDLDockTest.java
  288. 0 ...ntlibrary/document/publishtolivenowdldocumentnopagesdock}/ActivateSiteStagingLocalLiveDLTest.html
  289. +163 −0 ...entlibrary/document/publishtolivenowdldocumentnopagesdock/ActivateSiteStagingLocalLiveDLTest.java
  290. 0 ...rary/document/publishtolivenowdldocumentnopagesdock}/AddDLDocumentSiteStagingLocalLiveDLTest.html
  291. +1 −1 ...rary/document/publishtolivenowdldocumentnopagesdock}/AddDLDocumentSiteStagingLocalLiveDLTest.java
  292. 0 ...site/documentlibrary/document/publishtolivenowdldocumentnopagesdock}/AddSitePublicPageDLTest.html
  293. +165 −0 ...gsite/documentlibrary/document/publishtolivenowdldocumentnopagesdock/AddSitePublicPageDLTest.java
  294. 0 ...cumentlibrary/document/publishtolivenowdldocumentnopagesdock}/AddSitePublicPagePortletDLTest.html
  295. +94 −0 ...ocumentlibrary/document/publishtolivenowdldocumentnopagesdock/AddSitePublicPagePortletDLTest.java
  296. 0 ...ary/document/publishtolivenowdldocumentnopagesdock/PublishToLiveNowDLDocumentNoPagesDockTest.html
  297. +1 −1 ...ary/document/publishtolivenowdldocumentnopagesdock/PublishToLiveNowDLDocumentNoPagesDockTest.java
  298. 0 ...ry/document/publishtolivenowdldocumentnopagesdock/PublishToLiveNowDLDocumentNoPagesDockTests.html
  299. +1 −1 ...ry/document/publishtolivenowdldocumentnopagesdock/PublishToLiveNowDLDocumentNoPagesDockTests.java
  300. 0 ...stagingsite/documentlibrary/document/publishtolivenowdldocumentnopagesdock}/TearDownSiteTest.html
Sorry, we could not display the entire diff because too many files (764) changed.
View
4 ...gingCommunityAssetPublisherTestSuite.java → ...l/StagingSiteAssetPublisherTestSuite.java
@@ -15,15 +15,15 @@
package com.liferay.portalweb.portal;
import com.liferay.portalweb.portal.login.LoginTests;
-import com.liferay.portalweb.stagingcommunity.assetpublisher.AssetPublisherTestPlan;
+import com.liferay.portalweb.stagingsite.assetpublisher.AssetPublisherTestPlan;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* @author Brian Wing Shun Chan
*/
-public class StagingCommunityAssetPublisherTestSuite extends BaseTestSuite {
+public class StagingSiteAssetPublisherTestSuite extends BaseTestSuite {
public static Test suite() {
TestSuite testSuite = new TestSuite();
View
4 ...ortal/StagingCommunityBlogsTestSuite.java → ...web/portal/StagingSiteBlogsTestSuite.java
@@ -15,15 +15,15 @@
package com.liferay.portalweb.portal;
import com.liferay.portalweb.portal.login.LoginTests;
-import com.liferay.portalweb.stagingcommunity.blogs.BlogsTests;
+import com.liferay.portalweb.stagingsite.blogs.BlogsTests;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* @author Brian Wing Shun Chan
*/
-public class StagingCommunityBlogsTestSuite extends BaseTestSuite {
+public class StagingSiteBlogsTestSuite extends BaseTestSuite {
public static Test suite() {
TestSuite testSuite = new TestSuite();
View
4 ...ingCommunityDocumentLibraryTestSuite.java → .../StagingSiteDocumentLibraryTestSuite.java
@@ -15,15 +15,15 @@
package com.liferay.portalweb.portal;
import com.liferay.portalweb.portal.login.LoginTests;
-import com.liferay.portalweb.stagingcommunity.documentlibrary.DocumentLibraryTestPlan;
+import com.liferay.portalweb.stagingsite.documentlibrary.DocumentLibraryTestPlan;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* @author Brian Wing Shun Chan
*/
-public class StagingCommunityDocumentLibraryTestSuite extends BaseTestSuite {
+public class StagingSiteDocumentLibraryTestSuite extends BaseTestSuite {
public static Test suite() {
TestSuite testSuite = new TestSuite();
View
4 ...ortal/StagingCommunitySitesTestSuite.java → ...web/portal/StagingSiteSitesTestSuite.java
@@ -15,15 +15,15 @@
package com.liferay.portalweb.portal;
import com.liferay.portalweb.portal.login.LoginTests;
-import com.liferay.portalweb.stagingcommunity.sites.SitesTestPlan;
+import com.liferay.portalweb.stagingsite.sites.SitesTestPlan;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* @author Brian Wing Shun Chan
*/
-public class StagingCommunitySitesTestSuite extends BaseTestSuite {
+public class StagingSiteSitesTestSuite extends BaseTestSuite {
public static Test suite() {
TestSuite testSuite = new TestSuite();
View
4 ...gCommunityWebContentDisplayTestSuite.java → ...tagingSiteWebContentDisplayTestSuite.java
@@ -15,15 +15,15 @@
package com.liferay.portalweb.portal;
import com.liferay.portalweb.portal.login.LoginTests;
-import com.liferay.portalweb.stagingcommunity.webcontentdisplay.WebContentDisplayTestPlan;
+import com.liferay.portalweb.stagingsite.webcontentdisplay.WebContentDisplayTestPlan;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* @author Brian Wing Shun Chan
*/
-public class StagingCommunityWebContentDisplayTestSuite extends BaseTestSuite {
+public class StagingSiteWebContentDisplayTestSuite extends BaseTestSuite {
public static Test suite() {
TestSuite testSuite = new TestSuite();
View
356 ...ortalweb/stagingcommunity/assetpublisher/assertcannoteditapentry/ActivateStagingTest.java
@@ -1,356 +0,0 @@
-/**
- * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
- * details.
- */
-
-package com.liferay.portalweb.stagingcommunity.assetpublisher.assertcannoteditapentry;
-
-import com.liferay.portalweb.portal.BaseTestCase;
-import com.liferay.portalweb.portal.util.RuntimeVariables;
-
-/**
- * @author Brian Wing Shun Chan
- */
-public class ActivateStagingTest extends BaseTestCase {
- public void testActivateStaging() throws Exception {
- int label = 1;
-
- while (label >= 1) {
- switch (label) {
- case 1:
- selenium.open("/web/guest/home/");
- loadRequiredJavaScriptModules();
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isElementPresent("link=Control Panel")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- selenium.clickAt("link=Control Panel",
- RuntimeVariables.replace("Control Panel"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- selenium.clickAt("link=Sites", RuntimeVariables.replace("Sites"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- selenium.type("//input[@id='_134_name']",
- RuntimeVariables.replace("Site Name"));
- selenium.clickAt("//input[@value='Search']",
- RuntimeVariables.replace("Search"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertEquals(RuntimeVariables.replace("Actions"),
- selenium.getText(
- "//span[@title='Actions']/ul/li/strong/a/span"));
- selenium.click("//span[@title='Actions']/ul/li/strong/a/span");
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[1]/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace("Edit Settings"),
- selenium.getText(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[1]/a"));
- selenium.clickAt("//div[@class='lfr-component lfr-menu-list']/ul/li[1]/a",
- RuntimeVariables.replace("Edit Settings"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertTrue(selenium.isPartialText(
- "//a[@id='_165_stagingLink']", "Staging"));
- selenium.clickAt("//a[@id='_165_stagingLink']",
- RuntimeVariables.replace("Staging"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible("//input[@id='_165_local']")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- selenium.clickAt("//input[@id='_165_local']",
- RuntimeVariables.replace("Local Live"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//span/span[contains(.,'Blogs')]/span/input[2]")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- boolean blogsChecked = selenium.isChecked(
- "//span/span[contains(.,'Blogs')]/span/input[2]");
-
- if (blogsChecked) {
- label = 2;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Blogs')]/span/input[2]",
- RuntimeVariables.replace("Blogs"));
-
- case 2:
-
- boolean bookmarksChecked = selenium.isChecked(
- "//span/span[contains(.,'Bookmarks')]/span/input[2]");
-
- if (bookmarksChecked) {
- label = 3;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Bookmarks')]/span/input[2]",
- RuntimeVariables.replace("Bookmarks"));
-
- case 3:
-
- boolean calendarChecked = selenium.isChecked(
- "//span/span[contains(.,'Calendar')]/span/input[2]");
-
- if (calendarChecked) {
- label = 4;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Calendar')]/span/input[2]",
- RuntimeVariables.replace("Calendar"));
-
- case 4:
-
- boolean documentLibraryChecked = selenium.isChecked(
- "//span/span[contains(.,'Documents and Media')]/span/input[2]");
-
- if (documentLibraryChecked) {
- label = 5;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Documents and Media')]/span/input[2]",
- RuntimeVariables.replace("DocumentLibrary"));
-
- case 5:
-
- boolean documentLibraryDisplayChecked = selenium.isChecked(
- "//span/span[contains(.,'Documents and Media Display')]/span/input[2]");
-
- if (documentLibraryDisplayChecked) {
- label = 6;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Documents and Media Display')]/span/input[2]",
- RuntimeVariables.replace("DocumentLibraryDisplay"));
-
- case 6:
-
- boolean dynamicDataMappingChecked = selenium.isChecked(
- "//span/span[contains(.,'Dynamic Data Mapping')]/span/input[2]");
-
- if (dynamicDataMappingChecked) {
- label = 7;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Dynamic Data Mapping')]/span/input[2]",
- RuntimeVariables.replace("Dynamic Data Mapping"));
-
- case 7:
-
- boolean messageBoardsChecked = selenium.isChecked(
- "//span/span[contains(.,'Message Boards')]/span/input[2]");
-
- if (messageBoardsChecked) {
- label = 8;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Message Boards')]/span/input[2]",
- RuntimeVariables.replace("Message Boards"));
-
- case 8:
-
- boolean pageCommentsChecked = selenium.isChecked(
- "//span/span[contains(.,'Page Comments')]/span/input[2]");
-
- if (pageCommentsChecked) {
- label = 9;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Page Comments')]/span/input[2]",
- RuntimeVariables.replace("Page Comments"));
-
- case 9:
-
- boolean pageRatingsChecked = selenium.isChecked(
- "//span/span[contains(.,'Page Ratings')]/span/input[2]");
-
- if (pageRatingsChecked) {
- label = 10;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Page Ratings')]/span/input[2]",
- RuntimeVariables.replace("Page Ratings"));
-
- case 10:
-
- boolean pollsChecked = selenium.isChecked(
- "//span/span[contains(.,'Polls')]/span/input[2]");
-
- if (pollsChecked) {
- label = 11;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Polls')]/span/input[2]",
- RuntimeVariables.replace("Polls"));
-
- case 11:
-
- boolean pollsDisplayChecked = selenium.isChecked(
- "//span/span[contains(.,'Polls Display')]/span/input[2]");
-
- if (pollsDisplayChecked) {
- label = 12;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Polls Display')]/span/input[2]",
- RuntimeVariables.replace("Polls Display"));
-
- case 12:
-
- boolean webContentChecked = selenium.isChecked(
- "//span/span[contains(.,'Web Content')]/span/input[2]");
-
- if (webContentChecked) {
- label = 13;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Web Content')]/span/input[2]",
- RuntimeVariables.replace("Web Content"));
-
- case 13:
-
- boolean webContentDisplayChecked = selenium.isChecked(
- "//span/span[contains(.,'Web Content Display')]/span/input[2]");
-
- if (webContentDisplayChecked) {
- label = 14;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Web Content Display')]/span/input[2]",
- RuntimeVariables.replace("Web Content Display"));
-
- case 14:
-
- boolean wikiChecked = selenium.isChecked(
- "//span/span[contains(.,'Wiki')]/span/input[2]");
-
- if (wikiChecked) {
- label = 15;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Wiki')]/span/input[2]",
- RuntimeVariables.replace("Wiki"));
-
- case 15:
-
- boolean wikiDisplayChecked = selenium.isChecked(
- "//span/span[contains(.,'Wiki Display')]/span/input[2]");
-
- if (wikiDisplayChecked) {
- label = 16;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Wiki Display')]/span/input[2]",
- RuntimeVariables.replace("Wiki Display Checked"));
-
- case 16:
- selenium.clickAt("//input[@value='Save']",
- RuntimeVariables.replace("Save"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertEquals(RuntimeVariables.replace(
- "Your request completed successfully."),
- selenium.getText("//div[@class='portlet-msg-success']"));
- assertEquals(RuntimeVariables.replace("Site Name (Staging)"),
- selenium.getText("//h1[@class='header-title']/span"));
-
- case 100:
- label = -1;
- }
- }
- }
-}
View
63 ...est/com/liferay/portalweb/stagingcommunity/documentlibrary/document/DocumentTestPlan.java
@@ -1,63 +0,0 @@
-/**
- * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
- * details.
- */
-
-package com.liferay.portalweb.stagingcommunity.documentlibrary.document;
-
-import com.liferay.portalweb.portal.BaseTestSuite;
-import com.liferay.portalweb.stagingcommunity.documentlibrary.document.adddldocumentsitestaginglocallivedl.AddDLDocumentSiteStagingLocalLiveDLTests;
-import com.liferay.portalweb.stagingcommunity.documentlibrary.document.adddldocumentsitestaginglocallivenodl.AddDLDocumentSiteStagingLocalLiveNoDLTests;
-import com.liferay.portalweb.stagingcommunity.documentlibrary.document.deletedldocumentsitestaginglocallivedlactions.DeleteDLDocumentSiteStagingLocalLiveDLActionsTests;
-import com.liferay.portalweb.stagingcommunity.documentlibrary.document.deletelivepagesitestaginglocallivedl.DeleteLivePageSiteStagingLocalLiveDLTests;
-import com.liferay.portalweb.stagingcommunity.documentlibrary.document.deletesitestaginglocallivedldldocumentactions.DeleteSiteStagingLocalLiveDLDLDocumentActionsTests;
-import com.liferay.portalweb.stagingcommunity.documentlibrary.document.publishtolivenowdldocumentdock.PublishToLiveNowDLDocumentDockTests;
-import com.liferay.portalweb.stagingcommunity.documentlibrary.document.publishtolivenowdldocumentnodatadock.PublishToLiveNowDLDocumentNoDataDockTests;
-import com.liferay.portalweb.stagingcommunity.documentlibrary.document.publishtolivenowdldocumentnodldock.PublishToLiveNowDLDocumentNoDLDockTests;
-import com.liferay.portalweb.stagingcommunity.documentlibrary.document.publishtolivenowdldocumentnopagesdock.PublishToLiveNowDLDocumentNoPagesDockTests;
-import com.liferay.portalweb.stagingcommunity.documentlibrary.document.publishtolivenowpagedldock.PublishToLiveNowPageDLDockTests;
-import com.liferay.portalweb.stagingcommunity.documentlibrary.document.publishtolivenowpagedlnopagesdock.PublishToLiveNowPageDLNoPagesDockTests;
-import com.liferay.portalweb.stagingcommunity.documentlibrary.document.publishtolivenowportletdldock.PublishToLiveNowPortletDLDockTests;
-import com.liferay.portalweb.stagingcommunity.documentlibrary.document.viewactivatedeactivatesitestaginglocallivedl.ViewActivateDeactivateSiteStagingLocalLiveDLTests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/**
- * @author Brian Wing Shun Chan
- */
-public class DocumentTestPlan extends BaseTestSuite {
-
- public static Test suite() {
- TestSuite testSuite = new TestSuite();
-
- testSuite.addTest(AddDLDocumentSiteStagingLocalLiveDLTests.suite());
- testSuite.addTest(AddDLDocumentSiteStagingLocalLiveNoDLTests.suite());
- testSuite.addTest(
- DeleteDLDocumentSiteStagingLocalLiveDLActionsTests.suite());
- testSuite.addTest(DeleteLivePageSiteStagingLocalLiveDLTests.suite());
- testSuite.addTest(
- DeleteSiteStagingLocalLiveDLDLDocumentActionsTests.suite());
- testSuite.addTest(PublishToLiveNowDLDocumentDockTests.suite());
- testSuite.addTest(PublishToLiveNowDLDocumentNoDataDockTests.suite());
- testSuite.addTest(PublishToLiveNowDLDocumentNoDLDockTests.suite());
- testSuite.addTest(PublishToLiveNowDLDocumentNoPagesDockTests.suite());
- testSuite.addTest(PublishToLiveNowPageDLDockTests.suite());
- testSuite.addTest(PublishToLiveNowPageDLNoPagesDockTests.suite());
- testSuite.addTest(PublishToLiveNowPortletDLDockTests.suite());
- testSuite.addTest(
- ViewActivateDeactivateSiteStagingLocalLiveDLTests.suite());
-
- return testSuite;
- }
-
-}
View
163 ...ent/deletedldocumentsitestaginglocallivedlactions/ActivateSiteStagingLocalLiveDLTest.java
@@ -1,163 +0,0 @@
-/**
- * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
- * details.
- */
-
-package com.liferay.portalweb.stagingcommunity.documentlibrary.document.deletedldocumentsitestaginglocallivedlactions;
-
-import com.liferay.portalweb.portal.BaseTestCase;
-import com.liferay.portalweb.portal.util.RuntimeVariables;
-
-/**
- * @author Brian Wing Shun Chan
- */
-public class ActivateSiteStagingLocalLiveDLTest extends BaseTestCase {
- public void testActivateSiteStagingLocalLiveDL() throws Exception {
- int label = 1;
-
- while (label >= 1) {
- switch (label) {
- case 1:
- selenium.open("/web/guest/home/");
- loadRequiredJavaScriptModules();
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isElementPresent("link=Control Panel")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- selenium.clickAt("link=Control Panel",
- RuntimeVariables.replace("Control Panel"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- selenium.clickAt("link=Sites", RuntimeVariables.replace("Sites"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- selenium.type("//input[@id='_134_name']",
- RuntimeVariables.replace("Site Name"));
- selenium.clickAt("//input[@value='Search']",
- RuntimeVariables.replace("Search"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertEquals(RuntimeVariables.replace("Site Name"),
- selenium.getText("//td[1]/a"));
- assertEquals(RuntimeVariables.replace("Actions"),
- selenium.getText(
- "//span[@title='Actions']/ul/li/strong/a/span"));
- selenium.clickAt("//span[@title='Actions']/ul/li/strong/a/span",
- RuntimeVariables.replace("Actions"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[1]/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace("Edit Settings"),
- selenium.getText(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[1]/a"));
- selenium.clickAt("//div[@class='lfr-component lfr-menu-list']/ul/li[1]/a",
- RuntimeVariables.replace("Edit Settings"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertTrue(selenium.isPartialText(
- "//a[@id='_165_stagingLink']", "Staging"));
- selenium.clickAt("//a[@id='_165_stagingLink']",
- RuntimeVariables.replace("Staging"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible("//input[@id='_165_local']")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- selenium.clickAt("//input[@id='_165_local']",
- RuntimeVariables.replace("Local Live"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//span/span[contains(.,'Documents and Media')]/span/input[2]")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- boolean documentLibraryChecked = selenium.isChecked(
- "//span/span[contains(.,'Documents and Media')]/span/input[2]");
-
- if (documentLibraryChecked) {
- label = 2;
-
- continue;
- }
-
- selenium.clickAt("//span/span[contains(.,'Documents and Media')]/span/input[2]",
- RuntimeVariables.replace("DocumentLibrary"));
-
- case 2:
- selenium.clickAt("//input[@value='Save']",
- RuntimeVariables.replace("Save"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertEquals(RuntimeVariables.replace(
- "Your request completed successfully."),
- selenium.getText("//div[@class='portlet-msg-success']"));
- assertEquals(RuntimeVariables.replace("Site Name (Staging)"),
- selenium.getText("//h1[@class='header-title']/span"));
-
- case 100:
- label = -1;
- }
- }
- }
-}
View
147 ...eletedldocumentsitestaginglocallivedlactions/AddDLDocumentSiteStagingLocalLiveDLTest.java
@@ -1,147 +0,0 @@
-/**
- * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
- * details.
- */
-
-package com.liferay.portalweb.stagingcommunity.documentlibrary.document.deletedldocumentsitestaginglocallivedlactions;
-
-import com.liferay.portalweb.portal.BaseTestCase;
-import com.liferay.portalweb.portal.util.RuntimeVariables;
-
-/**
- * @author Brian Wing Shun Chan
- */
-public class AddDLDocumentSiteStagingLocalLiveDLTest extends BaseTestCase {
- public void testAddDLDocumentSiteStagingLocalLiveDL()
- throws Exception {
- selenium.open("/web/guest/home/");
- loadRequiredJavaScriptModules();
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isElementPresent("link=Site Name")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- selenium.clickAt("link=Site Name", RuntimeVariables.replace("Site Name"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- selenium.clickAt("link=Document Library Test Page",
- RuntimeVariables.replace("Document Library Test Page"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertTrue(selenium.isElementPresent(
- "//body[contains(@class,'live-view')]"));
- assertFalse(selenium.isElementPresent(
- "//body[contains(@class,'local-staging')]"));
- assertTrue(selenium.isPartialText("//li[2]/span/a", "Staging"));
- selenium.clickAt("//li[2]/span/a", RuntimeVariables.replace("Staging"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertFalse(selenium.isTextPresent(
- "The data of this portlet is not staged. Any data changes are immediately available to the Local Live site. The portlet's own workflow is still honored. Portlet setup is still managed from staging."));
- assertFalse(selenium.isElementPresent(
- "//div[@class='portlet-msg-alert']"));
- assertEquals(RuntimeVariables.replace("Add"),
- selenium.getText("//span[3]/span/ul/li/strong/a"));
- Thread.sleep(5000);
- selenium.clickAt("//span[3]/span/ul/li/strong/a",
- RuntimeVariables.replace("Add"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[5]/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace("Basic Document"),
- selenium.getText(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[5]/a"));
- selenium.click(RuntimeVariables.replace(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[5]/a"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertFalse(selenium.isTextPresent(
- "The data of this portlet is not staged. Any data changes are immediately available to the Local Live site. The portlet's own workflow is still honored. Portlet setup is still managed from staging."));
- assertFalse(selenium.isElementPresent(
- "//div[@class='portlet-msg-alert']"));
- selenium.type("//input[@id='_20_file']",
- RuntimeVariables.replace(
- "L:\\portal\\build\\portal-web\\test\\com\\liferay\\portalweb\\stagingcommunity\\documentlibrary\\dependencies\\DLDocument.docx"));
- selenium.type("//input[@id='_20_title']",
- RuntimeVariables.replace("DL Document Title"));
- selenium.type("//textarea[@id='_20_description']",
- RuntimeVariables.replace("DL Document Description"));
- selenium.clickAt("//input[@value='Publish']",
- RuntimeVariables.replace("Publish"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (RuntimeVariables.replace(
- "Your request completed successfully.")
- .equals(selenium.getText(
- "//div[@class='portlet-msg-success']"))) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace(
- "Your request completed successfully."),
- selenium.getText("//div[@class='portlet-msg-success']"));
- assertEquals(RuntimeVariables.replace("DL Document Title"),
- selenium.getText("//a[@class='document-link']"));
- selenium.clickAt("//a[@class='document-link']",
- RuntimeVariables.replace("DL Document Title"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertEquals(RuntimeVariables.replace("DL Document Title"),
- selenium.getText("//h2[@class='document-title']"));
- assertEquals(RuntimeVariables.replace("DL Document Description"),
- selenium.getText("//span[@class='document-description']"));
- assertEquals(RuntimeVariables.replace("Status: Approved"),
- selenium.getText("//span[@class='workflow-status']"));
- assertEquals(RuntimeVariables.replace("Download (9.6k)"),
- selenium.getText("//span[@class='download-document']"));
- }
-}
View
165 ...brary/document/deletedldocumentsitestaginglocallivedlactions/AddSitePublicPageDLTest.java
@@ -1,165 +0,0 @@
-/**
- * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
- * details.
- */
-
-package com.liferay.portalweb.stagingcommunity.documentlibrary.document.deletedldocumentsitestaginglocallivedlactions;
-
-import com.liferay.portalweb.portal.BaseTestCase;
-import com.liferay.portalweb.portal.util.RuntimeVariables;
-
-/**
- * @author Brian Wing Shun Chan
- */
-public class AddSitePublicPageDLTest extends BaseTestCase {
- public void testAddSitePublicPageDL() throws Exception {
- int label = 1;
-
- while (label >= 1) {
- switch (label) {
- case 1:
- selenium.open("/web/guest/home/");
- loadRequiredJavaScriptModules();
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isElementPresent("link=Control Panel")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- selenium.clickAt("link=Control Panel",
- RuntimeVariables.replace("Control Panel"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- selenium.clickAt("link=Sites", RuntimeVariables.replace("Sites"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- selenium.type("//input[@id='_134_name']",
- RuntimeVariables.replace("Site name"));
- selenium.clickAt("//input[@value='Search']",
- RuntimeVariables.replace("Search"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertEquals(RuntimeVariables.replace("Site Name"),
- selenium.getText("//td[1]/a"));
- assertEquals(RuntimeVariables.replace("Actions"),
- selenium.getText(
- "//span[@title='Actions']/ul/li/strong/a/span"));
- selenium.clickAt("//span[@title='Actions']/ul/li/strong/a/span",
- RuntimeVariables.replace("Actions"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[2]/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace("Manage Pages"),
- selenium.getText(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[2]/a"));
- selenium.clickAt("//div[@class='lfr-component lfr-menu-list']/ul/li[2]/a",
- RuntimeVariables.replace("Manage Pages"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertEquals(RuntimeVariables.replace("Add Page"),
- selenium.getText("//div/span/button[1]"));
- selenium.clickAt("//div/span/button[1]",
- RuntimeVariables.replace("Add Page"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//input[@id='_156_addLayoutName_en_US']")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- selenium.type("//input[@id='_156_addLayoutName_en_US']",
- RuntimeVariables.replace("Document Library Test Page"));
- selenium.clickAt("//input[@value='Add Page']",
- RuntimeVariables.replace("Add Page"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertEquals(RuntimeVariables.replace(
- "Your request completed successfully."),
- selenium.getText("//div[@class='portlet-msg-success']"));
-
- boolean welcomePresent = selenium.isElementPresent(
- "//li/ul/li[1]/div/div[3]/a");
-
- if (welcomePresent) {
- label = 2;
-
- continue;
- }
-
- selenium.clickAt("//div[3]/ul/li/div/div[1]",
- RuntimeVariables.replace("Drop Down Arrow"));
-
- case 2:
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isElementPresent("//li/ul/li/div/div[3]/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace(
- "Document Library Test Page"),
- selenium.getText("//li/ul/li/div/div[3]/a"));
-
- case 100:
- label = -1;
- }
- }
- }
-}
View
94 ...ocument/deletedldocumentsitestaginglocallivedlactions/AddSitePublicPagePortletDLTest.java
@@ -1,94 +0,0 @@
-/**
- * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
- * details.
- */
-
-package com.liferay.portalweb.stagingcommunity.documentlibrary.document.deletedldocumentsitestaginglocallivedlactions;
-
-import com.liferay.portalweb.portal.BaseTestCase;
-import com.liferay.portalweb.portal.util.RuntimeVariables;
-
-/**
- * @author Brian Wing Shun Chan
- */
-public class AddSitePublicPagePortletDLTest extends BaseTestCase {
- public void testAddSitePublicPagePortletDL() throws Exception {
- selenium.open("/web/guest/home/");
- loadRequiredJavaScriptModules();
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isElementPresent("link=Site Name")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- selenium.clickAt("link=Site Name", RuntimeVariables.replace("Site Name"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- selenium.clickAt("link=Document Library Test Page",
- RuntimeVariables.replace("Document Library Test Page"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertTrue(selenium.isPartialText("//a[@id='_145_addApplication']",
- "More"));
- selenium.clickAt("//a[@id='_145_addApplication']",
- RuntimeVariables.replace("More"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isElementPresent(
- "//div[@title='Documents and Media']/p/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- selenium.clickAt("//div[@title='Documents and Media']/p/a",
- RuntimeVariables.replace("Add"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible("//section")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertTrue(selenium.isVisible("//section"));
- }
-}
View
302 ...umentlibrary/document/deletedldocumentsitestaginglocallivedlactions/TearDownSiteTest.java
@@ -1,302 +0,0 @@
-/**
- * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
- * details.
- */
-
-package com.liferay.portalweb.stagingcommunity.documentlibrary.document.deletedldocumentsitestaginglocallivedlactions;
-
-import com.liferay.portalweb.portal.BaseTestCase;
-import com.liferay.portalweb.portal.util.RuntimeVariables;
-
-/**
- * @author Brian Wing Shun Chan
- */
-public class TearDownSiteTest extends BaseTestCase {
- public void testTearDownSite() throws Exception {
- int label = 1;
-
- while (label >= 1) {
- switch (label) {
- case 1:
- selenium.open("/web/guest/home/");
- loadRequiredJavaScriptModules();
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isElementPresent("link=Control Panel")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- selenium.clickAt("link=Control Panel",
- RuntimeVariables.replace("Control Panel"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- selenium.clickAt("link=Sites", RuntimeVariables.replace("Sites"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- selenium.type("//input[@id='_134_name']",
- RuntimeVariables.replace("Site name"));
- selenium.clickAt("//input[@value='Search']",
- RuntimeVariables.replace("Search"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
-
- boolean site1Present = selenium.isElementPresent(
- "//span[@title='Actions']/ul/li/strong/a/span");
-
- if (!site1Present) {
- label = 2;
-
- continue;
- }
-
- assertEquals(RuntimeVariables.replace("Actions"),
- selenium.getText(
- "//span[@title='Actions']/ul/li/strong/a/span"));
- selenium.clickAt("//span[@title='Actions']/ul/li/strong/a/span",
- RuntimeVariables.replace("Actions"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace("Delete"),
- selenium.getText(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.click(RuntimeVariables.replace(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertTrue(selenium.getConfirmation()
- .matches("^Are you sure you want to delete this[\\s\\S]$"));
- assertEquals(RuntimeVariables.replace(
- "Your request completed successfully."),
- selenium.getText("//div[@class='portlet-msg-success']"));
-
- case 2:
-
- boolean site2Present = selenium.isElementPresent(
- "//span[@title='Actions']/ul/li/strong/a/span");
-
- if (!site2Present) {
- label = 3;
-
- continue;
- }
-
- assertEquals(RuntimeVariables.replace("Actions"),
- selenium.getText(
- "//span[@title='Actions']/ul/li/strong/a/span"));
- selenium.clickAt("//span[@title='Actions']/ul/li/strong/a/span",
- RuntimeVariables.replace("Actions"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace("Delete"),
- selenium.getText(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.click(RuntimeVariables.replace(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertTrue(selenium.getConfirmation()
- .matches("^Are you sure you want to delete this[\\s\\S]$"));
- assertEquals(RuntimeVariables.replace(
- "Your request completed successfully."),
- selenium.getText("//div[@class='portlet-msg-success']"));
-
- case 3:
-
- boolean site3Present = selenium.isElementPresent(
- "//span[@title='Actions']/ul/li/strong/a/span");
-
- if (!site3Present) {
- label = 4;
-
- continue;
- }
-
- assertEquals(RuntimeVariables.replace("Actions"),
- selenium.getText(
- "//span[@title='Actions']/ul/li/strong/a/span"));
- selenium.clickAt("//span[@title='Actions']/ul/li/strong/a/span",
- RuntimeVariables.replace("Actions"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace("Delete"),
- selenium.getText(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.click(RuntimeVariables.replace(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertTrue(selenium.getConfirmation()
- .matches("^Are you sure you want to delete this[\\s\\S]$"));
- assertEquals(RuntimeVariables.replace(
- "Your request completed successfully."),
- selenium.getText("//div[@class='portlet-msg-success']"));
-
- case 4:
-
- boolean site4Present = selenium.isElementPresent(
- "//span[@title='Actions']/ul/li/strong/a/span");
-
- if (!site4Present) {
- label = 5;
-
- continue;
- }
-
- assertEquals(RuntimeVariables.replace("Actions"),
- selenium.getText(
- "//span[@title='Actions']/ul/li/strong/a/span"));
- selenium.clickAt("//span[@title='Actions']/ul/li/strong/a/span",
- RuntimeVariables.replace("Actions"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace("Delete"),
- selenium.getText(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.click(RuntimeVariables.replace(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertTrue(selenium.getConfirmation()
- .matches("^Are you sure you want to delete this[\\s\\S]$"));
- assertEquals(RuntimeVariables.replace(
- "Your request completed successfully."),
- selenium.getText("//div[@class='portlet-msg-success']"));
-
- case 5:
-
- boolean site5Present = selenium.isElementPresent(
- "//span[@title='Actions']/ul/li/strong/a/span");
-
- if (!site5Present) {
- label = 6;
-
- continue;
- }
-
- assertEquals(RuntimeVariables.replace("Actions"),
- selenium.getText(
- "//span[@title='Actions']/ul/li/strong/a/span"));
- selenium.clickAt("//span[@title='Actions']/ul/li/strong/a/span",
- RuntimeVariables.replace("Actions"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace("Delete"),
- selenium.getText(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.click(RuntimeVariables.replace(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertTrue(selenium.getConfirmation()
- .matches("^Are you sure you want to delete this[\\s\\S]$"));
- assertEquals(RuntimeVariables.replace(
- "Your request completed successfully."),
- selenium.getText("//div[@class='portlet-msg-success']"));
-
- case 6:
- case 100:
- label = -1;
- }
- }
- }
-}
View
302 ...unity/documentlibrary/document/deletelivepagesitestaginglocallivedl/TearDownSiteTest.java
@@ -1,302 +0,0 @@
-/**
- * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
- * details.
- */
-
-package com.liferay.portalweb.stagingcommunity.documentlibrary.document.deletelivepagesitestaginglocallivedl;
-
-import com.liferay.portalweb.portal.BaseTestCase;
-import com.liferay.portalweb.portal.util.RuntimeVariables;
-
-/**
- * @author Brian Wing Shun Chan
- */
-public class TearDownSiteTest extends BaseTestCase {
- public void testTearDownSite() throws Exception {
- int label = 1;
-
- while (label >= 1) {
- switch (label) {
- case 1:
- selenium.open("/web/guest/home/");
- loadRequiredJavaScriptModules();
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isElementPresent("link=Control Panel")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- selenium.clickAt("link=Control Panel",
- RuntimeVariables.replace("Control Panel"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- selenium.clickAt("link=Sites", RuntimeVariables.replace("Sites"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- selenium.type("//input[@id='_134_name']",
- RuntimeVariables.replace("Site name"));
- selenium.clickAt("//input[@value='Search']",
- RuntimeVariables.replace("Search"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
-
- boolean site1Present = selenium.isElementPresent(
- "//span[@title='Actions']/ul/li/strong/a/span");
-
- if (!site1Present) {
- label = 2;
-
- continue;
- }
-
- assertEquals(RuntimeVariables.replace("Actions"),
- selenium.getText(
- "//span[@title='Actions']/ul/li/strong/a/span"));
- selenium.clickAt("//span[@title='Actions']/ul/li/strong/a/span",
- RuntimeVariables.replace("Actions"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace("Delete"),
- selenium.getText(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.click(RuntimeVariables.replace(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertTrue(selenium.getConfirmation()
- .matches("^Are you sure you want to delete this[\\s\\S]$"));
- assertEquals(RuntimeVariables.replace(
- "Your request completed successfully."),
- selenium.getText("//div[@class='portlet-msg-success']"));
-
- case 2:
-
- boolean site2Present = selenium.isElementPresent(
- "//span[@title='Actions']/ul/li/strong/a/span");
-
- if (!site2Present) {
- label = 3;
-
- continue;
- }
-
- assertEquals(RuntimeVariables.replace("Actions"),
- selenium.getText(
- "//span[@title='Actions']/ul/li/strong/a/span"));
- selenium.clickAt("//span[@title='Actions']/ul/li/strong/a/span",
- RuntimeVariables.replace("Actions"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace("Delete"),
- selenium.getText(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.click(RuntimeVariables.replace(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertTrue(selenium.getConfirmation()
- .matches("^Are you sure you want to delete this[\\s\\S]$"));
- assertEquals(RuntimeVariables.replace(
- "Your request completed successfully."),
- selenium.getText("//div[@class='portlet-msg-success']"));
-
- case 3:
-
- boolean site3Present = selenium.isElementPresent(
- "//span[@title='Actions']/ul/li/strong/a/span");
-
- if (!site3Present) {
- label = 4;
-
- continue;
- }
-
- assertEquals(RuntimeVariables.replace("Actions"),
- selenium.getText(
- "//span[@title='Actions']/ul/li/strong/a/span"));
- selenium.clickAt("//span[@title='Actions']/ul/li/strong/a/span",
- RuntimeVariables.replace("Actions"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace("Delete"),
- selenium.getText(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.click(RuntimeVariables.replace(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertTrue(selenium.getConfirmation()
- .matches("^Are you sure you want to delete this[\\s\\S]$"));
- assertEquals(RuntimeVariables.replace(
- "Your request completed successfully."),
- selenium.getText("//div[@class='portlet-msg-success']"));
-
- case 4:
-
- boolean site4Present = selenium.isElementPresent(
- "//span[@title='Actions']/ul/li/strong/a/span");
-
- if (!site4Present) {
- label = 5;
-
- continue;
- }
-
- assertEquals(RuntimeVariables.replace("Actions"),
- selenium.getText(
- "//span[@title='Actions']/ul/li/strong/a/span"));
- selenium.clickAt("//span[@title='Actions']/ul/li/strong/a/span",
- RuntimeVariables.replace("Actions"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace("Delete"),
- selenium.getText(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.click(RuntimeVariables.replace(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertTrue(selenium.getConfirmation()
- .matches("^Are you sure you want to delete this[\\s\\S]$"));
- assertEquals(RuntimeVariables.replace(
- "Your request completed successfully."),
- selenium.getText("//div[@class='portlet-msg-success']"));
-
- case 5:
-
- boolean site5Present = selenium.isElementPresent(
- "//span[@title='Actions']/ul/li/strong/a/span");
-
- if (!site5Present) {
- label = 6;
-
- continue;
- }
-
- assertEquals(RuntimeVariables.replace("Actions"),
- selenium.getText(
- "//span[@title='Actions']/ul/li/strong/a/span"));
- selenium.clickAt("//span[@title='Actions']/ul/li/strong/a/span",
- RuntimeVariables.replace("Actions"));
-
- for (int second = 0;; second++) {
- if (second >= 90) {
- fail("timeout");
- }
-
- try {
- if (selenium.isVisible(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a")) {
- break;
- }
- }
- catch (Exception e) {
- }
-
- Thread.sleep(1000);
- }
-
- assertEquals(RuntimeVariables.replace("Delete"),
- selenium.getText(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.click(RuntimeVariables.replace(
- "//div[@class='lfr-component lfr-menu-list']/ul/li[@class='last']/a"));
- selenium.waitForPageToLoad("30000");
- loadRequiredJavaScriptModules();
- assertTrue(selenium.getConfirmation()
- .matches("^Are you sure you want to delete this[\\s\\S]$"));
- assertEquals(RuntimeVariables.replace(
- "Your request completed successfully."),
- selenium.getText("//div[@class='portlet-msg-success']"));
-
- case 6:
- case 100:
- label = -1;
- }
- }
- }
-}
View
163