windowscodecs/tests: Avoid "misleading indentation" warnings.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de> Signed-off-by: Esme Povirk <esme@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
95bfc0fc03
commit
c79cd9993b
|
@ -867,7 +867,7 @@ static void test_CreateBitmapFromHBITMAP(void)
|
|||
ok(hr == S_OK, "CreateBitmapFromHBITMAP error %#x\n", hr);
|
||||
|
||||
IWICBitmap_GetPixelFormat(bitmap, &format);
|
||||
todo_wine
|
||||
todo_wine
|
||||
ok(IsEqualGUID(&format, &GUID_WICPixelFormat4bppIndexed),
|
||||
"unexpected pixel format %s\n", wine_dbgstr_guid(&format));
|
||||
|
||||
|
@ -887,7 +887,7 @@ todo_wine
|
|||
|
||||
hr = IWICPalette_GetColorCount(palette, &count);
|
||||
ok(hr == S_OK, "GetColorCount error %#x\n", hr);
|
||||
todo_wine
|
||||
todo_wine
|
||||
ok(count == 16, "expected 16, got %u\n", count);
|
||||
|
||||
IWICPalette_Release(palette);
|
||||
|
|
|
@ -1223,7 +1223,7 @@ static void test_set_frame_palette(IWICBitmapFrameEncode *frameencode)
|
|||
ok(hr == S_OK, "CreatePalette failed, hr=%x\n", hr);
|
||||
|
||||
hr = IWICBitmapFrameEncode_SetPalette(frameencode, palette);
|
||||
todo_wine
|
||||
todo_wine
|
||||
ok(hr == WINCODEC_ERR_NOTINITIALIZED, "Unexpected hr=%x\n", hr);
|
||||
|
||||
hr = IWICPalette_InitializePredefined(palette, WICBitmapPaletteTypeFixedHalftone256, FALSE);
|
||||
|
|
|
@ -164,7 +164,7 @@ static void test_ico_data_(void *data, DWORD data_size, HRESULT init_hr, int tod
|
|||
{
|
||||
hr = IWICBitmapDecoder_Initialize(decoder, (IStream*)icostream,
|
||||
WICDecodeMetadataCacheOnDemand);
|
||||
todo_wine_if(todo)
|
||||
todo_wine_if(todo)
|
||||
ok_(__FILE__, line)(hr == init_hr, "Initialize failed, hr=%x\n", hr);
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
|
|
|
@ -177,7 +177,7 @@ static void test_decoder_info(void)
|
|||
len = 0;
|
||||
hr = IWICBitmapDecoderInfo_GetMimeTypes(decoder_info, 1, NULL, &len);
|
||||
ok(hr == E_INVALIDARG, "GetMimeType failed, hr=%x\n", hr);
|
||||
todo_wine_if(test->todo)
|
||||
todo_wine_if(test->todo)
|
||||
ok(len == lstrlenW(mimetypeW) + 1, "GetMimeType returned wrong len %i\n", len);
|
||||
|
||||
hr = IWICBitmapDecoderInfo_GetMimeTypes(decoder_info, len, value, NULL);
|
||||
|
@ -186,7 +186,7 @@ static void test_decoder_info(void)
|
|||
len = 0;
|
||||
hr = IWICBitmapDecoderInfo_GetMimeTypes(decoder_info, 0, NULL, &len);
|
||||
ok(hr == S_OK, "GetMimeType failed, hr=%x\n", hr);
|
||||
todo_wine_if(test->todo)
|
||||
todo_wine_if(test->todo)
|
||||
ok(len == lstrlenW(mimetypeW) + 1, "GetMimeType returned wrong len %i\n", len);
|
||||
|
||||
value[0] = 0;
|
||||
|
@ -198,7 +198,7 @@ static void test_decoder_info(void)
|
|||
}
|
||||
hr = IWICBitmapDecoderInfo_GetMimeTypes(decoder_info, 1, value, &len);
|
||||
ok(hr == WINCODEC_ERR_INSUFFICIENTBUFFER, "GetMimeType failed, hr=%x\n", hr);
|
||||
todo_wine_if(test->todo)
|
||||
todo_wine_if(test->todo)
|
||||
ok(len == lstrlenW(mimetypeW) + 1, "GetMimeType returned wrong len %i\n", len);
|
||||
|
||||
hr = IWICBitmapDecoderInfo_GetMimeTypes(decoder_info, 256, value, &len);
|
||||
|
@ -250,7 +250,7 @@ static void test_decoder_info(void)
|
|||
|
||||
hr = IWICBitmapDecoderInfo_GetFileExtensions(decoder_info, 1, NULL, &len);
|
||||
ok(hr == E_INVALIDARG, "GetFileExtensions failed, hr=%x\n", hr);
|
||||
todo_wine_if(test->todo && !IsEqualCLSID(test->clsid, &CLSID_WICTiffDecoder))
|
||||
todo_wine_if(test->todo && !IsEqualCLSID(test->clsid, &CLSID_WICTiffDecoder))
|
||||
ok(len == lstrlenW(extensionsW) + 1, "%u: GetFileExtensions returned wrong len %i\n", i, len);
|
||||
|
||||
hr = IWICBitmapDecoderInfo_GetFileExtensions(decoder_info, len, value, NULL);
|
||||
|
@ -258,27 +258,27 @@ static void test_decoder_info(void)
|
|||
|
||||
hr = IWICBitmapDecoderInfo_GetFileExtensions(decoder_info, 0, NULL, &len);
|
||||
ok(hr == S_OK, "GetFileExtensions failed, hr=%x\n", hr);
|
||||
todo_wine_if(test->todo && !IsEqualCLSID(test->clsid, &CLSID_WICTiffDecoder))
|
||||
todo_wine_if(test->todo && !IsEqualCLSID(test->clsid, &CLSID_WICTiffDecoder))
|
||||
ok(len == lstrlenW(extensionsW) + 1, "GetFileExtensions returned wrong len %i\n", len);
|
||||
|
||||
value[0] = 0;
|
||||
hr = IWICBitmapDecoderInfo_GetFileExtensions(decoder_info, len, value, &len);
|
||||
ok(hr == S_OK, "GetFileExtensions failed, hr=%x\n", hr);
|
||||
todo_wine_if(test->todo)
|
||||
todo_wine_if(test->todo)
|
||||
ok(lstrcmpW(value, extensionsW) == 0, "GetFileExtensions returned wrong value %s\n", wine_dbgstr_w(value));
|
||||
todo_wine_if(test->todo && !IsEqualCLSID(test->clsid, &CLSID_WICTiffDecoder))
|
||||
todo_wine_if(test->todo && !IsEqualCLSID(test->clsid, &CLSID_WICTiffDecoder))
|
||||
ok(len == lstrlenW(extensionsW) + 1, "GetFileExtensions returned wrong len %i\n", len);
|
||||
|
||||
hr = IWICBitmapDecoderInfo_GetFileExtensions(decoder_info, 1, value, &len);
|
||||
ok(hr == WINCODEC_ERR_INSUFFICIENTBUFFER, "GetFileExtensions failed, hr=%x\n", hr);
|
||||
todo_wine_if(test->todo && !IsEqualCLSID(test->clsid, &CLSID_WICTiffDecoder))
|
||||
todo_wine_if(test->todo && !IsEqualCLSID(test->clsid, &CLSID_WICTiffDecoder))
|
||||
ok(len == lstrlenW(extensionsW) + 1, "GetFileExtensions returned wrong len %i\n", len);
|
||||
|
||||
hr = IWICBitmapDecoderInfo_GetFileExtensions(decoder_info, 256, value, &len);
|
||||
ok(hr == S_OK, "GetFileExtensions failed, hr=%x\n", hr);
|
||||
todo_wine_if(test->todo)
|
||||
todo_wine_if(test->todo)
|
||||
ok(lstrcmpW(value, extensionsW) == 0, "GetFileExtensions returned wrong value %s\n", wine_dbgstr_w(value));
|
||||
todo_wine_if(test->todo && !IsEqualCLSID(test->clsid, &CLSID_WICTiffDecoder))
|
||||
todo_wine_if(test->todo && !IsEqualCLSID(test->clsid, &CLSID_WICTiffDecoder))
|
||||
ok(len == lstrlenW(extensionsW) + 1, "GetFileExtensions returned wrong len %i\n", len);
|
||||
|
||||
IWICBitmapDecoderInfo_Release(decoder_info);
|
||||
|
@ -559,7 +559,7 @@ static void test_reader_info(void)
|
|||
IWICComponentInfo_Release(info);
|
||||
|
||||
hr = IWICImagingFactory_CreateComponentInfo(factory, &CLSID_WICXMPStructMetadataReader, &info);
|
||||
todo_wine
|
||||
todo_wine
|
||||
ok(hr == S_OK, "CreateComponentInfo failed, hr=%x\n", hr);
|
||||
|
||||
if (FAILED(hr))
|
||||
|
|
|
@ -824,7 +824,7 @@ todo_wine_if(td[i].todo_load)
|
|||
|
||||
hr = IWICBitmapFrameDecode_GetPixelFormat(frame, &format);
|
||||
ok(hr == S_OK, "GetPixelFormat error %#x\n", hr);
|
||||
todo_wine_if(td[i].todo)
|
||||
todo_wine_if(td[i].todo)
|
||||
ok(IsEqualGUID(&format, td[i].format_PLTE_tRNS),
|
||||
"PLTE+tRNS: expected %s, got %s (type %d, bpp %d)\n",
|
||||
wine_dbgstr_guid(td[i].format_PLTE_tRNS), wine_dbgstr_guid(&format), td[i].color_type, td[i].bit_depth);
|
||||
|
@ -907,7 +907,7 @@ todo_wine_if(td[i].todo_load)
|
|||
|
||||
hr = IWICBitmapFrameDecode_GetPixelFormat(frame, &format);
|
||||
ok(hr == S_OK, "GetPixelFormat error %#x\n", hr);
|
||||
todo_wine_if(td[i].todo)
|
||||
todo_wine_if(td[i].todo)
|
||||
ok(IsEqualGUID(&format, td[i].format_PLTE_tRNS),
|
||||
"tRNS: expected %s, got %s (type %d, bpp %d)\n",
|
||||
wine_dbgstr_guid(td[i].format_PLTE_tRNS), wine_dbgstr_guid(&format), td[i].color_type, td[i].bit_depth);
|
||||
|
|
|
@ -32,7 +32,7 @@ static void _check_cur_pos(IStream *stream, ULONGLONG expected_pos, BOOL todo, u
|
|||
offset.QuadPart = 0;
|
||||
hr = IStream_Seek(stream, offset, STREAM_SEEK_CUR, &pos);
|
||||
ok_(__FILE__, line)(hr == S_OK, "Failed to get current position, hr %#x.\n", hr);
|
||||
todo_wine_if(todo)
|
||||
todo_wine_if(todo)
|
||||
ok_(__FILE__, line)(pos.QuadPart == expected_pos, "Unexpected stream position %s.\n",
|
||||
wine_dbgstr_longlong(pos.QuadPart));
|
||||
}
|
||||
|
|
|
@ -551,7 +551,7 @@ static void test_QueryCapability(void)
|
|||
|
||||
/* CreateDecoderFromStream fails if seeked past the start */
|
||||
hr = IWICImagingFactory_CreateDecoderFromStream(factory, stream, NULL, 0, &decoder);
|
||||
todo_wine
|
||||
todo_wine
|
||||
ok(hr == WINCODEC_ERR_COMPONENTNOTFOUND, "expected WINCODEC_ERR_COMPONENTNOTFOUND, got %#x\n", hr);
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
|
|
Loading…
Reference in New Issue