[JWebUnit-development] SF.net SVN: jwebunit:[920] trunk
Brought to you by:
henryju
|
From: <he...@us...> - 2011-09-23 14:44:09
|
Revision: 920
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=920&view=rev
Author: henryju
Date: 2011-09-23 14:44:03 +0000 (Fri, 23 Sep 2011)
Log Message:
-----------
HTMLUnitTestingEngine#getPageText() was updated to only return text that is inside <body> element. Consequently some JUnit tests needed update.
Modified Paths:
--------------
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java
trunk/src/changes/changes.xml
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java 2011-09-23 14:33:49 UTC (rev 919)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java 2011-09-23 14:44:03 UTC (rev 920)
@@ -51,16 +51,18 @@
assertPassFail("assertWindowPresent", new Object[]{"ChildPage1"}, new Object[]{"NoSuchChild"});
}
- @Test public void testGotoWindow() {
+ @Test
+ public void testGotoWindow() {
gotoRootAndOpenChild("ChildPage1");
gotoWindow("ChildPage1");
- assertTextPresent("child 1");
+ assertTextPresent("Child Page 1");
}
- @Test public void testGotoWindowByTitle() {
+ @Test
+ public void testGotoWindowByTitle() {
gotoRootAndOpenChild("ChildPage2");
gotoWindowByTitle("Child Page 2");
- assertTextPresent("child 2");
+ assertTextPresent("This is child 2");
}
@Test public void testAssertWindowWithTitle() throws Throwable {
@@ -68,12 +70,13 @@
assertPassFail("assertWindowPresentWithTitle", new Object[]{"Child Page 2"}, new Object[]{"NoSuchTitle"});
}
- @Test public void testCloseWindow() {
+ @Test
+ public void testCloseWindow() {
beginAt("RootPage.html");
assertTitleEquals("This is the Root");
clickLink("ChildPage1");
gotoWindow("ChildPage1");
- assertTextPresent("child 1");
+ assertTextPresent("Child Page 1");
closeWindow();
assertWindowCountEquals(1);
assertTitleEquals("This is the Root");
Modified: trunk/src/changes/changes.xml
===================================================================
--- trunk/src/changes/changes.xml 2011-09-23 14:33:49 UTC (rev 919)
+++ trunk/src/changes/changes.xml 2011-09-23 14:44:03 UTC (rev 920)
@@ -32,6 +32,9 @@
<body>
<release version="3.1" date="UNKNOW" description="Cleanup for Webdriver integration">
<action type="update" dev="henryju">
+ getPageText() (and all related assertXX methods) now only deals with what is inside <body> element. Previously it was also returning page title for example.
+ </action>
+ <action type="update" dev="henryju">
gotoRootWindow() now goes to the root "frame" in a multi-frame window. Previously it was only by chance.
</action>
<action type="update" dev="henryju">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|