qt5base-lts/tests/auto/corelib
Mitch Curtis 86115848b5 Correctly detect HTML 5 charset attribute in QTextCodec::codecForHtml()
QTextCodec::codecForHtml currently fails to detect the charset for this
HTML:

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1">
    <title>Test</title>
    </head>

This patch makes the detection of charsets more flexible, allowing for
the use of the HTML 5 charset attribute as well more terminator characters
("'", and ">").

I also added a *_data function for the unit tests.

Task-number: QTBUG-5451

Change-Id: I69fe4a04582f0d845cbbe9140a86a950fb7dc861
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Denis Dzyubenko <denis@ddenis.info>
2013-02-12 01:31:26 +01:00
..
animation Merge remote-tracking branch 'origin/stable' into dev 2013-01-22 18:40:13 +01:00
codecs Correctly detect HTML 5 charset attribute in QTextCodec::codecForHtml() 2013-02-12 01:31:26 +01:00
global Add qunsetenv(), next to qputenv() and friends. 2013-02-07 01:22:40 +01:00
io qprocess autotests don't need QtGui 2013-02-09 18:44:41 +01:00
itemmodels Update roleNames in QAbstractProxyModel if sourceModel resets. 2013-01-30 15:17:05 +01:00
json Add toJson() formatting argument to QJsonDocument interface 2013-01-26 03:09:27 +01:00
kernel Add qDegreesToRadians and qRadiansToDegrees math functions 2013-02-05 14:40:14 +01:00
mimetypes Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
plugin Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev 2013-01-23 22:12:54 +01:00
statemachine Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
thread Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
tools Add support for SHA3 to QCryptographicHash. 2013-02-09 15:58:09 +01:00
xml Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00