Browse Source

Drop support for Node.js 0.8

master
Linus Unnebäck 8 years ago
parent
commit
1b6509db47
No known key found for this signature in database GPG Key ID: F23BD23774478D34
  1. 2
      .travis.yml
  2. 2
      package.json
  3. 9
      test/canvas.test.js

2
.travis.yml

@ -4,7 +4,6 @@ node_js:
- '4'
- '0.12'
- '0.10'
- '0.8'
addons:
apt:
sources:
@ -18,6 +17,5 @@ addons:
env:
- CXX=g++-4.9
before_install:
- if [[ $TRAVIS_NODE_VERSION == 0.8 ]]; then npm install -g npm@1.4.28; fi
- npm explore npm -g -- npm install node-gyp@latest
sudo: false

2
package.json

@ -39,7 +39,7 @@
"standard": "^7.1.1"
},
"engines": {
"node": ">=0.8.0"
"node": ">=0.10.0"
},
"main": "./lib/canvas.js",
"license": "MIT"

9
test/canvas.test.js

@ -418,14 +418,7 @@ describe('Canvas', function () {
var buf = canvas.toBuffer('raw');
var stride = canvas.stride;
// emulate os.endianness() (until node v0.8 support is dropped)
var endianness = (function() {
var b = new ArrayBuffer(4);
var u32 = new Uint32Array(b);
var u8 = new Uint8Array(b);
u32[0] = 1;
return u8[0] ? 'LE' : 'BE';
}());
var endianness = os.endianness();
function assertPixel(u32, x, y, message) {
var expected = '0x' + u32.toString(16);

Loading…
Cancel
Save