Skip to content

Instantly share code, notes, and snippets.

@davidjrice
Created August 13, 2012 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidjrice/3342123 to your computer and use it in GitHub Desktop.
Save davidjrice/3342123 to your computer and use it in GitHub Desktop.
Test failures in fabric.js under Node 0.6.18
> fabric@0.8.47 test /Users/dave/active/fabric.js
> node test.js
Testing /Users/dave/active/fabric.js/dist/all.js ... done
Errors:
Module: fabric.Text Test: toObject
at Object.<anonymous> (/Users/dave/active/fabric.js/test/unit/text.js:65:5)
Actual value:
{ type: 'text',
left: 0,
top: 0,
width: 53.32,
height: 52,
fill: 'rgb(0,0,0)',
overlayFill: null,
stroke: null,
strokeWidth: 1,
strokeDashArray: null,
scaleX: 1,
scaleY: 1,
angle: 0,
flipX: false,
flipY: false,
opacity: 1,
selectable: true,
hasControls: true,
hasBorders: true,
hasRotatingPoint: false,
text: 'foo',
fontSize: 40,
fontWeight: 100,
fontFamily: 'Times New Roman',
fontStyle: '',
lineHeight: 1.3,
textDecoration: '',
textShadow: '',
textAlign: 'left',
path: null,
strokeStyle: '',
backgroundColor: '' }
Expected value:
{ type: 'text',
left: 0,
top: 0,
width: 50,
height: 52,
fill: 'rgb(0,0,0)',
overlayFill: null,
stroke: null,
strokeWidth: 1,
strokeDashArray: null,
scaleX: 1,
scaleY: 1,
angle: 0,
flipX: false,
flipY: false,
opacity: 1,
selectable: true,
hasControls: true,
hasBorders: true,
hasRotatingPoint: false,
text: 'foo',
fontSize: 40,
fontWeight: 100,
fontFamily: 'Times New Roman',
fontStyle: '',
lineHeight: 1.3,
textDecoration: '',
textShadow: '',
textAlign: 'left',
path: null,
strokeStyle: '',
backgroundColor: '' }
Module: fabric.Text Test: fabric.Text.fromObject
at Object.<anonymous> (/Users/dave/active/fabric.js/test/unit/text.js:120:5)
Actual value:
{ type: 'text',
left: 0,
top: 0,
width: 53.32,
height: 52,
fill: 'rgb(0,0,0)',
overlayFill: null,
stroke: null,
strokeWidth: 1,
strokeDashArray: null,
scaleX: 1,
scaleY: 1,
angle: 0,
flipX: false,
flipY: false,
opacity: 1,
selectable: true,
hasControls: true,
hasBorders: true,
hasRotatingPoint: false,
text: 'foo',
fontSize: 40,
fontWeight: 100,
fontFamily: 'Times New Roman',
fontStyle: '',
lineHeight: 1.3,
textDecoration: '',
textShadow: '',
textAlign: 'left',
path: null,
strokeStyle: '',
backgroundColor: '' }
Expected value:
{ type: 'text',
left: 0,
top: 0,
width: 50,
height: 52,
fill: 'rgb(0,0,0)',
overlayFill: null,
stroke: null,
strokeWidth: 1,
strokeDashArray: null,
scaleX: 1,
scaleY: 1,
angle: 0,
flipX: false,
flipY: false,
opacity: 1,
selectable: true,
hasControls: true,
hasBorders: true,
hasRotatingPoint: false,
text: 'foo',
fontSize: 40,
fontWeight: 100,
fontFamily: 'Times New Roman',
fontStyle: '',
lineHeight: 1.3,
textDecoration: '',
textShadow: '',
textAlign: 'left',
path: null,
strokeStyle: '',
backgroundColor: '' }
Summary:
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┓
┃ File ┃ Failed ┃ Passed ┃ Total ┃ Runtime ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━╋━━━━━━━━━━╋━━━━━━━━━━╋━━━━━━━━━━┫
┃ /Users/dave/active/fabric.js/dist/all.js ┃ 2 ┃ 1217 ┃ 1219 ┃ 9168 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━┻━━━━━━━━━━┻━━━━━━━━━━┻━━━━━━━━━━┛
Global summary:
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Files ┃ Tests ┃ Assertions ┃ Failed ┃ Passed ┃ Runtime ┃
┣━━━━━━━━━━━━╋━━━━━━━━━━━━╋━━━━━━━━━━━━╋━━━━━━━━━━━━╋━━━━━━━━━━━━╋━━━━━━━━━━━━┫
┃ 1 ┃ 284 ┃ 1219 ┃ 2 ┃ 1217 ┃ 9168 ┃
┗━━━━━━━━━━━━┻━━━━━━━━━━━━┻━━━━━━━━━━━━┻━━━━━━━━━━━━┻━━━━━━━━━━━━┻━━━━━━━━━━━━┛
npm ERR! fabric@0.8.47 test: `node test.js`
npm ERR! `sh "-c" "node test.js"` failed with 1
npm ERR!
npm ERR! Failed at the fabric@0.8.47 test script.
npm ERR! This is most likely a problem with the fabric package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node test.js
npm ERR! You can get their info via:
npm ERR! npm owner ls fabric
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 11.4.0
npm ERR! command "node" "/Users/dave/.nvm/v0.6.18/bin/npm" "test"
npm ERR! cwd /Users/dave/active/fabric.js
npm ERR! node -v v0.6.18
npm ERR! npm -v 1.1.21
npm ERR! code ELIFECYCLE
npm ERR! message fabric@0.8.47 test: `node test.js`
npm ERR! message `sh "-c" "node test.js"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/dave/active/fabric.js/npm-debug.log
npm not ok
@kangax
Copy link

kangax commented Aug 13, 2012

Here's my output:

fabric.js(master) npm test

> fabric@0.8.47 test /Users/kangax/dev/fabric.js
> node test.js


Testing /Users/kangax/dev/fabric.js/dist/all.js ... done
Summary:
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┓
┃ File                                               ┃ Failed   ┃ Passed   ┃ Total    ┃ Runtime  ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━╋━━━━━━━━━━╋━━━━━━━━━━╋━━━━━━━━━━┫
┃ /Users/kangax/dev/fabric.js/dist/all.js            ┃ 0        ┃ 1219     ┃ 1219     ┃ 9084     ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━┻━━━━━━━━━━┻━━━━━━━━━━┻━━━━━━━━━━┛

Global summary:
┏━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Files      ┃ Tests      ┃ Assertions ┃ Failed     ┃ Passed     ┃ Runtime    ┃
┣━━━━━━━━━━━━╋━━━━━━━━━━━━╋━━━━━━━━━━━━╋━━━━━━━━━━━━╋━━━━━━━━━━━━╋━━━━━━━━━━━━┫
┃ 1          ┃ 284        ┃ 1219       ┃ 0          ┃ 1219       ┃ 9084       ┃
┗━━━━━━━━━━━━┻━━━━━━━━━━━━┻━━━━━━━━━━━━┻━━━━━━━━━━━━┻━━━━━━━━━━━━┻━━━━━━━━━━━━┛
fabric.js(master) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment