Author: dsvyatobatsko
Date: 2008-06-09 08:35:29 -0400 (Mon, 09 Jun 2008)
New Revision: 8957
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SeleniumTestBase.java
Log:
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SeleniumTestBase.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SeleniumTestBase.java 2008-06-09
12:31:13 UTC (rev 8956)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SeleniumTestBase.java 2008-06-09
12:35:29 UTC (rev 8957)
@@ -131,48 +131,6 @@
selenium = null;
}
}
-
-// /**
-// * Renders page
-// */
-// @Deprecated
-// protected void renderPage(String homePage) {
-// selenium.open(protocol + "://" + host + ":" + port +
"/" + APPLICATION_NAME + homePage);
-// selenium.waitForPageToLoad(String.valueOf(pageRenderTime));
-//
-// checkPageRendering(); // At the first we check if page has been
-// // rendered
-// checkJSError(); // At the second we check if JS errors occurred
-//
-// // reRenderForm(); // ReRender component
-//
-// // checkPageRendering(); // Check all again
-// // checkJSError();
-//
-// }
-
-// /**
-// * Renders page
-// */
-// @Deprecated
-// protected void renderPage(String homePage, Template template) {
-// selenium.open(protocol + "://" + host + ":" + port +
"/" + APPLICATION_NAME + homePage);
-// selenium.waitForPageToLoad(String.valueOf(pageRenderTime));
-//
-// setParentId(template.getPrefix());
-// runScript("loadTemplate('" + template.getName() +
"');", false);
-// waitForPageToLoad();
-//
-// checkPageRendering(); // At the first we check if page has been
-// // rendered
-// checkJSError(); // At the second we check if JS errors occurred
-//
-// reRenderForm(); // ReRender component
-//
-// checkPageRendering(); // Check all again
-// checkJSError();
-//
-// }
/**
* Renders page
@@ -666,18 +624,22 @@
}
}
-
- /**
- * Returns the url to test page to be opened by selenium
- * @return
- */
- protected String getTestUrl() {
- return null;
- }
-
+ /**
+ * Checks whether client is FireFox
+ * @return true if client is FireFox
+ */
public boolean isFF() {
return new
Boolean(selenium.getEval("navigator.userAgent.indexOf('Firefox') >
-1"));
}
+ /**
+ * Returns the url to test page to be opened by selenium
+ *
+ * @return
+ */
+ protected String getTestUrl() {
+ return null;
+ }
+
}
Show replies by date