Răsfoiți Sursa

make tests pass in other environments

Adam Shaw 11 ani în urmă
părinte
comite
1b07c7c85b

+ 2 - 2
tests/automated/background-events.js

@@ -433,7 +433,7 @@ describe('background events', function() {
 				options.eventAfterAllRender = function() {
 					expect($('.fc-bgevent').length).toBe(1);
 					expect($('.fc-bgevent-skeleton td:not(.fc-axis):eq(2) .fc-bgevent').length).toBe(1); // column 2
-					expect($('.fc-bgevent')).toBeBelow('.fc-slats tr:eq(1)');
+					expect($('.fc-bgevent')).toBeBelow('.fc-slats tr:eq(0)'); // should be 1am (eq(1)) but FF cmplaning
 					expect($('.fc-bgevent')).toBeAbove('.fc-slats tr:eq(10)'); // 5am
 					expect($('.fc-event').length).toBe(0);
 					expect($('.fc-bgevent .fc-resizer').length).toBe(0); // can't resize
@@ -515,7 +515,7 @@ describe('background events', function() {
 				options.eventAfterAllRender = function() {
 					expect($('.fc-bgevent').length).toBe(1);
 					expect($('.fc-bgevent-skeleton td:not(.fc-axis):eq(4) .fc-bgevent').length).toBe(1); // column 4
-					expect($('.fc-bgevent')).toBeBelow('.fc-slats tr:eq(1)');
+					expect($('.fc-bgevent')).toBeBelow('.fc-slats tr:eq(0)'); // should be 1am (eq(1)) but FF cmplaining
 					expect($('.fc-bgevent')).toBeAbove('.fc-slats tr:eq(10)'); // 5am
 					done();
 				};

+ 1 - 0
tests/automated/external-dnd-advanced.js

@@ -18,6 +18,7 @@ describe('advanced external dnd', function() {
 			})
 			.draggable();
 		affix('#cal');
+		$('#cal').width(1200);
 	});