Skip to content

Commit

Permalink
Fixing jQuery tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 30, 2009
1 parent 923883b commit a899af6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cake/tests/cases/libs/view/helpers/jquery_engine.test.php
Expand Up @@ -127,11 +127,11 @@ function testEffect() {
$this->assertEqual($result, $expected);

$result = $this->Jquery->effect('slideIn');
$expected = '$("#foo").slideIn();';
$expected = '$("#foo").slideDown();';
$this->assertEqual($result, $expected);

$result = $this->Jquery->effect('slideOut');
$expected = '$("#foo").slideOut();';
$expected = '$("#foo").slideUp();';
$this->assertEqual($result, $expected);
}
/**
Expand All @@ -151,7 +151,7 @@ function testRequest() {
'type' => 'json',
'data' => array('name' => 'jim', 'height' => '185cm')
));
$expected = '$.ajax({method:"post", error:handleError, data:"name=jim&height=185cm", dataType:"json", success:doSuccess, url:"/people/edit/1"});';
$expected = '$.ajax({data:"name=jim&height=185cm", dataType:"json", error:handleError, method:"post", success:doSuccess, url:"/people/edit/1"});';
$this->assertEqual($result, $expected);
}
/**
Expand All @@ -167,7 +167,7 @@ function testSortable() {
'complete' => 'onStop',
'sort' => 'onSort',
));
$expected = '$("#myList").sortable({distance:5, containment:"parent", start:onStart, sort:onSort, stop:onStop});';
$expected = '$("#myList").sortable({containment:"parent", distance:5, sort:onSort, start:onStart, stop:onStop});';
$this->assertEqual($result, $expected);
}
}
Expand Down

0 comments on commit a899af6

Please sign in to comment.