var template = {
name: 'YQL Test',
setUp : function() {
},
tearDown : function() {
},
test_load: function() {
},
test_query: function() {
var test = this;
Y.YQL('select * from weather.forecast where location=62896', function(r) {
});
});
this.wait();
},
test_https: function() {
var test = this;
Y.YQL('select * from weather.forecast where location=62896', function(r) {
});
}, {}, {proto:"https"});
this.wait();
},
test_failed: function() {
var test = this;
Y.YQL('select * from weatherFOO.forecast where location=62896', function(r) {
});
});
this.wait();
},
test_escaped: function() {
var test = this;
Y.YQL("select * from html where url = \"http://instantwatcher.com/genres/506\" and xpath='//div[@id=\"titles\"]/ul/li/a'", function(r) {
});
});
this.wait();
},
test_requery: function() {
var test = this,
counter = 0;
var q = Y.YQL('select * from weather.forecast where location=62896', function(r) {
counter++;
if (counter === 1) {
q.send();
} else {
});
}
});
this.wait();
}
};
});