From 6dffcae480706f7c3583c5cfd4360c6c11aacabb Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Tue, 25 Mar 2014 20:12:05 +0100 Subject: Added new test case directory for github issues; added test case for #504 --- tests/FunctionalTests/issues/assets/.gitignore | 2 ++ tests/FunctionalTests/issues/index.php | 6 ++++ .../issues/protected/application.xml | 12 ++++++++ .../issues/protected/controls/Layout.php | 6 ++++ .../issues/protected/controls/Layout.tpl | 32 ++++++++++++++++++++++ .../issues/protected/pages/Issue504.page | 14 ++++++++++ .../issues/protected/pages/Issue504.php | 14 ++++++++++ .../issues/protected/runtime/.gitignore | 2 ++ .../issues/tests/Issue504TestCase.php | 16 +++++++++++ 9 files changed, 104 insertions(+) create mode 100755 tests/FunctionalTests/issues/assets/.gitignore create mode 100755 tests/FunctionalTests/issues/index.php create mode 100755 tests/FunctionalTests/issues/protected/application.xml create mode 100755 tests/FunctionalTests/issues/protected/controls/Layout.php create mode 100755 tests/FunctionalTests/issues/protected/controls/Layout.tpl create mode 100755 tests/FunctionalTests/issues/protected/pages/Issue504.page create mode 100755 tests/FunctionalTests/issues/protected/pages/Issue504.php create mode 100755 tests/FunctionalTests/issues/protected/runtime/.gitignore create mode 100755 tests/FunctionalTests/issues/tests/Issue504TestCase.php (limited to 'tests/FunctionalTests/issues') diff --git a/tests/FunctionalTests/issues/assets/.gitignore b/tests/FunctionalTests/issues/assets/.gitignore new file mode 100755 index 00000000..d6b7ef32 --- /dev/null +++ b/tests/FunctionalTests/issues/assets/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/tests/FunctionalTests/issues/index.php b/tests/FunctionalTests/issues/index.php new file mode 100755 index 00000000..77ddf367 --- /dev/null +++ b/tests/FunctionalTests/issues/index.php @@ -0,0 +1,6 @@ +run(); diff --git a/tests/FunctionalTests/issues/protected/application.xml b/tests/FunctionalTests/issues/protected/application.xml new file mode 100755 index 00000000..a396dea5 --- /dev/null +++ b/tests/FunctionalTests/issues/protected/application.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/FunctionalTests/issues/protected/controls/Layout.php b/tests/FunctionalTests/issues/protected/controls/Layout.php new file mode 100755 index 00000000..0ac4d6b3 --- /dev/null +++ b/tests/FunctionalTests/issues/protected/controls/Layout.php @@ -0,0 +1,6 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/FunctionalTests/issues/protected/pages/Issue504.page b/tests/FunctionalTests/issues/protected/pages/Issue504.page new file mode 100755 index 00000000..ed29b358 --- /dev/null +++ b/tests/FunctionalTests/issues/protected/pages/Issue504.page @@ -0,0 +1,14 @@ + +

Issue 504 Test

+ + + + + Panel Content + + + + + +
+ diff --git a/tests/FunctionalTests/issues/protected/pages/Issue504.php b/tests/FunctionalTests/issues/protected/pages/Issue504.php new file mode 100755 index 00000000..dd12c960 --- /dev/null +++ b/tests/FunctionalTests/issues/protected/pages/Issue504.php @@ -0,0 +1,14 @@ +label1->Text="buttonOkClick"; + } + + function buttonDummyClick($sender, $param) + { + $this->label1->Text="buttonDummyClick"; + } +} diff --git a/tests/FunctionalTests/issues/protected/runtime/.gitignore b/tests/FunctionalTests/issues/protected/runtime/.gitignore new file mode 100755 index 00000000..d6b7ef32 --- /dev/null +++ b/tests/FunctionalTests/issues/protected/runtime/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/tests/FunctionalTests/issues/tests/Issue504TestCase.php b/tests/FunctionalTests/issues/tests/Issue504TestCase.php new file mode 100755 index 00000000..dff27339 --- /dev/null +++ b/tests/FunctionalTests/issues/tests/Issue504TestCase.php @@ -0,0 +1,16 @@ +url('issues/index.php?page=Issue504'); + $this->assertContains('Issue 504 Test', $this->source()); + $base='ctl0_Content_'; + + $this->byID("{$base}textbox1")->click(); + $this->keys(PHPUnit_Extensions_Selenium2TestCase_Keys::ENTER); + + $this->assertText("{$base}label1", "buttonOkClick"); + } +} -- cgit v1.2.3 From 37a1d886c6960080bbd03cad757c722b494a0220 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 10 Jul 2014 17:32:37 +0200 Subject: Testcase for Issue #524 --- .../issues/protected/pages/Issue524.page | 7 +++++++ .../issues/protected/pages/Issue524.php | 20 ++++++++++++++++++++ .../issues/tests/Issue524TestCase.php | 20 ++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100755 tests/FunctionalTests/issues/protected/pages/Issue524.page create mode 100755 tests/FunctionalTests/issues/protected/pages/Issue524.php create mode 100755 tests/FunctionalTests/issues/tests/Issue524TestCase.php (limited to 'tests/FunctionalTests/issues') diff --git a/tests/FunctionalTests/issues/protected/pages/Issue524.page b/tests/FunctionalTests/issues/protected/pages/Issue524.page new file mode 100755 index 00000000..08ac1814 --- /dev/null +++ b/tests/FunctionalTests/issues/protected/pages/Issue524.page @@ -0,0 +1,7 @@ + +

Issue 524 Test

+ + + +
+ diff --git a/tests/FunctionalTests/issues/protected/pages/Issue524.php b/tests/FunctionalTests/issues/protected/pages/Issue524.php new file mode 100755 index 00000000..851ff45a --- /dev/null +++ b/tests/FunctionalTests/issues/protected/pages/Issue524.php @@ -0,0 +1,20 @@ +getGlobalization()->setCharset('ISO-8859-1'); + parent::__construct(); + } + + public function validateText($sender, $param) + { + $param->IsValid = false; + $iso8859text=iconv('utf-8', 'iso-8859-1', 'fünf'); + $this->Validator->ErrorMessage = $iso8859text; + } + +} diff --git a/tests/FunctionalTests/issues/tests/Issue524TestCase.php b/tests/FunctionalTests/issues/tests/Issue524TestCase.php new file mode 100755 index 00000000..2582dda0 --- /dev/null +++ b/tests/FunctionalTests/issues/tests/Issue524TestCase.php @@ -0,0 +1,20 @@ +url('issues/index.php?page=Issue524'); + $this->assertContains('Issue 524 Test', $this->source()); + $base='ctl0_Content_'; + + $this->byID("{$base}buttonOk")->click(); + + $this->assertText("{$base}Validator", "fünf"); + } +} -- cgit v1.2.3