Commit 72323cb6 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Add trailing '\n's to ok() calls.

Fix a couple of spelling errors.
parent 100e1130
...@@ -95,7 +95,7 @@ void winapi_test(int flags) ...@@ -95,7 +95,7 @@ void winapi_test(int flags)
trace("InternetOpenA <--\n"); trace("InternetOpenA <--\n");
hi = InternetOpenA("",0x0,0x0,0x0,flags); hi = InternetOpenA("",0x0,0x0,0x0,flags);
ok((hi != 0x0),"InternetOpen Failed"); ok((hi != 0x0),"InternetOpen Failed\n");
trace("InternetOpenA -->\n"); trace("InternetOpenA -->\n");
if (hi == 0x0) goto abort; if (hi == 0x0) goto abort;
...@@ -104,7 +104,7 @@ void winapi_test(int flags) ...@@ -104,7 +104,7 @@ void winapi_test(int flags)
trace("InternetConnectA <--\n"); trace("InternetConnectA <--\n");
hic=InternetConnectA(hi,"www.winehq.org",0x0,0x0,0x0,0x3,0x0,0xdeadbeef); hic=InternetConnectA(hi,"www.winehq.org",0x0,0x0,0x0,0x3,0x0,0xdeadbeef);
ok((hic != 0x0),"InternetConnect Failed"); ok((hic != 0x0),"InternetConnect Failed\n");
trace("InternetConnectA -->\n"); trace("InternetConnectA -->\n");
if (hic == 0x0) goto abort; if (hic == 0x0) goto abort;
...@@ -121,7 +121,7 @@ void winapi_test(int flags) ...@@ -121,7 +121,7 @@ void winapi_test(int flags)
* abort. * abort.
*/ */
} else { } else {
ok((hor != 0x0),"HttpOpenRequest Failed"); ok((hor != 0x0),"HttpOpenRequest Failed\n");
} }
trace("HttpOpenRequestA -->\n"); trace("HttpOpenRequestA -->\n");
...@@ -132,10 +132,10 @@ void winapi_test(int flags) ...@@ -132,10 +132,10 @@ void winapi_test(int flags)
rc = HttpSendRequestA(hor, "", 0xffffffff,0x0,0x0); rc = HttpSendRequestA(hor, "", 0xffffffff,0x0,0x0);
if (flags) if (flags)
ok(((rc == 0)&&(GetLastError()==997)), ok(((rc == 0)&&(GetLastError()==997)),
"Asyncronous HttpSendRequest NOT returning 0 with error 997"); "Asynchronous HttpSendRequest NOT returning 0 with error 997\n");
else else
ok((rc != 0) || GetLastError() == 12007, /* 12007 == XP */ ok((rc != 0) || GetLastError() == 12007, /* 12007 == XP */
"Syncronous HttpSendRequest returning 0, error %ld", GetLastError()); "Synchronous HttpSendRequest returning 0, error %ld\n", GetLastError());
trace("HttpSendRequestA <--\n"); trace("HttpSendRequestA <--\n");
while ((flags)&&(!goon)) while ((flags)&&(!goon))
...@@ -169,13 +169,13 @@ void winapi_test(int flags) ...@@ -169,13 +169,13 @@ void winapi_test(int flags)
trace("Option 0x1 -> %li %s\n",rc,buffer); trace("Option 0x1 -> %li %s\n",rc,buffer);
length = 100; length = 100;
trace("Entery Query loop\n"); trace("Entering Query loop\n");
while (length) while (length)
{ {
rc = InternetQueryDataAvailable(hor,&length,0x0,0x0); rc = InternetQueryDataAvailable(hor,&length,0x0,0x0);
ok((rc != 0),"InternetQueryDataAvailable failed"); ok((rc != 0),"InternetQueryDataAvailable failed\n");
if (length) if (length)
{ {
...@@ -194,15 +194,15 @@ void winapi_test(int flags) ...@@ -194,15 +194,15 @@ void winapi_test(int flags)
abort: abort:
if (hor != 0x0) { if (hor != 0x0) {
rc = InternetCloseHandle(hor); rc = InternetCloseHandle(hor);
ok ((rc != 0), "InternetCloseHandle of handle opened by HttpOpenRequestA failed"); ok ((rc != 0), "InternetCloseHandle of handle opened by HttpOpenRequestA failed\n");
} }
if (hic != 0x0) { if (hic != 0x0) {
rc = InternetCloseHandle(hic); rc = InternetCloseHandle(hic);
ok ((rc != 0), "InternetCloseHandle of handle opened by InternetConnectA failed"); ok ((rc != 0), "InternetCloseHandle of handle opened by InternetConnectA failed\n");
} }
if (hi != 0x0) { if (hi != 0x0) {
rc = InternetCloseHandle(hi); rc = InternetCloseHandle(hi);
ok ((rc != 0), "InternetCloseHandle of handle opened by InternetOpenA failed"); ok ((rc != 0), "InternetCloseHandle of handle opened by InternetOpenA failed\n");
if (flags) if (flags)
Sleep(100); Sleep(100);
} }
...@@ -272,7 +272,7 @@ void InternetCrackUrl_test(void) ...@@ -272,7 +272,7 @@ void InternetCrackUrl_test(void)
urlComponents.dwExtraInfoLength = 1024; urlComponents.dwExtraInfoLength = 1024;
ok((InternetCrackUrl(TEST_URL, 0,0,&urlComponents)), ok((InternetCrackUrl(TEST_URL, 0,0,&urlComponents)),
"InternetCrackUrl failed, error %lx\n",GetLastError()); "InternetCrackUrl failed, error %lx\n",GetLastError());
ok((strcmp(TEST_URL_PATH,path) == 0),"path cracked wrong"); ok((strcmp(TEST_URL_PATH,path) == 0),"path cracked wrong\n");
} }
START_TEST(http) START_TEST(http)
...@@ -281,5 +281,4 @@ START_TEST(http) ...@@ -281,5 +281,4 @@ START_TEST(http)
winapi_test(0x00000000); winapi_test(0x00000000);
InternetCrackUrl_test(); InternetCrackUrl_test();
InternetOpenUrlA_test(); InternetOpenUrlA_test();
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment