Skip to content

client side testing result

Leon Shi edited this page Dec 9, 2015 · 1 revision
29 specs, 0 failures

image-clipper tests in the Browser & Electron & NW.js (Node-webkit)
* loadImageFromUrl(url, function() {...}) works
* loadImageFromMemory(img).crop(...) works
* destroy() works
* reset() works
* setImageFormat(imageFormat) works

crop
* crop(x, y, width, height) works
* crop(x, y, width, height).toDataURL(function(dataUrl) {...}) works
* crop(x, y, width, height).resize(width2, height2) works
* crop(x, y, width, height).toFile(...) works
* crop(x, y, width, height).resize(width2, height2).toFile(...) works

toDataURL
* toDataURL() works
* toDataURL(quality) works
* toDataURL(callback) works
* toDataURL(quality, callback) works

resize
* resize() throws
* resize(width) works
* resize(width, height) works
* resize(width, height).toFile(path, function() {...}) works
* resize(width).toFile(path, function() {...}) works

quality
* quality(level) works
* works when quality level > max quality level
* works when quality level < min quality level

utils
* isBrowser() works
* isNode() works
* isNW() works
* isElectron() works
* rangeNumber(num, min, max) works
* getImageFormat(str) works
* upperCaseFirstLetter(str) works
Clone this wiki locally