Skip to content

Commit

Permalink
Adding test case to disprove #6411
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8181 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
markstory committed May 30, 2009
1 parent f498ba0 commit 50f4d91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cake/tests/cases/libs/view/helpers/form.test.php
Expand Up @@ -4370,6 +4370,9 @@ function testButton() {

$result = $this->Form->button('Options', array('type' => 'reset', 'name' => 'Post.options', 'id' => 'Opt'));
$this->assertTags($result, array('input' => array('type' => 'reset', 'name' => 'data[Post][options]', 'id' => 'Opt', 'value' => 'Options')));

$result = $this->Form->button('Upload Text', array('onClick' => "$('#postAddForm').ajaxSubmit({target: '#postTextUpload', url: '/posts/text'});return false;'", 'escape' => false));
$this->assertNoPattern('/\&039/', $result);
}
/**
* testSubmitButton method
Expand Down

0 comments on commit 50f4d91

Please sign in to comment.