2016-04-22 08:34:11 +00:00
|
|
|
|
|
|
|
define(['es5-ff-spa-loader'], function(FFSpaLoader) {
|
2016-04-23 01:58:27 +00:00
|
|
|
'use strict';
|
|
|
|
|
2016-04-22 08:34:11 +00:00
|
|
|
describe('Check factory detect', function() {
|
|
|
|
it('FFSpaLoader.factory.detect.localStorage', function() {
|
|
|
|
expect(FFSpaLoader.factory.detect.localStorage()).toEqual(true);
|
|
|
|
});
|
|
|
|
it('FFSpaLoader.factory.detect.openDatabase', function() {
|
|
|
|
expect(FFSpaLoader.factory.detect.openDatabase()).toEqual(true);
|
|
|
|
});
|
|
|
|
it('FFSpaLoader.factory.detect.sqlitePlugin', function() {
|
|
|
|
expect(FFSpaLoader.factory.detect.sqlitePlugin()).toEqual(false);
|
|
|
|
});
|
|
|
|
it('FFSpaLoader.factory.detect.cordova', function() {
|
|
|
|
expect(FFSpaLoader.factory.detect.cordova()).toEqual(false);
|
|
|
|
});
|
|
|
|
it('FFSpaLoader.factory.detect.cordovaDevice', function() {
|
|
|
|
expect(FFSpaLoader.factory.detect.cordovaDevice()).toEqual(false);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|