~ubuntu-branches/ubuntu/maverick/qt4-x11/maverick-security

« back to all changes in this revision

Viewing changes to tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-07-06 02:43:04 UTC
  • mfrom: (1.1.32 upstream)
  • Revision ID: james.westby@ubuntu.com-20100706024304-xnrnlzeq0r5nggnb
Tags: 4:4.7.0~beta1+git20100706-0ubuntu1
* New upstream snapshot
  - Refresh kubuntu patches
  - libqt4-help replaces qt4-dev-tools (<< 4:4.7.0~beta1+git20100706)
  - qt4-designer replaces qt4-dev-tools (<< 4:4.7.0~beta1+git20100706)
  - Disable kubuntu_08_add_missing_bold_style.diff
  - Disable kubuntu_09_use_ft_glyph_embolden_to_fake_bold.diff
  - New packages:
    - qt4-qmlviewer, which replaces qt4-dev-tools
    - libqt4-declarative-{particles, gestures, folderlistmodel} which
      replaces libqt4-declarative (<< 4:4.7.0~beta1+git20100706)
* Merge with Debian git (unreleased) remaining changes:
  - Do not package firebird and ibase packages, remove from debian/rules and
    debian/control
  - libqt4-sql-ibase not recommend for libqt4-sql
  - libqtgui4: suggest, not recommend, qt4-qtconfig
  - Build with -no-phonon
  - Do not package libqt4-phonon
  - Do not add libpulse-dev to build-depends
  - Do not package libqt4-webkit transitional package
  - Build with -multimedia for now
    - Keep libqt4-multimedia package in debian/control
    - Keep libqt4-multimedia.{install, symbols, lintian-overrides}
  - libqt4-dev recommends libqt4-webkit
  - Build packages with lzma compression with override_dh_builddeb
  - Rules to remove po dir in clean
  - Add MessagesQt.sh
  - Rules to create Messages.sh link to MessagesQt.sh and rules to create po
    dir and exectue extract-messages.sh in common-install-prehook-impl
  - Rules to remove Messages.sh link
  - Make libqt4-dev depend on libx11-dev
  - In debian/rules Set DEB_HOST_ARCH and
    DEB_HOST_ARCH_OS. Configure with "-arch armv6" option on ARM
  - Add Kubuntu patches:
    - kubuntu_08_add_missing_bold_style.diff
    - kubuntu_09_use_ft_glyph_embolden_to_fake_bold.diff
    - kubuntu_10_ibus_input_method.diff
    - kubuntu_12_fix_stack_protector.diff
    - kubuntu_14_qtdemos_compile_failure.diff
    - kubuntu_15_appmenu.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
#include <QtCore/qfile.h>
51
51
#include <QtGui/qpainter.h>
52
52
 
 
53
#ifdef Q_OS_SYMBIAN
 
54
// In Symbian OS test data is located in applications private dir
 
55
#define SRCDIR "."
 
56
#endif
 
57
 
53
58
class tst_qdeclarativewebview : public QObject
54
59
{
55
60
    Q_OBJECT
151
156
    QCOMPARE(qvariant_cast<QPixmap>(wv->property("icon")),QPixmap(SRCDIR "/data/basic.png"));
152
157
    QCOMPARE(wv->property("statusText").toString(),QString("status here"));
153
158
    QCOMPARE(strippedHtml(fileContents(SRCDIR "/data/basic.html")), strippedHtml(wv->property("html").toString()));
154
 
    QCOMPARE(wv->property("width").toDouble(), 123.0);
155
159
    QCOMPARE(wv->property("preferredWidth").toInt(), 0);
156
160
    QCOMPARE(wv->property("preferredHeight").toInt(), 0);
157
 
    QCOMPARE(wv->property("zoomFactor").toDouble(), 1.0);
158
161
    QCOMPARE(wv->property("url").toUrl(), QUrl::fromLocalFile(SRCDIR "/data/basic.html"));
159
162
    QCOMPARE(wv->property("status").toInt(), 1 /*QDeclarativeWebView::Ready*/);
160
163
    QVERIFY(qvariant_cast<QAction*>(wv->property("reload")));
253
256
        QCOMPARE(qvariant_cast<QPixmap>(wv->property("icon")),QPixmap(SRCDIR "/data/basic.png"));
254
257
        QCOMPARE(wv->property("statusText").toString(),QString("status here"));
255
258
        QCOMPARE(strippedHtml(fileContents(SRCDIR "/data/basic.html")), strippedHtml(wv->property("html").toString()));
256
 
        QCOMPARE(wv->property("width").toDouble(), 123.0);
257
259
        QCOMPARE(wv->property("preferredWidth").toDouble(), 0.0);
258
 
        QCOMPARE(wv->property("zoomFactor").toDouble(), 1.0);
259
260
        QCOMPARE(wv->property("url").toUrl(), QUrl::fromLocalFile(SRCDIR "/data/basic.html"));
260
261
        QCOMPARE(wv->property("status").toInt(), 1 /*QDeclarativeWebView::Ready*/);
261
262
        QVERIFY(qvariant_cast<QAction*>(wv->property("reload")));