Changeset 117812 in webkit
- Timestamp:
- May 21, 2012, 1:48:22 PM (14 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/API/qt/tests/qmltests/WebView/tst_preferences.qml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r117798 r117812 1 2012-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 1 17 2012-05-21 Allan Sandfeld Jensen <allan.jensen@nokia.com> 2 18 -
trunk/Source/WebKit2/UIProcess/API/qt/tests/qmltests/WebView/tst_preferences.qml
r114129 r117812 196 196 } 197 197 198 function unquote(text) { 199 return text[0] === "'" ? text.slice(1, -1) : text 200 } 201 198 202 function test_standardFontFamilyChanged() { 199 203 var url = Qt.resolvedUrl("../common/font-preferences.html?standard#font-family") … … 204 208 205 209 titleSpy.wait() 206 compare( webView.title, defaultStandardFontFamily)210 compare(unquote(webView.title), defaultStandardFontFamily) 207 211 208 212 webView.experimental.preferences.standardFontFamily = "foobar"
Note:
See TracChangeset
for help on using the changeset viewer.