diff options
Diffstat (limited to 'Tools/TestWebKitAPI/mac/PlatformUtilitiesMac.mm')
-rw-r--r-- | Tools/TestWebKitAPI/mac/PlatformUtilitiesMac.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/TestWebKitAPI/mac/PlatformUtilitiesMac.mm b/Tools/TestWebKitAPI/mac/PlatformUtilitiesMac.mm index 474278f..57ec675 100644 --- a/Tools/TestWebKitAPI/mac/PlatformUtilitiesMac.mm +++ b/Tools/TestWebKitAPI/mac/PlatformUtilitiesMac.mm @@ -39,6 +39,11 @@ void run(bool* done) [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]; } +void sleep(double seconds) +{ + usleep(seconds * 1000000); +} + WKStringRef createInjectedBundlePath() { NSString *nsString = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"InjectedBundleTestWebKitAPI.bundle"]; |