Author: fjuma
Date: 2009-04-28 14:24:17 -0400 (Tue, 28 Apr 2009)
New Revision: 364
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JMSTest.java
Log:
Modifying the JMS operations tests to expect the value box in the history details panel to
be of type HtmlTextArea instead of HtmlInput.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JMSTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JMSTest.java 2009-04-28
15:48:13 UTC (rev 363)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JMSTest.java 2009-04-28
18:24:17 UTC (rev 364)
@@ -2679,11 +2679,11 @@
// Get the result of the operation
HtmlDivision historyPanel =
(HtmlDivision)client.getElement(OPERATION_HISTORY_FORM);
- HtmlInput input =
(HtmlInput)historyPanel.getFirstByXPath(".//input[@class='property-value-input']");
+ HtmlTextArea resultTextArea =
(HtmlTextArea)historyPanel.getFirstByXPath(".//textarea[@class='property-value-input']");
- assertNotNull("Could not get the result of the operation", input);
+ assertNotNull("Could not get the result of the operation",
resultTextArea);
- String result = input.getValueAttribute();
+ String result = resultTextArea.getText();
String shortenedResult = result.substring(result.indexOf(TABLE_CELL_DELIM),
result.lastIndexOf(TABLE_ROW_END_DELIM));
@@ -2714,10 +2714,10 @@
// Get the result of the operation
HtmlDivision historyPanel =
(HtmlDivision)client.getElement(OPERATION_HISTORY_FORM);
- HtmlInput input =
(HtmlInput)historyPanel.getFirstByXPath(".//input[@class='property-value-input']");
- assertNotNull("Could not get the result of the operation", input);
+ HtmlTextArea resultTextBox =
(HtmlTextArea)historyPanel.getFirstByXPath(".//textarea[@class='property-value-input']");
+ assertNotNull("Could not get the result of the operation",
resultTextBox);
- String result = input.getValueAttribute();
+ String result = resultTextBox.getText();
log.info("Operation result was: " + result);
Show replies by date