test($ionicScrollDelegate): remove xdescribe

This commit is contained in:
Andy Joslin
2014-03-18 14:58:07 -06:00
parent 00bb385af7
commit ae57b2b81a
3 changed files with 10 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ var dgeni = require('dgeni');
var es = require('event-stream');
var htmlparser = require('htmlparser2');
var lunr = require('lunr');
var mkdirp = require('mkdirp');
var yaml = require('js-yaml');
var http = require('http');
@@ -71,7 +72,7 @@ gulp.task('docs-index', function() {
var yamlRaw = contents.substring(yamlStartIndex+3, yamlEndIndex);
var properties = yaml.safeLoad(yamlRaw);
contents = contents.slice(yamlEndIndex+3);
contents = contents.substring(yamlEndIndex+3);
if(properties.title && properties.layout) {
title = properties.title;
@@ -98,6 +99,7 @@ gulp.task('docs-index', function() {
callback();
})).on('end', function() {
// Write out as one json file
mkdirp.sync('tmp/ionic-site/data');
fs.writeFileSync('tmp/ionic-site/data/index.json', JSON.stringify({'ref': ref, 'index': idx.toJSON()}));
});
});

View File

@@ -257,6 +257,11 @@ function($rootScope, $animate, $ionicBind, $compile, $ionicViewService) {
element[0].querySelector('data-ion-nav-view');
var navViewName = navView && navView.getAttribute('name');
var tabNavItem = angular.element(
element[0].querySelector('ion-tab-nav') ||
element[0].querySelector('data-ion-tab-nav')
).remove();
//Remove the contents of the element so we can compile them later, if tab is selected
var tabContent = angular.element('<div class="pane">')
.append( element.contents().remove() );

View File

@@ -1,4 +1,5 @@
xdescribe('Ionic ScrollDelegate Service', function() {
describe('Ionic ScrollDelegate Service', function() {
var $ionicScrollDelegate, rootScope, compile, timeout, document;
beforeEach(module('ionic'));