From cb7b7f1929dce12936eca957caa432e74c6dc7de Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 12 Mar 2006 04:43:03 +0000 Subject: reorganized FT tests. --- tests/FunctionalTests/protected/application.xml | 18 ----- tests/FunctionalTests/protected/pages/Home.page | 6 -- .../protected/pages/Home.zh_CN.page | 34 --------- .../protected/pages/I18N/BasicI18N.page | 31 -------- .../protected/pages/I18N/BasicI18N.php | 45 ------------ tests/FunctionalTests/protected/pages/Layout.php | 8 -- tests/FunctionalTests/protected/pages/Layout.tpl | 37 ---------- .../protected/pages/TicketTestPage.php | 14 ---- .../protected/pages/TicketTestPage.tpl | 45 ------------ .../protected/pages/UI/ColorPicker.page | 40 ---------- .../protected/pages/UI/DatePicker.page | 59 --------------- .../protected/pages/UI/RatingList.page | 41 ----------- .../protected/pages/UI/testHtmlArea.page | 10 --- .../protected/pages/ViewSource.page | 23 ------ .../FunctionalTests/protected/pages/ViewSource.php | 85 ---------------------- tests/FunctionalTests/protected/pages/config.xml | 11 --- 16 files changed, 507 deletions(-) delete mode 100644 tests/FunctionalTests/protected/application.xml delete mode 100644 tests/FunctionalTests/protected/pages/Home.page delete mode 100644 tests/FunctionalTests/protected/pages/Home.zh_CN.page delete mode 100644 tests/FunctionalTests/protected/pages/I18N/BasicI18N.page delete mode 100644 tests/FunctionalTests/protected/pages/I18N/BasicI18N.php delete mode 100644 tests/FunctionalTests/protected/pages/Layout.php delete mode 100644 tests/FunctionalTests/protected/pages/Layout.tpl delete mode 100644 tests/FunctionalTests/protected/pages/TicketTestPage.php delete mode 100644 tests/FunctionalTests/protected/pages/TicketTestPage.tpl delete mode 100644 tests/FunctionalTests/protected/pages/UI/ColorPicker.page delete mode 100644 tests/FunctionalTests/protected/pages/UI/DatePicker.page delete mode 100644 tests/FunctionalTests/protected/pages/UI/RatingList.page delete mode 100644 tests/FunctionalTests/protected/pages/UI/testHtmlArea.page delete mode 100644 tests/FunctionalTests/protected/pages/ViewSource.page delete mode 100644 tests/FunctionalTests/protected/pages/ViewSource.php delete mode 100644 tests/FunctionalTests/protected/pages/config.xml (limited to 'tests/FunctionalTests/protected') diff --git a/tests/FunctionalTests/protected/application.xml b/tests/FunctionalTests/protected/application.xml deleted file mode 100644 index 53e73457..00000000 --- a/tests/FunctionalTests/protected/application.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file 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 @@ - - -

Prado Functional Tests

- -
-
\ 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 @@ - - - - - - Prado Functional Tests (zh_CN) - - - - - -

Prado Functional Tests (zh_CN)

- -
- - Validate XHTML 1.0 - -
- - \ 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" %> - -

Basic I18N Test

- - Hello {name} - - - Name - - - - -
- -
-
- -
- - [0] None |[1] One thing. |[2,Inf) Many things. -
- - - [0] None |[1] One thing. |[2,Inf) Many things. -
- - - [0] None |[1] One thing. |[2,Inf) Many things. - -
-
\ 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 @@ - - * @version $Revision: 1.66 $ $Date: ${DATE} ${TIME} $ - * @package ${package} - */ -class BasicI18N extends TPage -{ -} - -/** - * ${classname} - * - * ${description} - * - * @author Wei Zhuo - * @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 @@ - \ 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 @@ - - - - - - - - - - - - -
- - Validate XHTML 1.0 - -View Source -
- - \ 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 @@ -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 @@ - - - - - - - - - -

- - -
- -
-
- - Validate XHTML 1.0 - -View Source -
- - \ 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 @@ - - -
- - -

asda

-

asda

-

asda

- -

asda

-

asda

- -
- - -

asda

-

asda

-

asda

- -
- -

asda

- -
- -

asda

-

asda

- -

asda

-

asda

-

asda

-

asda

-

asda

-

asda

-

asda

-

asda

-

asda

- - -
\ 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 @@ - - -

TDatePicker Samples

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Default TDatePicker - -
Button Mode - -
InputMode="DropDownList", custom DateFormat - -
InputMode="DropDownList", custom DateFormat, Culture - -
Custom DateFormat, culture, ImageButton mode - -
Custom DateFormat, DropDownList, pre-selected date set in as Text - -
DropDownList, pre-selected date as integer - /> -
- -
\ 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 @@ - -

TRatingList Examples

- -

Default TRatingList

- - - - - - - -

TRatingList

- - - - - - - - - -

TRatingList

- - - - - - - - - -

TRatingList

- - - - - - - - -
\ 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" %> - - - - - plugins : "contextmenu,paste", - language: "zh_CN" - - - \ 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 @@ - - - - - - - - - -
- - -Show Line Numbers -
-
- - - - -
- - \ 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 @@ -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="

{$this->_path}

\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: $file
"; - } - } - - } - 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 @@ - - - - - - - - - - - \ No newline at end of file -- cgit v1.2.3