⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 117812 in webkit


Ignore:
Timestamp:
May 21, 2012, 1:48:22 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt][WK2] REGRESSION, fix a failing API test in qmltests
https://bugs.webkit.org/show_bug.cgi?id=82700

Patch by Marcelo Lira <marcelo.lira@openbossa.org> on 2012-05-21
Reviewed by Alexis Menard.

The value of a CSS font-family property is expected to have single
quotes when white space is present in its name, and no quotes otherwise.
Font family names returned by WebView.experimental.preferences never add quotes.

Since what matter to the test is only the identity of the font, an auxiliar
method to remove single quotes was added.

  • UIProcess/API/qt/tests/qmltests/WebView/tst_preferences.qml:
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r117798 r117812  
     12012-05-21  Marcelo Lira  <marcelo.lira@openbossa.org>
     2
     3        [Qt][WK2] REGRESSION, fix a failing API test in qmltests
     4        https://bugs.webkit.org/show_bug.cgi?id=82700
     5
     6        Reviewed by Alexis Menard.
     7
     8        The value of a CSS font-family property is expected to have single
     9        quotes when white space is present in its name, and no quotes otherwise.
     10        Font family names returned by WebView.experimental.preferences never add quotes.
     11
     12        Since what matter to the test is only the identity of the font, an auxiliar
     13        method to remove single quotes was added.
     14
     15        * UIProcess/API/qt/tests/qmltests/WebView/tst_preferences.qml:
     16
    1172012-05-21  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
    218
  • trunk/Source/WebKit2/UIProcess/API/qt/tests/qmltests/WebView/tst_preferences.qml

    r114129 r117812  
    196196            }
    197197
     198            function unquote(text) {
     199                return text[0] === "'" ? text.slice(1, -1) : text
     200            }
     201
    198202            function test_standardFontFamilyChanged() {
    199203                var url = Qt.resolvedUrl("../common/font-preferences.html?standard#font-family")
     
    204208
    205209                titleSpy.wait()
    206                 compare(webView.title, defaultStandardFontFamily)
     210                compare(unquote(webView.title), defaultStandardFontFamily)
    207211
    208212                webView.experimental.preferences.standardFontFamily = "foobar"
Note: See TracChangeset for help on using the changeset viewer.