You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2014/10/10 21:12:34 UTC

[20/37] goodbye Futon, old friend <3

http://git-wip-us.apache.org/repos/asf/couchdb/blob/cca309f3/share/www/spec/jquery_couch_js_class_methods_spec.js
----------------------------------------------------------------------
diff --git a/share/www/spec/jquery_couch_js_class_methods_spec.js b/share/www/spec/jquery_couch_js_class_methods_spec.js
deleted file mode 100644
index f2df81b..0000000
--- a/share/www/spec/jquery_couch_js_class_methods_spec.js
+++ /dev/null
@@ -1,523 +0,0 @@
-// Licensed under the Apache License, Version 2.0 (the "License"); you may not
-// use this file except in compliance with the License. You may obtain a copy of
-// the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-// License for the specific language governing permissions and limitations under
-// the License.
-
-// Specs for jquery_couch.js lines 48-156 and 415-448
-
-describe 'jQuery couchdb'
-  before
-    stubAlert();
-  end
-  
-  after
-    destubAlert();
-  end
-  
-  describe 'activeTasks'
-    before_each
-      db = $.couch.db("spec_db");
-      db.create();
-    end
-    
-    after_each
-      db.drop();
-    end
-    
-    it 'should return an empty array when there are no active tasks'
-      $.couch.activeTasks({
-        success: function(resp){
-          resp.should.eql []
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should return an active task'
-      // doing a bit of stuff here so compaction has something to do and takes a while
-      var battlestar, civillian;
-      db.saveDoc({"type":"Battlestar", "name":"Galactica"}, {
-        success: function(resp){
-          db.openDoc(resp.id, {
-            success: function(resp2){
-              battlestar = resp2;
-            },
-            error: function(status, error, reason){errorCallback(status, error, reason)}
-          });
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-      battlestar.name = "Pegasus";
-      db.saveDoc(battlestar);
-      
-      db.saveDoc({"type":"Civillian", "name":"Cloud 9"}, {
-        success: function(resp){
-          db.openDoc(resp.id, {
-            success: function(resp2){
-              civillian = resp2;
-            },
-            error: function(status, error, reason){errorCallback(status, error, reason)}
-          });
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-      civillian.name = "Olympic Carrier";
-      db.saveDoc(civillian);
-      db.removeDoc(civillian);
-      
-      db.compact({
-        ajaxStart: function(resp){
-          $.couch.activeTasks({
-            success: function(resp2){
-              resp2[0].type.should.eql "Database Compaction"
-              resp2[0].task.should.eql "spec_db"
-              resp2[0].should.have_prop "status"
-              resp2[0].should.include "pid"
-            },
-            error: function(status, error, reason){errorCallback(status, error, reason)}
-          });
-        }
-      });
-    end
-  end
-  
-  describe 'allDbs'
-    it 'should return an array that includes a created database'
-      temp_db = new CouchDB("temp_spec_db", {"X-Couch-Full-Commit":"false"});
-      temp_db.createDb();
-      $.couch.allDbs({
-        success: function(resp){
-          resp.should.include "temp_spec_db"
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-      temp_db.deleteDb();
-    end
-    
-    it 'should return an array that does not include a database that does not exist'
-      $.couch.allDbs({
-        success: function(resp){
-          resp.should.not.include("not_existing_temp_spec_db");
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-  end
-  
-  describe 'config'
-    it 'should get the config settings'
-      $.couch.config({
-        success: function(resp){
-          resp.httpd.port.should.eql window.location.port
-          resp.stats.samples.should.match /\[.*\]/
-          resp.native_query_servers.should.have_prop "erlang"
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should get a specific config setting'
-      $.couch.config({
-        success: function(resp){
-          parseInt(resp.max_document_size).should.be_a Number
-          resp.delayed_commits.should.be_a String
-          resp.database_dir.should.be_a String
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      }, "couchdb");
-    end
-    
-    it 'should update a config setting'
-      $.couch.config({
-        success: function(resp){
-          resp.should.eql ""
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      }, "test", "colony", "Caprica");
-      
-      $.couch.config({
-        success: function(resp){
-          resp.colony.should.eql "Caprica"
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      }, "test");
-      
-      $.couch.config({}, "test", "colony", null);
-    end
-    
-    it 'should delete a config setting'
-      $.couch.config({}, "test", "colony", "Caprica");
-      
-      $.couch.config({
-        success: function(resp){
-          resp.should.eql "Caprica"
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      }, "test", "colony", null);
-      
-      $.couch.config({
-        success: function(resp){
-          resp.should.eql {}
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      }, "test");
-    end
-  
-    it 'should alert with an error message prefix'
-      $.couch.config("asdf", "asdf", "asdf");
-      alert_msg.should.match /An error occurred retrieving\/updating the server configuration/
-    end
-  end
-  
-  describe 'session'
-    it 'should return information about the session'
-      $.couch.session({
-        success: function(resp){
-          resp.info.should.have_prop 'authentication_db'
-          resp.userCtx.should.include 'name'
-          resp.userCtx.roles.should.be_an Array
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-  end
-  
-  describe 'userDb'
-    it 'should return the userDb'
-      var authentication_db;
-      $.couch.session({
-        success: function(resp){
-          authentication_db = resp.info.authentication_db;
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-      
-      $.couch.userDb(function(resp){
-        resp.name.should.eql authentication_db
-      });
-    end
-    
-    it 'should return a db instance'
-      $.couch.userDb(function(resp){
-        resp.should.respond_to 'allDocs'
-        resp.should.respond_to 'bulkSave'
-      });
-    end
-  end
-  
-  describe 'user_db stuff'
-    before
-      useTestUserDb();
-    end
-  
-    after
-      useOldUserDb();
-    end
-    
-    describe 'signup'
-      it 'should return a saved user'
-        $.couch.signup(
-          {name: "Tom Zarek"}, "secretpass", {
-          success: function(resp){
-            resp.id.should.eql "org.couchdb.user:Tom Zarek"
-            resp.rev.length.should.be_at_least 30
-            resp.ok.should.be_true
-            users_db.deleteDoc({_id : resp.id, _rev : resp.rev})
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-      end
-    
-      it 'should create a userDoc in the user db'
-        $.couch.signup(
-          {name: "Tom Zarek"}, "secretpass", {
-          success: function(resp){
-            var user = users_db.open(resp.id);
-            user.name.should.eql "Tom Zarek"
-            user._id.should.eql "org.couchdb.user:Tom Zarek"
-            user.roles.should.eql []
-            user.password_sha.length.should.be_at_least 30
-            user.password_sha.should.be_a String
-            users_db.deleteDoc({_id : resp.id, _rev : resp.rev})
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-      end
-    
-      it 'should create a userDoc with roles when specified'
-        $.couch.signup(
-          {name: "Tom Zarek", roles: ["vice_president", "activist"]}, "secretpass", {
-          success: function(resp){
-            var user = users_db.open(resp.id);
-            user.roles.should.eql ["vice_president", "activist"]
-            users_db.deleteDoc({_id : resp.id, _rev : resp.rev})
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-      end
-    end
-    
-    describe 'login'
-      before_each
-        user = {};
-        $.couch.signup({name: "Tom Zarek", roles: ["vice_president", "activist"]}, "secretpass", {
-          success: function(resp){
-            user.id  = resp.id;
-            user.rev = resp.rev;
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-      end
-      
-      after_each
-        users_db.deleteDoc({_id : user.id, _rev : user.rev})
-      end
-      
-      it 'should return the logged in user'
-        $.couch.login({
-          name: "Tom Zarek",
-          password: "secretpass",
-          success: function(resp){
-            resp.name.should.eql "Tom Zarek"
-            resp.ok.should.be_true
-            resp.roles.should.eql ["vice_president", "activist"]
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-      end
-      
-      it 'should result in a session for the logged in user'
-        $.couch.login({
-          name: "Tom Zarek",
-          password: "secretpass"
-        });
-        $.couch.session({
-          success: function(resp){
-            resp.info.authentication_db.should.eql "spec_users_db"
-            resp.userCtx.name.should.eql "Tom Zarek"
-            resp.userCtx.roles.should.eql ["vice_president", "activist"]
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-      end
-      
-      it 'should return a 404 when password is wrong'
-        $.couch.login({
-          name: "Tom Zarek",
-          password: "wrongpass",
-          error: function(status, error, reason){
-            status.should.eql 401
-            error.should.eql "unauthorized"
-            reason.should.eql "Name or password is incorrect."
-          },
-          success: function(resp){successCallback(resp)}
-        });
-      end
-      
-      it 'should return a 404 when the user doesnt exist in the users db'
-        $.couch.login({
-          name: "Number Three",
-          password: "secretpass",
-          error: function(status, error, reason){
-            status.should.eql 401
-            error.should.eql "unauthorized"
-            reason.should.eql "Name or password is incorrect."
-          },
-          success: function(resp){successCallback(resp)}
-        });
-      end
-  
-      it 'should alert with an error message prefix'
-        $.couch.login("asdf");
-        alert_msg.should.match /An error occurred logging in/
-      end
-    end
-  
-    describe 'logout'
-      before_each
-        user = {};
-        $.couch.signup({name: "Tom Zarek", roles: ["vice_president", "activist"]}, "secretpass", {
-          success: function(resp){
-            user.id  = resp.id;
-            user.rev = resp.rev;
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-        $.couch.login({name: "Tom Zarek", password: "secretpass"});
-      end
-      
-      after_each
-        users_db.deleteDoc({_id : user.id, _rev : user.rev})
-      end
-      
-      it 'should return ok true'
-        $.couch.logout({
-          success: function(resp){
-            resp.ok.should.be_true
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-      end
-      
-      it 'should result in an empty session'
-        $.couch.logout();
-        $.couch.session({
-          success: function(resp){
-            resp.userCtx.name.should.be_null
-            resp.userCtx.roles.should.not.include ["vice_president"]
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-      end
-    end
-  end
-  
-  describe 'encodeDocId'
-    it 'should return the encoded docID when it is not a design document'
-      $.couch.encodeDocId("viper").should.eql(encodeURIComponent("viper"))
-    end
-    
-    it 'should encode only the name of the design document'
-      $.couch.encodeDocId("_design/raptor").should.eql("_design/" + encodeURIComponent("raptor"))
-    end
-    
-    it 'should also work when the name of the des'
-      $.couch.encodeDocId("_design/battlestar/_view/crew").should.eql("_design/" + encodeURIComponent("battlestar/_view/crew"))
-    end
-  end
-    
-  describe 'info'
-    it 'should return the CouchDB version'
-      $.couch.info({
-        success: function(resp){
-          resp.couchdb.should.eql "Welcome"
-          resp.version.should_match /^\d\d?\.\d\d?\.\d\d?.*/
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-  end
-  
-  describe 'replicate'
-    before_each
-      db = $.couch.db("spec_db");
-      db.create();
-      db2 = $.couch.db("spec_db_2");
-      db2.create();
-      host = window.location.protocol + "//" + window.location.host ;
-    end
-    
-    after_each
-      db.drop();
-      db2.drop();
-    end
-  
-    it 'should return no_changes true when there are no changes between the dbs'
-      $.couch.replicate(host + db.uri, host + db2.uri, {
-        success: function(resp){
-          resp.ok.should.be_true
-          resp.no_changes.should.be_true
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should return the session ID'
-      db.saveDoc({'type':'battlestar', 'name':'galactica'});
-      $.couch.replicate(host + db.uri, host + db2.uri, {
-        success: function(resp){
-          resp.session_id.length.should.be_at_least 30
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should return source_last_seq'
-      db.saveDoc({'type':'battlestar', 'name':'galactica'});
-      db.saveDoc({'type':'battlestar', 'name':'pegasus'});
-      
-      $.couch.replicate(host + db.uri, host + db2.uri, {
-        success: function(resp){
-          resp.source_last_seq.should.eql 2
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should return the replication history'
-      db.saveDoc({'type':'battlestar', 'name':'galactica'});
-      db.saveDoc({'type':'battlestar', 'name':'pegasus'});
-      
-      $.couch.replicate(host + db.uri, host + db2.uri, {
-        success: function(resp){
-          resp.history[0].docs_written.should.eql 2
-          resp.history[0].start_last_seq.should.eql 0
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should pass through replication options'
-      db.saveDoc({'type':'battlestar', 'name':'galactica'});
-      db2.drop();
-      $.couch.replicate(host + db.uri, host + db2.uri, {
-        error: function(status, error, reason){
-          status.should.eql 500
-          reason.should.match /db_not_found/
-        },
-        success: function(resp){successCallback(resp)}
-      });
-      
-      $.couch.replicate(host + db.uri, host + db2.uri, {
-        success: function(resp){
-          resp.ok.should.eql true
-          resp.history[0].docs_written.should.eql 1
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      }, {
-        "create_target":true
-      });
-      
-      db2.info({
-        success: function(resp){
-          resp.db_name.should.eql "spec_db_2"
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should alert with an error message prefix'
-      $.couch.replicate("asdf");
-      alert_msg.should.match /Replication failed/
-    end
-  end
-  
-  describe 'newUUID'
-    it 'should return a new UUID'
-      var new_uuid = $.couch.newUUID(1);
-      new_uuid.should.be_a String
-      new_uuid.should.have_length 32
-    end
-    
-    it 'should fill the uuidCache with the specified number minus 1'
-      // we can't reach the uuidCache from here, so we mock the next request
-      // to test that the next uuid is not coming from the request, but from the cache.
-      $.couch.newUUID(2);
-      mock_request().and_return({'uuids':['a_sample_uuid']})
-      $.couch.newUUID(1).should.not.eql 'a_sample_uuid'
-      $.couch.newUUID(1).should.eql 'a_sample_uuid'
-    end
-    
-    it 'should alert with an error message prefix'
-      $.couch.newUUID("asdf");
-      alert_msg.should.match /Failed to retrieve UUID batch/
-    end
-  end
-end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb/blob/cca309f3/share/www/spec/jquery_couch_js_instance_methods_1_spec.js
----------------------------------------------------------------------
diff --git a/share/www/spec/jquery_couch_js_instance_methods_1_spec.js b/share/www/spec/jquery_couch_js_instance_methods_1_spec.js
deleted file mode 100644
index 8538c85..0000000
--- a/share/www/spec/jquery_couch_js_instance_methods_1_spec.js
+++ /dev/null
@@ -1,202 +0,0 @@
-// Licensed under the Apache License, Version 2.0 (the "License"); you may not
-// use this file except in compliance with the License. You may obtain a copy of
-// the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-// License for the specific language governing permissions and limitations under
-// the License.
-
-// Specs for jquery_couch.js lines 163-209
-
-describe 'jQuery couchdb db'
-  before
-    stubAlert();
-  end
-  
-  after
-    destubAlert();
-  end
-  
-  before_each
-    db = $.couch.db('spec_db');
-  end
-
-  describe 'constructor'
-    it 'should set the name'
-      db.name.should.eql 'spec_db'
-    end
-    
-    it 'should set the uri'
-      db.uri.should.eql '/spec_db/'
-    end
-  end
-  
-  describe 'triggering db functions'
-    before_each
-      db.create();
-    end
-
-    after_each
-      db.drop();
-    end
-    
-    describe 'compact'
-      it 'should return ok true'
-        db.compact({
-          success: function(resp) {
-            resp.ok.should.be_true
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-      end
-    
-      it 'should trigger _compact'
-        db.compact({
-          success: function(resp, obj) {
-            obj.url.should.eql "/spec_db/_compact"
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-      end
-    end
-    
-    describe 'viewCleanup'
-       it 'should return ok true'
-         db.viewCleanup({
-           success: function(resp) {
-             resp.ok.should.be_true
-           },
-           error: function(status, error, reason){errorCallback(status, error, reason)}
-         });
-       end
-   
-       it 'should trigger _view_cleanup'
-         db.viewCleanup({
-           success: function(resp, obj) {
-             obj.url.should.eql "/spec_db/_view_cleanup"
-           },
-           error: function(status, error, reason){errorCallback(status, error, reason)}
-         });
-       end
-     end
-   
-    describe 'compactView'
-      before_each
-        var designDoc = {
-          "views" : {
-            "people" : {
-              "map" : "function(doc) { emit(doc._id, doc); }"
-            }
-          },
-          "_id" : "_design/myview"
-        };
-        db.saveDoc(designDoc);
-        db.saveDoc({"Name" : "Felix Gaeta", "_id" : "123"});
-      end
-      
-      it 'should return ok true'
-        db.compactView("myview", {
-          success: function(resp) {
-            resp.ok.should.be_true
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-      end
-  
-      it 'should trigger _compact_view with the groupname'
-        db.compactView("myview", {
-          success: function(resp, obj) {
-            obj.url.should.eql "/spec_db/_compact/myview"
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-      end
-      
-      it 'should return raise a 404 error when the design name doesnt exist'
-        db.compactView("non_existing_design_name", {
-          error: function(status, error, reason){
-            status.should.eql 404
-            error.should.eql "not_found"
-            reason.should.eql "missing"
-          },
-          success: function(resp){successCallback(resp)}
-        });
-      end
-      
-      it 'should alert with an error message prefix'
-        db.compactView("asdf");
-        alert_msg.should.match /The view could not be compacted/
-      end
-    end
-  end
-   
-  describe 'create'
-    after_each
-      db.drop();
-    end
-  
-    it 'should return ok true'
-      db.create({
-        success: function(resp) {
-          resp.ok.should.be_true
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should result in a created db'
-      db.create();
-      db.create({
-        error: function(status, error, reason){
-          status.should.eql 412
-          error.should.eql "file_exists"
-          reason.should.eql "The database could not be created, the file already exists."
-        },
-        success: function(resp){successCallback(resp)}
-      });
-    end
-    
-    it 'should alert with an error message prefix'
-      db.create();
-      db.create();
-      alert_msg.should.match /The database could not be created/
-    end
-  end
-  
-  describe 'drop'
-    before_each
-      db.create();
-    end
-    
-    it 'should return ok true'
-      db.drop({
-        success: function(resp) {
-          resp.ok.should.be_true
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should result in a deleted db'
-      db.drop();
-      db.drop({
-        error: function(status, error, reason){
-          status.should.eql 404
-          error.should.eql "not_found"
-          reason.should.eql "missing"
-        },
-        success: function(resp){successCallback(resp)}
-      });
-    end
-    
-    it 'should alert with an error message prefix'
-      db.drop();
-      db.drop();
-      alert_msg.should.match /The database could not be deleted/
-    end
-  end
-end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb/blob/cca309f3/share/www/spec/jquery_couch_js_instance_methods_2_spec.js
----------------------------------------------------------------------
diff --git a/share/www/spec/jquery_couch_js_instance_methods_2_spec.js b/share/www/spec/jquery_couch_js_instance_methods_2_spec.js
deleted file mode 100644
index 8f35aff..0000000
--- a/share/www/spec/jquery_couch_js_instance_methods_2_spec.js
+++ /dev/null
@@ -1,433 +0,0 @@
-// Licensed under the Apache License, Version 2.0 (the "License"); you may not
-// use this file except in compliance with the License. You may obtain a copy of
-// the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-// License for the specific language governing permissions and limitations under
-// the License.
-
-// Specs for jquery_couch.js lines 210-299
-
-describe 'jQuery couchdb db'
-  before
-    stubAlert();
-  end
-  
-  after
-    destubAlert();
-  end
-  
-  before_each
-    db = $.couch.db('spec_db');
-    db.create();
-  end
-
-  after_each
-    db.drop();
-  end
-
-  describe 'info'
-    before_each
-      result = {};
-      db.info({
-        success: function(resp) { result = resp; },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should return the name of the database'
-      result.db_name.should.eql "spec_db"
-    end
-    
-    it 'should return the number of documents'
-      result.doc_count.should.eql 0
-    end
-    
-    it 'should return the start time of the db instance'
-      result.instance_start_time.should.have_length 16
-    end
-  end
-  
-  describe 'allDocs'
-    it 'should return no docs when there arent any'
-      db.allDocs({
-        success: function(resp) {
-          resp.total_rows.should.eql 0
-          resp.rows.should.eql []
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    describe 'with docs'
-      before_each
-        db.saveDoc({"Name" : "Felix Gaeta",      "_id" : "123"});
-        db.saveDoc({"Name" : "Samuel T. Anders", "_id" : "456"});
-      end
-    
-      it 'should return all docs'
-        db.allDocs({
-          success: function(resp) {
-            resp.total_rows.should.eql 2
-            resp.rows.should.have_length 2
-            resp.rows[0].id.should.eql "123"
-            resp.rows[0].key.should.eql "123"
-            resp.rows[0].value.rev.length.should.be_at_least 30
-            resp.rows[1].id.should.eql "456"
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-      end
-    
-      it 'should pass through the options'
-        db.allDocs({
-          "startkey": "123",
-          "limit": "1",
-          success: function(resp) {
-            resp.rows.should.have_length 1
-            resp.rows[0].id.should.eql "123"
-          },
-          error: function(status, error, reason){errorCallback(status, error, reason)}
-        });
-      end
-    end
-  end
-  
-  describe 'allDesignDocs'
-    it 'should return nothing when there arent any design docs'
-      db.saveDoc({"Name" : "Felix Gaeta", "_id" : "123"});
-      db.allDesignDocs({
-        success: function(resp) {
-          resp.rows.should.eql []
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should return all design docs'
-      var designDoc = {
-        "views" : {
-          "people" : {
-            "map" : "function(doc) { emit(doc._id, doc); }"
-          }
-        },
-        "_id" : "_design/spec_db"
-      };
-      db.saveDoc(designDoc);
-      db.saveDoc({"Name" : "Felix Gaeta", "_id" : "123"});
-      
-      db.allDesignDocs({
-        success: function(resp) {
-          resp.total_rows.should.eql 2
-          resp.rows.should.have_length 1
-          resp.rows[0].id.should.eql "_design/spec_db"
-          resp.rows[0].key.should.eql "_design/spec_db"
-          resp.rows[0].value.rev.length.should.be_at_least 30
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-  end
-  
-  describe 'allApps'
-    it 'should provide a custom function with appName, appPath and design document when there is an attachment with index.html'
-      var designDoc = {"_id" : "_design/with_attachments"};
-    
-      designDoc._attachments = {
-        "index.html" : {
-          "content_type": "text\/html",
-          // this is "<html><p>Hi, here is index!</p></html>", base64 encoded
-          "data": "PGh0bWw+PHA+SGksIGhlcmUgaXMgaW5kZXghPC9wPjwvaHRtbD4="
-        }
-      };
-      db.saveDoc(designDoc);
-      
-      db.allApps({
-        eachApp: function(appName, appPath, ddoc) {
-          appName.should.eql "with_attachments"
-          appPath.should.eql "/spec_db/_design/with_attachments/index.html"
-          ddoc._id.should.eql "_design/with_attachments"
-          ddoc._attachments["index.html"].content_type.should.eql "text/html"
-          ddoc._attachments["index.html"].length.should.eql "<html><p>Hi, here is index!</p></html>".length
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should provide a custom function with appName, appPath and design document when there is a couchapp with index file'
-      var designDoc = {"_id" : "_design/with_index"};
-      designDoc.couchapp = {
-        "index" : "cylon"
-      };
-      db.saveDoc(designDoc);
-      
-      db.allApps({
-        eachApp: function(appName, appPath, ddoc) {
-          appName.should.eql "with_index"
-          appPath.should.eql "/spec_db/_design/with_index/cylon"
-          ddoc._id.should.eql "_design/with_index"
-          ddoc.couchapp.index.should.eql "cylon"
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should not call the eachApp function when there is neither index.html in _attachments nor a couchapp index file'
-      var designDoc = {"_id" : "_design/nothing"};
-      db.saveDoc(designDoc);
-      
-      var eachApp_called = false;
-      db.allApps({
-        eachApp: function(appName, appPath, ddoc) {
-          eachApp_called = true;
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-      
-      eachApp_called.should.be_false
-    end
-    
-    it 'should alert with an error message prefix'
-      db.allApps();
-      alert_msg.should.match /Please provide an eachApp function for allApps()/
-    end
-  end
-  
-  describe 'openDoc'
-    before_each
-      doc = {"Name" : "Louanne Katraine", "Callsign" : "Kat", "_id" : "123"};
-      db.saveDoc(doc);
-    end
-     
-    it 'should open the document'
-      db.openDoc("123", {
-        success: function(resp){
-          resp.should.eql doc
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should raise a 404 error when there is no document with the given ID'
-      db.openDoc("non_existing", {
-        error: function(status, error, reason){
-          status.should.eql 404
-          error.should.eql "not_found"
-          reason.should.eql "missing"
-        },
-        success: function(resp){successCallback(resp)}
-      });
-    end
-   
-    it 'should pass through the options'
-      doc.Name = "Sasha";
-      db.saveDoc(doc);
-      db.openDoc("123", {
-        revs: true,
-        success: function(resp){
-          resp._revisions.start.should.eql 2
-          resp._revisions.ids.should.have_length 2
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-  
-    it 'should alert with an error message prefix'
-      db.openDoc("asdf");
-      alert_msg.should.match /The document could not be retrieved/
-    end
-  end
-   
-  describe 'saveDoc'
-    before_each
-      doc = {"Name" : "Kara Thrace", "Callsign" : "Starbuck"};
-    end
-     
-    it 'should save the document'
-      db.saveDoc(doc, {
-        success: function(resp, status){
-          status.should.eql 201
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-      
-    it 'should return ok true'
-      db.saveDoc(doc, {
-        success: function(resp, status){
-          resp.ok.should.be_true
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should return ID and revision of the document'
-      db.saveDoc(doc, {
-        success: function(resp, status){
-          resp.id.should.be_a String
-          resp.id.should.have_length 32
-          resp.rev.should.be_a String
-          resp.rev.length.should.be_at_least 30
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should result in a saved document with generated ID'
-      db.saveDoc(doc, {
-        success: function(resp, status){
-          db.openDoc(resp.id, {
-            success: function(resp2){
-              resp2.Name.should.eql "Kara Thrace"
-              resp2.Callsign.should.eql "Starbuck"
-            },
-            error: function(status, error, reason){errorCallback(status, error, reason)}
-          });
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should save the document with the specified ID'
-      doc._id = "123";
-      db.saveDoc(doc, {
-        success: function(resp, status){
-          resp.id.should.eql "123"
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should pass through the options'
-      db.saveDoc(doc, {
-        "batch" : "ok",
-        success: function(resp, status){
-          // when using batch ok, couch sends a 202 status immediately
-          status.should.eql 202
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should alert with an error message prefix'
-      db.saveDoc("asdf");
-      alert_msg.should.match /The document could not be saved/
-    end
-  end
-   
-  describe 'bulkSave'
-    before_each
-      doc  = {"Name" : "Kara Thrace", "Callsign" : "Starbuck"};
-      doc2 = {"Name" : "Karl C. Agathon", "Callsign" : "Helo"};
-      doc3 = {"Name" : "Sharon Valerii", "Callsign" : "Boomer"};
-      docs = [doc, doc2, doc3];
-    end
-    
-    it 'should save all documents'
-      db.bulkSave({"docs": docs});
-      db.allDocs({
-        success: function(resp) {
-          resp.total_rows.should.eql 3
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should result in saved documents'
-      doc3._id = "789";
-      db.bulkSave({"docs": [doc3]});
-      
-      db.openDoc("789", {
-        success: function(resp){
-          resp.Name.should.eql "Sharon Valerii"
-          resp.Callsign.should.eql "Boomer"
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should return ID and revision of the documents'
-      db.bulkSave({"docs": docs},{
-        success: function(resp){
-          resp[0].id.should.be_a String
-          resp[0].id.should.have_length 32
-          resp[0].rev.should.be_a String
-          resp[0].rev.length.should.be_at_least 30
-          resp[1].id.should.be_a String
-          resp[1].id.should.have_length 32
-          resp[1].rev.should.be_a String
-          resp[1].rev.length.should.be_at_least 30
-          resp[2].id.should.be_a String
-          resp[2].id.should.have_length 32
-          resp[2].rev.should.be_a String
-          resp[2].rev.length.should.be_at_least 30
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-      
-    it 'should save the document with specified IDs'
-      doc._id  = "123";
-      doc2._id = "456";
-      docs = [doc, doc2, doc3];
-      
-      db.bulkSave({"docs": docs},{
-        success: function(resp){
-          resp[0].id.should.eql "123"
-          resp[1].id.should.eql "456"
-          resp[2].id.should.have_length 32
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should pass through the options'
-      // a lengthy way to test that a conflict can't be created with the
-      // all_or_nothing option set to false, but can be when it's true.
-    
-      var old_doc = {"Name" : "Louanne Katraine", "Callsign" : "Kat", "_id" : "123"};
-      db.saveDoc(old_doc, {
-        success: function(resp){
-          old_doc._rev = resp.rev;
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-      
-      var new_doc = {"Name" : "Sasha", "Callsign" : "Kat", "_id" : "123"};
-      
-      db.bulkSave({"docs": [new_doc], "all_or_nothing": false}, {
-        success: function(resp){
-          resp[0].id.should.eql "123"
-          resp[0].error.should.eql "conflict"
-          resp[0].reason.should.eql "Document update conflict."
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-      
-      db.bulkSave({"docs": [new_doc], "all_or_nothing": true}, {
-        success: function(resp){
-          resp[0].id.should.eql "123"
-          resp[0].rev.should.not.eql old_doc._rev
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-      
-      db.openDoc("123", {
-        "conflicts": true,
-        success: function(resp){
-          resp._conflicts[0].should.eql old_doc._rev
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-     
-    it 'should alert with an error message prefix'
-      db.bulkSave("asdf");
-      alert_msg.should.match /The documents could not be saved/
-    end
-  end
-end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb/blob/cca309f3/share/www/spec/jquery_couch_js_instance_methods_3_spec.js
----------------------------------------------------------------------
diff --git a/share/www/spec/jquery_couch_js_instance_methods_3_spec.js b/share/www/spec/jquery_couch_js_instance_methods_3_spec.js
deleted file mode 100644
index 5d27d81..0000000
--- a/share/www/spec/jquery_couch_js_instance_methods_3_spec.js
+++ /dev/null
@@ -1,540 +0,0 @@
-// Licensed under the Apache License, Version 2.0 (the "License"); you may not
-// use this file except in compliance with the License. You may obtain a copy of
-// the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-// License for the specific language governing permissions and limitations under
-// the License.
-
-// Specs for jquery_couch.js lines 300-411
-
-describe 'jQuery couchdb db'
-  before
-    stubAlert();
-  end
-  
-  after
-    destubAlert();
-  end
-  
-  before_each
-    db = $.couch.db('spec_db');
-    db.create();
-  end
-  
-  after_each
-    db.drop();
-  end
-
-  describe 'removeDoc'
-    before_each
-      doc = {"Name" : "Louanne Katraine", "Callsign" : "Kat", "_id" : "345"};
-      saved_doc = {};
-      db.saveDoc(doc, {
-        success: function(resp){
-          saved_doc = resp;
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should result in a deleted document'
-      db.removeDoc({_id : "345", _rev : saved_doc.rev}, {
-        success: function(resp){
-          db.openDoc("345", {
-            error: function(status, error, reason){
-              status.should.eql 404
-              error.should.eql "not_found"
-              reason.should.eql "deleted"
-            },
-            success: function(resp){successCallback(resp)}
-          });
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-  
-    it 'should return ok true, the ID and the revision of the deleted document'
-      db.removeDoc({_id : "345", _rev : saved_doc.rev}, {
-        success: function(resp){
-          resp.ok.should.be_true
-          resp.id.should.eql "345"
-          resp.rev.should.be_a String
-          resp.rev.length.should.be_at_least 30
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-      
-    it 'should record the revision in the deleted document'
-      db.removeDoc({_id : "345", _rev : saved_doc.rev}, {
-        success: function(resp){
-          db.openDoc("345", {
-            rev: resp.rev,
-            success: function(resp2){
-              resp2._rev.should.eql resp.rev
-              resp2._id.should.eql resp.id
-              resp2._deleted.should.be_true
-            },
-            error: function(status, error, reason){errorCallback(status, error, reason)}
-          });
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should alert with an error message prefix'
-      db.removeDoc({_id: "asdf"});
-      alert_msg.should.match /The document could not be deleted/
-    end
-  end
-  
-  describe 'bulkRemove'
-    before_each
-      doc  = {"Name" : "Kara Thrace", "Callsign" : "Starbuck", "_id" : "123"};
-      doc2 = {"Name" : "Karl C. Agathon", "Callsign" : "Helo", "_id" : "456"};
-      doc3 = {"Name" : "Sharon Valerii", "Callsign" : "Boomer", "_id" : "789"};
-      docs = [doc, doc2, doc3];
-      
-      db.bulkSave({"docs": docs}, {
-        success: function(resp){
-          for (var i = 0; i < docs.length; i++) {
-            docs[i]._rev = resp[i].rev;
-          }
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should remove all documents specified'
-      db.bulkRemove({"docs": docs});
-      db.allDocs({
-        success: function(resp) {
-          resp.total_rows.should.eql 0
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should not remove documents that should not have been deleted'
-      db.bulkRemove({"docs": [doc3]});
-      db.allDocs({
-        success: function(resp) {
-          resp.total_rows.should.eql 2
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should result in deleted documents'
-      db.bulkRemove({"docs": docs}, {
-        success: function(resp){
-          db.openDoc("123", {
-            error: function(status, error, reason){
-              status.should.eql 404
-              error.should.eql "not_found"
-              reason.should.eql "deleted"
-            },
-            success: function(resp){successCallback(resp)}
-          });
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-  
-    it 'should return the ID and the revision of the deleted documents'
-      db.bulkRemove({"docs": docs}, {
-        success: function(resp){
-          resp[0].id.should.eql "123"
-          resp[0].rev.should.be_a String
-          resp[0].rev.length.should.be_at_least 30
-          resp[1].id.should.eql "456"
-          resp[1].rev.should.be_a String
-          resp[1].rev.length.should.be_at_least 30
-          resp[2].id.should.eql "789"
-          resp[2].rev.should.be_a String
-          resp[2].rev.length.should.be_at_least 30
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-  
-    it 'should record the revision in the deleted documents'
-      db.bulkRemove({"docs": docs}, {
-        success: function(resp){
-          db.openDoc("123", {
-            rev: resp[0].rev,
-            success: function(resp2){
-              resp2._rev.should.eql resp[0].rev
-              resp2._id.should.eql resp[0].id
-              resp2._deleted.should.be_true
-            },
-            error: function(status, error, reason){errorCallback(status, error, reason)}
-          });
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should alert with an error message prefix'
-      db.bulkRemove({docs: ["asdf"]});
-      alert_msg.should.match /The documents could not be deleted/
-    end
-  end
-  
-  describe 'copyDoc'
-    before_each
-      doc = {"Name" : "Sharon Agathon", "Callsign" : "Athena", "_id" : "123"};
-      db.saveDoc(doc);
-    end
-    
-    it 'should result in another document with same data and new id'
-      db.copyDoc("123", {
-        success: function(resp){
-          resp.id.should.eql "456"
-          resp.rev.length.should.be_at_least 30
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      }, {
-        headers: {"Destination":"456"}
-      });
-      
-      db.openDoc("456", {
-        success: function(resp){
-          resp.Name.should.eql "Sharon Agathon"
-          resp.Callsign.should.eql "Athena"
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should throw an error when trying to overwrite a document without providing a revision'
-      doc2 = {"Name" : "Louanne Katraine", "Callsign" : "Kat", "_id" : "456"};
-      db.saveDoc(doc2);
-      
-      db.copyDoc("123", {
-        error: function(status, error, reason){
-          status.should.eql 409
-          error.should.eql "conflict"
-          reason.should.eql "Document update conflict."
-        },
-        success: function(resp){successCallback(resp)}
-      }, {
-        headers: {"Destination":"456"}
-      });
-    end
-    
-    it 'should overwrite a document with the correct revision'
-      doc2 = {"Name" : "Louanne Katraine", "Callsign" : "Kat", "_id" : "456"};
-      var doc2_rev;
-      db.saveDoc(doc2, {
-        success: function(resp){
-          doc2_rev = resp.rev;
-        }
-      });
-      
-      db.copyDoc("123", {
-        success: function(resp){
-          resp.id.should.eql "456"
-          resp.rev.length.should.be_at_least 30
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      }, {
-        headers: {"Destination":"456?rev=" + doc2_rev}
-      });
-      
-      db.openDoc("456", {
-        success: function(resp){
-          resp.Name.should.eql "Sharon Agathon"
-          resp.Callsign.should.eql "Athena"
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should alert with an error message prefix'
-      db.copyDoc("asdf", {}, {});
-      alert_msg.should.match /The document could not be copied/
-    end
-  end
-  
-  describe 'query'
-    before_each
-      db.saveDoc({"Name" : "Cally Tyrol",      "job" : "deckhand", "_id" : "789"});
-      db.saveDoc({"Name" : "Felix Gaeta",      "job" : "officer",  "_id" : "123"});
-      db.saveDoc({"Name" : "Samuel T. Anders", "job" : "pilot",    "_id" : "456"});
-      map_function    = "function(doc) { emit(doc._id, 1); }";
-      reduce_function = "function(key, values, rereduce) { return sum(values); }";
-    end
-    
-    it 'should apply the map function'
-      db.query(map_function, null, null, {
-        success: function(resp){
-          resp.rows.should.have_length 3
-          resp.rows[0].id.should.eql "123"
-          resp.rows[0].key.should.eql "123"
-          resp.rows[0].value.should.eql 1
-          resp.rows[1].id.should.eql "456"
-          resp.rows[1].key.should.eql "456"
-          resp.rows[1].value.should.eql 1
-          resp.rows[2].id.should.eql "789"
-          resp.rows[2].key.should.eql "789"
-          resp.rows[2].value.should.eql 1
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should apply the reduce function'
-      db.query(map_function, reduce_function, null, {
-        success: function(resp){
-          resp.rows.should.have_length 1
-          resp.rows[0].key.should.be_null
-          resp.rows[0].value.should_eql 3
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should pass through the options'
-      db.query(map_function, null, null, {
-        "startkey": "456",
-        success: function(resp){
-          resp.rows.should.have_length 2
-          resp.rows[0].id.should.eql "456"
-          resp.rows[0].key.should.eql "456"
-          resp.rows[0].value.should.eql 1
-          resp.rows[1].id.should.eql "789"
-          resp.rows[1].key.should.eql "789"
-          resp.rows[1].value.should.eql 1
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should pass through the keys'
-      //shouldn't this better work? TODO: implement in jquery.couch.js
-      console.log("shouldn't this better work? TODO: implement in jquery.couch.js")
-      db.query(map_function, null, null, {
-        "keys": ["456", "123"],
-        success: function(resp){
-          resp.rows.should.have_length 2
-          resp.rows[0].id.should.eql "456"
-          resp.rows[0].key.should.eql "456"
-          resp.rows[0].value.should.eql 1
-          resp.rows[1].id.should.eql "123"
-          resp.rows[1].key.should.eql "123"
-          resp.rows[1].value.should.eql 1
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-      
-    it 'should pass through the options and the keys'
-      //shouldn't this better work? TODO: implement in jquery.couch.js
-      console.log("shouldn't this better work? TODO: implement in jquery.couch.js")
-      db.query(map_function, null, null, {
-        "include_docs":"true",
-        "keys": ["456"],
-        success: function(resp){
-          resp.rows.should.have_length 1
-          resp.rows[0].id.should.eql "456"
-          resp.rows[0].key.should.eql "456"
-          resp.rows[0].value.should.eql 1
-          resp.rows[0].doc["job"].should.eql "pilot"
-          resp.rows[0].doc["_rev"].length.should.be_at_least 30
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-      
-    it 'should apply a query in erlang also'
-      // when this test fails, read this: http://wiki.apache.org/couchdb/EnableErlangViews
-      var erlang_map = 'fun({Doc}) -> ' +
-                       'ID = proplists:get_value(<<"_id">>, Doc, null), ' +
-                       'Emit(ID, 1) ' +
-                       'end.';
-      db.query(erlang_map, null, "erlang", {
-        success: function(resp){
-          resp.rows.should.have_length 3
-          resp.rows[0].id.should.eql "123"
-          resp.rows[0].key.should.eql "123"
-          resp.rows[0].value.should.eql 1
-          resp.rows[1].id.should.eql "456"
-          resp.rows[1].key.should.eql "456"
-          resp.rows[1].value.should.eql 1
-          resp.rows[2].id.should.eql "789"
-          resp.rows[2].key.should.eql "789"
-          resp.rows[2].value.should.eql 1
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should alert with an error message prefix'
-      db.query("asdf");
-      alert_msg.should.match /An error occurred querying the database/
-    end
-  end
-  
-  describe 'view'
-    before_each
-      db.saveDoc({"Name" : "Cally Tyrol",      "job" : "deckhand", "_id" : "789"});
-      db.saveDoc({"Name" : "Felix Gaeta",      "job" : "officer",  "_id" : "123"});
-      db.saveDoc({"Name" : "Samuel T. Anders", "job" : "pilot",    "_id" : "456"});
-      view = {
-        "views" : {
-          "people" : {
-            "map" : "function(doc) { emit(doc._id, doc.Name); }"
-          }
-        },
-        "_id" : "_design/spec_db"
-      };
-      db.saveDoc(view);
-    end
-    
-    it 'should apply the view'
-      db.view('spec_db/people', {
-        success: function(resp){
-          resp.rows.should.have_length 3
-          resp.rows[0].id.should.eql "123"
-          resp.rows[0].key.should.eql "123"
-          resp.rows[0].value.should.eql "Felix Gaeta"
-          resp.rows[1].id.should.eql "456"
-          resp.rows[1].key.should.eql "456"
-          resp.rows[1].value.should.eql "Samuel T. Anders"
-          resp.rows[2].id.should.eql "789"
-          resp.rows[2].key.should.eql "789"
-          resp.rows[2].value.should.eql "Cally Tyrol"
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should pass through the options'
-      db.view('spec_db/people', {
-        "skip":"2",
-        success: function(resp){
-          resp.rows.should.have_length 1
-          resp.rows[0].id.should.eql "789"
-          resp.rows[0].key.should.eql "789"
-          resp.rows[0].value.should.eql "Cally Tyrol"
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should pass through the keys'
-      db.view('spec_db/people', {
-        "keys":["456", "123"],
-        success: function(resp){
-          resp.rows.should.have_length 2
-          resp.rows[0].id.should.eql "456"
-          resp.rows[0].key.should.eql "456"
-          resp.rows[0].value.should.eql "Samuel T. Anders"
-          resp.rows[1].id.should.eql "123"
-          resp.rows[1].key.should.eql "123"
-          resp.rows[1].value.should.eql "Felix Gaeta"
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should pass through the options and the keys'
-      db.view('spec_db/people', {
-        "include_docs":"true",
-        "keys":["456"],
-        success: function(resp){
-          resp.rows.should.have_length 1
-          resp.rows[0].id.should.eql "456"
-          resp.rows[0].key.should.eql "456"
-          resp.rows[0].value.should.eql "Samuel T. Anders"
-          resp.rows[0].doc["job"].should.eql "pilot"
-          resp.rows[0].doc["_rev"].length.should.be_at_least 30
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should throw a 404 when the view doesnt exist'
-      db.view('spec_db/non_existing_view', {
-        error: function(status, error, reason){
-          status.should.eql 404
-          error.should.eql "not_found"
-          reason.should.eql "missing_named_view"
-        },
-        success: function(resp){successCallback(resp)}
-      });
-    end
-    
-    it 'should alert with an error message prefix'
-      db.view("asdf");
-      alert_msg.should.match /An error occurred accessing the view/
-    end
-  end
-  
-  describe 'setDbProperty'
-    it 'should return ok true'
-      db.setDbProperty("_revs_limit", 1500, {
-        success: function(resp){
-          resp.ok.should.be_true
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should set a db property'
-      db.setDbProperty("_revs_limit", 1500);
-      db.getDbProperty("_revs_limit", {
-        success: function(resp){
-          resp.should.eql 1500
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-      db.setDbProperty("_revs_limit", 1200);
-      db.getDbProperty("_revs_limit", {
-        success: function(resp){
-          resp.should.eql 1200
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-    
-    it 'should alert with an error message prefix'
-      db.setDbProperty("asdf");
-      alert_msg.should.match /The property could not be updated/
-    end
-  end
-  
-  describe 'getDbProperty'
-    it 'should get a db property'
-      db.setDbProperty("_revs_limit", 1200);
-      db.getDbProperty("_revs_limit", {
-        success: function(resp){
-          resp.should.eql 1200
-        },
-        error: function(status, error, reason){errorCallback(status, error, reason)}
-      });
-    end
-   
-    it 'should throw a 404 when the property doesnt exist'
-      db.getDbProperty("_doesnt_exist", {
-        error: function(status, error, reason){
-          status.should.eql 404
-          error.should.eql "not_found"
-          reason.should.eql "missing"
-        },
-        success: function(resp){successCallback(resp)}
-      });
-    end
-    
-    it 'should alert with an error message prefix'
-      db.getDbProperty("asdf");
-      alert_msg.should.match /The property could not be retrieved/
-    end
-  end
-end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/couchdb/blob/cca309f3/share/www/spec/run.html
----------------------------------------------------------------------
diff --git a/share/www/spec/run.html b/share/www/spec/run.html
deleted file mode 100644
index 9a248cb..0000000
--- a/share/www/spec/run.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!--
-Licensed under the Apache License, Version 2.0 (the "License"); you may not
-use this file except in compliance with the License. You may obtain a copy of
-the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-License for the specific language governing permissions and limitations under
-the License.
--->
-<html>
-  <head>
-    <link type="text/css" rel="stylesheet" href="../script/jspec/jspec.css" />
-    <script src="../script/jquery.js"></script>
-    <script src="../script/sha1.js"></script>
-    <script src="../script/jspec/jspec.js"></script>
-    <script src="../script/jspec/jspec.jquery.js"></script>
-    <script src="../script/jspec/jspec.xhr.js"></script>
-    <script src="./custom_helpers.js"></script>
-    <script src="../script/couch.js"></script>
-    <script src="../script/jquery.couch.js"></script>
-    <script src="../script/couch_test_runner.js"></script>
-    <script>
-      function runSuites() {
-        JSpec
-        .exec('couch_js_class_methods_spec.js')
-        .exec('couch_js_instance_methods_1_spec.js')
-        .exec('couch_js_instance_methods_2_spec.js')
-        .exec('couch_js_instance_methods_3_spec.js')
-        .exec('jquery_couch_js_class_methods_spec.js')
-        .exec('jquery_couch_js_instance_methods_1_spec.js')
-        .exec('jquery_couch_js_instance_methods_2_spec.js')
-        .exec('jquery_couch_js_instance_methods_3_spec.js')
-        .run({failuresOnly: true})
-        .report()
-      }
-    </script>
-  </head>
-  <body class="jspec" onLoad="runSuites();">
-    <div id="jspec-top"><h2 id="jspec-title">JSpec <em><script>document.write(JSpec.version)</script></em></h2></div>
-    <div id="jspec"></div>
-    <div id="jspec-bottom"></div>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/couchdb/blob/cca309f3/share/www/status.html
----------------------------------------------------------------------
diff --git a/share/www/status.html b/share/www/status.html
deleted file mode 100644
index df35b61..0000000
--- a/share/www/status.html
+++ /dev/null
@@ -1,152 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
-
--->
-<html lang="en">
-  <head>
-    <title>Status</title>
-    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
-    <link rel="stylesheet" href="style/layout.css?0.11.0" type="text/css">
-    <script src="script/json2.js"></script>
-    <script src="script/sha1.js"></script>
-    <script src="script/jquery.js"></script>
-    <script src="script/jquery.couch.js"></script>
-    <script src="script/jquery.dialog.js"></script>
-    <script src="script/futon.js"></script>
-  </head>
-  <body><div id="wrap">
-    <h1>
-      <a href="index.html">Overview</a>
-      <strong>Status</strong>
-    </h1>
-    <div id="content">
-      <div id="interval">
-        <label>Poll interval:
-          <input type="range" min="1" max="30" value="5" size="3">
-          <span class="secs">5</span> second(s)
-        </label>
-      </div>
-      <table id="status" class="listing" cellspacing="0">
-        <caption>Active Tasks</caption>
-        <thead><tr>
-          <th>Type</th>
-          <th>Object</th>
-          <th>Started on</th>
-          <th>Last updated on</th>
-          <th>PID</th>
-          <th>Status</th>
-        </tr></thead>
-        <tbody class="content"></tbody>
-      </table>
-
-    </div>
-  </div></body>
-  <script>
-    function toTaskDate(timestamp) {
-      var d = new Date(timestamp * 1000);
-      var hours = d.getHours(), min = d.getMinutes(), secs = d.getSeconds();
-      var year = d.getFullYear(), month = d.getMonth() + 1, day = d.getDate();
-
-      return String(year) + "-" + (month < 10 ? "0" + month : month) + "-" +
-        day + " " + (hours < 10 ? "0" + hours : hours) + ":" +
-        (min < 10 ? "0" + min : min) + ":" + (secs < 10 ? "0" + secs : secs);
-    }
-    var refreshTimeout = null;
-
-    $.futon.storage.declare("poll_interval", {defaultValue: 5});
-
-    function refresh() {
-      $.couch.activeTasks({
-        success: function(tasks) {
-          clearTimeout(refreshTimeout);
-          $("#status tbody.content").empty();
-          if (!tasks.length) {
-            $("<tr class='none'><th colspan='6'>No tasks running</th></tr>")
-              .appendTo("#status tbody.content");
-          } else {
-            $.each(tasks, function(idx, task) {
-              var status, type, object;
-
-              switch (task.type) {
-              case "database_compaction":
-                type = "Database compaction";
-                object = task.database + (task.retry ? " retry" : "");
-                status = "Copied " + task.changes_done + " of " +
-                  task.total_changes + " changes (" + task.progress + "%)";
-                break;
-              case "view_compaction":
-                type = "View compaction";
-                object = task.database + ", " + task.design_document;
-                status = "Progress " + task.progress + "%";
-                break;
-              case "indexer":
-                type = "Indexer";
-                object = task.database + ", " + task.design_document;
-                status = "Processed " + task.changes_done + " of " +
-                  task.total_changes + " changes (" + task.progress + "%)";
-                break;
-              case "replication":
-                type = "Replication";
-                object = task.source + " to " + task.target;
-                status = "Checkpointed source sequence " +
-                  task.checkpointed_source_seq + ", current source sequence " +
-                  task.source_seq + ", progress " + task.progress + "%";
-              }
-
-              $("<tr><th></th><td class='object'></td><td class='started'>" +
-                "</td><td class='updated'></td><td class='pid'></td>" +
-                "<td class='status'></td></tr>")
-                .find("th").text(type).end()
-                .find("td.object").text(object).end()
-                .find("td.started").text(toTaskDate(task.started_on)).end()
-                .find("td.updated").text(toTaskDate(task.updated_on)).end()
-                .find("td.pid").text(task.pid).end()
-                .find("td.status").text(status).end()
-                .appendTo("#status tbody.content");
-            });
-          }
-          refreshTimeout = setTimeout(refresh,
-            parseInt($("#interval input").val(), 10) * 1000);
-        }
-      });
-    }
-
-    function updateInterval(value) {
-      if (isNaN(value)) {
-        value = 5;
-        $("#interval input").val(value);
-      }
-      $("#interval .secs").text(value);
-      refresh();
-      $.futon.storage.set("poll_interval", value);
-    }
-
-    $(function() {
-      var slider = $("#interval input");
-      slider.val(parseInt($.futon.storage.get("poll_interval")));
-      if (slider[0].type == "range") {
-        slider.bind("input", function() {
-          updateInterval(this.value);
-        });
-        $("#interval .secs").text($("#interval input").val());
-      } else {
-        slider.bind("change", function() {
-          updateInterval(this.value);
-        });
-        $("#interval .secs").hide();
-      }
-      refresh();
-    });
-  </script>
-</html>

http://git-wip-us.apache.org/repos/asf/couchdb/blob/cca309f3/share/www/style/jquery-ui-1.8.11.custom.css
----------------------------------------------------------------------
diff --git a/share/www/style/jquery-ui-1.8.11.custom.css b/share/www/style/jquery-ui-1.8.11.custom.css
deleted file mode 100644
index a6b2f74..0000000
--- a/share/www/style/jquery-ui-1.8.11.custom.css
+++ /dev/null
@@ -1,347 +0,0 @@
-/*
- * jQuery UI CSS Framework 1.8.11
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Theming/API
- */
-
-/* Layout helpers
-----------------------------------*/
-.ui-helper-hidden { display: none; }
-.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
-.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
-.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
-.ui-helper-clearfix { display: inline-block; }
-/* required comment for clearfix to work in Opera \*/
-* html .ui-helper-clearfix { height:1%; }
-.ui-helper-clearfix { display:block; }
-/* end clearfix */
-.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
-
-
-/* Interaction Cues
-----------------------------------*/
-.ui-state-disabled { cursor: default !important; }
-
-
-/* Icons
-----------------------------------*/
-
-/* states and images */
-.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
-
-
-/* Misc visuals
-----------------------------------*/
-
-/* Overlays */
-.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
-
-
-/*
- * jQuery UI CSS Framework 1.8.11
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Theming/API
- *
- * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHig
 hlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
- */
-
-
-/* Component containers
-----------------------------------*/
-.ui-widget { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1.1em; }
-.ui-widget .ui-widget { font-size: 1em; }
-.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1em; }
-.ui-widget-content { border: 1px solid #dddddd; background: #eeeeee 50% top repeat-x; color: #333333; }
-.ui-widget-content a { color: #333333; }
-.ui-widget-header { border: 1px solid #e78f08; background: #f6a828 50% 50% repeat-x; color: #ffffff; font-weight: bold; }
-.ui-widget-header a { color: #ffffff; }
-
-/* Interaction states
-----------------------------------*/
-.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cccccc; background: #f6f6f6 50% 50% repeat-x; font-weight: bold; color: #1c94c4; }
-.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #1c94c4; text-decoration: none; }
-.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #fbcb09; background: #fdf5ce 50% 50% repeat-x; font-weight: bold; color: #c77405; }
-.ui-state-hover a, .ui-state-hover a:hover { color: #c77405; text-decoration: none; }
-.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #fbd850; background: #ffffff 50% 50% repeat-x; font-weight: bold; color: #eb8f00; }
-.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #eb8f00; text-decoration: none; }
-.ui-widget :active { outline: none; }
-
-/* Interaction Cues
-----------------------------------*/
-.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight  {border: 1px solid #fed22f; background: #ffe45c 50% top repeat-x; color: #363636; }
-.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
-.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #b81900 50% 50% repeat; color: #ffffff; }
-.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
-.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
-.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
-.ui-priority-secondary, .ui-widget-content .ui-priority-secondary,  .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
-.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
-
-/* Icons
-----------------------------------*/
-
-/* states and images */
-.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
-.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
-.ui-widget-header .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
-.ui-state-default .ui-icon { background-image: url(images/ui-icons_ef8c08_256x240.png); }
-.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); }
-.ui-state-active .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); }
-.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_228ef1_256x240.png); }
-.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffd27a_256x240.png); }
-
-/* positioning */
-.ui-icon-carat-1-n { background-position: 0 0; }
-.ui-icon-carat-1-ne { background-position: -16px 0; }
-.ui-icon-carat-1-e { background-position: -32px 0; }
-.ui-icon-carat-1-se { background-position: -48px 0; }
-.ui-icon-carat-1-s { background-position: -64px 0; }
-.ui-icon-carat-1-sw { background-position: -80px 0; }
-.ui-icon-carat-1-w { background-position: -96px 0; }
-.ui-icon-carat-1-nw { background-position: -112px 0; }
-.ui-icon-carat-2-n-s { background-position: -128px 0; }
-.ui-icon-carat-2-e-w { background-position: -144px 0; }
-.ui-icon-triangle-1-n { background-position: 0 -16px; }
-.ui-icon-triangle-1-ne { background-position: -16px -16px; }
-.ui-icon-triangle-1-e { background-position: -32px -16px; }
-.ui-icon-triangle-1-se { background-position: -48px -16px; }
-.ui-icon-triangle-1-s { background-position: -64px -16px; }
-.ui-icon-triangle-1-sw { background-position: -80px -16px; }
-.ui-icon-triangle-1-w { background-position: -96px -16px; }
-.ui-icon-triangle-1-nw { background-position: -112px -16px; }
-.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
-.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
-.ui-icon-arrow-1-n { background-position: 0 -32px; }
-.ui-icon-arrow-1-ne { background-position: -16px -32px; }
-.ui-icon-arrow-1-e { background-position: -32px -32px; }
-.ui-icon-arrow-1-se { background-position: -48px -32px; }
-.ui-icon-arrow-1-s { background-position: -64px -32px; }
-.ui-icon-arrow-1-sw { background-position: -80px -32px; }
-.ui-icon-arrow-1-w { background-position: -96px -32px; }
-.ui-icon-arrow-1-nw { background-position: -112px -32px; }
-.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
-.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
-.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
-.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
-.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
-.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
-.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
-.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
-.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
-.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
-.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
-.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
-.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
-.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
-.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
-.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
-.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
-.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
-.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
-.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
-.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
-.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
-.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
-.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
-.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
-.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
-.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
-.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
-.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
-.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
-.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
-.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
-.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
-.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
-.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
-.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
-.ui-icon-arrow-4 { background-position: 0 -80px; }
-.ui-icon-arrow-4-diag { background-position: -16px -80px; }
-.ui-icon-extlink { background-position: -32px -80px; }
-.ui-icon-newwin { background-position: -48px -80px; }
-.ui-icon-refresh { background-position: -64px -80px; }
-.ui-icon-shuffle { background-position: -80px -80px; }
-.ui-icon-transfer-e-w { background-position: -96px -80px; }
-.ui-icon-transferthick-e-w { background-position: -112px -80px; }
-.ui-icon-folder-collapsed { background-position: 0 -96px; }
-.ui-icon-folder-open { background-position: -16px -96px; }
-.ui-icon-document { background-position: -32px -96px; }
-.ui-icon-document-b { background-position: -48px -96px; }
-.ui-icon-note { background-position: -64px -96px; }
-.ui-icon-mail-closed { background-position: -80px -96px; }
-.ui-icon-mail-open { background-position: -96px -96px; }
-.ui-icon-suitcase { background-position: -112px -96px; }
-.ui-icon-comment { background-position: -128px -96px; }
-.ui-icon-person { background-position: -144px -96px; }
-.ui-icon-print { background-position: -160px -96px; }
-.ui-icon-trash { background-position: -176px -96px; }
-.ui-icon-locked { background-position: -192px -96px; }
-.ui-icon-unlocked { background-position: -208px -96px; }
-.ui-icon-bookmark { background-position: -224px -96px; }
-.ui-icon-tag { background-position: -240px -96px; }
-.ui-icon-home { background-position: 0 -112px; }
-.ui-icon-flag { background-position: -16px -112px; }
-.ui-icon-calendar { background-position: -32px -112px; }
-.ui-icon-cart { background-position: -48px -112px; }
-.ui-icon-pencil { background-position: -64px -112px; }
-.ui-icon-clock { background-position: -80px -112px; }
-.ui-icon-disk { background-position: -96px -112px; }
-.ui-icon-calculator { background-position: -112px -112px; }
-.ui-icon-zoomin { background-position: -128px -112px; }
-.ui-icon-zoomout { background-position: -144px -112px; }
-.ui-icon-search { background-position: -160px -112px; }
-.ui-icon-wrench { background-position: -176px -112px; }
-.ui-icon-gear { background-position: -192px -112px; }
-.ui-icon-heart { background-position: -208px -112px; }
-.ui-icon-star { background-position: -224px -112px; }
-.ui-icon-link { background-position: -240px -112px; }
-.ui-icon-cancel { background-position: 0 -128px; }
-.ui-icon-plus { background-position: -16px -128px; }
-.ui-icon-plusthick { background-position: -32px -128px; }
-.ui-icon-minus { background-position: -48px -128px; }
-.ui-icon-minusthick { background-position: -64px -128px; }
-.ui-icon-close { background-position: -80px -128px; }
-.ui-icon-closethick { background-position: -96px -128px; }
-.ui-icon-key { background-position: -112px -128px; }
-.ui-icon-lightbulb { background-position: -128px -128px; }
-.ui-icon-scissors { background-position: -144px -128px; }
-.ui-icon-clipboard { background-position: -160px -128px; }
-.ui-icon-copy { background-position: -176px -128px; }
-.ui-icon-contact { background-position: -192px -128px; }
-.ui-icon-image { background-position: -208px -128px; }
-.ui-icon-video { background-position: -224px -128px; }
-.ui-icon-script { background-position: -240px -128px; }
-.ui-icon-alert { background-position: 0 -144px; }
-.ui-icon-info { background-position: -16px -144px; }
-.ui-icon-notice { background-position: -32px -144px; }
-.ui-icon-help { background-position: -48px -144px; }
-.ui-icon-check { background-position: -64px -144px; }
-.ui-icon-bullet { background-position: -80px -144px; }
-.ui-icon-radio-off { background-position: -96px -144px; }
-.ui-icon-radio-on { background-position: -112px -144px; }
-.ui-icon-pin-w { background-position: -128px -144px; }
-.ui-icon-pin-s { background-position: -144px -144px; }
-.ui-icon-play { background-position: 0 -160px; }
-.ui-icon-pause { background-position: -16px -160px; }
-.ui-icon-seek-next { background-position: -32px -160px; }
-.ui-icon-seek-prev { background-position: -48px -160px; }
-.ui-icon-seek-end { background-position: -64px -160px; }
-.ui-icon-seek-start { background-position: -80px -160px; }
-/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
-.ui-icon-seek-first { background-position: -80px -160px; }
-.ui-icon-stop { background-position: -96px -160px; }
-.ui-icon-eject { background-position: -112px -160px; }
-.ui-icon-volume-off { background-position: -128px -160px; }
-.ui-icon-volume-on { background-position: -144px -160px; }
-.ui-icon-power { background-position: 0 -176px; }
-.ui-icon-signal-diag { background-position: -16px -176px; }
-.ui-icon-signal { background-position: -32px -176px; }
-.ui-icon-battery-0 { background-position: -48px -176px; }
-.ui-icon-battery-1 { background-position: -64px -176px; }
-.ui-icon-battery-2 { background-position: -80px -176px; }
-.ui-icon-battery-3 { background-position: -96px -176px; }
-.ui-icon-circle-plus { background-position: 0 -192px; }
-.ui-icon-circle-minus { background-position: -16px -192px; }
-.ui-icon-circle-close { background-position: -32px -192px; }
-.ui-icon-circle-triangle-e { background-position: -48px -192px; }
-.ui-icon-circle-triangle-s { background-position: -64px -192px; }
-.ui-icon-circle-triangle-w { background-position: -80px -192px; }
-.ui-icon-circle-triangle-n { background-position: -96px -192px; }
-.ui-icon-circle-arrow-e { background-position: -112px -192px; }
-.ui-icon-circle-arrow-s { background-position: -128px -192px; }
-.ui-icon-circle-arrow-w { background-position: -144px -192px; }
-.ui-icon-circle-arrow-n { background-position: -160px -192px; }
-.ui-icon-circle-zoomin { background-position: -176px -192px; }
-.ui-icon-circle-zoomout { background-position: -192px -192px; }
-.ui-icon-circle-check { background-position: -208px -192px; }
-.ui-icon-circlesmall-plus { background-position: 0 -208px; }
-.ui-icon-circlesmall-minus { background-position: -16px -208px; }
-.ui-icon-circlesmall-close { background-position: -32px -208px; }
-.ui-icon-squaresmall-plus { background-position: -48px -208px; }
-.ui-icon-squaresmall-minus { background-position: -64px -208px; }
-.ui-icon-squaresmall-close { background-position: -80px -208px; }
-.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
-.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
-.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
-.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
-.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
-.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
-
-
-/* Misc visuals
-----------------------------------*/
-
-/* Corner radius */
-.ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; }
-.ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
-.ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
-.ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
-.ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
-.ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
-.ui-corner-right {  -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
-.ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
-.ui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }
-
-/* Overlays */
-.ui-widget-overlay { background: #666666 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); }
-.ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }/*
- * jQuery UI Autocomplete 1.8.11
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Autocomplete#theming
- */
-.ui-autocomplete { position: absolute; cursor: default; }	
-
-/* workarounds */
-* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
-
-/*
- * jQuery UI Menu 1.8.11
- *
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Menu#theming
- */
-.ui-menu {
-	list-style:none;
-	padding: 2px;
-	margin: 0;
-	display:block;
-	float: left;
-}
-.ui-menu .ui-menu {
-	margin-top: -3px;
-}
-.ui-menu .ui-menu-item {
-	margin:0;
-	padding: 0;
-	zoom: 1;
-	float: left;
-	clear: left;
-	width: 100%;
-}
-.ui-menu .ui-menu-item a {
-	text-decoration:none;
-	display:block;
-	padding:.2em .4em;
-	line-height:1.5;
-	zoom:1;
-}
-.ui-menu .ui-menu-item a.ui-state-hover,
-.ui-menu .ui-menu-item a.ui-state-active {
-	font-weight: normal;
-	margin: -1px;
-}