Pure NodeJS environment test runner: grunt node-test

This commit is contained in:
Лаврёнов Антон
2014-03-04 19:35:26 +08:00
parent a524ba9ec1
commit 798d1acf28
4 changed files with 150 additions and 28 deletions

View File

@@ -872,25 +872,7 @@ suite('Node', function() {
var layer = new Kinetic.Layer();
var group = new Kinetic.Group();
var points = [{
x: 73,
y: 250
}, {
x: 73,
y: 160
}, {
x: 340,
y: 23
}, {
x: 500,
y: 109
}, {
x: 499,
y: 139
}, {
x: 342,
y: 93
}];
var points = [73, 250, 73, 160, 340, 23, 500, 109, 499, 139, 342, 93];
var poly = new Kinetic.Line({
points: points,

View File

@@ -2,7 +2,7 @@ suite('Stage', function() {
// ======================================================
test('instantiate stage with id', function() {
var container = document.createElement('div');
var container = Kinetic.document.createElement('div');
container.id = 'container';
kineticContainer.appendChild(container);
@@ -21,7 +21,7 @@ suite('Stage', function() {
// ======================================================
test('test stage buffer canvas and hit buffer canvas', function() {
var container = document.createElement('div');
var container = Kinetic.document.createElement('div');
container.id = 'container';
kineticContainer.appendChild(container);
@@ -45,7 +45,7 @@ suite('Stage', function() {
// ======================================================
test('instantiate stage with dom element', function() {
var container = document.createElement('div');
var container = Kinetic.document.createElement('div');
kineticContainer.appendChild(container);
@@ -58,8 +58,8 @@ suite('Stage', function() {
// ======================================================
test('stage instantiation should clear container', function() {
var container = document.createElement('div');
var dummy = document.createElement('p');
var container = Kinetic.document.createElement('div');
var dummy = Kinetic.document.createElement('p');
container.appendChild(dummy);
kineticContainer.appendChild(container);
@@ -365,7 +365,7 @@ suite('Stage', function() {
// ======================================================
test('destroy stage', function() {
var container = document.createElement('div');
var container = Kinetic.document.createElement('div');
kineticContainer.appendChild(container);