phoneuis/bubblemanager2/tsrc/unit/ut_bubblestyleoption/ut_bubblestyleoption.cpp
changeset 30 ebdbd102c78a
parent 27 2f8f8080a020
child 32 14cdbae33453
child 36 2eacb6118286
equal deleted inserted replaced
27:2f8f8080a020 30:ebdbd102c78a
     1 /*!
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #include <QtGui>
       
    19 #include <QtTest/QtTest>
       
    20 
       
    21 #include <hbapplication.h>
       
    22 #include <hbmainwindow.h>
       
    23 #include <hbaction.h>
       
    24 
       
    25 #include "bubbletest.h"
       
    26 #include "bubblestyleoption.h"
       
    27 
       
    28 class ut_BubbleStyleOption : public QObject
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 private slots:
       
    33     void initTestCase();
       
    34     void cleanupTestCase();
       
    35 
       
    36     void testStyleOption();
       
    37 
       
    38 private:
       
    39 };
       
    40 
       
    41 void ut_BubbleStyleOption::initTestCase()
       
    42 {
       
    43 }
       
    44 
       
    45 void ut_BubbleStyleOption::cleanupTestCase()
       
    46 {
       
    47 }
       
    48 
       
    49 void ut_BubbleStyleOption::testStyleOption()
       
    50 {
       
    51     BubbleStyleOption option;
       
    52     Q_ASSERT(option.mText1=="");
       
    53     option.mText1="John";
       
    54     BubbleStyleOption option2(option);
       
    55     Q_ASSERT(option2.mText1 == "John");
       
    56 }
       
    57 
       
    58 BUBBLE_TEST_MAIN(ut_BubbleStyleOption)
       
    59 #include "ut_bubblestyleoption.moc"