mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 08:56:15 +08:00
Pure NodeJS environment test runner: grunt node-test
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user