зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1552317 - Fix codespell errors for image/. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D45553 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
8aee81540e
Коммит
7141b73975
|
@ -322,7 +322,7 @@ class ImageResource : public Image {
|
|||
uint64_t mInnerWindowId;
|
||||
uint32_t mAnimationConsumers;
|
||||
uint16_t mAnimationMode; // Enum values in imgIContainer
|
||||
bool mInitialized : 1; // Have we been initalized?
|
||||
bool mInitialized : 1; // Have we been initialized?
|
||||
bool mAnimating : 1; // Are we currently animating?
|
||||
bool mError : 1; // Error handling
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ class ImageMemoryReporter final {
|
|||
/**
|
||||
* Report all remaining entries in the shared surface's memory report.
|
||||
*
|
||||
* aIsForCompositor controls how to intepret what remains in the report. If
|
||||
* aIsForCompositor controls how to interpret what remains in the report. If
|
||||
* true, this should mirror exactly what is currently in
|
||||
* SharedSurfacesParent's cache. This will report entries that are currently
|
||||
* mapped into the compositor process. If false, then we are in a content or
|
||||
|
|
|
@ -32,7 +32,7 @@ class Image;
|
|||
* Image progress bitflags.
|
||||
*
|
||||
* See CheckProgressConsistency() for the invariants we enforce about the
|
||||
* ordering dependencies betweeen these flags.
|
||||
* ordering dependencies between these flags.
|
||||
*/
|
||||
enum {
|
||||
FLAG_SIZE_AVAILABLE = 1u << 0, // STATUS_SIZE_AVAILABLE
|
||||
|
|
|
@ -1513,7 +1513,7 @@ RasterImage::RequestDiscard() {
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
// Indempotent error flagging routine. If a decoder is open, shuts it down.
|
||||
// Idempotent error flagging routine. If a decoder is open, shuts it down.
|
||||
void RasterImage::DoError() {
|
||||
// If we've flagged an error before, we have nothing to do
|
||||
if (mError) {
|
||||
|
|
|
@ -231,9 +231,9 @@ static int64_t AreaOfIntSize(const IntSize& aSize) {
|
|||
* mode, the cache will strongly favour sizes which are a factor of 2 of the
|
||||
* largest native size. It accomplishes this by suggesting a factor of 2 size
|
||||
* when lookups fail and substituting the nearest factor of 2 surface to the
|
||||
* ideal size as the "best" available (as opposed to subsitution but not found).
|
||||
* This allows us to minimize memory consumption and CPU time spent decoding
|
||||
* when a website requires many variants of the same surface.
|
||||
* ideal size as the "best" available (as opposed to substitution but not
|
||||
* found). This allows us to minimize memory consumption and CPU time spent
|
||||
* decoding when a website requires many variants of the same surface.
|
||||
*/
|
||||
class ImageSurfaceCache {
|
||||
~ImageSurfaceCache() {}
|
||||
|
|
|
@ -1342,7 +1342,7 @@ class ADAM7InterpolatingFilter final : public SurfaceFilter {
|
|||
/// now.
|
||||
uint8_t mPass; /// Which ADAM7 pass we're on. Valid passes
|
||||
/// are 1..7 during processing and 0 prior
|
||||
/// to configuraiton.
|
||||
/// to configuration.
|
||||
int32_t mRow; /// The row we're currently reading.
|
||||
};
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ struct FilterPipeline<Config> {
|
|||
} // namespace detail
|
||||
|
||||
/**
|
||||
* Flags for SurfacePipeFactory, used in conjuction with the factory functions
|
||||
* Flags for SurfacePipeFactory, used in conjunction with the factory functions
|
||||
* in SurfacePipeFactory to enable or disable various SurfacePipe
|
||||
* functionality.
|
||||
*/
|
||||
|
|
|
@ -890,7 +890,7 @@ bool VectorImage::MaybeRestrictSVGContext(
|
|||
|
||||
if (overridePAR) {
|
||||
// The SVGImageContext must take account of the preserveAspectRatio
|
||||
// overide:
|
||||
// override:
|
||||
MOZ_ASSERT(!aSVGContext->GetPreserveAspectRatio(),
|
||||
"FLAG_FORCE_PRESERVEASPECTRATIO_NONE is not expected if a "
|
||||
"preserveAspectRatio override is supplied");
|
||||
|
|
|
@ -110,7 +110,7 @@ static nsresult moz_icon_to_channel(nsIURI* aURI, const nsACString& aFileExt,
|
|||
|
||||
// nsIconProtocolHandler::NewChannel will provide the correct loadInfo for
|
||||
// this iconChannel. Use the most restrictive security settings for the
|
||||
// temporary loadInfo to make sure the channel can not be openend.
|
||||
// temporary loadInfo to make sure the channel can not be opened.
|
||||
nsCOMPtr<nsIPrincipal> nullPrincipal =
|
||||
NullPrincipal::CreateWithoutOriginAttributes();
|
||||
return NS_NewInputStreamChannel(
|
||||
|
|
|
@ -107,7 +107,7 @@ static nsresult moz_gdk_pixbuf_to_channel(GdkPixbuf* aPixbuf, nsIURI* aURI,
|
|||
|
||||
// nsIconProtocolHandler::NewChannel will provide the correct loadInfo for
|
||||
// this iconChannel. Use the most restrictive security settings for the
|
||||
// temporary loadInfo to make sure the channel can not be openend.
|
||||
// temporary loadInfo to make sure the channel can not be opened.
|
||||
nsCOMPtr<nsIPrincipal> nullPrincipal =
|
||||
mozilla::NullPrincipal::CreateWithoutOriginAttributes();
|
||||
return NS_NewInputStreamChannel(
|
||||
|
@ -335,7 +335,7 @@ nsresult nsIconChannel::Init(nsIURI* aURI) {
|
|||
GtkIconTheme* icon_theme = gtk_icon_theme_get_default();
|
||||
// Micking what gtk_icon_set_render_icon does with sizes, though it's not
|
||||
// critical as icons will be scaled to suit size. It just means we follow
|
||||
// the same pathes and so share caches.
|
||||
// the same paths and so share caches.
|
||||
gint width, height;
|
||||
if (gtk_icon_size_lookup(icon_size, &width, &height)) {
|
||||
gint size = std::min(width, height);
|
||||
|
@ -360,7 +360,7 @@ nsresult nsIconChannel::Init(nsIURI* aURI) {
|
|||
}
|
||||
|
||||
if (!icon_set) {
|
||||
// Either we have choosen icon-name lookup for a bidi icon, or stockIcon is
|
||||
// Either we have chosen icon-name lookup for a bidi icon, or stockIcon is
|
||||
// not a stock id so we assume it is an icon name.
|
||||
useIconName = true;
|
||||
// Creating a GtkIconSet is a convenient way to allow the style to
|
||||
|
|
|
@ -832,7 +832,7 @@ LexerTransition<nsGIFDecoder2::State> nsGIFDecoder2::FinishImageDescriptor(
|
|||
// If the transparent color index is greater than the number of colors in the
|
||||
// color table, we may need a higher color depth than |depth| would specify.
|
||||
// Our internal representation of the image will instead use |realDepth|,
|
||||
// which is the smallest color depth that can accomodate the existing palette
|
||||
// which is the smallest color depth that can accommodate the existing palette
|
||||
// *and* the transparent color index.
|
||||
uint16_t realDepth = depth;
|
||||
while (mGIFStruct.tpixel >= (1 << realDepth) && realDepth < 8) {
|
||||
|
|
|
@ -58,7 +58,7 @@ class nsGIFDecoder2 : public Decoder {
|
|||
/// Called when we finish decoding the entire image.
|
||||
void FlushImageData();
|
||||
|
||||
/// Convert color map to BGRA, applying any necessary CMS tranforms.
|
||||
/// Convert color map to BGRA, applying any necessary CMS transforms.
|
||||
void ConvertColormap(uint32_t* aColormap, uint32_t aColors);
|
||||
|
||||
/// Transforms a palette index into a pixel.
|
||||
|
|
|
@ -273,7 +273,7 @@ LexerTransition<nsJPEGDecoder::State> nsJPEGDecoder::ReadJPEGData(
|
|||
default:
|
||||
mState = JPEG_ERROR;
|
||||
MOZ_LOG(sJPEGDecoderAccountingLog, LogLevel::Debug,
|
||||
("} (unknown colorpsace (3))"));
|
||||
("} (unknown colorspace (3))"));
|
||||
return Transition::TerminateFailure();
|
||||
}
|
||||
|
||||
|
|
|
@ -593,7 +593,7 @@ void nsBMPEncoder::EncodeFileHeader() {
|
|||
ENCODE(&mImageBufferCurr, littleEndianBFH.dataoffset);
|
||||
}
|
||||
|
||||
// Encodes the BMP infor header mBMPInfoHeader
|
||||
// Encodes the BMP info header mBMPInfoHeader
|
||||
void nsBMPEncoder::EncodeInfoHeader() {
|
||||
V5InfoHeader littleEndianmBIH = mBMPInfoHeader;
|
||||
NativeEndian::swapToLittleEndianInPlace(&littleEndianmBIH.bihsize, 1);
|
||||
|
|
|
@ -162,7 +162,7 @@ static bool ClearSurface(DataSourceSurface* aSurface, const IntSize& aSize,
|
|||
// Skia doesn't support RGBX surfaces, so ensure the alpha value is set
|
||||
// to opaque white. While it would be nice to only do this for Skia,
|
||||
// imgFrame can run off main thread and past shutdown where
|
||||
// we might not have gfxPlatform, so just memset everytime instead.
|
||||
// we might not have gfxPlatform, so just memset every time instead.
|
||||
memset(data, 0xFF, stride * aSize.height);
|
||||
} else if (aSurface->OnHeap()) {
|
||||
// We only need to memset it if the buffer was allocated on the heap.
|
||||
|
@ -355,10 +355,12 @@ nsresult imgFrame::InitForDecoderRecycle(const AnimationParams& aAnimParams) {
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult imgFrame::InitWithDrawable(
|
||||
gfxDrawable* aDrawable, const nsIntSize& aSize, const SurfaceFormat aFormat,
|
||||
SamplingFilter aSamplingFilter, uint32_t aImageFlags,
|
||||
gfx::BackendType aBackend) {
|
||||
nsresult imgFrame::InitWithDrawable(gfxDrawable* aDrawable,
|
||||
const nsIntSize& aSize,
|
||||
const SurfaceFormat aFormat,
|
||||
SamplingFilter aSamplingFilter,
|
||||
uint32_t aImageFlags,
|
||||
gfx::BackendType aBackend) {
|
||||
// Assert for properties that should be verified by decoders,
|
||||
// warn for properties related to bad content.
|
||||
if (!SurfaceCache::IsLegalSize(aSize)) {
|
||||
|
|
|
@ -163,7 +163,7 @@ interface imgIContainer : nsISupports
|
|||
* be performed only if ImageLib estimates it can be completed very quickly.
|
||||
*
|
||||
* FLAG_ASYNC_NOTIFY: Send notifications asynchronously, even if we decode
|
||||
* synchronously beause of FLAG_SYNC_DECODE or FLAG_SYNC_DECODE_IF_FAST.
|
||||
* synchronously because of FLAG_SYNC_DECODE or FLAG_SYNC_DECODE_IF_FAST.
|
||||
*
|
||||
* FLAG_DECODE_NO_PREMULTIPLY_ALPHA: Do not premultiply alpha if
|
||||
* it's not already premultiplied in the image data.
|
||||
|
|
|
@ -74,7 +74,7 @@ interface imgILoader : nsISupports
|
|||
/**
|
||||
* Start the load and decode of an image.
|
||||
* @param aChannel the channel to load the image from. This must
|
||||
* already be opened before ths method is called, and there
|
||||
* already be opened before this method is called, and there
|
||||
* must have been no OnDataAvailable calls for it yet.
|
||||
* @param aObserver the observer (may be null)
|
||||
* @param cx some random data
|
||||
|
|
|
@ -722,7 +722,7 @@ static bool ValidateSecurityInfo(imgRequest* request, bool forcePrincipalCheck,
|
|||
// If the referrer policy doesn't match, we can't use this request.
|
||||
// XXX: Note that we only validate referrer policy, not referrerInfo object.
|
||||
// We should do with referrerInfo object, but it will cause us to use more
|
||||
// resources in the common case (the same policies but diferrent original
|
||||
// resources in the common case (the same policies but different original
|
||||
// referrers).
|
||||
// XXX: this will return false if an image has different referrer attributes,
|
||||
// i.e. we currently don't use the cached image but reload the image with
|
||||
|
@ -1668,7 +1668,7 @@ bool imgLoader::ValidateRequestWithNewChannel(
|
|||
nsContentPolicyType aLoadPolicyType, imgRequestProxy** aProxyRequest,
|
||||
nsIPrincipal* aTriggeringPrincipal, int32_t aCORSMode,
|
||||
bool* aNewChannelCreated) {
|
||||
// now we need to insert a new channel request object inbetween the real
|
||||
// now we need to insert a new channel request object in between the real
|
||||
// request and the proxy that basically delays loading the image until it
|
||||
// gets a 304 or figures out that this needs to be a new request
|
||||
|
||||
|
@ -2513,7 +2513,7 @@ nsresult imgLoader::LoadImageWithChannel(nsIChannel* channel,
|
|||
|
||||
// No principal specified here, because we're not passed one.
|
||||
// In LoadImageWithChannel, the redirects that may have been
|
||||
// assoicated with this load would have gone through necko.
|
||||
// associated with this load would have gone through necko.
|
||||
// We only have the final URI in ImageLib and hence don't know
|
||||
// if the request went through insecure redirects. But if it did,
|
||||
// the necko cache should have handled that (since all necko cache hits
|
||||
|
|
|
@ -153,7 +153,7 @@ class imgRequestProxy : public imgIRequest,
|
|||
/* Remove from and forget the load group. */
|
||||
void RemoveFromLoadGroup();
|
||||
|
||||
/* Remove from the load group and readd as a background request. */
|
||||
/* Remove from the load group and re-add as a background request. */
|
||||
void MoveToBackgroundInLoadGroup();
|
||||
|
||||
/* Finish up canceling ourselves */
|
||||
|
|
|
@ -283,7 +283,7 @@ imgTools::DecodeImageAsync(nsIInputStream* aInStr, const nsACString& aMimeType,
|
|||
/**
|
||||
* This takes a DataSourceSurface rather than a SourceSurface because some
|
||||
* of the callers have a DataSourceSurface and we don't want to call
|
||||
* GetDataSurface on such surfaces since that may incure a conversion to
|
||||
* GetDataSurface on such surfaces since that may incur a conversion to
|
||||
* SurfaceType::DATA which we don't need.
|
||||
*/
|
||||
static nsresult EncodeImageData(DataSourceSurface* aDataSurface,
|
||||
|
|
|
@ -108,7 +108,7 @@ add_task(async function() {
|
|||
image.onload = function() {
|
||||
ok(
|
||||
false,
|
||||
"APP_TYPE_UNKNOWN is *not* allowed to acces privileged image"
|
||||
"APP_TYPE_UNKNOWN is *not* allowed to access privileged image"
|
||||
);
|
||||
// restore appType of rootDocShell before moving on to the next test
|
||||
rootDocShell.appType = defaultAppType;
|
||||
|
@ -117,7 +117,7 @@ add_task(async function() {
|
|||
image.onerror = function() {
|
||||
ok(
|
||||
true,
|
||||
"APP_TYPE_UNKNOWN is *not* allowed to acces privileged image"
|
||||
"APP_TYPE_UNKNOWN is *not* allowed to access privileged image"
|
||||
);
|
||||
// restore appType of rootDocShell before moving on to the next test
|
||||
rootDocShell.appType = defaultAppType;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
waitForExplicitFinish();
|
||||
requestLongerTimeout(2); // see bug 660123 -- this test is slow on Mac.
|
||||
|
||||
// A hold on the current timer, so it doens't get GCed out from
|
||||
// A hold on the current timer, so it doesn't get GCed out from
|
||||
// under us
|
||||
var gTimer;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Reftests for downscaling
|
||||
#
|
||||
# Downscaling can be a lossy process, so a bit of mismatch is acceptable here,
|
||||
# as long as it's barely noticable visually. When necessary, this can be
|
||||
# as long as it's barely noticeable visually. When necessary, this can be
|
||||
# explicitly allowed via 'fuzzy'/'fuzzy-if' annotations.
|
||||
#
|
||||
# Many of these tests check primarily that we don't lose rows or columns of
|
||||
|
|
|
@ -17,7 +17,7 @@ function dumpToFile(aData) {
|
|||
var outputStream = Cc[
|
||||
"@mozilla.org/network/file-output-stream;1"
|
||||
].createInstance(Ci.nsIFileOutputStream);
|
||||
// WR_ONLY|CREAT|TRUNC
|
||||
// WR_ONLY|CREATE|TRUNC
|
||||
outputStream.init(outputFile, 0x02 | 0x08 | 0x20, 0o644, null);
|
||||
|
||||
var bos = Cc["@mozilla.org/binaryoutputstream;1"].createInstance(
|
||||
|
@ -164,7 +164,7 @@ function run_test() {
|
|||
istream = imgTools.encodeScaledImage(container, "image/jpeg", 16, 16);
|
||||
|
||||
var encodedBytes = streamToArray(istream);
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
var refName = "image1png16x16.jpg";
|
||||
var refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -182,7 +182,7 @@ function run_test() {
|
|||
istream = imgTools.encodeImage(container, "image/jpeg");
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image1png64x64.jpg";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -225,7 +225,7 @@ function run_test() {
|
|||
istream = imgTools.encodeScaledImage(container, "image/png", 16, 16);
|
||||
|
||||
encodedBytes = streamToArray(istream);
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = isWindows ? "image2jpg16x16-win.png" : "image2jpg16x16.png";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -245,7 +245,7 @@ function run_test() {
|
|||
istream = imgTools.encodeImage(container, "image/png");
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = isWindows ? "image2jpg32x32-win.png" : "image2jpg32x32.png";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -288,7 +288,7 @@ function run_test() {
|
|||
istream = imgTools.encodeScaledImage(container, "image/png", 32, 32);
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image3ico32x32.png";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -306,7 +306,7 @@ function run_test() {
|
|||
istream = imgTools.encodeImage(container, "image/png");
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image3ico16x16.png";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -354,7 +354,7 @@ function run_test() {
|
|||
);
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image4gif32x32bmp32bpp.ico";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -380,7 +380,7 @@ function run_test() {
|
|||
);
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image4gif16x16bmp32bpp.ico";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -404,7 +404,7 @@ function run_test() {
|
|||
);
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image4gif32x32bmp24bpp.ico";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -430,7 +430,7 @@ function run_test() {
|
|||
);
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image4gif16x16bmp24bpp.ico";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -475,7 +475,7 @@ function run_test() {
|
|||
);
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image2jpg16x16cropped.jpg";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -500,7 +500,7 @@ function run_test() {
|
|||
);
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image2jpg16x16cropped2.jpg";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -518,7 +518,7 @@ function run_test() {
|
|||
istream = imgTools.encodeCroppedImage(container, "image/jpeg", 0, 0, 16, 0);
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image2jpg16x32cropped3.jpg";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -536,7 +536,7 @@ function run_test() {
|
|||
istream = imgTools.encodeCroppedImage(container, "image/jpeg", 0, 0, 0, 16);
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image2jpg32x16cropped4.jpg";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -554,7 +554,7 @@ function run_test() {
|
|||
istream = imgTools.encodeCroppedImage(container, "image/jpeg", 0, 0, 0, 0);
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image2jpg32x32.jpg";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -572,7 +572,7 @@ function run_test() {
|
|||
istream = imgTools.encodeScaledImage(container, "image/jpeg", 0, 16);
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image2jpg32x16scaled.jpg";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -590,7 +590,7 @@ function run_test() {
|
|||
istream = imgTools.encodeScaledImage(container, "image/jpeg", 16, 0);
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image2jpg16x32scaled.jpg";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
@ -608,7 +608,7 @@ function run_test() {
|
|||
istream = imgTools.encodeScaledImage(container, "image/jpeg", 0, 0);
|
||||
encodedBytes = streamToArray(istream);
|
||||
|
||||
// Get bytes for exected result
|
||||
// Get bytes for expected result
|
||||
refName = "image2jpg32x32.jpg";
|
||||
refFile = do_get_file(refName);
|
||||
istream = getFileInputStream(refFile);
|
||||
|
|
Загрузка…
Ссылка в новой задаче