Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing tests for PR #1502 (issue #1492)

  • Loading branch information...
commit 57227293e8161529e77d4170dcc72d6cf409f874 1 parent b7c2f5a
@mdomba mdomba authored
View
6 tests/framework/web/helpers/CHtmlTest.php
@@ -860,11 +860,11 @@ public function providerLinkButton()
{
return array(
array('submit', array(), '<a href="#" id="yt0">submit</a>',
- "$('body').on('click','#yt0',function(){jQuery.yii.submitForm(this,'',{});return false;});"),
+ "jQuery('body').on('click','#yt0',function(){jQuery.yii.submitForm(this,'',{});return false;});"),
array('link-button', array(), '<a href="#" id="yt0">link-button</a>',
- "$('body').on('click','#yt0',function(){jQuery.yii.submitForm(this,'',{});return false;});"),
+ "jQuery('body').on('click','#yt0',function(){jQuery.yii.submitForm(this,'',{});return false;});"),
array('link-button', array('href'=>'http://yiiframework.com/'), '<a href="#" id="yt0">link-button</a>',
- "$('body').on('click','#yt0',function(){jQuery.yii.submitForm(this,'http://yiiframework.com/',{});return false;});"),
+ "jQuery('body').on('click','#yt0',function(){jQuery.yii.submitForm(this,'http://yiiframework.com/',{});return false;});"),
);
}
View
2  tests/framework/zii/widgets/grid/CButtonColumnTest.php
@@ -6,7 +6,7 @@ class CButtonColumnTest extends CTestCase
{
public function testCallbackEncoding()
{
- $expected = "$(document).on('click','#grid1 a.view',function() { /* callback */ });";
+ $expected = "jQuery(document).on('click','#grid1 a.view',function() { /* callback */ });";
$out=$this->getWidgetScript('js:function() { /* callback */ }');
$this->assertTrue(mb_strpos($out,$expected, null, Yii::app()->charset)!==false, "Unexpected JavaScript (js:): ".$out);
Please sign in to comment.
Something went wrong with that request. Please try again.