Merge lp:~zsombi/ubuntu-ui-toolkit/native-fontutils into lp:ubuntu-ui-toolkit
- native-fontutils
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Florian Boucault |
Approved revision: | 500 |
Merged at revision: | 502 |
Proposed branch: | lp:~zsombi/ubuntu-ui-toolkit/native-fontutils |
Merge into: | lp:ubuntu-ui-toolkit |
Diff against target: |
333 lines (+203/-37) 9 files modified
modules/Ubuntu/Components/Label.qml (+0/-1) modules/Ubuntu/Components/TextField.qml (+0/-1) modules/Ubuntu/Components/fontUtils.js (+0/-31) modules/Ubuntu/Components/plugin/plugin.cpp (+8/-1) modules/Ubuntu/Components/plugin/plugin.pro (+4/-2) modules/Ubuntu/Components/plugin/ucfontutils.cpp (+99/-0) modules/Ubuntu/Components/plugin/ucfontutils.h (+40/-0) modules/Ubuntu/Components/qmldir (+0/-1) tests/unit/tst_components/tst_fontutils.qml (+52/-0) |
To merge this branch: | bzr merge lp:~zsombi/ubuntu-ui-toolkit/native-fontutils |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Approve | |
Florian Boucault (community) | Needs Fixing | ||
Review via email: mp+164682@code.launchpad.net |
Commit message
[theming] FontUtils converted from stateful JS library to native module due to its dependency to "units" context property.
Description of the change
PS Jenkins bot (ps-jenkins) wrote : | # |
Florian Boucault (fboucault) wrote : | # |
In ucfontutils.h:
* unnecessary includes:
#include <QtQml/QQmlEngine>
#include <QtQml/QJSEngine>
* copyright year should be 2013
Florian Boucault (fboucault) wrote : | # |
In ucfontutils.cpp:
* unnecessary includes:
#include <QtCore/QMetaEnum>
#include <QtQml/QQmlInfo>
* copyright year should be 2013
* documentation generation fails; also I wonder how to document a context property
- 499. By Zsombor Egri
-
comments applied, more documentation added
- 500. By Zsombor Egri
-
documentation update
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:499
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:500
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Preview Diff
1 | === modified file 'modules/Ubuntu/Components/Label.qml' | |||
2 | --- modules/Ubuntu/Components/Label.qml 2013-04-11 18:00:34 +0000 | |||
3 | +++ modules/Ubuntu/Components/Label.qml 2013-05-20 12:15:41 +0000 | |||
4 | @@ -15,7 +15,6 @@ | |||
5 | 15 | */ | 15 | */ |
6 | 16 | 16 | ||
7 | 17 | import QtQuick 2.0 | 17 | import QtQuick 2.0 |
8 | 18 | import "fontUtils.js" as FontUtils | ||
9 | 19 | // FIXME: When a module contains QML, C++ and JavaScript elements exported, | 18 | // FIXME: When a module contains QML, C++ and JavaScript elements exported, |
10 | 20 | // we need to use named imports otherwise namespace collision is reported | 19 | // we need to use named imports otherwise namespace collision is reported |
11 | 21 | // by the QML engine. As workaround, we use Theming named import. | 20 | // by the QML engine. As workaround, we use Theming named import. |
12 | 22 | 21 | ||
13 | === modified file 'modules/Ubuntu/Components/TextField.qml' | |||
14 | --- modules/Ubuntu/Components/TextField.qml 2013-05-19 19:23:40 +0000 | |||
15 | +++ modules/Ubuntu/Components/TextField.qml 2013-05-20 12:15:41 +0000 | |||
16 | @@ -15,7 +15,6 @@ | |||
17 | 15 | */ | 15 | */ |
18 | 16 | 16 | ||
19 | 17 | import QtQuick 2.0 | 17 | import QtQuick 2.0 |
20 | 18 | import "fontUtils.js" as FontUtils | ||
21 | 19 | // FIXME: When a module contains QML, C++ and JavaScript elements exported, | 18 | // FIXME: When a module contains QML, C++ and JavaScript elements exported, |
22 | 20 | // we need to use named imports otherwise namespace collision is reported | 19 | // we need to use named imports otherwise namespace collision is reported |
23 | 21 | // by the QML engine. As workaround, we use Theming named import. | 20 | // by the QML engine. As workaround, we use Theming named import. |
24 | 22 | 21 | ||
25 | === removed file 'modules/Ubuntu/Components/fontUtils.js' | |||
26 | --- modules/Ubuntu/Components/fontUtils.js 2012-11-01 11:01:28 +0000 | |||
27 | +++ modules/Ubuntu/Components/fontUtils.js 1970-01-01 00:00:00 +0000 | |||
28 | @@ -1,31 +0,0 @@ | |||
29 | 1 | /* | ||
30 | 2 | * Copyright 2012 Canonical Ltd. | ||
31 | 3 | * | ||
32 | 4 | * This program is free software; you can redistribute it and/or modify | ||
33 | 5 | * it under the terms of the GNU Lesser General Public License as published by | ||
34 | 6 | * the Free Software Foundation; version 3. | ||
35 | 7 | * | ||
36 | 8 | * This program is distributed in the hope that it will be useful, | ||
37 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
38 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
39 | 11 | * GNU Lesser General Public License for more details. | ||
40 | 12 | * | ||
41 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
42 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
43 | 15 | */ | ||
44 | 16 | |||
45 | 17 | function sizeToPixels(size) { | ||
46 | 18 | var baseSize = units.dp(14) | ||
47 | 19 | return Math.round(modularScale(size) * baseSize) | ||
48 | 20 | } | ||
49 | 21 | |||
50 | 22 | function modularScale(size) { | ||
51 | 23 | switch (size) { | ||
52 | 24 | case "xx-small": return 0.606 | ||
53 | 25 | case "x-small": return 0.707 | ||
54 | 26 | case "small": return 0.857 | ||
55 | 27 | case "medium": return 1.0 | ||
56 | 28 | case "large": return 1.414 | ||
57 | 29 | case "x-large": return 2.423 | ||
58 | 30 | } | ||
59 | 31 | } | ||
60 | 32 | 0 | ||
61 | === modified file 'modules/Ubuntu/Components/plugin/plugin.cpp' | |||
62 | --- modules/Ubuntu/Components/plugin/plugin.cpp 2013-05-09 19:04:28 +0000 | |||
63 | +++ modules/Ubuntu/Components/plugin/plugin.cpp 2013-05-20 12:15:41 +0000 | |||
64 | @@ -41,6 +41,7 @@ | |||
65 | 41 | #include "bottombarvisibilitycommunicator.h" | 41 | #include "bottombarvisibilitycommunicator.h" |
66 | 42 | #include "ucstyle.h" | 42 | #include "ucstyle.h" |
67 | 43 | #include "ucubuntuanimation.h" | 43 | #include "ucubuntuanimation.h" |
68 | 44 | #include "ucfontutils.h" | ||
69 | 44 | 45 | ||
70 | 45 | #include <sys/types.h> | 46 | #include <sys/types.h> |
71 | 46 | #include <unistd.h> | 47 | #include <unistd.h> |
72 | @@ -96,12 +97,18 @@ | |||
73 | 96 | QObject::connect(&UCUnits::instance(), SIGNAL(gridUnitChanged()), | 97 | QObject::connect(&UCUnits::instance(), SIGNAL(gridUnitChanged()), |
74 | 97 | &unitsChangeListener, SLOT(updateContextProperty())); | 98 | &unitsChangeListener, SLOT(updateContextProperty())); |
75 | 98 | 99 | ||
76 | 100 | // register FontUtils | ||
77 | 101 | context->setContextProperty("FontUtils", &UCFontUtils::instance()); | ||
78 | 102 | static ContextPropertyChangeListener fontUtilsListener(context, "FontUtils"); | ||
79 | 103 | QObject::connect(&UCUnits::instance(), SIGNAL(gridUnitChanged()), | ||
80 | 104 | &fontUtilsListener, SLOT(updateContextProperty())); | ||
81 | 105 | |||
82 | 99 | context->setContextProperty("bottomBarVisibilityCommunicator", &BottomBarVisibilityCommunicator::instance()); | 106 | context->setContextProperty("bottomBarVisibilityCommunicator", &BottomBarVisibilityCommunicator::instance()); |
83 | 100 | 107 | ||
84 | 101 | engine->addImageProvider(QLatin1String("scaling"), new UCScalingImageProvider); | 108 | engine->addImageProvider(QLatin1String("scaling"), new UCScalingImageProvider); |
85 | 102 | 109 | ||
86 | 103 | // register gicon provider | 110 | // register gicon provider |
88 | 104 | engine->addImageProvider(QLatin1String("gicon"), new GIconProvider); | 111 | engine->addImageProvider(QLatin1String("gicon"), new GIconProvider); |
89 | 105 | 112 | ||
90 | 106 | // Necessary for Screen.orientation (from import QtQuick.Window 2.0) to work | 113 | // Necessary for Screen.orientation (from import QtQuick.Window 2.0) to work |
91 | 107 | QGuiApplication::primaryScreen()->setOrientationUpdateMask( | 114 | QGuiApplication::primaryScreen()->setOrientationUpdateMask( |
92 | 108 | 115 | ||
93 | === modified file 'modules/Ubuntu/Components/plugin/plugin.pro' | |||
94 | --- modules/Ubuntu/Components/plugin/plugin.pro 2013-05-09 19:04:28 +0000 | |||
95 | +++ modules/Ubuntu/Components/plugin/plugin.pro 2013-05-20 12:15:41 +0000 | |||
96 | @@ -44,7 +44,8 @@ | |||
97 | 44 | qquickclipboard_p.h \ | 44 | qquickclipboard_p.h \ |
98 | 45 | selector_p.h \ | 45 | selector_p.h \ |
99 | 46 | ucstyle.h \ | 46 | ucstyle.h \ |
101 | 47 | ucubuntuanimation.h | 47 | ucubuntuanimation.h \ |
102 | 48 | ucfontutils.h | ||
103 | 48 | 49 | ||
104 | 49 | SOURCES += plugin.cpp \ | 50 | SOURCES += plugin.cpp \ |
105 | 50 | themeengine.cpp \ | 51 | themeengine.cpp \ |
106 | @@ -66,7 +67,8 @@ | |||
107 | 66 | qquickmimedata.cpp \ | 67 | qquickmimedata.cpp \ |
108 | 67 | selector.cpp \ | 68 | selector.cpp \ |
109 | 68 | ucstyle.cpp \ | 69 | ucstyle.cpp \ |
111 | 69 | ucubuntuanimation.cpp | 70 | ucubuntuanimation.cpp \ |
112 | 71 | ucfontutils.cpp | ||
113 | 70 | 72 | ||
114 | 71 | # deployment rules for the plugin | 73 | # deployment rules for the plugin |
115 | 72 | installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /) | 74 | installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /) |
116 | 73 | 75 | ||
117 | === added file 'modules/Ubuntu/Components/plugin/ucfontutils.cpp' | |||
118 | --- modules/Ubuntu/Components/plugin/ucfontutils.cpp 1970-01-01 00:00:00 +0000 | |||
119 | +++ modules/Ubuntu/Components/plugin/ucfontutils.cpp 2013-05-20 12:15:41 +0000 | |||
120 | @@ -0,0 +1,99 @@ | |||
121 | 1 | /* | ||
122 | 2 | * Copyright 2013 Canonical Ltd. | ||
123 | 3 | * | ||
124 | 4 | * This program is free software; you can redistribute it and/or modify | ||
125 | 5 | * it under the terms of the GNU Lesser General Public License as published by | ||
126 | 6 | * the Free Software Foundation; version 3. | ||
127 | 7 | * | ||
128 | 8 | * This program is distributed in the hope that it will be useful, | ||
129 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
130 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
131 | 11 | * GNU Lesser General Public License for more details. | ||
132 | 12 | * | ||
133 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
134 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
135 | 15 | * | ||
136 | 16 | */ | ||
137 | 17 | |||
138 | 18 | #include "ucfontutils.h" | ||
139 | 19 | #include "ucunits.h" | ||
140 | 20 | |||
141 | 21 | /*! | ||
142 | 22 | * \qmltype FontUtils | ||
143 | 23 | * \instantiates UCFontUtils | ||
144 | 24 | * \inqmlmodule Ubuntu.Components 0.1 | ||
145 | 25 | * \ingroup ubuntu | ||
146 | 26 | * \brief FontUtils is a \l {http://qt-project.org/doc/qt-5.0/qtqml/qqmlcontext.html#details} {context property}, | ||
147 | 27 | * which provides utility functions for font manipulations. | ||
148 | 28 | * | ||
149 | 29 | * FontUtils cannot be instantiated and it is already available as a context | ||
150 | 30 | * property, i.e. 'FontUtils' is an instance that can be used from anywhere in | ||
151 | 31 | * the code. | ||
152 | 32 | * | ||
153 | 33 | * Example of a Label implementation which uses the default base scale for the font | ||
154 | 34 | * size: | ||
155 | 35 | * \qml | ||
156 | 36 | * import QtQuick 2.0 | ||
157 | 37 | * import Ubuntu.Components 0.1 | ||
158 | 38 | * | ||
159 | 39 | * Text { | ||
160 | 40 | * property string fontSize: "medium" | ||
161 | 41 | * font.pixelSize: FontUtils.sizeToPixels(fontSize) | ||
162 | 42 | * } | ||
163 | 43 | * \endqml | ||
164 | 44 | * | ||
165 | 45 | * Another example of a custom text input component exposing a fontSize property and a base | ||
166 | 46 | * font unit size to scale its font: | ||
167 | 47 | * \qml | ||
168 | 48 | * import QtQuick 2.0 | ||
169 | 49 | * import Ubuntu.Components 0.1 | ||
170 | 50 | * | ||
171 | 51 | * TextInput { | ||
172 | 52 | * property string fontSize: "small" | ||
173 | 53 | * property int baseFontUnits: units.dp(20) | ||
174 | 54 | * font.pixelSize: FontUtils.modularScale(fontSize) * units.dp(baseFontUnits) | ||
175 | 55 | * } | ||
176 | 56 | * \endqml | ||
177 | 57 | * | ||
178 | 58 | */ | ||
179 | 59 | |||
180 | 60 | /*! | ||
181 | 61 | * \qmlmethod real FontUtils::sizeToPixels(string size) | ||
182 | 62 | * The function calculates the pixel size of a given scale. The size scale can be | ||
183 | 63 | * one of the strings specified at modularScale function. On failure returns 0. | ||
184 | 64 | */ | ||
185 | 65 | qreal UCFontUtils::sizeToPixels(const QString &size) | ||
186 | 66 | { | ||
187 | 67 | return modularScale(size) * UCUnits::instance().dp(14); | ||
188 | 68 | } | ||
189 | 69 | |||
190 | 70 | /*! | ||
191 | 71 | * \qmlmethod real FontUtils::modularScale(string size) | ||
192 | 72 | * The function returns the number interpretation of a given font scale. The scale | ||
193 | 73 | * can have one of the following values: | ||
194 | 74 | * \list | ||
195 | 75 | * \li \b{xx-small} | ||
196 | 76 | * \li \b{x-small} | ||
197 | 77 | * \li \b{small} | ||
198 | 78 | * \li \b{medium} | ||
199 | 79 | * \li \b{large} | ||
200 | 80 | * \li \b{x-large} | ||
201 | 81 | * \endlist | ||
202 | 82 | */ | ||
203 | 83 | qreal UCFontUtils::modularScale(const QString &size) | ||
204 | 84 | { | ||
205 | 85 | if (size == "xx-small") { | ||
206 | 86 | return 0.606; | ||
207 | 87 | } else if (size == "x-small") { | ||
208 | 88 | return 0.707; | ||
209 | 89 | } else if (size == "small") { | ||
210 | 90 | return 0.857; | ||
211 | 91 | } else if (size == "medium") { | ||
212 | 92 | return 1.0; | ||
213 | 93 | } else if (size == "large") { | ||
214 | 94 | return 1.414; | ||
215 | 95 | } else if (size == "x-large") { | ||
216 | 96 | return 2.423; | ||
217 | 97 | } | ||
218 | 98 | return 0.0; | ||
219 | 99 | } | ||
220 | 0 | 100 | ||
221 | === added file 'modules/Ubuntu/Components/plugin/ucfontutils.h' | |||
222 | --- modules/Ubuntu/Components/plugin/ucfontutils.h 1970-01-01 00:00:00 +0000 | |||
223 | +++ modules/Ubuntu/Components/plugin/ucfontutils.h 2013-05-20 12:15:41 +0000 | |||
224 | @@ -0,0 +1,40 @@ | |||
225 | 1 | /* | ||
226 | 2 | * Copyright 2013 Canonical Ltd. | ||
227 | 3 | * | ||
228 | 4 | * This program is free software; you can redistribute it and/or modify | ||
229 | 5 | * it under the terms of the GNU Lesser General Public License as published by | ||
230 | 6 | * the Free Software Foundation; version 3. | ||
231 | 7 | * | ||
232 | 8 | * This program is distributed in the hope that it will be useful, | ||
233 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
234 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
235 | 11 | * GNU Lesser General Public License for more details. | ||
236 | 12 | * | ||
237 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
238 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
239 | 15 | * | ||
240 | 16 | */ | ||
241 | 17 | |||
242 | 18 | #ifndef UCFONTUTILS_H | ||
243 | 19 | #define UCFONTUTILS_H | ||
244 | 20 | |||
245 | 21 | #include <QtCore/QObject> | ||
246 | 22 | |||
247 | 23 | class UCFontUtils : public QObject | ||
248 | 24 | { | ||
249 | 25 | Q_OBJECT | ||
250 | 26 | public: | ||
251 | 27 | |||
252 | 28 | static UCFontUtils& instance() | ||
253 | 29 | { | ||
254 | 30 | static UCFontUtils instance; | ||
255 | 31 | return instance; | ||
256 | 32 | } | ||
257 | 33 | |||
258 | 34 | explicit UCFontUtils(QObject *parent = 0) : QObject(parent) {} | ||
259 | 35 | |||
260 | 36 | Q_INVOKABLE qreal sizeToPixels(const QString &size); | ||
261 | 37 | Q_INVOKABLE qreal modularScale(const QString &size); | ||
262 | 38 | }; | ||
263 | 39 | |||
264 | 40 | #endif // UCFONTUTILS_H | ||
265 | 0 | 41 | ||
266 | === modified file 'modules/Ubuntu/Components/qmldir' | |||
267 | --- modules/Ubuntu/Components/qmldir 2013-05-20 09:06:47 +0000 | |||
268 | +++ modules/Ubuntu/Components/qmldir 2013-05-20 12:15:41 +0000 | |||
269 | @@ -33,7 +33,6 @@ | |||
270 | 33 | UbuntuShape 0.1 UbuntuShape.qml | 33 | UbuntuShape 0.1 UbuntuShape.qml |
271 | 34 | Icon 0.1 Icon.qml | 34 | Icon 0.1 Icon.qml |
272 | 35 | OrientationHelper 0.1 OrientationHelper.qml | 35 | OrientationHelper 0.1 OrientationHelper.qml |
273 | 36 | FontUtils 0.1 fontUtils.js | ||
274 | 37 | MathUtils 0.1 mathUtils.js | 36 | MathUtils 0.1 mathUtils.js |
275 | 38 | SliderUtils 0.1 sliderUtils.js | 37 | SliderUtils 0.1 sliderUtils.js |
276 | 39 | ScrollbarUtils 0.1 scrollbarUtils.js | 38 | ScrollbarUtils 0.1 scrollbarUtils.js |
277 | 40 | 39 | ||
278 | === added file 'tests/unit/tst_components/tst_fontutils.qml' | |||
279 | --- tests/unit/tst_components/tst_fontutils.qml 1970-01-01 00:00:00 +0000 | |||
280 | +++ tests/unit/tst_components/tst_fontutils.qml 2013-05-20 12:15:41 +0000 | |||
281 | @@ -0,0 +1,52 @@ | |||
282 | 1 | /* | ||
283 | 2 | * Copyright 2012 Canonical Ltd. | ||
284 | 3 | * | ||
285 | 4 | * This program is free software; you can redistribute it and/or modify | ||
286 | 5 | * it under the terms of the GNU Lesser General Public License as published by | ||
287 | 6 | * the Free Software Foundation; version 3. | ||
288 | 7 | * | ||
289 | 8 | * This program is distributed in the hope that it will be useful, | ||
290 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
291 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
292 | 11 | * GNU Lesser General Public License for more details. | ||
293 | 12 | * | ||
294 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
295 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
296 | 15 | */ | ||
297 | 16 | |||
298 | 17 | import QtQuick 2.0 | ||
299 | 18 | import QtTest 1.0 | ||
300 | 19 | import Ubuntu.Components 0.1 | ||
301 | 20 | |||
302 | 21 | TestCase { | ||
303 | 22 | name: "FontUtilsAPI" | ||
304 | 23 | |||
305 | 24 | function test_modularScale() { | ||
306 | 25 | compare(FontUtils.modularScale("xx-small"), 0.606, "xx-small scale"); | ||
307 | 26 | compare(FontUtils.modularScale("x-small"), 0.707, "x-small scale"); | ||
308 | 27 | compare(FontUtils.modularScale("small"), 0.857, "small scale"); | ||
309 | 28 | compare(FontUtils.modularScale("medium"), 1.0, "medium scale"); | ||
310 | 29 | compare(FontUtils.modularScale("large"), 1.414, "large scale"); | ||
311 | 30 | compare(FontUtils.modularScale("x-large"), 2.423, "x-large scale"); | ||
312 | 31 | } | ||
313 | 32 | |||
314 | 33 | function test_modularScale_failures() { | ||
315 | 34 | compare(FontUtils.modularScale("xxsmall"), 0.0, "xxsmall not defined"); | ||
316 | 35 | compare(FontUtils.modularScale("undefined"), 0.0, "undefined scale"); | ||
317 | 36 | } | ||
318 | 37 | |||
319 | 38 | function test_sizeToPixels() { | ||
320 | 39 | compare(FontUtils.sizeToPixels("xx-small"), 0.606 * units.dp(14), "xx-small scale"); | ||
321 | 40 | compare(FontUtils.sizeToPixels("x-small"), 0.707 * units.dp(14), "x-small scale"); | ||
322 | 41 | compare(FontUtils.sizeToPixels("small"), 0.857 * units.dp(14), "small scale"); | ||
323 | 42 | compare(FontUtils.sizeToPixels("medium"), 1.0 * units.dp(14), "medium scale"); | ||
324 | 43 | compare(FontUtils.sizeToPixels("large"), 1.414 * units.dp(14), "large scale"); | ||
325 | 44 | compare(FontUtils.sizeToPixels("x-large"), 2.423 * units.dp(14), "x-large scale"); | ||
326 | 45 | } | ||
327 | 46 | |||
328 | 47 | function test_sizeToPixels_failures() { | ||
329 | 48 | compare(FontUtils.sizeToPixels("xxsmall"), 0.0, "xxsmall not defined"); | ||
330 | 49 | compare(FontUtils.sizeToPixels("undefined"), 0.0, "undefined scale"); | ||
331 | 50 | } | ||
332 | 51 | |||
333 | 52 | } |
PASSED: Continuous integration, rev:498 jenkins. qa.ubuntu. com/job/ ubuntu- ui-toolkit- ci/87/ jenkins. qa.ubuntu. com/job/ ubuntu- ui-toolkit- raring- amd64-ci/ 87 jenkins. qa.ubuntu. com/job/ ubuntu- ui-toolkit- raring- armhf-ci/ 87
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins: 8080/job/ ubuntu- ui-toolkit- ci/87/rebuild
http://