repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/JSUtils-test-files/invalid.js
test/spec/JSUtils-test-files/invalid.js
function 0digitIdentifierStart () { } function .punctuationIdentifierStart () { } function punctuation.IdentifierPart () { }
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/JSUtils-test-files/simple.js
test/spec/JSUtils-test-files/simple.js
function simple1() { // this function starts at line 0, char 0 } /* * simple functions */ var simple2 = function () { }; simple3: function () { } /* * parameterized functions */ function param1(p1) { } /* * simple functions */ var param2 = function (p1, p2) { }; param3: function (longParameter...
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/JSUtils-test-files/eof2.js
test/spec/JSUtils-test-files/eof2.js
function unclosed() { var foo; if (foo) { alert("bar"); } alert("something } else");
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/JSUtils-test-files/es6-inheritance.js
test/spec/JSUtils-test-files/es6-inheritance.js
class Rectangle extends Shape { constructor (id, x, y, width, height) { super(id, x, y) this.width = width this.height = height } } class Circle extends Shape { constructor (id, x, y, radius) { super(id, x, y) this.radius = radius } }
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/JSUtils-test-files/braceEnd.js
test/spec/JSUtils-test-files/braceEnd.js
function simpleFunction() { alert("foo"); }//END simpleFunction function nestedBraces() { var x; if (x) { alert("foo"); } }//END nestedBraces function nestedFunction() { var x; var myFunc = function () { alert("foo"); }; }//END nestedFunction function endBraceInString() { ...
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/JSUtils-test-files/es6-getter-setter.js
test/spec/JSUtils-test-files/es6-getter-setter.js
class Rectangle { constructor (width, height) { this._width = width this._height = height } set width (width) { this._width = width } get width () { return this._width } set height (height) { this._height = height } get height ()...
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/JSUtils-test-files/eof.js
test/spec/JSUtils-test-files/eof.js
function eofFunc() { // this is a fake brace: { var foo; if (foo) { alert("brace: }"); } }
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/JSUtils-test-files/es6-classes.js
test/spec/JSUtils-test-files/es6-classes.js
class Shape { constructor (id, x, y) { this.id = id this.move(x, y) } move (x, y) { this.x = x this.y = y } }
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/JSUtils-test-files/test1main.js
test/spec/JSUtils-test-files/test1main.js
/*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */ /*global func1: false, func2: false, func3: false */ var a = {{0}}func1(); var b = fun{{1}}c2(); var c = func3{{2}}();
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/JSUtils-test-files/es6-static-methods.js
test/spec/JSUtils-test-files/es6-static-methods.js
class Rectangle extends Shape { static defaultRectangle () { return new Rectangle("default", 0, 0, 100, 100) } }
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/JSUtils-test-files/test1inline.js
test/spec/JSUtils-test-files/test1inline.js
{{0}}function func1() { // comment } /* * comment */ {{1}}var func2 = function() { {{2}} func3: function() { /* comment */ } } function func4() { return func1(); } function func5() { return true; }
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/FindReplace-test-files/foo.js
test/spec/FindReplace-test-files/foo.js
/* Test comment */ define(function (require, exports, module) { var Foo = require("modules/Foo"), Bar = require("modules/Bar"), Baz = require("modules/Baz"); function callFoo() { foo(); } }
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/Document-test-files/test.js
test/spec/Document-test-files/test.js
// test.js content
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/CSSUtils-test-files/edit.js
test/spec/CSSUtils-test-files/edit.js
function edit1() { // this function starts at line 0, char 0 } /* * simple functions */ var edit2 = function () { }; edit3: function () { } /* * parameterized functions */ function edit4(p1) { } var edit5 = function (p1, p2) { }; edit6: function (longParameterName1, longParamet...
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/LiveDevelopment-MultiBrowser-test-files/simple1.js
test/spec/LiveDevelopment-MultiBrowser-test-files/simple1.js
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/ExtensionLoader-test-files/InitFail/main.js
test/spec/ExtensionLoader-test-files/InitFail/main.js
/*global define, $ */ define(function (require, exports, module) { "use strict"; exports.initExtension = function () { // promise is rejected immediately return new $.Deferred().reject(); }; });
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/ExtensionLoader-test-files/InitResolved/main.js
test/spec/ExtensionLoader-test-files/InitResolved/main.js
/*global define, $ */ define(function (require, exports, module) { "use strict"; exports.initExtension = function () { return new $.Deferred().resolve(); }; });
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/ExtensionLoader-test-files/BadRequire/main.js
test/spec/ExtensionLoader-test-files/BadRequire/main.js
/*global define, $ */ define(function (require, exports, module) { "use strict"; require("notdefined"); });
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/ExtensionLoader-test-files/InitRuntimeError/main.js
test/spec/ExtensionLoader-test-files/InitRuntimeError/main.js
/*global define, $ */ define(function (require, exports, module) { "use strict"; exports.initExtension = function () { // runtime error isNotDefined(); return new $.Deferred(); }; });
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/ExtensionLoader-test-files/InitTimeout/main.js
test/spec/ExtensionLoader-test-files/InitTimeout/main.js
/*global define, $ */ define(function (require, exports, module) { "use strict"; exports.initExtension = function () { // promise is never resolved, expect default Async timeout return new $.Deferred(); }; });
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/ExtensionLoader-test-files/NoInit/main.js
test/spec/ExtensionLoader-test-files/NoInit/main.js
/*global define */ define(function (require, exports, module) { "use strict"; });
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/ExtensionLoader-test-files/InitFailWithError/main.js
test/spec/ExtensionLoader-test-files/InitFailWithError/main.js
/*global define, $ */ define(function (require, exports, module) { "use strict"; exports.initExtension = function () { // promise is rejected immediately with an error return new $.Deferred().reject("Didn't work"); }; });
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/ExtensionLoader-test-files/InitResolvedAsync/main.js
test/spec/ExtensionLoader-test-files/InitResolvedAsync/main.js
/*global define, $, window */ define(function (require, exports, module) { "use strict"; exports.initExtension = function () { var deferred = new $.Deferred(); window.setTimeout(function () { deferred.resolve(); }, 100); return deferred.promise(); }; });
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/ExtensionLoader-test-files/RequireJSConfig/main.js
test/spec/ExtensionLoader-test-files/RequireJSConfig/main.js
/*global define */ define(function (require, exports, module) { "use strict"; // aliased to bar var foo = require("foo"); // print "bar_exported" console.log(foo.bar); });
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/ExtensionLoader-test-files/RequireJSConfig/bar.js
test/spec/ExtensionLoader-test-files/RequireJSConfig/bar.js
/*global define */ define(function (require, exports, module) { "use strict"; exports.bar = "bar_exported"; });
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/spec/ExtensionLoader-test-files/InitFailWithErrorAsync/main.js
test/spec/ExtensionLoader-test-files/InitFailWithErrorAsync/main.js
/*global define, $ */ define(function (require, exports, module) { "use strict"; exports.initExtension = function () { var deferred = new $.Deferred(); window.setTimeout(function () { deferred.reject("Didn't work"); }, 100); return deferred.promise(); }; });
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/thirdparty/jasmine-jquery-1.3.1.js
test/thirdparty/jasmine-jquery-1.3.1.js
var readFixtures = function() { return jasmine.getFixtures().proxyCallTo_('read', arguments); }; var preloadFixtures = function() { jasmine.getFixtures().proxyCallTo_('preload', arguments); }; var loadFixtures = function() { jasmine.getFixtures().proxyCallTo_('load', arguments); }; var setFixtures = function(h...
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/thirdparty/jquery.mockjax.js
test/thirdparty/jquery.mockjax.js
/*! * MockJax - jQuery Plugin to Mock Ajax requests * * Version: 1.5.2 * Released: * Home: http://github.com/appendto/jquery-mockjax * Author: Jonathan Sharp (http://jdsharp.com) * License: MIT,GPL * * Copyright (c) 2011 appendTo LLC. * Dual licensed under the MIT or GPL licenses. * http://appendto.com...
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/thirdparty/bootstrap2/js/bootstrap.js
test/thirdparty/bootstrap2/js/bootstrap.js
/* =================================================== * bootstrap-transition.js v2.0.3 * http://twitter.github.com/bootstrap/javascript.html#transitions * =================================================== * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you ...
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
true
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/thirdparty/bootstrap2/js/bootstrap.min.js
test/thirdparty/bootstrap2/js/bootstrap.min.js
/*! * Bootstrap.js by @fat & @mdo * Copyright 2012 Twitter, Inc. * http://www.apache.org/licenses/LICENSE-2.0.txt */ !function(a){a(function(){"use strict",a.support.transition=function(){var a=function(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",O...
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/thirdparty/jasmine-reporters/jasmine.junit_reporter.js
test/thirdparty/jasmine-reporters/jasmine.junit_reporter.js
(function() { if (typeof jasmine == 'undefined') { throw new Error("jasmine library does not exist in global namespace!"); } function elapsed(startTime, endTime) { return (endTime - startTime)/1000; } function ISODateString(d) { function pad(n) { return n < 10 ? '0'+n : n;...
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/thirdparty/jasmine-core/json2.js
test/thirdparty/jasmine-core/json2.js
/* http://www.JSON.org/json2.js 2009-08-17 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This file creates a global JSON object containing two methods: stringify and parse. JSON.stringify(value, replacer, space) ...
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/thirdparty/jasmine-core/jasmine-html.js
test/thirdparty/jasmine-core/jasmine-html.js
jasmine.HtmlReporterHelpers = {}; jasmine.HtmlReporterHelpers.createDom = function(type, attrs, childrenVarArgs) { var el = document.createElement(type); for (var i = 2; i < arguments.length; i++) { var child = arguments[i]; if (typeof child === 'string') { el.appendChild(document.createTextNode(ch...
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/thirdparty/jasmine-core/jasmine.js
test/thirdparty/jasmine-core/jasmine.js
var isCommonJS = typeof window == "undefined" && typeof exports == "object"; /** * Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework. * * @namespace */ var jasmine = {}; if (isCommonJS) exports.jasmine = jasmine; /** * @private */ jasmine.unimplementedMethod_ = function() { t...
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
true
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/thirdparty/jasmine-core/example/src/Song.js
test/thirdparty/jasmine-core/example/src/Song.js
function Song() { } Song.prototype.persistFavoriteStatus = function(value) { // something complicated throw new Error("not yet implemented"); };
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/thirdparty/jasmine-core/example/src/Player.js
test/thirdparty/jasmine-core/example/src/Player.js
function Player() { } Player.prototype.play = function(song) { this.currentlyPlayingSong = song; this.isPlaying = true; }; Player.prototype.pause = function() { this.isPlaying = false; }; Player.prototype.resume = function() { if (this.isPlaying) { throw new Error("song is already playing"); } this.i...
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/thirdparty/jasmine-core/example/spec/SpecHelper.js
test/thirdparty/jasmine-core/example/spec/SpecHelper.js
beforeEach(function() { this.addMatchers({ toBePlaying: function(expectedSong) { var player = this.actual; return player.currentlyPlayingSong === expectedSong && player.isPlaying; } }); });
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
adobe/brackets
https://github.com/adobe/brackets/blob/d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a/test/thirdparty/jasmine-core/example/spec/PlayerSpec.js
test/thirdparty/jasmine-core/example/spec/PlayerSpec.js
describe("Player", function() { var player; var song; beforeEach(function() { player = new Player(); song = new Song(); }); it("should be able to play a Song", function() { player.play(song); expect(player.currentlyPlayingSong).toEqual(song); //demonstrates use of custom matcher exp...
javascript
MIT
d55ac606ac44e7169dbeaf959c9ed47dac6a6b9a
2026-01-04T15:00:40.278945Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/src/emscripten/pre.js
src/emscripten/pre.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ /* global Module, ENV, _vips_shutdown, _uv_library_shutdown */ Module.preRun = () => { ENV.VIPS_CONCURRENCY = Number(process.env.VIPS_CONCURRENCY) || 1; }; Module.onRuntimeInitialized = () => { module.exports = Module.emnapiI...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/bench/perf.js
test/bench/perf.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const fs = require('node:fs'); const { execSync } = require('node:child_process'); const async = require('async'); const Benchmark = require('benchmark'); const safeRequire = (name) => { try { return require(name); } catc...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/bench/parallel.js
test/bench/parallel.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ process.env.UV_THREADPOOL_SIZE = 64; const assert = require('node:assert'); const async = require('async'); const sharp = require('../../'); const fixtures = require('../fixtures'); const width = 720; const height = 480; sharp....
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/bench/random.js
test/bench/random.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const imagemagick = require('imagemagick'); const gm = require('gm'); const assert = require('node:assert'); const Benchmark = require('benchmark'); const sharp = require('../../'); const fixtures = require('../fixtures'); sharp....
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/fixtures/index.js
test/fixtures/index.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const path = require('node:path'); const sharp = require('../../'); const maxColourDistance = require('../../lib/sharp')._maxColourDistance; // Helpers const getPath = (filename) => path.join(__dirname, filename); // Generates a ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/modulate.js
test/unit/modulate.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const sharp = require('../../'); const { describe, it } = require('node:test'); const assert = require('node:assert'); const fixtures = require('../fixtures'); describe('Modulate', () => { describe('Invalid options', () => { ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/normalize.js
test/unit/normalize.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); const assertNormalized = (data) => { let min = 255; let max = 0; ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/median.js
test/unit/median.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const row = [0, 3, 15, 63, 127, 255]; const input = Buffer.from(Array.from(row, () => row).flat()); const raw ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/trim.js
test/unit/trim.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const inRange = require('../../lib/is').inRange; const fixtures = require('../fixtures'); describe('Trim borde...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/unflatten.js
test/unit/unflatten.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Unflatten', () => { it('unflatten white background', (_t, done) => { sharp(fixtures.inputPng)...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/erode.js
test/unit/erode.js
const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Erode', () => { it('erode 1 png', (_t, done) => { sharp(fixtures.inputPngDotAndLines) .erode(1) .toBuffer((err, data, info) => { ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/gamma.js
test/unit/gamma.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Gamma correction', () => { it('value of 0.0 (disabled)', ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/convolve.js
test/unit/convolve.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Convolve', () => { it('specific convolution kernel 1', (_...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/toBuffer.js
test/unit/toBuffer.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('toBuffer', () => { it('reusing same sharp object does not...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/io.js
test/unit/io.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const fs = require('node:fs'); const path = require('node:path'); const { afterEach, beforeEach, describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = requi...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
true
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/blur.js
test/unit/blur.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Blur', () => { it('specific radius 1', (_t, done) => { ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/recomb.js
test/unit/recomb.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); const sepia = [ [0.3588, 0.7044, 0.1368], [0.299, 0.587, 0.114], ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/clahe.js
test/unit/clahe.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../lib'); const fixtures = require('../fixtures'); describe('Clahe', () => { it('width 5 width 5 maxSlope 0', (_t, ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/extract.js
test/unit/extract.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Partial image extraction', () => { it('JPEG', (_t, done) ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/jp2.js
test/unit/jp2.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const fs = require('node:fs'); const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('JP2 output', () => { if (!...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/tint.js
test/unit/tint.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); // Allow for small rounding differences between platforms const maxDi...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/heif.js
test/unit/heif.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); describe('HEIF', () => { it('called without options throws an error', () => { assert.throws(() => { ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/toFormat.js
test/unit/toFormat.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('toFormat', () => { it('accepts upper case characters as fo...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/webp.js
test/unit/webp.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const fs = require('node:fs'); const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('WebP', () => { it('WebP ou...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/raw.js
test/unit/raw.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Raw pixel data', () => { describe('Raw pixel input', () =...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/tiff.js
test/unit/tiff.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const fs = require('node:fs'); const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); const outputTiff = fixtures.path('outp...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/clone.js
test/unit/clone.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const fs = require('node:fs'); const { afterEach, beforeEach, describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Clone...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/linear.js
test/unit/linear.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const sharp = require('../../'); const fixtures = require('../fixtures'); const { describe, it } = require('node:test'); const assert = require('node:assert'); describe('Linear adjustment', () => { const blackPoint = 70; cons...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/joinChannel.js
test/unit/joinChannel.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const fs = require('node:fs'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Image channel insertion', ()...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/negate.js
test/unit/negate.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Negate', () => { it('negate (jpeg)', (_t, done) => { ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/failOn.js
test/unit/failOn.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const fs = require('node:fs'); const sharp = require('../../lib'); const fixtures = require('../fixtures'); describe('failOn', () => { it('ha...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/noise.js
test/unit/noise.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Gaussian noise', () => { it('generate single-channel gaus...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/svg.js
test/unit/svg.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const fs = require('node:fs'); const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('SVG input', () => { it('Co...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/join.js
test/unit/join.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Join input images together', () => { it('Join two images ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/fixtures.js
test/unit/fixtures.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const fixtures = require('../fixtures'); describe('Test fixtures', () => { describe('assertMaxColourDistance', () => { it('should throw an...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/jxl.js
test/unit/jxl.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); describe('JXL', () => { it('called without options does not throw an error', () => { assert.doesNotThrow...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/alpha.js
test/unit/alpha.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const fixtures = require('../fixtures'); const sharp = require('../../'); describe('Alpha transparency', () => { it('Flatten to black', (_t, d...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/metadata.js
test/unit/metadata.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const fs = require('node:fs'); const { describe, it } = require('node:test'); const assert = require('node:assert'); const exifReader = require('exif-reader'); const icc = require('icc'); const sharp = require('../../'); const fix...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
true
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/affine.js
test/unit/affine.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Affine transform', () => { describe('Invalid input', () =...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/libvips.js
test/unit/libvips.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { after, before, describe, it } = require('node:test'); const assert = require('node:assert'); const fs = require('node:fs'); const semver = require('semver'); const libvips = require('../../lib/libvips'); const originalPlat...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/extractChannel.js
test/unit/extractChannel.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Image channel extraction', () => { it('Red channel', (_t,...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/resize-contain.js
test/unit/resize-contain.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Resize fit=contain', () => { it('Allows specifying the po...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/rotate.js
test/unit/rotate.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Rotation', () => { ['autoOrient', 'constructor'].forEach(...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/threshold.js
test/unit/threshold.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Threshold', () => { it('threshold 1 jpeg', (_t, done) => ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/sharpen.js
test/unit/sharpen.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Sharpen', () => { it('specific radius 10 (sigma 6)', (_t,...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/jpeg.js
test/unit/jpeg.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('JPEG', () => { it('JPEG quality', (_t, done) => { sha...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/composite.js
test/unit/composite.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const fixtures = require('../fixtures'); const sharp = require('../../'); const red = { r: 255, g: 0, b: 0, alpha: 0.5 }; const green = { r: 0,...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/timeout.js
test/unit/timeout.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Timeout', () => { it('Will timeout after 1s when performi...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/resize-cover.js
test/unit/resize-cover.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Resize fit=cover', () => { [ // Position { ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/extend.js
test/unit/extend.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Extend', () => { describe('extend all sides equally via a...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/resize.js
test/unit/resize.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Resize dimensions', () => { it('Exact crop', (_t, done) =...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/bandbool.js
test/unit/bandbool.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const fixtures = require('../fixtures'); const sharp = require('../../'); describe('Bandbool per-channel boolean operations', () => { [ sh...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/dilate.js
test/unit/dilate.js
const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Dilate', () => { it('dilate 1 png', (_t, done) => { sharp(fixtures.inputPngDotAndLines) .dilate(1) .toBuffer((err, data, info) => ...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/tile.js
test/unit/tile.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const fs = require('node:fs'); const path = require('node:path'); const { describe, it } = require('node:test'); const assert = require('node:assert'); const extractZip = require('extract-zip'); const sharp = require('../../'); c...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
true
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/util.js
test/unit/util.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const semver = require('semver'); const sharp = require('../../'); describe('Utilities', () => { describe('Cache', () => { it('Can be disa...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/boolean.js
test/unit/boolean.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const fs = require('node:fs'); const { describe, it } = require('node:test'); const assert = require('node:assert'); const fixtures = require('../fixtures'); const sharp = require('../../'); describe('Boolean operation between tw...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/colourspace.js
test/unit/colourspace.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('Colour space conversion', () => { it('To greyscale', (_t,...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/gif.js
test/unit/gif.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const fs = require('node:fs'); const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('GIF input', () => { it('GI...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/png.js
test/unit/png.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const fs = require('node:fs'); const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); describe('PNG', () => { it('compress...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/text.js
test/unit/text.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); const { inRange } = require('../../lib/is'); describe('Text to image'...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/stats.js
test/unit/stats.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const fs = require('node:fs'); const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const fixtures = require('../fixtures'); // Test Helpers const threshold = 0.00...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
true
lovell/sharp
https://github.com/lovell/sharp/blob/7b4c4762432b14c62676e860c8034b5cd326f464/test/unit/avif.js
test/unit/avif.js
/*! Copyright 2013 Lovell Fuller and others. SPDX-License-Identifier: Apache-2.0 */ const { describe, it } = require('node:test'); const assert = require('node:assert'); const sharp = require('../../'); const { inputAvif, inputJpg, inputGifAnimated } = require('../fixtures'); describe('AVIF', () => { it('calle...
javascript
Apache-2.0
7b4c4762432b14c62676e860c8034b5cd326f464
2026-01-04T15:01:04.553051Z
false