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 ++++++++++++++++++++ .../ActiveRecord/ActiveRecordDynamicCallTestCase.php | 15 +++++++++++++-- 5 files changed, 71 insertions(+), 2 deletions(-) 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') 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 diff --git a/tests/simple_unit/ActiveRecord/ActiveRecordDynamicCallTestCase.php b/tests/simple_unit/ActiveRecord/ActiveRecordDynamicCallTestCase.php index 8f8868e9..75bbb2a4 100644 --- a/tests/simple_unit/ActiveRecord/ActiveRecordDynamicCallTestCase.php +++ b/tests/simple_unit/ActiveRecord/ActiveRecordDynamicCallTestCase.php @@ -1,5 +1,4 @@ -assertNotNull($rs); } + function test_dynamic_delete_by() + { + $finder = DepartmentRecord::finder(); + //$finder->RecordManager->OnDelete[] = array($this, 'assertDeleteSql'); + $this->assertEqual($finder->deleteByName('tasds'), 0); + } + + function assertDeleteSql($sender, $param) + { + var_dump($param); + } + } ?> \ No newline at end of file -- cgit v1.2.3