Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
unit test
- Loading branch information
pmverdugo
committed
Apr 17, 2015
1 parent
462d818
commit 9572b87
Showing
133 changed files
with
5,039 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "vish_editor", | ||
"version": "1.0.0", | ||
"description": "HTML5 application to create web presentations in a simple and friendly way", | ||
"main": "VISH.js", | ||
"directories": { | ||
"example": "examples", | ||
"test": "test" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"chai": "^2.2.0", | ||
"mocha": "^2.2.4" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ging/vish_editor.git" | ||
}, | ||
"author": "", | ||
"license": "Affero", | ||
"bugs": { | ||
"url": "https://github.com/ging/vish_editor/issues" | ||
}, | ||
"homepage": "https://github.com/ging/vish_editor" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
var chai = require("chai"); | ||
chai.should(); | ||
|
||
require("./helpers/listdeps.js"); | ||
|
||
describe("VISH.Addons.IframeMessenger", function(){ | ||
|
||
//// OBJECT CREATION | ||
|
||
it('should create a VISH.Addons.IframeMessenger object', function(){ | ||
VISH.Addons.IframeMessenger.should.be.an.instanceof(Object); | ||
}); | ||
|
||
//// EXPORTED METHODS | ||
|
||
it('should export init function', function(){ | ||
VISH.Addons.IframeMessenger.should.have.property('init'); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
var chai = require("chai"); | ||
chai.should(); | ||
|
||
require("./helpers/listdeps.js"); | ||
|
||
describe("VISH.Addons", function(){ | ||
|
||
//// OBJECT CREATION | ||
|
||
it('should create a VISH.Addons object', function(){ | ||
VISH.Addons.should.be.an.instanceof(Object); | ||
}); | ||
|
||
//// EXPORTED METHODS | ||
|
||
it('should export init function', function(){ | ||
VISH.Addons.should.have.property('init'); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
var chai = require("chai"); | ||
chai.should(); | ||
|
||
require("./helpers/listdeps.js"); | ||
|
||
describe("VISH.Animations", function(){ | ||
|
||
//// OBJECT CREATION | ||
|
||
it('should create a VISH.Animations object', function(){ | ||
VISH.Animations.should.be.an.instanceof(Object); | ||
}); | ||
|
||
//// EXPORTED METHODS | ||
|
||
it('should export loadAnimation function', function(){ | ||
VISH.Animations.should.have.property('loadAnimation'); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
var chai = require("chai"); | ||
chai.should(); | ||
|
||
require("./helpers/listdeps.js"); | ||
|
||
describe("VISH.AppletPlayer", function(){ | ||
|
||
//// OBJECT CREATION | ||
|
||
it('should create a VISH.AppletPlayer object', function(){ | ||
VISH.AppletPlayer.should.be.an.instanceof(Object); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
var chai = require("chai"); | ||
chai.should(); | ||
|
||
require("./helpers/listdeps.js"); | ||
|
||
describe("VISH.Audio.HTML5", function(){ | ||
|
||
//// OBJECT CREATION | ||
|
||
it('should create a VISH.Audio.HTML5 object', function(){ | ||
VISH.Audio.HTML5.should.be.an.instanceof(Object); | ||
}); | ||
|
||
//// EXPORTED METHODS | ||
|
||
it('should export init function', function(){ | ||
VISH.Audio.HTML5.should.have.property('init'); | ||
}); | ||
|
||
it('should export renderAudioFromJSON function', function(){ | ||
VISH.Audio.HTML5.should.have.property('renderAudioFromJSON'); | ||
}); | ||
|
||
it('should export getSourcesFromJSON function', function(){ | ||
VISH.Audio.HTML5.should.have.property('getSourcesFromJSON'); | ||
}); | ||
|
||
it('should export getAudioMimeType function', function(){ | ||
VISH.Audio.HTML5.should.have.property('getAudioMimeType'); | ||
}); | ||
|
||
//// METHOD RETURNS | ||
|
||
describe("#getSourcesFromJSON", function(){ | ||
it('should return external object', function(){ | ||
VISH.Audio.HTML5.getSourcesFromJSON("audioJSON").should.eql([]); | ||
}) | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
var chai = require("chai"); | ||
chai.should(); | ||
|
||
require("./helpers/listdeps.js"); | ||
|
||
describe("VISH.Audio", function(){ | ||
|
||
//// OBJECT CREATION | ||
|
||
it('should create a VISH.Audio object', function(){ | ||
VISH.Audio.should.be.an.instanceof(Object); | ||
}); | ||
|
||
//// EXPORTED METHODS | ||
|
||
it('should export init function', function(){ | ||
VISH.Audio.should.have.property('init'); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
var chai = require("chai"); | ||
chai.should(); | ||
|
||
require("./helpers/listdeps.js"); | ||
|
||
describe("VISH.Configuration", function(){ | ||
|
||
//// OBJECT CREATION | ||
|
||
it('should create a VISH.Configuration object', function(){ | ||
VISH.Configuration.should.be.an.instanceof(Object); | ||
}); | ||
|
||
//// EXPORTED METHODS | ||
|
||
it('should export init function', function(){ | ||
VISH.Configuration.should.have.property('init'); | ||
}); | ||
|
||
it('should export getConfiguration function', function(){ | ||
VISH.Configuration.should.have.property('getConfiguration'); | ||
}); | ||
|
||
}); |
Oops, something went wrong.