[whitespace][xs]: correct indentation issues introduced in b3a71e82cc.

This commit is contained in:
Rufus Pollock
2012-02-16 19:51:05 +00:00
parent b9a9e9efd4
commit 57effa02aa
3 changed files with 491 additions and 498 deletions

View File

@@ -12,6 +12,7 @@ this.recline.Model = this.recline.Model || {};
my.Dataset = Backbone.Model.extend({ my.Dataset = Backbone.Model.extend({
__type__: 'Dataset', __type__: 'Dataset',
initialize: function(options) { initialize: function(options) {
console.log(options);
this.currentDocuments = new my.DocumentList(); this.currentDocuments = new my.DocumentList();
this.docCount = null; this.docCount = null;
this.backend = null; this.backend = null;

View File

@@ -1,8 +1,7 @@
(function ($) { (function ($) {
module("Dataset");
module("Dataset"); test('new Dataset', function () {
test('new Dataset', function () {
var datasetId = 'test-dataset'; var datasetId = 'test-dataset';
var metadata = { var metadata = {
title: 'My Test Dataset' title: 'My Test Dataset'
@@ -66,10 +65,10 @@
}); });
}); });
}); });
}); });
// TODO: move to fixtures // TODO: move to fixtures
var webstoreSchema = { var webstoreSchema = {
"count": 3, "count": 3,
"data": [ "data": [
{ {
@@ -104,9 +103,9 @@
"name": "values_url" "name": "values_url"
} }
] ]
}; };
webstoreData = { webstoreData = {
"count": null, "count": null,
"data": [ "data": [
{ {
@@ -142,9 +141,9 @@
"name": "amount" "name": "amount"
} }
] ]
}; };
test('Webstore Backend', function() { test('Webstore Backend', function() {
var dataset = new recline.Model.Dataset(); var dataset = new recline.Model.Dataset();
dataset.backendConfig = { dataset.backendConfig = {
type: 'webstore', type: 'webstore',
@@ -182,10 +181,10 @@
// }); // });
}); });
$.ajax.restore(); $.ajax.restore();
}); });
var dataProxyData = { var dataProxyData = {
"data": [ "data": [
[ [
"1", "1",
@@ -246,9 +245,9 @@
"length": null, "length": null,
"max_results": 10, "max_results": 10,
"url": "http://webstore.thedatahub.org/rufuspollock/gold_prices/data.csv" "url": "http://webstore.thedatahub.org/rufuspollock/gold_prices/data.csv"
}; };
test('DataProxy Backend', function() { test('DataProxy Backend', function() {
// needed only if not stubbing // needed only if not stubbing
// stop(); // stop();
var dataset = new recline.Model.Dataset(); var dataset = new recline.Model.Dataset();
@@ -283,10 +282,10 @@
}); });
}); });
$.ajax.restore(); $.ajax.restore();
}); });
var sample_gdocs_spreadsheet_data = { var sample_gdocs_spreadsheet_data = {
"feed": { "feed": {
"category": [ "category": [
{ {
@@ -450,12 +449,9 @@
}, },
"version": "1.0", "version": "1.0",
"encoding": "UTF-8" "encoding": "UTF-8"
} }
test("GDoc Backend", function() {
test("GDoc Backend", function() {
var dataset = new recline.Model.Dataset(); var dataset = new recline.Model.Dataset();
dataset.backendConfig = { dataset.backendConfig = {
type: 'gdocs', type: 'gdocs',
@@ -469,7 +465,6 @@
var partialUrl = 'spreadsheets.google.com'; var partialUrl = 'spreadsheets.google.com';
if (options.indexOf(partialUrl) != -1) { if (options.indexOf(partialUrl) != -1) {
cb(sample_gdocs_spreadsheet_data) cb(sample_gdocs_spreadsheet_data)
} }
}); });
@@ -486,9 +481,6 @@
}); });
}); });
$.getJSON.restore(); $.getJSON.restore();
});
});
})(this.jQuery); })(this.jQuery);