fix test for datefield

This commit is contained in:
vitalets 2013-01-04 22:18:17 +04:00
parent 961b528ea8
commit af9d11364e
2 changed files with 2 additions and 3 deletions

@ -131,7 +131,6 @@ define(function () {
if(f === 'bootstrap') {
//bootstrap
// shim['editable-form/editable-form'].deps.push('inputs/date/date');
shim['editable-form/editable-form'].deps.push('inputs/date/datefield');
shim['element/editable-element'].deps.push('editable-form/editable-form-bootstrap');
shim['element/editable-element'].deps.push('containers/editable-popover');

@ -24,7 +24,7 @@ $(function () {
asyncTest("container should contain input with value and save new entered date", function () {
var d = '15.05.1984',
e = $('<a href="#" data-type="date" data-pk="1" data-url="post-date.php">'+d+'</a>').appendTo(fx).editable({
e = $('<a href="#" data-type="date" data-pk="1" data-url="post-datefield.php">'+d+'</a>').appendTo(fx).editable({
format: f,
viewformat: f,
datepicker: {
@ -35,7 +35,7 @@ $(function () {
finalD = '17.05.1984';
$.mockjax({
url: 'post-date.php',
url: 'post-datefield.php',
response: function(settings) {
equal(settings.data.value, finalD, 'submitted value correct');
}