Linus Unnebäck
8 years ago
No known key found for this signature in database
GPG Key ID: F23BD23774478D34
3 changed files with
2 additions and
11 deletions
-
.travis.yml
-
package.json
-
test/canvas.test.js
|
|
@ -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 |
|
|
|
|
|
@ -39,7 +39,7 @@ |
|
|
|
"standard": "^7.1.1" |
|
|
|
}, |
|
|
|
"engines": { |
|
|
|
"node": ">=0.8.0" |
|
|
|
"node": ">=0.10.0" |
|
|
|
}, |
|
|
|
"main": "./lib/canvas.js", |
|
|
|
"license": "MIT" |
|
|
|
|
|
@ -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); |
|
|
|