From 22b818afcda89e60a1bee299f19d8ff827097e97 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 30 Mar 2007 00:19:53 +0000 Subject: add test case for #567 --- .../FunctionalTests/tickets/protected/pages/Layout.php | 4 +++- .../tickets/protected/pages/Ticket567/Home.page | 13 +++++++++++++ .../tickets/protected/pages/Ticket567/Home2.page | 12 ++++++++++++ .../tickets/protected/pages/Ticket567/config.xml | 17 +++++++++++++++++ .../tickets/protected/pages/Ticket567/en/default.xml | 13 +++++++++++++ .../tickets/protected/pages/Ticket567/en/menu.xml | 13 +++++++++++++ .../tickets/protected/pages/Ticket567/en/messages.xml | 13 +++++++++++++ 7 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket567/Home.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket567/Home2.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket567/config.xml create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket567/en/default.xml create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket567/en/menu.xml create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket567/en/messages.xml (limited to 'tests/FunctionalTests/tickets/protected/pages') diff --git a/tests/FunctionalTests/tickets/protected/pages/Layout.php b/tests/FunctionalTests/tickets/protected/pages/Layout.php index c2a8a44c..6959fbe1 100644 --- a/tests/FunctionalTests/tickets/protected/pages/Layout.php +++ b/tests/FunctionalTests/tickets/protected/pages/Layout.php @@ -4,7 +4,9 @@ class Layout extends TTemplateControl { public function onLoad($param) { - $num = str_replace('Ticket','',$this->getPage()->getPagePath()); + $array = array(); + preg_match('/\d+/',$this->getPage()->getPagePath(), $array); + $num = $array[0]; $this->getPage()->setTitle("Verifying Ticket $num"); $this->ticketlink->setText("Verifying Ticket $num"); $this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/ticket/{$num}"); diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket567/Home.page b/tests/FunctionalTests/tickets/protected/pages/Ticket567/Home.page new file mode 100644 index 00000000..28cb3157 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket567/Home.page @@ -0,0 +1,13 @@ +<%@ Application.Globalization.TranslationCatalogue="default" %> + +

TTranslate Control ignores property Catalogue

+ + +Hello World! + + + +Hello World! + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket567/Home2.page b/tests/FunctionalTests/tickets/protected/pages/Ticket567/Home2.page new file mode 100644 index 00000000..ce872c57 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket567/Home2.page @@ -0,0 +1,12 @@ + +

TTranslate Control ignores property Catalogue

+ + +Hello World! + + + +Hello World! + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket567/config.xml b/tests/FunctionalTests/tickets/protected/pages/Ticket567/config.xml new file mode 100644 index 00000000..8d6535f3 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket567/config.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket567/en/default.xml b/tests/FunctionalTests/tickets/protected/pages/Ticket567/en/default.xml new file mode 100644 index 00000000..b0b30559 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket567/en/default.xml @@ -0,0 +1,13 @@ + + + + + + +Hello World! +Cool Earth? + + + + + diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket567/en/menu.xml b/tests/FunctionalTests/tickets/protected/pages/Ticket567/en/menu.xml new file mode 100644 index 00000000..a1005adf --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket567/en/menu.xml @@ -0,0 +1,13 @@ + + + + + + +Hello World! +Hot Menu. + + + + + diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket567/en/messages.xml b/tests/FunctionalTests/tickets/protected/pages/Ticket567/en/messages.xml new file mode 100644 index 00000000..738fdbbd --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket567/en/messages.xml @@ -0,0 +1,13 @@ + + + + + + +Hello World! +WOWOW + + + + + -- cgit v1.2.3