update test

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906277
This commit is contained in:
Aaron J. Seigo 2009-01-05 20:49:26 +00:00
parent 6a930aea43
commit 2c325585e3

View File

@ -1,7 +1,7 @@
engine = dataEngine("nowplaying");
players = engine.sources;
watchingPlayer = players[0];
controller = engine.serviceForSource(watchingPlayer);
controller = service("nowplaying", watchingPlayer);
plasmoid.dataUpdate = function(a, b)
{
@ -11,7 +11,7 @@ plasmoid.dataUpdate = function(a, b)
plasmoid.stop = function()
{
data = engine.serviceForSource(watchingPlayer).operationDescription("stop");
data = controler.operationDescription("stop");
print(data+controller.name());
for ( var i in data ) {
print(i + ' -> ' + data[i] );
@ -35,4 +35,4 @@ print(controller.operationNames());
stop["clicked()"].connect(plasmoid.stop);
engine.connectSource(watchingPlayer, plasmoid, 500);
engine.connectSource(watchingPlayer, plasmoid, 500);