2014-07-12 05:36:12 +08:00
|
|
|
exports.defineAutoTests = function() {
|
2014-07-12 05:51:42 +08:00
|
|
|
describe('Plugin availability (window.plugins.toast)', function () {
|
|
|
|
it("should exist", function() {
|
|
|
|
expect(window.plugins.toast).toBeDefined();
|
|
|
|
});
|
2014-07-12 05:36:12 +08:00
|
|
|
|
2014-07-12 05:51:42 +08:00
|
|
|
it("should contain a platform specification that is a string", function() {
|
|
|
|
expect(window.plugins.toastnot).toBeDefined();
|
|
|
|
// expect((new String(window.device.platform)).length > 0).toBe(true);
|
2014-07-12 05:36:12 +08:00
|
|
|
});
|
|
|
|
|
2014-07-12 05:51:42 +08:00
|
|
|
/*
|
|
|
|
it("should contain a version specification that is a string", function() {
|
|
|
|
expect(window.device.version).toBeDefined();
|
|
|
|
expect((new String(window.device.version)).length > 0).toBe(true);
|
2014-07-12 05:36:12 +08:00
|
|
|
});
|
|
|
|
|
2014-07-12 05:51:42 +08:00
|
|
|
it("should contain a UUID specification that is a string or a number", function() {
|
|
|
|
expect(window.device.uuid).toBeDefined();
|
|
|
|
if (typeof window.device.uuid == 'string' || typeof window.device.uuid == 'object') {
|
|
|
|
expect((new String(window.device.uuid)).length > 0).toBe(true);
|
|
|
|
} else {
|
|
|
|
expect(window.device.uuid > 0).toBe(true);
|
|
|
|
}
|
|
|
|
});
|
2014-07-12 05:36:12 +08:00
|
|
|
|
2014-07-12 05:51:42 +08:00
|
|
|
it("should contain a cordova specification that is a string", function() {
|
|
|
|
expect(window.device.cordova).toBeDefined();
|
|
|
|
expect((new String(window.device.cordova)).length > 0).toBe(true);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("should contain a model specification that is a string", function() {
|
|
|
|
expect(window.device.model).toBeDefined();
|
|
|
|
expect((new String(window.device.model)).length > 0).toBe(true);
|
|
|
|
});
|
|
|
|
*/
|
|
|
|
});
|
2014-07-12 05:36:12 +08:00
|
|
|
};
|