videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybackdocumentloader/src/testmpxvideoplaybackdocumentloader.cpp
equal
deleted
inserted
replaced
1 /** |
1 /** |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: tester for methods in TestMPXVideoPlaybackDocumentLoader |
14 * Description: tester for methods in TestMPXVideoPlaybackDocumentLoader |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 5 % |
18 // Version : %version: 6 % |
19 |
19 |
20 |
20 |
21 #include <qdebug> |
21 #include <qdebug> |
22 #include <qobject> |
22 #include <qobject> |
23 |
23 |
47 |
47 |
48 char *pass[3]; |
48 char *pass[3]; |
49 pass[0] = argv[0]; |
49 pass[0] = argv[0]; |
50 pass[1] = "-o"; |
50 pass[1] = "-o"; |
51 pass[2] = "c:\\data\\testmpxvideoplaybackdocumentloader.txt"; |
51 pass[2] = "c:\\data\\testmpxvideoplaybackdocumentloader.txt"; |
52 |
52 |
53 int res = QTest::qExec(&tv, 3, pass); |
53 int res = QTest::qExec(&tv, 3, pass); |
54 |
54 |
55 return res; |
55 return res; |
56 } |
56 } |
57 |
57 |
58 |
58 |
59 // --------------------------------------------------------------------------- |
59 // --------------------------------------------------------------------------- |
100 init(); |
100 init(); |
101 |
101 |
102 QObject *object = mLoader->createObject( "", "controlBarLayout" ); |
102 QObject *object = mLoader->createObject( "", "controlBarLayout" ); |
103 QVERIFY( object->objectName() == "controlBarLayout" ); |
103 QVERIFY( object->objectName() == "controlBarLayout" ); |
104 |
104 |
105 object = mLoader->createObject( "", "progressBarLayout" ); |
|
106 QVERIFY( object->objectName() == "progressBarLayout" ); |
|
107 |
|
108 object = mLoader->createObject( "", "fileDetailsLayout" ); |
105 object = mLoader->createObject( "", "fileDetailsLayout" ); |
109 QVERIFY( object->objectName() == "fileDetailsLayout" ); |
106 QVERIFY( object->objectName() == "fileDetailsLayout" ); |
110 |
107 |
111 object = mLoader->createObject( "", "detailsPlaybackWindow" ); |
108 object = mLoader->createObject( "", "detailsPlaybackWindow" ); |
112 QVERIFY( object->objectName() == "detailsPlaybackWindow" ); |
109 QVERIFY( object->objectName() == "detailsPlaybackWindow" ); |