Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding test case to disprove #6411

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8181 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information...
commit 50f4d9187393db8f4246c2ca3058268688c084c1 1 parent f498ba0
@markstory markstory authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  cake/tests/cases/libs/view/helpers/form.test.php
View
3  cake/tests/cases/libs/view/helpers/form.test.php
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.