summaryrefslogtreecommitdiff
path: root/Tools/TestWebKitAPI/efl/PlatformUtilities.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/TestWebKitAPI/efl/PlatformUtilities.cpp')
-rw-r--r--Tools/TestWebKitAPI/efl/PlatformUtilities.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Tools/TestWebKitAPI/efl/PlatformUtilities.cpp b/Tools/TestWebKitAPI/efl/PlatformUtilities.cpp
index 96745459f..65c54e1a7 100644
--- a/Tools/TestWebKitAPI/efl/PlatformUtilities.cpp
+++ b/Tools/TestWebKitAPI/efl/PlatformUtilities.cpp
@@ -42,7 +42,7 @@ void run(bool* done)
void sleep(double seconds)
{
- sleep(seconds);
+ usleep(seconds * 1000000);
}
WKURLRef createURLForResource(const char* resource, const char* extension)
@@ -64,6 +64,11 @@ WKURLRef URLForNonExistentResource()
return WKURLCreateWithUTF8CString("file:///does-not-exist.html");
}
+WKRetainPtr<WKStringRef> MIMETypeForWKURLResponse(WKURLResponseRef wkResponse)
+{
+ return adoptWK(WKURLResponseCopyMIMEType(wkResponse));
+}
+
} // namespace Util
} // namespace TestWebKitAPI