qt5base-lts/tests/auto/gui/text
Alexey Chernov 2d5d6c8fbc Color transparency support in html import/export
Export of color transparency component is added for cases where color
is exported to html. New static function colorValue() is added to
prepare CSS string representation of QColor. When the color is opaque,
it falls down to QColor::name() method which was used previously,
otherwise it returns 'rgba()' CSS statement or 'transparent' keyword in
case transparency is 0.
6-digit precision is used for alpha value as it's maximum which can be
processed properly by Gecko and Webkit engines
(http://lists.w3.org/Archives/Public/www-style/2009Dec/0295.html).

Import part for rgba() statement was also added to QCssParser. It
supports rgba() color values as stated in CSS Color Module Level 3
(http://www.w3.org/TR/css3-color/#rgba-color).

Import of undocumented statement 'rgba(int,int,int,int);' was also
added to preserve regression test success and to provide compatibility
with previous code relying on this behaviour.

Test cases added to QCssParser autotest for rgba(int,int,int,float)
statement and to QTextDocument autotest for rgba(int,int,int,float)
and 'transparent' statements for certain 'color', 'background-color'
and 'bgcolor' properties.

Change-Id: Id341c4e800249820d52edef8003e50f9a74d062b
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
2012-07-10 03:24:56 +02:00
..
qabstracttextdocumentlayout Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qcssparser Color transparency support in html import/export 2012-07-10 03:24:56 +02:00
qfont Make qfont autotest build without widgets 2012-06-08 08:31:14 +02:00
qfontdatabase Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qfontmetrics Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qglyphrun Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qrawfont Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qstatictext Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qsyntaxhighlighter Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qtextblock Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qtextcursor Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qtextdocument Color transparency support in html import/export 2012-07-10 03:24:56 +02:00
qtextdocumentfragment Fixed unused function warning in qtextdocumentfragment test. 2012-05-28 01:12:34 +02:00
qtextdocumentlayout Make qtextdocumentlayout autotest build without widgets 2012-06-07 00:37:55 +02:00
qtextformat Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qtextlayout Replace insignificant test with QEXPECT_FAIL. 2012-07-04 02:46:27 +02:00
qtextlist Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qtextobject Make qtextobject autotest build without widgets 2012-06-07 00:37:52 +02:00
qtextodfwriter Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtextpiecetable Clean up some auto tests of gui 2012-03-12 13:14:05 +01:00
qtextscriptengine tst_qtextscriptengine: make it compilable under MSVC2010 2012-06-26 22:38:23 +02:00
qtexttable Make qtexttable autotest build without widgets 2012-06-07 07:26:05 +02:00
qzip QZip: improve reading of zip files, fix some edge cases in writing 2012-06-08 21:49:58 +02:00
text.pro Start running some disabled tests again on Mac OS. 2012-04-23 09:46:22 +02:00