You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2016/11/02 08:40:09 UTC
svn commit: r1767614 [14/26] - /myfaces/site/publish/tobago/
Modified: myfaces/site/publish/tobago/howto-test.html
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/howto-test.html?rev=1767614&r1=1767613&r2=1767614&view=diff
==============================================================================
--- myfaces/site/publish/tobago/howto-test.html (original)
+++ myfaces/site/publish/tobago/howto-test.html Wed Nov 2 08:40:08 2016
@@ -1,327 +1,267 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>Tobago – Howto create tests for Tobago Demo 3.0 or higher</title>
+ <link rel="stylesheet" type="text/css" media="all" href="./css/maven-base.css"/>
+ <link rel="stylesheet" type="text/css" media="all" href="./css/maven-theme.css"/>
+ <link rel="stylesheet" type="text/css" media="print" href="./css/print.css"/>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+</head>
+<body>
+<div id="header">
+ <div id="top_menu">
+ <div id="top_menu_container">
+ <div class="date">
+ Last Published: 01 Nov 2016
+ </div>
+ <ul>
+ <li>
+ <a href="http://www.apache.org/">Apache</a>
+ </li>
+ <li>
+ <a href="../">MyFaces</a>
+ </li>
+ <li>
+ <a href="./">Tobago</a>
+ </li>
+ <li>
+ <a href="../download.html">Download</a>
+ </li>
+ <li>
+ <a href="mail-lists.html">Mailing Lists</a>
+ </li>
+ </ul>
+ <div class="clear"></div>
+ </div> <!-- close top_menu_container -->
+ </div> <!-- close top_menu -->
+ <div id="header_bottom">
+ <div id="logo_banner_container">
+ <div id="logo">
+ <a href="./">
+ <img src="images/tobagoLogo.png" alt=""/>
+ </a>
+ </div>
+ <div id="banner">
+ <a href="../">
+ <img src="img/banners/MyFaces_logo.jpg" alt=""/>
-
-
-
-
-
-
-
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Tobago – Howto create tests for Tobago Demo 3.0 or higher</title>
- <link rel="stylesheet" type="text/css" media="all" href="./css/maven-base.css"/>
- <link rel="stylesheet" type="text/css" media="all" href="./css/maven-theme.css"/>
- <link rel="stylesheet" type="text/css" media="print" href="./css/print.css"/>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- </head>
- <body>
- <div id="header">
- <div id="top_menu">
- <div id="top_menu_container">
-
-
-
- <div class="date">
- Last Published: 20 Sep 2016
- </div>
- <ul>
- <li>
- <a href="http://www.apache.org/">Apache</a>
- </li>
- <li>
- <a href="../">MyFaces</a>
- </li>
- <li>
- <a href="./">Tobago</a>
- </li>
- <li>
- <a href="../download.html">Download</a>
- </li>
- <li>
- <a href="mail-lists.html">Mailing Lists</a>
- </li>
- </ul>
- <div class="clear"></div>
- </div> <!-- close top_menu_container -->
- </div> <!-- close top_menu -->
- <div id="header_bottom">
- <div id="logo_banner_container">
- <div id="logo">
- <a href="./">
-
- <img src="images/tobagoLogo.png" alt="" />
-
- </a>
- </div>
- <div id="banner">
- <a href="../">
-
- <img src="img/banners/MyFaces_logo.jpg" alt="" />
-
- </a>
- </div>
- <div class="clear"></div>
+ </a>
+ </div>
+ <div class="clear"></div>
</div> <!-- close logo_banner_container -->
- </div> <!-- close header_bottom -->
- </div> <!-- close header -->
- <div id="main_container">
- <div id="left_column">
- <div class="left_menu_top">
- <div class="left_menu_bottom">
+ </div> <!-- close header_bottom -->
+</div> <!-- close header -->
+<div id="main_container">
+ <div id="left_column">
+ <div class="left_menu_top">
+ <div class="left_menu_bottom">
<h5>Tobago</h5>
- <div class="content">
- <ul class="left_menu">
-
- <li class="none">
- <a href="index.html">Introduction</a>
- </li>
-
- <li class="none">
- <a href="download.html">Download</a>
- </li>
-
- <li class="none">
- <a href="demo.html">Demo</a>
- </li>
-
- <li class="none">
- <a href="mail-lists.html">Mailing Lists</a>
- </li>
+ <div class="content">
+ <ul class="left_menu">
+
+ <li class="none">
+ <a href="index.html">Introduction</a>
+ </li>
+
+ <li class="none">
+ <a href="download.html">Download</a>
+ </li>
+
+ <li class="none">
+ <a href="demo.html">Demo</a>
+ </li>
+
+ <li class="none">
+ <a href="mail-lists.html">Mailing Lists</a>
+ </li>
</ul>
- </div><!-- close content -->
- </div><!-- close left_menu_bottom -->
+ </div><!-- close content -->
+ </div><!-- close left_menu_bottom -->
</div><!-- close left_menu_top -->
- <div class="left_menu_top">
- <div class="left_menu_bottom">
+ <div class="left_menu_top">
+ <div class="left_menu_bottom">
<h5>Documentation</h5>
- <div class="content">
- <ul class="left_menu">
-
- <li class="none">
- <a href="getting-started.html">Getting Started</a>
- </li>
-
- <li class="none">
- <a href="compatibility.html">Compatibility</a>
- </li>
-
- <li class="none">
- <a href="new-3.0.html">New in Tobago 3.0 (alpha)</a>
- </li>
-
- <li class="none">
- <a href="new-2.0.html">New in Tobago 2.0</a>
- </li>
-
- <li class="none">
- <a href="guide.html">Guide to Tobago</a>
- </li>
-
- <li class="none">
- <a href="howto-test.html" class="selected">Test Tobago 3.0 Demo</a>
- </li>
-
- <li class="none">
- <a href="migration-3.0.html">Migration to 3.0 (alpha)</a>
- </li>
-
- <li class="none">
- <a href="migration-2.0.html">Migration to 2.0</a>
- </li>
-
- <li class="none">
- <a href="migration-1.5.html">Migration to 1.5</a>
- </li>
-
- <li class="none">
- <a href="roadmap.html">Roadmap</a>
- </li>
-
- <li class="none">
- <a href="themes.html">Theme Handling</a>
- </li>
-
- <li class="none">
- <a href="faq.html">FAQ</a>
- </li>
-
- <li class="none">
- <a href="api.html">API Documentation</a>
- </li>
-
- <li class="none">
- <a href="release-checklist.html">Release Checklist</a>
- </li>
+ <div class="content">
+ <ul class="left_menu">
+
+ <li class="none">
+ <a href="getting-started.html">Getting Started</a>
+ </li>
+
+ <li class="none">
+ <a href="compatibility.html">Compatibility</a>
+ </li>
+
+ <li class="none">
+ <a href="new-3.0.html">New in Tobago 3.0 (alpha)</a>
+ </li>
+
+ <li class="none">
+ <a href="new-2.0.html">New in Tobago 2.0</a>
+ </li>
+
+ <li class="none">
+ <a href="guide.html">Guide to Tobago</a>
+ </li>
+
+ <li class="none">
+ <a href="howto-test.html" class="selected">Test Tobago 3.0 Demo</a>
+ </li>
+
+ <li class="none">
+ <a href="migration-3.0.html">Migration to 3.0 (alpha)</a>
+ </li>
+
+ <li class="none">
+ <a href="migration-2.0.html">Migration to 2.0</a>
+ </li>
+
+ <li class="none">
+ <a href="migration-1.5.html">Migration to 1.5</a>
+ </li>
+
+ <li class="none">
+ <a href="roadmap.html">Roadmap</a>
+ </li>
+
+ <li class="none">
+ <a href="themes.html">Theme Handling</a>
+ </li>
+
+ <li class="none">
+ <a href="faq.html">FAQ</a>
+ </li>
+
+ <li class="none">
+ <a href="api.html">API Documentation</a>
+ </li>
+
+ <li class="none">
+ <a href="release-checklist.html">Release Checklist</a>
+ </li>
</ul>
- </div><!-- close content -->
- </div><!-- close left_menu_bottom -->
+ </div><!-- close content -->
+ </div><!-- close left_menu_bottom -->
</div><!-- close left_menu_top -->
- <div class="left_menu_top">
- <div class="left_menu_bottom">
+ <div class="left_menu_top">
+ <div class="left_menu_bottom">
<h5>Project Documentation</h5>
- <div class="content">
- <ul class="left_menu">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="collapsed">
- <a href="project-info.html">Project Information</a>
- </li>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="collapsed">
- <a href="project-reports.html">Project Reports</a>
- </li>
+ <div class="content">
+ <ul class="left_menu">
+
+
+ <li class="collapsed">
+ <a href="project-info.html">Project Information</a>
+ </li>
+
+
+ <li class="collapsed">
+ <a href="project-reports.html">Project Reports</a>
+ </li>
</ul>
- </div><!-- close content -->
- </div><!-- close left_menu_bottom -->
+ </div><!-- close content -->
+ </div><!-- close left_menu_bottom -->
</div><!-- close left_menu_top -->
- <div class="left_menu_top">
- <div class="left_menu_bottom">
+ <div class="left_menu_top">
+ <div class="left_menu_bottom">
<h5>Foundation</h5>
- <div class="content">
- <ul class="left_menu">
-
- <li class="none">
- <a href="http://apache.org/" class="externalLink">ASF<span/></a>
- </li>
-
- <li class="none">
- <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsorship<span/></a>
- </li>
-
- <li class="none">
- <a href="http://www.apache.org/foundation/thanks.html" class="externalLink">Thanks<span/></a>
- </li>
-
- <li class="none">
- <a href="http://www.apache.org/security/" class="externalLink">Security<span/></a>
- </li>
-
- <li class="none">
- <a href="http://www.apache.org/licenses/" class="externalLink">License<span/></a>
- </li>
+ <div class="content">
+ <ul class="left_menu">
+
+ <li class="none">
+ <a href="http://apache.org/" class="externalLink">ASF<span/></a>
+ </li>
+
+ <li class="none">
+ <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsorship<span/></a>
+ </li>
+
+ <li class="none">
+ <a href="http://www.apache.org/foundation/thanks.html" class="externalLink">Thanks<span/></a>
+ </li>
+
+ <li class="none">
+ <a href="http://www.apache.org/security/" class="externalLink">Security<span/></a>
+ </li>
+
+ <li class="none">
+ <a href="http://www.apache.org/licenses/" class="externalLink">License<span/></a>
+ </li>
</ul>
- </div><!-- close content -->
- </div><!-- close left_menu_bottom -->
+ </div><!-- close content -->
+ </div><!-- close left_menu_bottom -->
</div><!-- close left_menu_top -->
- <div id="powered_by">
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img alt="Built by Maven" src="./img/banners/maven-feather.png"></img>
- </a>
- </div> <!-- close powered_by -->
- <div id="powered_by">
- <a href="http://www.apache.org/events/current-event.html" title="ApacheCon">
- <img alt="ApacheCon" src="http://www.apache.org/events/current-event-125x125.png" />
- </a>
- </div>
- <div class="clear"></div>
+ <div id="powered_by">
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="./img/banners/maven-feather.png"></img>
+ </a>
+ </div> <!-- close powered_by -->
+ <div id="powered_by">
+ <a href="http://www.apache.org/events/current-event.html" title="ApacheCon">
+ <img alt="ApacheCon" src="http://www.apache.org/events/current-event-125x125.png"/>
+ </a>
</div>
- <div id="body_column">
- <div>
+ <div class="clear"></div>
+ </div>
+ <div id="body_column">
+ <div>
<div class="section">
-<h2><a name="Howto_create_QUnit_tests_for_Tobago_Demo_3.0_or_higher"></a>Howto create QUnit tests for Tobago Demo 3.0 or higher</h2>
-<ol style="list-style-type: decimal">
-<li>Choose a <sample>.xhtml file for testing.</li>
-<li>Create a <sample>.test.js file (with same name).</li>
-<li>Add a <a class="externalLink" href="http://api.qunitjs.com/QUnit.test/">QUnit test</a> to the <sample>.test.js.
-<div class="source">
+ <h2><a name="Howto_create_QUnit_tests_for_Tobago_Demo_3.0_or_higher"></a>Howto create QUnit tests for Tobago
+ Demo 3.0 or higher</h2>
+ <ol style="list-style-type: decimal">
+ <li>Choose a <sample>.xhtml file for testing.</li>
+ <li>Create a <sample>.test.js file (with same name).</li>
+ <li>Add a <a class="externalLink" href="http://api.qunitjs.com/QUnit.test/">QUnit test</a> to the <sample>.test.js.
+ <div class="source">
<pre> QUnit.test("Testtitle", function(assert) {
...
- });</pre></div>
-<ol style="list-style-type: lower-alpha">
-<li>The test will run in a different frame. To get an element in the test frame use <tt>jQueryFrame()</tt> instead of <tt>jQuery()</tt>.</li>
-<li>To wait for a submit use <tt>jQuery("#page\:testframe").load()</tt>.</li>
-<li>To wait for an AJAX event use <tt>waitForAjax(waitingDone, executeWhenDone)</tt>. The function <tt>waitingDone</tt> must return false if still waiting and true if the waiting is done. The function <tt>executeWhenDone</tt> is executed afterwards.</li></ol></li>
-<li>Add the test to QUnitTests.
-<div class="source">
+ });</pre>
+ </div>
+ <ol style="list-style-type: lower-alpha">
+ <li>The test will run in a different frame. To get an element in the test frame use <tt>jQueryFrame()</tt>
+ instead of <tt>jQuery()</tt>.
+ </li>
+ <li>To wait for a submit use <tt>jQuery("#page\:testframe").load()</tt>.</li>
+ <li>To wait for an AJAX event use <tt>waitForAjax(waitingDone, executeWhenDone)</tt>. The function <tt>waitingDone</tt>
+ must return false if still waiting and true if the waiting is done. The function
+ <tt>executeWhenDone</tt> is executed afterwards.
+ </li>
+ </ol>
+ </li>
+ <li>Add the test to QUnitTests.
+ <div class="source">
<pre> @Test
public void testname() throws UnsupportedEncodingException, InterruptedException {
String page = "content/.../testname.xhtml";
runStandardTest(page);
- }</pre></div></li>
-<li>Run the tests from QUnitTests or type
-<div class="source">
-<pre> mvn verify -Pqunit-integration-tests</pre></div></li></ol></div>
+ }</pre>
+ </div>
+ </li>
+ <li>Run the tests from QUnitTests or type
+ <div class="source">
+ <pre> mvn verify -Pqunit-integration-tests</pre>
+ </div>
+ </li>
+ </ol>
</div>
</div>
- <div class="clear"></div>
- </div> <!-- close main container -->
- <div id="footer">
- <div class="copyright">
- ©
- 2002-2016
- Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br/>
- Apache MyFaces, Apache Tobago, Apache, the Apache feather logo, and the Apache MyFaces project logos are trademarks of The Apache Software Foundation.
- </div><!-- close copyright -->
- </div><!-- close footer -->
- </body>
+ </div>
+ <div class="clear"></div>
+</div> <!-- close main container -->
+<div id="footer">
+ <div class="copyright">
+ ©
+ 2002-2016
+ Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License,
+ Version 2.0</a>.<br/>
+ Apache MyFaces, Apache Tobago, Apache, the Apache feather logo, and the Apache MyFaces project logos are trademarks
+ of The Apache Software Foundation.
+ </div><!-- close copyright -->
+</div><!-- close footer -->
+</body>
</html>