yql.js revision f3cbbe76a570d18ff7962f4009c2b332f2975e61
var template = {
name: 'YQL Test',
setUp : function() {
},
tearDown : function() {
},
test_load: function() {
},
test_query: function() {
var returnedQuery;
Y.YQL('select * from weather.forecast where location=62896', function(r) {
returnedQuery = r;
});
var wait = function() {
};
},
test_https: function() {
var returnedQuery;
Y.YQL('select * from weather.forecast where location=62896', function(r) {
returnedQuery = r;
}, {}, {proto:"https"});
var wait = function() {
};
},
test_failed: function() {
var returnedQuery;
Y.YQL('select * from weatherFOO.forecast where location=62896', function(r) {
returnedQuery = r;
});
var wait = function() {
};
},
test_escaped: function() {
var returnedQuery;
Y.YQL("select * from html where url = \"http://instantwatcher.com/genres/506\" and xpath='//div[@id=\"titles\"]/ul/li/a'", function(r) {
returnedQuery = r;
});
var wait = function() {
};
}
};
});