use rendered videos for tests

This commit is contained in:
j 2012-05-29 12:11:14 +02:00
parent 6a97982fd4
commit 75f7516978

View file

@ -4,12 +4,12 @@
pandora.tests = function() { pandora.tests = function() {
var tests = []; var tests = [];
pandora.api.find({ pandora.api.find({
query: {conditions: [], operator: '&'}, query: {conditions: [{key: 'rendered', value: true, operator: '='}], operator: '&'},
sort: [{key: 'random', operator:'+'}], sort: [{key: 'random', operator:'+'}],
keys: ['id', 'rendered', 'duration'], keys: ['id', 'duration'],
range: [0, 10] range: [0, 10]
}, function(result) { }, function(result) {
var item = result.data.items.filter(function(item) { return item.rendered && item.duration > 300; })[0], var item = result.data.items.filter(function(item) { return item.duration > 300; })[0],
position = 60; position = 60;
pandora.UI.set('videoPoints.' + item.id, { pandora.UI.set('videoPoints.' + item.id, {
annotation: '', annotation: '',