• commit-queue@webkit.org's avatar
    [WK2] TestRunner does not support overridePreference with value "0" · 69fd8c41
    commit-queue@webkit.org authored
    Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-09-24
    Reviewed by Alexey Proskuryakov.
    testRunner.overridePreference() was marked as taking a boolean
    in argument in testRunner.idl even though the test cases are
    passing strings to it. The current code works if the test
    case wants to enable a setting and therefore passes "1" string.
    However, if the test wants to disable a setting and passes "0"
    string, the current code also evaluates this to true causing
    certain test cases to fail.
    The argument to testRunner.overridePreference() is now of string
    type and a function has been added to convert the string passed
    by the test to a boolean value.
    * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
    * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
    * WebKitTestRunner/InjectedBundle/TestRunner.h:
    Unskip fast/regions/css-regions-disabled.html test case for
    WebKit2 now that WebKitTestRunner actually supports overriding
    a boolean preference with "0" value (to disable it).
    * platform/efl-wk2/TestExpectations:
    * platform/gtk-wk2/TestExpectations:
    * platform/mac-wk2/Skipped:
    * platform/qt-5.0-wk2/Skipped:
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog 4.19 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.