diff options
Diffstat (limited to 'Tools/DumpRenderTree/mac/TestRunnerMac.mm')
-rw-r--r-- | Tools/DumpRenderTree/mac/TestRunnerMac.mm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Tools/DumpRenderTree/mac/TestRunnerMac.mm b/Tools/DumpRenderTree/mac/TestRunnerMac.mm index a21ed80ac..1a0a04dc7 100644 --- a/Tools/DumpRenderTree/mac/TestRunnerMac.mm +++ b/Tools/DumpRenderTree/mac/TestRunnerMac.mm @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. + * Copyright (C) 2007, 2008, 2009, 2012 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -479,12 +479,11 @@ void TestRunner::setMockGeolocationPosition(double latitude, double longitude, d [position release]; } -void TestRunner::setMockGeolocationError(int code, JSStringRef message) +void TestRunner::setMockGeolocationPositionUnavailableError(JSStringRef message) { RetainPtr<CFStringRef> messageCF(AdoptCF, JSStringCopyCFString(kCFAllocatorDefault, message)); NSString *messageNS = (NSString *)messageCF.get(); - NSError *error = [NSError errorWithDomain:WebKitErrorDomain code:code userInfo:[NSDictionary dictionaryWithObject:messageNS forKey:NSLocalizedDescriptionKey]]; - [[MockGeolocationProvider shared] setError:error]; + [[MockGeolocationProvider shared] setPositionUnavailableErrorWithMessage:messageNS]; } void TestRunner::setGeolocationPermission(bool allow) |