diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-09-25 13:02:02 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-09-25 13:02:02 +0200 |
commit | 715be629d51174233403237bfc563cf150087dc8 (patch) | |
tree | 4cff72df808db977624338b0a38d8b6d1bd73c57 /Tools/DumpRenderTree | |
parent | dc6262b587c71c14e30d93e57ed812e36a79a33e (diff) | |
download | qtwebkit-715be629d51174233403237bfc563cf150087dc8.tar.gz |
Imported WebKit commit ce614b0924ba46f78d4435e28ff93c8525fbb7cc (http://svn.webkit.org/repository/webkit/trunk@129485)
New snapshot that includes MingW build fixes
Diffstat (limited to 'Tools/DumpRenderTree')
-rw-r--r-- | Tools/DumpRenderTree/TestRunner.cpp | 13 | ||||
-rw-r--r-- | Tools/DumpRenderTree/TestRunner.h | 4 | ||||
-rw-r--r-- | Tools/DumpRenderTree/blackberry/EventSender.cpp | 6 | ||||
-rw-r--r-- | Tools/DumpRenderTree/blackberry/TestRunnerBlackBerry.cpp | 5 | ||||
-rw-r--r-- | Tools/DumpRenderTree/chromium/DRTTestRunner.cpp | 10 | ||||
-rw-r--r-- | Tools/DumpRenderTree/chromium/DRTTestRunner.h | 3 | ||||
-rw-r--r-- | Tools/DumpRenderTree/efl/TestRunnerEfl.cpp | 4 | ||||
-rw-r--r-- | Tools/DumpRenderTree/gtk/DumpRenderTree.cpp | 6 | ||||
-rw-r--r-- | Tools/DumpRenderTree/gtk/TestRunnerGtk.cpp | 6 | ||||
-rw-r--r-- | Tools/DumpRenderTree/mac/MockGeolocationProvider.h | 10 | ||||
-rw-r--r-- | Tools/DumpRenderTree/mac/MockGeolocationProvider.mm | 41 | ||||
-rw-r--r-- | Tools/DumpRenderTree/mac/TestRunnerMac.mm | 7 | ||||
-rw-r--r-- | Tools/DumpRenderTree/qt/TestRunnerQt.cpp | 4 | ||||
-rw-r--r-- | Tools/DumpRenderTree/qt/TestRunnerQt.h | 3 | ||||
-rw-r--r-- | Tools/DumpRenderTree/win/TestRunnerWin.cpp | 4 | ||||
-rw-r--r-- | Tools/DumpRenderTree/wx/TestRunnerWx.cpp | 3 |
16 files changed, 72 insertions, 57 deletions
diff --git a/Tools/DumpRenderTree/TestRunner.cpp b/Tools/DumpRenderTree/TestRunner.cpp index 1d00c50a3..9f7a7c1be 100644 --- a/Tools/DumpRenderTree/TestRunner.cpp +++ b/Tools/DumpRenderTree/TestRunner.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. + * Copyright (C) 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserved. * Copyright (C) 2010 Joone Hur <joone@kldp.org> * * Redistribution and use in source and binary forms, with or without @@ -1095,17 +1095,16 @@ static JSValueRef setMockGeolocationPositionCallback(JSContextRef context, JSObj return JSValueMakeUndefined(context); } -static JSValueRef setMockGeolocationErrorCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) +static JSValueRef setMockGeolocationPositionUnavailableErrorCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) { - if (argumentCount < 2) + if (argumentCount != 1) return JSValueMakeUndefined(context); - int code = JSValueToNumber(context, arguments[0], NULL); - JSRetainPtr<JSStringRef> message(Adopt, JSValueToStringCopy(context, arguments[1], exception)); + JSRetainPtr<JSStringRef> message(Adopt, JSValueToStringCopy(context, arguments[0], exception)); ASSERT(!*exception); TestRunner* controller = reinterpret_cast<TestRunner*>(JSObjectGetPrivate(thisObject)); - controller->setMockGeolocationError(code, message.get()); + controller->setMockGeolocationPositionUnavailableError(message.get()); return JSValueMakeUndefined(context); } @@ -2266,7 +2265,7 @@ JSStaticFunction* TestRunner::staticFunctions() { "setMainFrameIsFirstResponder", setMainFrameIsFirstResponderCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, { "setMinimumTimerInterval", setMinimumTimerIntervalCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, { "setMockDeviceOrientation", setMockDeviceOrientationCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, - { "setMockGeolocationError", setMockGeolocationErrorCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, + { "setMockGeolocationPositionUnavailableError", setMockGeolocationPositionUnavailableErrorCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, { "setMockGeolocationPosition", setMockGeolocationPositionCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, { "addMockSpeechInputResult", addMockSpeechInputResultCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, { "setMockSpeechInputDumpRect", setMockSpeechInputDumpRectCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, diff --git a/Tools/DumpRenderTree/TestRunner.h b/Tools/DumpRenderTree/TestRunner.h index 9bcc95bc9..edd0dfda7 100644 --- a/Tools/DumpRenderTree/TestRunner.h +++ b/Tools/DumpRenderTree/TestRunner.h @@ -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 @@ -100,8 +100,8 @@ public: void setAutomaticLinkDetectionEnabled(bool flag); void setMainFrameIsFirstResponder(bool flag); void setMockDeviceOrientation(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma); - void setMockGeolocationError(int code, JSStringRef message); void setMockGeolocationPosition(double latitude, double longitude, double accuracy); + void setMockGeolocationPositionUnavailableError(JSStringRef message); void addMockSpeechInputResult(JSStringRef result, double confidence, JSStringRef language); void setMockSpeechInputDumpRect(bool flag); void setPersistentUserStyleSheetLocation(JSStringRef path); diff --git a/Tools/DumpRenderTree/blackberry/EventSender.cpp b/Tools/DumpRenderTree/blackberry/EventSender.cpp index 1d5f0fe4d..5c30ea408 100644 --- a/Tools/DumpRenderTree/blackberry/EventSender.cpp +++ b/Tools/DumpRenderTree/blackberry/EventSender.cpp @@ -140,7 +140,11 @@ static JSValueRef keyDownCallback(JSContextRef context, JSObjectRef function, JS charCode = KEYCODE_BACKSPACE; else { charCode = JSStringGetCharactersPtr(character)[0]; - if (WTF::isASCIIUpper(charCode)) + if (0x8 == charCode) + charCode = KEYCODE_BACKSPACE; + else if (0x7F == charCode) + charCode = KEYCODE_DELETE; + else if (WTF::isASCIIUpper(charCode)) needsShiftKeyModifier = true; } JSStringRelease(character); diff --git a/Tools/DumpRenderTree/blackberry/TestRunnerBlackBerry.cpp b/Tools/DumpRenderTree/blackberry/TestRunnerBlackBerry.cpp index 8986900c6..62be5fe18 100644 --- a/Tools/DumpRenderTree/blackberry/TestRunnerBlackBerry.cpp +++ b/Tools/DumpRenderTree/blackberry/TestRunnerBlackBerry.cpp @@ -1,5 +1,6 @@ /* * Copyright (C) 2009, 2010, 2012 Research In Motion Limited. All rights reserved. + * Copyright (C) 2012 Apple Inc. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -449,10 +450,10 @@ void TestRunner::setMockGeolocationPosition(double latitude, double longitude, d DumpRenderTreeSupport::setMockGeolocationPosition(BlackBerry::WebKit::DumpRenderTree::currentInstance()->page(), latitude, longitude, accuracy); } -void TestRunner::setMockGeolocationError(int code, JSStringRef message) +void TestRunner::setMockGeolocationPositionUnavailableError(JSStringRef message) { String messageStr = jsStringRefToWebCoreString(message); - DumpRenderTreeSupport::setMockGeolocationError(BlackBerry::WebKit::DumpRenderTree::currentInstance()->page(), code, messageStr); + DumpRenderTreeSupport::setMockGeolocationPositionUnavailableError(BlackBerry::WebKit::DumpRenderTree::currentInstance()->page(), messageStr); } void TestRunner::showWebInspector() diff --git a/Tools/DumpRenderTree/chromium/DRTTestRunner.cpp b/Tools/DumpRenderTree/chromium/DRTTestRunner.cpp index 0e5a8b31b..f4f3aed22 100644 --- a/Tools/DumpRenderTree/chromium/DRTTestRunner.cpp +++ b/Tools/DumpRenderTree/chromium/DRTTestRunner.cpp @@ -1,6 +1,7 @@ /* * Copyright (C) 2010 Google Inc. All rights reserved. * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org) + * Copyright (C) 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 are @@ -206,7 +207,7 @@ DRTTestRunner::DRTTestRunner(TestShell* shell) bindMethod("setJavaScriptCanAccessClipboard", &DRTTestRunner::setJavaScriptCanAccessClipboard); bindMethod("setMinimumTimerInterval", &DRTTestRunner::setMinimumTimerInterval); bindMethod("setMockDeviceOrientation", &DRTTestRunner::setMockDeviceOrientation); - bindMethod("setMockGeolocationError", &DRTTestRunner::setMockGeolocationError); + bindMethod("setMockGeolocationPositionUnavailableError", &DRTTestRunner::setMockGeolocationPositionUnavailableError); bindMethod("setMockGeolocationPosition", &DRTTestRunner::setMockGeolocationPosition); bindMethod("setPageVisibility", &DRTTestRunner::setPageVisibility); bindMethod("setPluginsEnabled", &DRTTestRunner::setPluginsEnabled); @@ -1816,14 +1817,15 @@ void DRTTestRunner::setMockGeolocationPosition(const CppArgumentList& arguments, windowList[i]->geolocationClientMock()->setPosition(arguments[0].toDouble(), arguments[1].toDouble(), arguments[2].toDouble()); } -void DRTTestRunner::setMockGeolocationError(const CppArgumentList& arguments, CppVariant* result) +void DRTTestRunner::setMockGeolocationPositionUnavailableError(const CppArgumentList& arguments, CppVariant* result) { result->setNull(); - if (arguments.size() < 2 || !arguments[0].isNumber() || !arguments[1].isString()) + if (arguments.size() != 1 || !arguments[0].isString()) return; Vector<WebViewHost*> windowList = m_shell->windowList(); + // FIXME: Benjamin for (size_t i = 0; i < windowList.size(); i++) - windowList[i]->geolocationClientMock()->setError(arguments[0].toInt32(), cppVariantToWebString(arguments[1])); + windowList[i]->geolocationClientMock()->setPositionUnavailableError(cppVariantToWebString(arguments[0])); } void DRTTestRunner::abortModal(const CppArgumentList& arguments, CppVariant* result) diff --git a/Tools/DumpRenderTree/chromium/DRTTestRunner.h b/Tools/DumpRenderTree/chromium/DRTTestRunner.h index b6c907e62..55940acd1 100644 --- a/Tools/DumpRenderTree/chromium/DRTTestRunner.h +++ b/Tools/DumpRenderTree/chromium/DRTTestRunner.h @@ -1,6 +1,7 @@ /* * Copyright (C) 2010 Google Inc. All rights reserved. * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org) + * Copyright (C) 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 are @@ -337,7 +338,7 @@ public: // Geolocation related functions. void setGeolocationPermission(const CppArgumentList&, CppVariant*); void setMockGeolocationPosition(const CppArgumentList&, CppVariant*); - void setMockGeolocationError(const CppArgumentList&, CppVariant*); + void setMockGeolocationPositionUnavailableError(const CppArgumentList&, CppVariant*); // Empty stub method to keep parity with object model exposed by global DRTTestRunner. void abortModal(const CppArgumentList&, CppVariant*); diff --git a/Tools/DumpRenderTree/efl/TestRunnerEfl.cpp b/Tools/DumpRenderTree/efl/TestRunnerEfl.cpp index 2e380c569..9797a3152 100644 --- a/Tools/DumpRenderTree/efl/TestRunnerEfl.cpp +++ b/Tools/DumpRenderTree/efl/TestRunnerEfl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007 Apple Inc. All rights reserved. + * Copyright (C) 2007, 2012 Apple Inc. All rights reserved. * Copyright (C) 2007 Eric Seidel <eric@webkit.org> * Copyright (C) 2008 Nuanti Ltd. * Copyright (C) 2009 Jan Michael Alonzo <jmalonzo@gmail.com> @@ -379,7 +379,7 @@ void TestRunner::setMockGeolocationPosition(double, double, double) notImplemented(); } -void TestRunner::setMockGeolocationError(int, JSStringRef) +void TestRunner::setMockGeolocationPositionUnavailableError(JSStringRef) { // FIXME: Implement for Geolocation layout tests. // See https://bugs.webkit.org/show_bug.cgi?id=28264. diff --git a/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp b/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp index ad27436c2..a6c438399 100644 --- a/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp +++ b/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp @@ -516,6 +516,7 @@ static void resetDefaultsToConsistentValues() DumpRenderTreeSupportGtk::setCSSGridLayoutEnabled(webView, false); DumpRenderTreeSupportGtk::setCSSRegionsEnabled(webView, true); + DumpRenderTreeSupportGtk::setShadowDOMEnabled(true); } static bool useLongRunningServerMode(int argc, char *argv[]) @@ -943,6 +944,11 @@ static gboolean webViewScriptConfirm(WebKitWebView* view, WebKitWebFrame* frame, static void webViewTitleChanged(WebKitWebView* view, WebKitWebFrame* frame, const gchar* title, gpointer data) { + if (gTestRunner->dumpFrameLoadCallbacks() && !done) { + GOwnPtr<char> frameName(getFrameNameSuitableForTestResult(view, frame)); + printf("%s - didReceiveTitle: %s\n", frameName.get(), title ? title : ""); + } + if (gTestRunner->dumpTitleChanges() && !done) printf("TITLE CHANGED: '%s'\n", title ? title : ""); } diff --git a/Tools/DumpRenderTree/gtk/TestRunnerGtk.cpp b/Tools/DumpRenderTree/gtk/TestRunnerGtk.cpp index 0929cadf6..db9628927 100644 --- a/Tools/DumpRenderTree/gtk/TestRunnerGtk.cpp +++ b/Tools/DumpRenderTree/gtk/TestRunnerGtk.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007 Apple Inc. All rights reserved. + * Copyright (C) 2007, 2012 Apple Inc. All rights reserved. * Copyright (C) 2007 Eric Seidel <eric@webkit.org> * Copyright (C) 2008 Nuanti Ltd. * Copyright (C) 2009 Jan Michael Alonzo <jmalonzo@gmail.com> @@ -447,7 +447,7 @@ void TestRunner::setMockGeolocationPosition(double latitude, double longitude, d DumpRenderTreeSupportGtk::setMockGeolocationPosition(view, latitude, longitude, accuracy); } -void TestRunner::setMockGeolocationError(int code, JSStringRef message) +void TestRunner::setMockGeolocationPositionUnavailableError(JSStringRef message) { WebKitWebView* view = WEBKIT_WEB_VIEW(g_slist_nth_data(webViewList, 0)); if (!view) @@ -455,7 +455,7 @@ void TestRunner::setMockGeolocationError(int code, JSStringRef message) ASSERT(view); GOwnPtr<gchar> cMessage(JSStringCopyUTF8CString(message)); - DumpRenderTreeSupportGtk::setMockGeolocationError(view, code, cMessage.get()); + DumpRenderTreeSupportGtk::setMockGeolocationPositionUnavailableError(view, cMessage.get()); } void TestRunner::setGeolocationPermission(bool allow) diff --git a/Tools/DumpRenderTree/mac/MockGeolocationProvider.h b/Tools/DumpRenderTree/mac/MockGeolocationProvider.h index 311d1e918..ba3a842a9 100644 --- a/Tools/DumpRenderTree/mac/MockGeolocationProvider.h +++ b/Tools/DumpRenderTree/mac/MockGeolocationProvider.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Apple Inc. All Rights Reserved. + * Copyright (C) 2010, 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 @@ -28,10 +28,12 @@ #import <WebKit/WebViewPrivate.h> #import <wtf/HashSet.h> +#import <wtf/RetainPtr.h> @interface MockGeolocationProvider : NSObject<WebGeolocationProvider> { - WebGeolocationPosition *_lastPosition; - NSError *_error; + RetainPtr<WebGeolocationPosition> _lastPosition; + BOOL _hasError; + RetainPtr<NSString> _errorMessage; NSTimer *_timer; HashSet<WebView *> _registeredViews; } @@ -39,7 +41,7 @@ + (MockGeolocationProvider *)shared; - (void)setPosition:(WebGeolocationPosition *)position; -- (void)setError:(NSError *)error; +- (void)setPositionUnavailableErrorWithMessage:(NSString *)errorMessage; - (void)stopTimer; diff --git a/Tools/DumpRenderTree/mac/MockGeolocationProvider.mm b/Tools/DumpRenderTree/mac/MockGeolocationProvider.mm index e03cae24a..5156d5186 100644 --- a/Tools/DumpRenderTree/mac/MockGeolocationProvider.mm +++ b/Tools/DumpRenderTree/mac/MockGeolocationProvider.mm @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Apple Inc. All Rights Reserved. + * Copyright (C) 2010, 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 @@ -38,34 +38,33 @@ { ASSERT(_registeredViews.isEmpty()); - [_lastPosition release]; - [_error release]; + _lastPosition.clear(); + _errorMessage.clear(); [super dealloc]; } +- (void)resetError +{ + _hasError = NO; + _errorMessage.clear(); +} + - (void)setPosition:(WebGeolocationPosition *)position { - if (_lastPosition != position) { - [_lastPosition release]; - _lastPosition = [position retain]; - } + _lastPosition = position; - [_error release]; - _error = 0; + [self resetError]; if (!_timer) _timer = [NSTimer scheduledTimerWithTimeInterval:0 target:self selector:@selector(timerFired) userInfo:0 repeats:NO]; } -- (void)setError:(NSError *)error +- (void)setPositionUnavailableErrorWithMessage:(NSString *)errorMessage { - if (_error != error) { - [_error release]; - _error = [error retain]; - } - - [_lastPosition release]; - _lastPosition = 0; + _hasError = YES; + _errorMessage = errorMessage; + + _lastPosition.clear(); if (!_timer) _timer = [NSTimer scheduledTimerWithTimeInterval:0 target:self selector:@selector(timerFired) userInfo:0 repeats:NO]; @@ -86,7 +85,7 @@ - (WebGeolocationPosition *)lastPosition { - return _lastPosition; + return _lastPosition.get(); } - (void)stopTimer @@ -102,10 +101,10 @@ // Expect that views won't be (un)registered while iterating. HashSet<WebView*> views = _registeredViews; for (HashSet<WebView*>::iterator iter = views.begin(); iter != views.end(); ++iter) { - if (_error) - [*iter _geolocationDidFailWithError:_error]; + if (_hasError) + [*iter _geolocationDidFailWithMessage:_errorMessage.get()]; else - [*iter _geolocationDidChangePosition:_lastPosition]; + [*iter _geolocationDidChangePosition:_lastPosition.get()]; } } 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) diff --git a/Tools/DumpRenderTree/qt/TestRunnerQt.cpp b/Tools/DumpRenderTree/qt/TestRunnerQt.cpp index d3503bd1e..9a92013ed 100644 --- a/Tools/DumpRenderTree/qt/TestRunnerQt.cpp +++ b/Tools/DumpRenderTree/qt/TestRunnerQt.cpp @@ -834,11 +834,11 @@ void TestRunner::setGeolocationPermissionCommon(bool allow) m_geolocationPermission = allow; } -void TestRunner::setMockGeolocationError(int code, const QString& message) +void TestRunner::setMockGeolocationPositionUnavailableError(const QString& message) { QList<WebCore::WebPage*> pages = m_drt->getAllPages(); foreach (WebCore::WebPage* page, pages) - DumpRenderTreeSupportQt::setMockGeolocationError(page, code, message); + DumpRenderTreeSupportQt::setMockGeolocationPositionUnavailableError(page, message); } void TestRunner::setMockGeolocationPosition(double latitude, double longitude, double accuracy) diff --git a/Tools/DumpRenderTree/qt/TestRunnerQt.h b/Tools/DumpRenderTree/qt/TestRunnerQt.h index 88a9c6a94..311bcd9de 100644 --- a/Tools/DumpRenderTree/qt/TestRunnerQt.h +++ b/Tools/DumpRenderTree/qt/TestRunnerQt.h @@ -1,6 +1,7 @@ /* * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ + * Copyright (C) 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 @@ -224,7 +225,7 @@ public Q_SLOTS: void setMockDeviceOrientation(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma); - void setMockGeolocationError(int code, const QString& message); + void setMockGeolocationPositionUnavailableError(const QString& message); void setMockGeolocationPosition(double latitude, double longitude, double accuracy); void setGeolocationPermission(bool allow); int numberOfPendingGeolocationPermissionRequests(); diff --git a/Tools/DumpRenderTree/win/TestRunnerWin.cpp b/Tools/DumpRenderTree/win/TestRunnerWin.cpp index d33651b7a..c4400fdcb 100644 --- a/Tools/DumpRenderTree/win/TestRunnerWin.cpp +++ b/Tools/DumpRenderTree/win/TestRunnerWin.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. + * Copyright (C) 2006, 2007, 2008, 2009, 2010, 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 @@ -420,7 +420,7 @@ void TestRunner::setMockGeolocationPosition(double latitude, double longitude, d // See https://bugs.webkit.org/show_bug.cgi?id=28264. } -void TestRunner::setMockGeolocationError(int code, JSStringRef message) +void TestRunner::setMockGeolocationPositionUnavailableError(JSStringRef message) { // FIXME: Implement for Geolocation layout tests. // See https://bugs.webkit.org/show_bug.cgi?id=28264. diff --git a/Tools/DumpRenderTree/wx/TestRunnerWx.cpp b/Tools/DumpRenderTree/wx/TestRunnerWx.cpp index d7a5252c4..e780cfe52 100644 --- a/Tools/DumpRenderTree/wx/TestRunnerWx.cpp +++ b/Tools/DumpRenderTree/wx/TestRunnerWx.cpp @@ -1,5 +1,6 @@ /* * Copyright (C) 2008 Kevin Ollivier <kevino@theolliviers.com> + * Copyright (C) 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 @@ -338,7 +339,7 @@ void TestRunner::setMockGeolocationPosition(double latitude, double longitude, d // See https://bugs.webkit.org/show_bug.cgi?id=28264. } -void TestRunner::setMockGeolocationError(int code, JSStringRef message) +void TestRunner::setMockGeolocationPositionUnavailableError(JSStringRef) { // FIXME: Implement for Geolocation layout tests. // See https://bugs.webkit.org/show_bug.cgi?id=28264. |