[Qt][WK2] REGRESSION, fix a failing API test in qmltests
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 May 2012 20:48:22 +0000 (20:48 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 May 2012 20:48:22 +0000 (20:48 +0000)
commitfeafb3184d32c32e6d24fdf1e7b2907ed73886fe
treeff9740491ff2aefe9573c21781a8315aa8e6eac3
parenta1967dbf8ac3b298a23e60e00e8695d306488bc5
[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:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117812 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/qt/tests/qmltests/WebView/tst_preferences.qml