Changeset 49563 in webkit


Ignore:
Timestamp:
Oct 14, 2009 9:02:11 AM (15 years ago)
Author:
eric@webkit.org
Message:

2009-10-14 Shu Chang <Chang.Shu@nokia.com>

Reviewed by Simon Hausmann.

[Qt] Implement support for setPOSIXLocale on Qt.
https://bugs.webkit.org/show_bug.cgi?id=30268

  • DumpRenderTree/qt/DumpRenderTree.cpp: (WebCore::DumpRenderTree::resetToConsistentStateBeforeTesting):
  • DumpRenderTree/qt/LayoutTestControllerQt.cpp: (LayoutTestController::setPOSIXLocale):
  • DumpRenderTree/qt/LayoutTestControllerQt.h:
Location:
trunk/WebKitTools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r49544 r49563  
     12009-10-14  Shu Chang  <Chang.Shu@nokia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Implement support for setPOSIXLocale on Qt.
     6        https://bugs.webkit.org/show_bug.cgi?id=30268
     7 
     8        * DumpRenderTree/qt/DumpRenderTree.cpp:
     9        (WebCore::DumpRenderTree::resetToConsistentStateBeforeTesting):
     10        * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
     11        (LayoutTestController::setPOSIXLocale):
     12        * DumpRenderTree/qt/LayoutTestControllerQt.h:
     13
    1142009-10-13  Stephanie Lewis  <slewis@apple.com>
    215
  • trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTree.cpp

    r49519 r49563  
    291291    QWebSecurityOrigin::resetOriginAccessWhiteLists();
    292292
    293     setlocale(LC_ALL, "");
     293    QLocale qlocale;
     294    QLocale::setDefault(qlocale);
    294295}
    295296
  • trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp

    r49519 r49563  
    225225}
    226226
     227void LayoutTestController::setPOSIXLocale(const QString& locale)
     228{
     229    QLocale qlocale(locale);
     230    QLocale::setDefault(qlocale);
     231}
     232
    227233bool LayoutTestController::pauseAnimationAtTimeOnElementWithId(const QString& animationName,
    228234                                                               double time,
  • trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.h

    r49519 r49563  
    106106    void setPrivateBrowsingEnabled(bool enable);
    107107    void setPopupBlockingEnabled(bool enable);
     108    void setPOSIXLocale(const QString& locale);
    108109
    109110    bool pauseAnimationAtTimeOnElementWithId(const QString& animationName, double time, const QString& elementId);
Note: See TracChangeset for help on using the changeset viewer.