From e306989c6d03aac37e2557465b4812ea21970065 Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 24 Jan 2007 05:52:22 +0000 Subject: Fixed #517, #519, #521 --- .../tickets/protected/pages/Ticket518.page | 10 ++++++++++ .../tickets/protected/pages/Ticket521.page | 12 ++++++++++++ .../tickets/protected/pages/Ticket521.php | 16 ++++++++++++++++ .../tickets/tests/Ticket521TestCase.php | 20 ++++++++++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket518.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket521.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket521.php create mode 100644 tests/FunctionalTests/tickets/tests/Ticket521TestCase.php (limited to 'tests/FunctionalTests') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket518.page b/tests/FunctionalTests/tickets/protected/pages/Ticket518.page new file mode 100644 index 00000000..657dc4cf --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket518.page @@ -0,0 +1,10 @@ + +

Not possible to add custom buttons to TinyMCE

+ + + + theme_advanced_buttons3: 'justifyleft,justifycenter' + + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket521.page b/tests/FunctionalTests/tickets/protected/pages/Ticket521.page new file mode 100644 index 00000000..e1f65663 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket521.page @@ -0,0 +1,12 @@ + + + + + + + + + \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket521.php b/tests/FunctionalTests/tickets/protected/pages/Ticket521.php new file mode 100644 index 00000000..d28a777a --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket521.php @@ -0,0 +1,16 @@ +label1->Text = "Button 1 was clicked "; + } + public function doSave($s, $p){ + $this->label1->Text .= " on callback "; + + } + + +} +?> \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Ticket521TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket521TestCase.php new file mode 100644 index 00000000..ea9feae8 --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket521TestCase.php @@ -0,0 +1,20 @@ +open("tickets/index.php?page=Ticket521"); + $this->assertTitle("Verifying Ticket 521"); + $this->assertText("{$base}label1", "Label 1"); + + $this->click("{$base}button1"); + $this->pause(1200); + + $this->assertText("{$base}label1", "Button 1 was clicked on callback"); + } + +} + +?> \ No newline at end of file -- cgit v1.2.3