Ignore:
Timestamp:
01/20/10 22:02:30 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
8fe9bd2
Parents:
926f106
Message:

changed 'Activity' -> 'Track'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/test/mvc/eventtest.cpp

    r926f106 r4693fa6  
    2222    QCOMPARE(event.id(), 500);
    2323    QCOMPARE(event.start(), QDateTime(QDate(2009, 2, 7), QTime(11, 30, 0), Qt::UTC));
    24     QCOMPARE(event.activityId(), 123);
     24    QCOMPARE(event.trackId(), 123);
    2525
    2626    // !!! TODO: typeId and languageId
     
    4343    event.setStart(QDateTime::fromString("Sat Feb 7 11:30:00 2009"));
    4444    event.setDuration(30);
    45     event.setActivityId(40);
     45    event.setTrackId(40);
    4646    event.setType(QString("type"));
    4747    event.setLanguage(QString("language"));
     
    5151    QCOMPARE(event.start(), QDateTime::fromString("Sat Feb 7 11:30:00 2009"));
    5252    QCOMPARE(event.duration(), 30);
    53     QCOMPARE(event.activityId(), 40);
     53    QCOMPARE(event.trackId(), 40);
    5454    QCOMPARE(event.type(), QString("type"));
    5555    QCOMPARE(event.language(), QString("language"));
     
    7171void EventTest::columnsForSelect()
    7272{
    73     QCOMPARE(Event::columnsForSelect(), QString("id,xid_conference,start,duration,xid_activity,type,language"));
     73    QCOMPARE(Event::columnsForSelect(), QString("id,xid_conference,start,duration,xid_track,type,language"));
    7474    QCOMPARE(Event::columnsForSelect("t0"),
    75              QString("t0.id,t0.xid_conference,t0.start,t0.duration,t0.xid_activity,t0.type,t0.language"));
     75             QString("t0.id,t0.xid_conference,t0.start,t0.duration,t0.xid_track,t0.type,t0.language"));
    7676}
    7777
    7878void EventTest::selectQuery()
    7979{
    80     QCOMPARE(Event::selectQuery(), QString("SELECT id,xid_conference,start,duration,xid_activity,type,language FROM event "));
     80    QCOMPARE(Event::selectQuery(), QString("SELECT id,xid_conference,start,duration,xid_track,type,language FROM event "));
    8181}
Note: See TracChangeset for help on using the changeset viewer.