diff --git a/cake/tests/cases/libs/view/helpers/ajax.test.php b/cake/tests/cases/libs/view/helpers/ajax.test.php index 176b226a4..3b9925609 100644 --- a/cake/tests/cases/libs/view/helpers/ajax.test.php +++ b/cake/tests/cases/libs/view/helpers/ajax.test.php @@ -147,7 +147,7 @@ class AjaxTest extends UnitTestCase { $result = $this->Ajax->dropRemote('droppable', array('accept' => array('crap1', 'crap2')), array('url' => '/posts')); $this->assertPattern('/^]+type="text\/javascript"[^<>]*>.+<\/script>$/s', $result); $this->assertNoPattern('/]+[^type]=[^<>]*>/', $result); - $this->assertPattern('/^]+>\s*' . str_replace('/', '\\/', preg_quote('//')) . '\s*<\/script>$/', $result); + $this->assertPattern('/^]+>\s*' . str_replace('/', '\\/', preg_quote('//')) . '\s*<\/script>$/', $result); $this->assertPattern('/' . str_replace('/', '\\/', preg_quote('new Ajax.Request(\'/posts\', {asynchronous:true, evalScripts:true})')) . '/', $result); $result = $this->Ajax->dropRemote('droppable', array('accept' => 'crap'), array('url' => '/posts', 'with' => '{drag_id:element.id,drop_id:dropon.id,event:event.whatever_you_want}')); @@ -411,7 +411,7 @@ class AjaxTest extends UnitTestCase { $result = $this->Ajax->slider('sliderId', 'trackId', array('values' => array(10, 20, 30))); $this->assertPattern('/^]+type="text\/javascript"[^<>]*>.+<\/script>$/s', $result); $this->assertNoPattern('/]+[^type]=[^<>]*>/', $result); - $this->assertPattern('/^]+>\s*' . str_replace('/', '\\/', preg_quote('//')) . '\s*<\/script>$/', $result); + $this->assertPattern('/^]+>\s*' . str_replace('/', '\\/', preg_quote('//')) . '\s*<\/script>$/', $result); $result = $this->Ajax->slider('sliderId', 'trackId', array('range' => '$R(10, 30)')); $this->assertPattern('/^]+type="text\/javascript"[^<>]*>.+<\/script>$/s', $result);