From richfaces-svn-commits at lists.jboss.org Fri Jan 30 12:17:07 2009 Content-Type: multipart/mixed; boundary="===============6875189861131662345==" MIME-Version: 1.0 From: richfaces-svn-commits at lists.jboss.org To: richfaces-svn-commits at lists.jboss.org Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r12507 - in trunk/test-applications/seleniumTest/richfaces/src: test/java/org/richfaces/testng and 1 other directory. Date: Fri, 30 Jan 2009 12:17:06 -0500 Message-ID: --===============6875189861131662345== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: konstantin.mishin Date: 2009-01-30 12:17:05 -0500 (Fri, 30 Jan 2009) New Revision: 12507 Added: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/dat= aGrid/dataGridAutoTest.xhtml Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfac= es/testng/DataGridTest.java Log: RF-5683 Added: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages= /dataGrid/dataGridAutoTest.xhtml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/da= taGrid/dataGridAutoTest.xhtml (rev 0) +++ trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/da= taGrid/dataGridAutoTest.xhtml 2009-01-30 17:17:05 UTC (rev 12507) @@ -0,0 +1,30 @@ + + + = + + + + + + + + + + \ No newline at end of file Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/= richfaces/testng/DataGridTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfa= ces/testng/DataGridTest.java 2009-01-30 16:55:31 UTC (rev 12506) +++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfa= ces/testng/DataGridTest.java 2009-01-30 17:17:05 UTC (rev 12507) @@ -1,8 +1,11 @@ package org.richfaces.testng; = import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; = import org.ajax4jsf.template.Template; +import org.richfaces.AutoTester; import org.richfaces.SeleniumTestBase; import org.testng.Assert; import org.testng.annotations.Test; @@ -123,6 +126,20 @@ Assert.assertFalse(selenium.isElementPresent(dataGrid)); } = + /** + * style and classes, standard HTML attributes are output to client + */ + @Test + public void testStandardAttributes(Template template) { + AutoTester autoTester =3D getAutoTester(this); + autoTester.renderPage(template, "#{dataGrid.init}"); + Map styleAttributes =3D new HashMap(); + styleAttributes.put("width", "100%"); + styleAttributes.put("color", "yellow"); + autoTester.testStyleAndClasses(new String[]{"noname"}, styleAttribute= s); + autoTester.testHTMLEvents(); + } + private void chekStructure(int ... notEqualRows) { String dataTableRowLocator =3D "id('"+ dataTable + "')/tbody/tr"; int count =3D selenium.getXpathCount(dataTableRowLocator).intValue(); @@ -142,4 +159,9 @@ public String getTestUrl() { return "pages/dataGrid/dataGrid.xhtml"; } + = + @Override + public String getAutoTestUrl() { + return "pages/dataGrid/dataGridAutoTest.xhtml"; + } } --===============6875189861131662345==--