fix test for datefield
This commit is contained in:
parent
961b528ea8
commit
af9d11364e
test
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user