Trying with firefox instead of phantom

This commit is contained in:
Max Lynch
2013-11-18 22:07:00 -06:00
parent cfdbe87750
commit d8bce833cd
6 changed files with 27 additions and 15 deletions

View File

@ -10,7 +10,7 @@ describe('Ionic Content directive', function() {
it('Has content class', function() {
element = compile('<content></content>')(scope);
expect(element.hasClass('content')).toBe(true);
expect(element.hasClass('scroll-content')).toBe(true);
});
it('Has header', function() {

View File

@ -139,7 +139,7 @@ describe('Tab Item directive', function() {
'<tab title="Item" icon="icon-default"></tab>' +
'</tabs>')(scope);
scope.$digest();
$document.body.append(element);
$document[0].body.appendChild(element[0]);
}));
it('Default text works', function() {
@ -156,7 +156,7 @@ describe('Tab Item directive', function() {
it('Click sets correct tab index', function() {
var a = element.find('a:eq(0)');
var itemScope = a.scope();
var itemScope = a.isolateScope();
//spyOn(a, 'click');
spyOn(itemScope, 'selectTab');
a.click();

View File

@ -18,7 +18,7 @@ describe('Ionic Modal', function() {
expect(modalInstance.el.classList.contains('slide-in-up')).toBe(true);
});
it('Should show for dynamic template', function() {
xit('Should show for dynamic template', function() {
var template = '<div class="modal"></div>';
var done = false;