Adam Shaw пре 7 година
родитељ
комит
fee3076f7b
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      tests/automated/legacy/external-dnd-advanced.js

+ 4 - 1
tests/automated/legacy/external-dnd-advanced.js

@@ -346,10 +346,13 @@ describe('advanced external dnd', function() {
 
 
 
 
   function testExternalEventDrag(options, dragToDate, expectedDate, expectSuccess, callback) {
   function testExternalEventDrag(options, dragToDate, expectedDate, expectSuccess, callback) {
+    var expectedAllDay = dragToDate.indexOf('T') === -1 // for the drop callback only!
+
     options.droppable = true
     options.droppable = true
     options.drop = function(arg) {
     options.drop = function(arg) {
       expect(arg.date instanceof Date).toBe(true)
       expect(arg.date instanceof Date).toBe(true)
-      expect(arg.date).toEqualDate(expectedDate)
+      expect(arg.date).toEqualDate(dragToDate)
+      expect(arg.isAllDay).toBe(expectedAllDay)
       expect(typeof arg.jsEvent).toBe('object')
       expect(typeof arg.jsEvent).toBe('object')
     }
     }
     options.eventReceive = function(arg) {
     options.eventReceive = function(arg) {