Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing jQuery tests.

  • Loading branch information...
commit a899af66daa15e2f90347784b8f7dc4cb2e1ef72 1 parent 923883b
@markstory markstory authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 cake/tests/cases/libs/view/helpers/jquery_engine.test.php
View
8 cake/tests/cases/libs/view/helpers/jquery_engine.test.php
@@ -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);
}
/**
@@ -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);
}
/**
@@ -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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.