diff options
author | xue <> | 2006-03-12 04:43:03 +0000 |
---|---|---|
committer | xue <> | 2006-03-12 04:43:03 +0000 |
commit | cb7b7f1929dce12936eca957caa432e74c6dc7de (patch) | |
tree | 5de1b58f968241299e65e8ac852f88d755f8f25d /tests/FunctionalTests/protected/pages | |
parent | dcaeab55c94f6f51ab92b7d1a70503a544df73cd (diff) |
reorganized FT tests.
Diffstat (limited to 'tests/FunctionalTests/protected/pages')
15 files changed, 0 insertions, 489 deletions
diff --git a/tests/FunctionalTests/protected/pages/Home.page b/tests/FunctionalTests/protected/pages/Home.page deleted file mode 100644 index bf2830d6..00000000 --- a/tests/FunctionalTests/protected/pages/Home.page +++ /dev/null @@ -1,6 +0,0 @@ -<com:TContent ID="Content">
-<com:TForm>
-<h1>Prado Functional Tests</h1>
-<com:TJavascriptLogger />
-</com:TForm>
-</com:TContent>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/Home.zh_CN.page b/tests/FunctionalTests/protected/pages/Home.zh_CN.page deleted file mode 100644 index df7a9cc0..00000000 --- a/tests/FunctionalTests/protected/pages/Home.zh_CN.page +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE HTML PUBLIC
- "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
- <title>Prado Functional Tests (zh_CN)</title>
- <style type="text/css">
- /*<![CDATA[*/
- body
- {
- font-family: Georgia, "Times New Roman", Times, serif;
- }
- .w3c
- {
- margin-top: 2em;
- display: block;
- }
- /*]]>*/
- </style>
-</head>
-
-<body>
-
-<h1>Prado Functional Tests (zh_CN)</h1>
-
-<div class="w3c">
-<a href="http://validator.w3.org/check?uri=referer">
- Validate XHTML 1.0
-</a>
-</div>
-</body>
-</html>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/I18N/BasicI18N.page b/tests/FunctionalTests/protected/pages/I18N/BasicI18N.page deleted file mode 100644 index e13eecf2..00000000 --- a/tests/FunctionalTests/protected/pages/I18N/BasicI18N.page +++ /dev/null @@ -1,31 +0,0 @@ -<%@ Title="Basic I18N Test" Application.Globalization.Culture="zh_CN" %>
-<com:TContent ID="Content">
-<h1>Basic I18N Test</h1>
-<com:TTranslate>
- Hello {name}
- <com:TTranslateParameter Key="name">
- <com:TLabel>
- <com:TTranslate>Name</com:TTranslate>
- </com:TLabel>
- </com:TTranslateParameter>
-</com:TTranslate>
-
-<div>
-<com:TNumberFormat Value="10000" Type="currency"/>
-</div>
-<div><com:TDateFormat Value="2006-01-15" Culture="zh_CN"/></div>
-
-<div>
-<com:TChoiceFormat Value="0">
- [0] None |[1] One thing. |[2,Inf) Many things.
-</com:TChoiceFormat><br />
-
-<com:TChoiceFormat Value="1">
- [0] None |[1] One thing. |[2,Inf) Many things.
-</com:TChoiceFormat><br />
-
-<com:TChoiceFormat Value="5">
- [0] None |[1] One thing. |[2,Inf) Many things.
-</com:TChoiceFormat>
-</div>
-</com:TContent>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/I18N/BasicI18N.php b/tests/FunctionalTests/protected/pages/I18N/BasicI18N.php deleted file mode 100644 index 6920f439..00000000 --- a/tests/FunctionalTests/protected/pages/I18N/BasicI18N.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php
-
-/**
- * ${classname}
- *
- * ${description}
- *
- * @author Wei Zhuo<weizhuo[at]gmail[dot]com>
- * @version $Revision: 1.66 $ $Date: ${DATE} ${TIME} $
- * @package ${package}
- */
-class BasicI18N extends TPage
-{
-}
-
-/**
- * ${classname}
- *
- * ${description}
- *
- * @author Wei Zhuo<weizhuo[at]gmail[dot]com>
- * @version $Revision: 1.66 $ $Date: ${DATE} ${TIME} $
- * @package ${package}
- */
-class BasicI18NTestCase extends SeleniumTestCase
-{
- function setup()
- {
- $page = Prado::getApplication()->getTestPage(__FILE__);
- $this->open($page);
- }
-
- function testI18N()
- {
- $this->verifyTitle("Basic I18N Test", "");
- $this->verifyTextPresent("Hello", "");
- $this->verifyTextPresent("US$10,000.00", "");
- $this->verifyTextPresent("2006年1月15日 上午12时00分00秒", "");
- $this->verifyTextPresent("None", "");
- $this->verifyTextPresent("One thing.", "");
- $this->verifyTextPresent("Many things.", "");
- }
-}
-
-?>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/Layout.php b/tests/FunctionalTests/protected/pages/Layout.php deleted file mode 100644 index 2c6e02d6..00000000 --- a/tests/FunctionalTests/protected/pages/Layout.php +++ /dev/null @@ -1,8 +0,0 @@ -<?php
-
-class Layout extends TTemplateControl
-{
-
-}
-
-?>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/Layout.tpl b/tests/FunctionalTests/protected/pages/Layout.tpl deleted file mode 100644 index d58acd5d..00000000 --- a/tests/FunctionalTests/protected/pages/Layout.tpl +++ /dev/null @@ -1,37 +0,0 @@ -<!DOCTYPE html PUBLIC
- "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<com:THead Title="PRADO Functional Tests">
- <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
- <style type="text/css">
- /*<![CDATA[*/
- body
- {
- font-family: Georgia, "Times New Roman", Times, serif;
- }
- .w3c
- {
- margin-top: 2em;
- display: block;
- }
- /*]]>*/
- </style>
-</com:THead>
-<body>
-<com:TForm>
-<com:TContentPlaceHolder ID="Content" />
-<com:TJavascriptLogger />
-</com:TForm>
-<div class="w3c">
-<a href="http://validator.w3.org/check?uri=referer">
- Validate XHTML 1.0
-</a>
-<a href="?page=ViewSource&path=<%= str_replace('.','/', $this->Request->ServiceParameter) %>.page"
- style="margin: 0 1em;"
- onclick="window.open(this.href); return false;"
- onkeypress="window.open(this.href); return false;">View Source</a>
-</div>
-</body>
-</html>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/TicketTestPage.php b/tests/FunctionalTests/protected/pages/TicketTestPage.php deleted file mode 100644 index f647f56b..00000000 --- a/tests/FunctionalTests/protected/pages/TicketTestPage.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php
-
-class TicketTestPage extends TTemplateControl
-{
- public function onLoad($param)
- {
- $num = str_replace('Ticket_','',get_class($this->getPage()));
- $this->getPage()->setTitle("Verifying Ticket $num");
- $this->ticketlink->setText("Verifying Ticket $num");
- $this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/ticket/{$num}");
- }
-}
-
-?>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/TicketTestPage.tpl b/tests/FunctionalTests/protected/pages/TicketTestPage.tpl deleted file mode 100644 index bf2f8fab..00000000 --- a/tests/FunctionalTests/protected/pages/TicketTestPage.tpl +++ /dev/null @@ -1,45 +0,0 @@ -<!DOCTYPE html PUBLIC
- "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<com:THead Title="PRADO Functional Tests">
- <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
- <style type="text/css">
- /*<![CDATA[*/
- .defect
- {
- color: #c00;
- font-size: 1.15em;
- }
- body
- {
- font-family: Georgia, "Times New Roman", Times, serif;
- }
- .w3c
- {
- margin-top: 2em;
- display: block;
- }
- /*]]>*/
- </style>
-</com:THead>
-<body>
-<com:TForm>
-<h1><com:THyperLink ID="ticketlink" /></h1>
-
-<com:TContentPlaceHolder ID="Content" />
-<hr style="margin-top: 2em" />
-<com:TJavascriptLogger />
-</com:TForm>
-<div class="w3c">
-<a href="http://validator.w3.org/check?uri=referer">
- Validate XHTML 1.0
-</a>
-<a href="?page=ViewSource&path=<%= str_replace('.','/', $this->Request->ServiceParameter) %>.page"
- style="margin: 0 1em;"
- onclick="window.open(this.href); return false;"
- onkeypress="window.open(this.href); return false;">View Source</a>
-</div>
-</body>
-</html>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/UI/ColorPicker.page b/tests/FunctionalTests/protected/pages/UI/ColorPicker.page deleted file mode 100644 index 3d8c46db..00000000 --- a/tests/FunctionalTests/protected/pages/UI/ColorPicker.page +++ /dev/null @@ -1,40 +0,0 @@ -<com:TContent ID="Content">
-
-<com:TColorPicker Text="#FFCC00" /><br />
-
-
-<p>asda<br /></p>
-<p>asda<br /></p>
-<p>asda<br /></p>
-
-<p>asda<br /></p>
-<p>asda<br /></p>
-
-<com:TColorPicker Mode="Simple" /><br />
-
-
-<p>asda<br /></p>
-<p>asda<br /></p>
-<p>asda<br /></p>
-
-<com:TColorPicker ShowColorPicker="false" /><br />
-
-<p>asda<br /></p>
-
-<com:TColorPicker Mode="Full" /><br />
-
-<p>asda<br /></p>
-<p>asda<br /></p>
-
-<p>asda<br /></p>
-<p>asda<br /></p>
-<p>asda<br /></p>
-<p>asda<br /></p>
-<p>asda<br /></p>
-<p>asda<br /></p>
-<p>asda<br /></p>
-<p>asda<br /></p>
-<p>asda<br /></p>
-
-
-</com:TContent>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/UI/DatePicker.page b/tests/FunctionalTests/protected/pages/UI/DatePicker.page deleted file mode 100644 index 4347f748..00000000 --- a/tests/FunctionalTests/protected/pages/UI/DatePicker.page +++ /dev/null @@ -1,59 +0,0 @@ -<com:TContent ID="Content">
-
-<h1>TDatePicker Samples</h1>
-
-<table class="sampletable">
-
-<tr>
- <td class="samplenote">Default TDatePicker</td>
- <td class="sampleaction">
- <com:TDatePicker />
- </td>
-</tr>
-
-<tr>
- <td class="samplenote">Button Mode</td>
- <td class="sampleaction">
- <com:TDatePicker Mode="Button" />
- </td>
-</tr>
-
-<tr>
- <td class="samplenote">InputMode="DropDownList", custom DateFormat</td>
- <td class="sampleaction">
- <com:TDatePicker DateFormat="yyyy/MMMM" InputMode="DropDownList"/>
- </td>
-</tr>
-
-<tr>
- <td class="samplenote">InputMode="DropDownList", custom DateFormat, Culture</td>
- <td class="sampleaction">
- <com:TDatePicker DateFormat="MM/yyyy" Culture="fr" InputMode="DropDownList"/>
- </td>
-</tr>
-
-
-<tr>
- <td class="samplenote">Custom DateFormat, culture, ImageButton mode</td>
- <td class="sampleaction">
- <com:TDatePicker Mode="ImageButton" Culture="zh_CN" DateFormat="日期:yyyy年M月d日"/>
- </td>
-</tr>
-
-<tr>
- <td class="samplenote">Custom DateFormat, DropDownList, pre-selected date set in as Text</td>
- <td class="sampleaction">
- <com:TDatePicker DateFormat="yyyy/MMMM/dd" Text="2005/05/15" InputMode="DropDownList"/>
- </td>
-</tr>
-
-<tr>
- <td class="samplenote">DropDownList, pre-selected date as integer</td>
- <td class="sampleaction">
- <com:TDatePicker InputMode="DropDownList" Date=<%= @strtotime("-1 month") %>/>
- </td>
-</tr>
-
-</table>
-
-</com:TContent>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/UI/RatingList.page b/tests/FunctionalTests/protected/pages/UI/RatingList.page deleted file mode 100644 index 909180c7..00000000 --- a/tests/FunctionalTests/protected/pages/UI/RatingList.page +++ /dev/null @@ -1,41 +0,0 @@ -<com:TContent ID="Content">
-<h1>TRatingList Examples</h1>
-
-<h2>Default TRatingList</h2>
- <com:TRatingList RepeatDirection="Vertical" Style="caption-side: right;">
- <com:TListItem Text="Fair" />
- <com:TListItem Text="Average" />
- <com:TListItem Text="Good" />
- <com:TListItem Text="Execellent" />
- </com:TRatingList>
-
-<h2>TRatingList </h2>
- <com:TRatingList SelectedIndex="2">
- <com:TListItem Text="Poor" />
- <com:TListItem Text="Fair" />
- <com:TListItem Text="Average" />
- <com:TListItem Text="Good" />
- <com:TListItem Text="Execellent" />
- <com:TListItem Text="Super" />
- </com:TRatingList>
-
-<h2>TRatingList </h2>
- <com:TRatingList RatingStyle="blocks" SelectedValue="Good">
- <com:TListItem Text="Poor" />
- <com:TListItem Text="Fair" />
- <com:TListItem Text="Average" />
- <com:TListItem Text="Good" />
- <com:TListItem Text="Execellent" />
- <com:TListItem Text="Super" />
- </com:TRatingList>
-
-<h2>TRatingList </h2>
- <com:TRatingList ID="Rating1" AllowInput="false" Caption="Rating:" Rating="4.6">
- <com:TListItem Text="Poor" />
- <com:TListItem Text="Fair" />
- <com:TListItem Text="Average" />
- <com:TListItem Text="Good" />
- <com:TListItem Text="Execellent" />
- <com:TListItem Text="Super" />
- </com:TRatingList>
-</com:TContent>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/UI/testHtmlArea.page b/tests/FunctionalTests/protected/pages/UI/testHtmlArea.page deleted file mode 100644 index 5e9665dd..00000000 --- a/tests/FunctionalTests/protected/pages/UI/testHtmlArea.page +++ /dev/null @@ -1,10 +0,0 @@ -<%@ Application.Globalization.Charset="GB2312" %>
-<com:TContent ID="Content">
-
- <com:THtmlArea>
- <prop:Options>
- plugins : "contextmenu,paste",
- language: "zh_CN"
- </prop:Options>
- </com:THtmlArea>
-</com:TContent>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/ViewSource.page b/tests/FunctionalTests/protected/pages/ViewSource.page deleted file mode 100644 index 218cc901..00000000 --- a/tests/FunctionalTests/protected/pages/ViewSource.page +++ /dev/null @@ -1,23 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
-
-<com:THead Title="PRADO QuickStart Source View">
-<meta http-equiv="content-language" content="en"/>
-</com:THead>
-
-<body>
-<com:TForm>
-<div id="sourceList">
-<com:TLiteral ID="SourceList" />
-<com:TCheckBox ID="showLineNumbers" AutoPostBack="true" />
-<com:TLabel For="showLineNumbers">Show Line Numbers</com:TLabel>
-</div>
-<div id="sourceView">
-<com:TTextHighlighter ID="Highlighter" CssClass="source"
- ShowLineNumbers="<%# $this->Page->showLineNumbers->Checked %>" >
-<com:TLiteral ID="SourceView" />
-</com:TTextHighlighter>
-</com:TForm>
-</div>
-</body>
-</html>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/ViewSource.php b/tests/FunctionalTests/protected/pages/ViewSource.php deleted file mode 100644 index 84f39161..00000000 --- a/tests/FunctionalTests/protected/pages/ViewSource.php +++ /dev/null @@ -1,85 +0,0 @@ -<?php
-
-class ViewSource extends TPage
-{
- private $_path=null;
- private $_fullPath=null;
- private $_fileType=null;
-
- protected function isFileTypeAllowed($extension)
- {
- return in_array($extension,array('tpl','page','php'));
- }
-
- protected function getFileExtension($fileName)
- {
- if(($pos=strrpos($fileName,'.'))===false)
- return '';
- else
- return substr($fileName,$pos+1);
- }
-
- public function onLoad($param)
- {
- parent::onLoad($param);
- $path=$this->Request->Items['path'];
- $fullPath=realpath($this->Service->BasePath.'/'.$path);
- $fileExt=$this->getFileExtension($fullPath);
- if($fullPath!==false && is_file($fullPath) && strpos($fullPath,$this->Service->BasePath)!==false)
- {
- if($this->isFileTypeAllowed($fileExt))
- {
- $this->_fullPath=strtr($fullPath,'\\','/');
- $this->_path=strtr(substr($fullPath,strlen($this->Service->BasePath)),'\\','/');
- }
- }
- if($this->_fullPath===null)
- throw new THttpException(500,'File Not Found: %s',$path);
- $basePath=dirname($this->_fullPath);
- if($dh=opendir($basePath))
- {
- $str="<h2>{$this->_path}</h2>\n";
- while(($file=readdir($dh))!==false)
- {
- if(is_file($basePath.'/'.$file))
- {
- $fileType=$this->getFileExtension($basePath.'/'.$file);
- if($this->isFileTypeAllowed($fileType))
- {
- if($fileType==='tpl' || $fileType==='page')
- $type='Template file';
- else
- $type='Class file';
- $path='/'.ltrim(strtr(dirname($this->_path),'\\','/').'/'.$file,'/');
- $str.="$type: <a href=\"?page=ViewSource&path=$path\">$file</a><br/>";
- }
- }
-
- }
- closedir($dh);
- $this->SourceList->Text=$str;
- }
-
- switch($fileExt)
- {
- case 'page' :
- case 'tpl' :
- $this->Highlighter->Language='prado';
- break;
- case 'php' :
- $this->Highlighter->Language='php';
- break;
- case 'xml' :
- $this->Highlighter->Language='xml';
- break;
- default :
- $this->Highlighter->Language='html';
- break;
- }
-
- $this->SourceView->Text=file_get_contents($this->_fullPath);
- $this->dataBind();
- }
-}
-
-?>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/config.xml b/tests/FunctionalTests/protected/pages/config.xml deleted file mode 100644 index b7007323..00000000 --- a/tests/FunctionalTests/protected/pages/config.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-
-<configuration>
- <paths>
- <alias id="Pages" path="." />
- <using namespace="Pages.UI.*" />
- </paths>
- <pages MasterClass="Pages.Layout">
- <page id="ViewSource" MasterClass="" />
- </pages>
-</configuration>
\ No newline at end of file |