[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/kdelibs-phonon/phonon
From: Matthias Kretz <kretz () kde ! org>
Date: 2006-01-17 22:58:03
Message-ID: 1137538683.749616.22551.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 499500 by mkretz:
adjust tests to latest API changes
M +2 -1 tests/statetest.cpp
M +3 -1 tests/testwidget.cpp
M +2 -1 ui/tests/seekslider.cpp
--- branches/work/kdelibs-phonon/phonon/tests/statetest.cpp #499499:499500
@@ -93,7 +93,8 @@
//c = f->createChannel( "teststates" );
kdDebug() << "loading " << *m_url << endl;
- player = new MediaObject( *m_url, this );
+ player = new MediaObject( this );
+ player->setUrl( *m_url );
connect( player, SIGNAL( stateChanged( Phonon::State, Phonon::State ) ),
SLOT( stateChanged( Phonon::State, Phonon::State ) ) );
connect( player, SIGNAL( finished() ), kapp, SLOT( quit() ) );
--- branches/work/kdelibs-phonon/phonon/tests/testwidget.cpp #499499:499500
@@ -23,6 +23,7 @@
#include <phonon/audiopath.h>
#include <phonon/audiooutput.h>
#include <phonon/videopath.h>
+#include <phonon/backendcapabilities.h>
#include <phonon/ui/videowidget.h>
#include <QSlider>
@@ -170,7 +171,8 @@
void TestWidget::loadFile( const QString & file )
{
delete m_media;
- m_media = new MediaObject( KURL( file ), this );
+ m_media = new MediaObject( this );
+ m_media->setUrl( KURL( file ) );
m_media->setTickInterval( 100 );
m_media->addAudioPath( path );
if( m_media->hasVideo() && BackendCapabilities::self()->supportsVideo() )
--- branches/work/kdelibs-phonon/phonon/ui/tests/seekslider.cpp #499499:499500
@@ -44,7 +44,8 @@
void SeekSliderTest::testErrorMedia()
{
- MediaObject media( "/dev/null", this );
+ MediaObject media( this );
+ media.setUrl( "/dev/null" );
QVERIFY( media.state() == Phonon::ErrorState );
ss->setMediaProducer( &media );
QVERIFY( !qslider->isEnabled() );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic