couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [09/27] fauxton commit: updated refs/heads/master to 0ca35da
Date Tue, 31 May 2016 07:58:37 GMT
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/sidebar/stores.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/sidebar/stores.react.jsx b/app/addons/documents/sidebar/stores.react.jsx
index 6ac9c66..787a338 100644
--- a/app/addons/documents/sidebar/stores.react.jsx
+++ b/app/addons/documents/sidebar/stores.react.jsx
@@ -10,336 +10,330 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-define([
-  '../../../app',
-  '../../../core/api',
-  'react',
-  './actiontypes'
-],
-
-function (app, FauxtonAPI, React, ActionTypes) {
-  var Stores = {};
-
-  Stores.SidebarStore = FauxtonAPI.Store.extend({
-
-    initialize: function () {
-      this.reset();
-    },
-
-    reset: function () {
-      this._designDocs = new Backbone.Collection();
+import app from "../../../app";
+import FauxtonAPI from "../../../core/api";
+import React from "react";
+import ActionTypes from "./actiontypes";
+var Stores = {};
+
+Stores.SidebarStore = FauxtonAPI.Store.extend({
+
+  initialize: function () {
+    this.reset();
+  },
+
+  reset: function () {
+    this._designDocs = new Backbone.Collection();
+    this._selected = {
+      navItem: 'all-docs',
+      designDocName: '',
+      designDocSection: '', // 'metadata' / name of index group ("Views", etc.)
+      indexName: ''
+    };
+    this._loading = true;
+    this._toggledSections = {};
+
+    this._deleteIndexModalVisible = false;
+    this._deleteIndexModalDesignDocName = '';
+    this._deleteIndexModalText = '';
+    this._deleteIndexModalIndexName = '';
+    this._deleteIndexModalOnSubmit = function () { };
+
+    this._cloneIndexModalVisible = false;
+    this._cloneIndexDesignDocProp = '';
+    this._cloneIndexModalTitle = '';
+    this._cloneIndexModalSelectedDesignDoc = '';
+    this._cloneIndexModalNewDesignDocName = '';
+    this._cloneIndexModalNewIndexName = '';
+    this._cloneIndexModalIndexLabel = '';
+    this._cloneIndexModalOnSubmit = function () { };
+  },
+
+  newOptions: function (options) {
+    this._database = options.database;
+    this._designDocs = options.designDocs;
+    this._loading = false;
+
+    // this can be expanded in future as we need. Right now it can only set a top-level nav item ('all docs',
+    // 'permissions' etc.) and not a nested page
+    if (options.selectedNavItem) {
       this._selected = {
-        navItem: 'all-docs',
+        navItem: options.selectedNavItem,
         designDocName: '',
-        designDocSection: '', // 'metadata' / name of index group ("Views", etc.)
+        designDocSection: '',
         indexName: ''
       };
-      this._loading = true;
-      this._toggledSections = {};
-
-      this._deleteIndexModalVisible = false;
-      this._deleteIndexModalDesignDocName = '';
-      this._deleteIndexModalText = '';
-      this._deleteIndexModalIndexName = '';
-      this._deleteIndexModalOnSubmit = function () { };
-
-      this._cloneIndexModalVisible = false;
-      this._cloneIndexDesignDocProp = '';
-      this._cloneIndexModalTitle = '';
-      this._cloneIndexModalSelectedDesignDoc = '';
-      this._cloneIndexModalNewDesignDocName = '';
-      this._cloneIndexModalNewIndexName = '';
-      this._cloneIndexModalIndexLabel = '';
-      this._cloneIndexModalOnSubmit = function () { };
-    },
-
-    newOptions: function (options) {
-      this._database = options.database;
-      this._designDocs = options.designDocs;
-      this._loading = false;
-
-      // this can be expanded in future as we need. Right now it can only set a top-level nav item ('all docs',
-      // 'permissions' etc.) and not a nested page
-      if (options.selectedNavItem) {
-        this._selected = {
-          navItem: options.selectedNavItem,
-          designDocName: '',
-          designDocSection: '',
-          indexName: ''
-        };
-      }
-    },
+    }
+  },
 
-    updatedDesignDocs: function (designDocs) {
-      this._designDocs = designDocs;
-    },
+  updatedDesignDocs: function (designDocs) {
+    this._designDocs = designDocs;
+  },
 
-    isDeleteIndexModalVisible: function () {
-      return this._deleteIndexModalVisible;
-    },
+  isDeleteIndexModalVisible: function () {
+    return this._deleteIndexModalVisible;
+  },
 
-    getDeleteIndexModalText: function () {
-      return this._deleteIndexModalText;
-    },
+  getDeleteIndexModalText: function () {
+    return this._deleteIndexModalText;
+  },
 
-    getDeleteIndexModalOnSubmit: function () {
-      return this._deleteIndexModalOnSubmit;
-    },
+  getDeleteIndexModalOnSubmit: function () {
+    return this._deleteIndexModalOnSubmit;
+  },
 
-    isLoading: function () {
-      return this._loading;
-    },
+  isLoading: function () {
+    return this._loading;
+  },
 
-    getDatabase: function () {
-      if (this.isLoading()) {
-        return {};
-      }
-      return this._database;
-    },
-
-    // used to toggle both design docs, and any index groups within them
-    toggleContent: function (designDoc, indexGroup) {
-      if (!this._toggledSections[designDoc]) {
-        this._toggledSections[designDoc] = {
-          visible: true,
-          indexGroups: {}
-        };
-        return;
-      }
+  getDatabase: function () {
+    if (this.isLoading()) {
+      return {};
+    }
+    return this._database;
+  },
+
+  // used to toggle both design docs, and any index groups within them
+  toggleContent: function (designDoc, indexGroup) {
+    if (!this._toggledSections[designDoc]) {
+      this._toggledSections[designDoc] = {
+        visible: true,
+        indexGroups: {}
+      };
+      return;
+    }
 
-      if (indexGroup) {
-        return this.toggleIndexGroup(designDoc, indexGroup);
-      }
+    if (indexGroup) {
+      return this.toggleIndexGroup(designDoc, indexGroup);
+    }
 
-      this._toggledSections[designDoc].visible = !this._toggledSections[designDoc].visible;
-    },
+    this._toggledSections[designDoc].visible = !this._toggledSections[designDoc].visible;
+  },
 
-    toggleIndexGroup: function (designDoc, indexGroup) {
-      var expanded = this._toggledSections[designDoc].indexGroups[indexGroup];
+  toggleIndexGroup: function (designDoc, indexGroup) {
+    var expanded = this._toggledSections[designDoc].indexGroups[indexGroup];
 
-      if (_.isUndefined(expanded)) {
-        this._toggledSections[designDoc].indexGroups[indexGroup] = true;
-        return;
-      }
+    if (_.isUndefined(expanded)) {
+      this._toggledSections[designDoc].indexGroups[indexGroup] = true;
+      return;
+    }
 
-      this._toggledSections[designDoc].indexGroups[indexGroup] = !expanded;
-    },
+    this._toggledSections[designDoc].indexGroups[indexGroup] = !expanded;
+  },
 
-    isVisible: function (designDoc, indexGroup) {
-      if (!this._toggledSections[designDoc]) {
-        return false;
-      }
-      if (indexGroup) {
-        return this._toggledSections[designDoc].indexGroups[indexGroup];
+  isVisible: function (designDoc, indexGroup) {
+    if (!this._toggledSections[designDoc]) {
+      return false;
+    }
+    if (indexGroup) {
+      return this._toggledSections[designDoc].indexGroups[indexGroup];
+    }
+    return this._toggledSections[designDoc].visible;
+  },
+
+  getSelected: function () {
+    return this._selected;
+  },
+
+  setSelected: function (params) {
+    this._selected = {
+      navItem: params.navItem,
+      designDocName: params.designDocName,
+      designDocSection: params.designDocSection,
+      indexName: params.indexName
+    };
+
+    if (params.designDocName) {
+      if (!_.has(this._toggledSections, params.designDocName)) {
+        this._toggledSections[params.designDocName] = { visible: true, indexGroups: {} };
       }
-      return this._toggledSections[designDoc].visible;
-    },
-
-    getSelected: function () {
-      return this._selected;
-    },
-
-    setSelected: function (params) {
-      this._selected = {
-        navItem: params.navItem,
-        designDocName: params.designDocName,
-        designDocSection: params.designDocSection,
-        indexName: params.indexName
-      };
+      this._toggledSections[params.designDocName].visible = true;
 
-      if (params.designDocName) {
-        if (!_.has(this._toggledSections, params.designDocName)) {
-          this._toggledSections[params.designDocName] = { visible: true, indexGroups: {} };
-        }
-        this._toggledSections[params.designDocName].visible = true;
-
-        if (params.designDocSection) {
-          this._toggledSections[params.designDocName].indexGroups[params.designDocSection] = true;
-        }
+      if (params.designDocSection) {
+        this._toggledSections[params.designDocName].indexGroups[params.designDocSection] = true;
       }
-    },
+    }
+  },
 
-    getToggledSections: function () {
-      return this._toggledSections;
-    },
+  getToggledSections: function () {
+    return this._toggledSections;
+  },
 
-    getDatabaseName: function () {
-      if (this.isLoading()) {
-        return '';
-      }
-      return this._database.safeID();
-    },
-
-    getDesignDocs: function () {
-      return this._designDocs;
-    },
-
-    // returns a simple array of design doc IDs
-    getAvailableDesignDocs: function () {
-      var availableDocs = this.getDesignDocs().filter(function (doc) {
-        return !doc.isMangoDoc();
-      });
-      return _.map(availableDocs, function (doc) {
-        return doc.id;
-      });
-    },
-
-    getDesignDocList: function () {
-      if (this.isLoading()) {
-        return {};
-      }
-      var docs = this._designDocs.toJSON();
-
-      docs = _.filter(docs, function (doc) {
-        if (_.has(doc.doc, 'language')) {
-          return doc.doc.language !== 'query';
-        }
-        return true;
-      });
-
-      return docs.map(function (doc) {
-        doc.safeId = app.utils.safeURLName(doc._id.replace(/^_design\//, ""));
-        return _.extend(doc, doc.doc);
-      });
-    },
-
-    showDeleteIndexModal: function (params) {
-      this._deleteIndexModalIndexName = params.indexName;
-      this._deleteIndexModalDesignDocName = params.designDocName;
-      this._deleteIndexModalVisible = true;
-      this._deleteIndexModalText = (<div>Are you sure you want to delete the <code>{this._deleteIndexModalIndexName}</code> {params.indexLabel}?</div>);
-      this._deleteIndexModalOnSubmit = params.onDelete;
-    },
-
-    getDeleteIndexModalIndexName: function () {
-      return this._deleteIndexModalIndexName;
-    },
-
-    getDeleteIndexDesignDoc: function () {
-      var designDoc = this._designDocs.find(function (ddoc) {
-        return '_design/' + this._deleteIndexModalDesignDocName === ddoc.id;
-      }, this);
-
-      return (designDoc) ? designDoc.dDocModel() : null;
-    },
-
-    isCloneIndexModalVisible: function () {
-      return this._cloneIndexModalVisible;
-    },
-
-    getCloneIndexModalTitle: function () {
-      return this._cloneIndexModalTitle;
-    },
-
-    showCloneIndexModal: function (params) {
-      this._cloneIndexModalIndexLabel = params.indexLabel;
-      this._cloneIndexModalTitle = params.cloneIndexModalTitle;
-      this._cloneIndexModalSourceIndexName = params.sourceIndexName;
-      this._cloneIndexModalSourceDesignDocName = params.sourceDesignDocName;
-      this._cloneIndexModalSelectedDesignDoc = '_design/' + params.sourceDesignDocName;
-      this._cloneIndexDesignDocProp = '';
-      this._cloneIndexModalVisible = true;
-      this._cloneIndexModalOnSubmit = params.onSubmit;
-    },
-
-    getCloneIndexModalIndexLabel: function () {
-      return this._cloneIndexModalIndexLabel;
-    },
-
-    getCloneIndexModalOnSubmit: function () {
-      return this._cloneIndexModalOnSubmit;
-    },
-
-    getCloneIndexModalSourceIndexName: function () {
-      return this._cloneIndexModalSourceIndexName;
-    },
-
-    getCloneIndexModalSourceDesignDocName: function () {
-      return this._cloneIndexModalSourceDesignDocName;
-    },
-
-    getCloneIndexDesignDocProp: function () {
-      return this._cloneIndexDesignDocProp;
-    },
-
-    getCloneIndexModalSelectedDesignDoc: function () {
-      return this._cloneIndexModalSelectedDesignDoc;
-    },
-
-    getCloneIndexModalNewDesignDocName: function () {
-      return this._cloneIndexModalNewDesignDocName;
-    },
-
-    getCloneIndexModalNewIndexName: function () {
-      return this._cloneIndexModalNewIndexName;
-    },
-
-    dispatch: function (action) {
-      switch (action.type) {
-        case ActionTypes.SIDEBAR_SET_SELECTED_NAV_ITEM:
-          this.setSelected(action.options);
-        break;
-
-        case ActionTypes.SIDEBAR_NEW_OPTIONS:
-          this.newOptions(action.options);
-        break;
-
-        case ActionTypes.SIDEBAR_TOGGLE_CONTENT:
-          this.toggleContent(action.designDoc, action.indexGroup);
-        break;
-
-        case ActionTypes.SIDEBAR_FETCHING:
-          this._loading = true;
-        break;
-
-        case ActionTypes.SIDEBAR_REFRESH:
-        break;
-
-        case ActionTypes.SIDEBAR_SHOW_DELETE_INDEX_MODAL:
-          this.showDeleteIndexModal(action.options);
-        break;
-
-        case ActionTypes.SIDEBAR_HIDE_DELETE_INDEX_MODAL:
-          this._deleteIndexModalVisible = false;
-        break;
-
-        case ActionTypes.SIDEBAR_SHOW_CLONE_INDEX_MODAL:
-          this.showCloneIndexModal(action.options);
-        break;
-
-        case ActionTypes.SIDEBAR_HIDE_CLONE_INDEX_MODAL:
-          this._cloneIndexModalVisible = false;
-        break;
-
-        case ActionTypes.SIDEBAR_CLONE_MODAL_DESIGN_DOC_CHANGE:
-          this._cloneIndexModalSelectedDesignDoc = action.options.value;
-        break;
-
-        case ActionTypes.SIDEBAR_CLONE_MODAL_DESIGN_DOC_NEW_NAME_UPDATED:
-          this._cloneIndexModalNewDesignDocName = action.options.value;
-        break;
-
-        case ActionTypes.SIDEBAR_CLONE_MODAL_UPDATE_INDEX_NAME:
-          this._cloneIndexModalNewIndexName = action.options.value;
-        break;
-
-        case ActionTypes.SIDEBAR_UPDATED_DESIGN_DOCS:
-          this.updatedDesignDocs(action.options.designDocs);
-        break;
-
-        default:
-        return;
-        // do nothing
-      }
+  getDatabaseName: function () {
+    if (this.isLoading()) {
+      return '';
+    }
+    return this._database.safeID();
+  },
+
+  getDesignDocs: function () {
+    return this._designDocs;
+  },
+
+  // returns a simple array of design doc IDs
+  getAvailableDesignDocs: function () {
+    var availableDocs = this.getDesignDocs().filter(function (doc) {
+      return !doc.isMangoDoc();
+    });
+    return _.map(availableDocs, function (doc) {
+      return doc.id;
+    });
+  },
+
+  getDesignDocList: function () {
+    if (this.isLoading()) {
+      return {};
+    }
+    var docs = this._designDocs.toJSON();
 
-      this.triggerChange();
+    docs = _.filter(docs, function (doc) {
+      if (_.has(doc.doc, 'language')) {
+        return doc.doc.language !== 'query';
+      }
+      return true;
+    });
+
+    return docs.map(function (doc) {
+      doc.safeId = app.utils.safeURLName(doc._id.replace(/^_design\//, ""));
+      return _.extend(doc, doc.doc);
+    });
+  },
+
+  showDeleteIndexModal: function (params) {
+    this._deleteIndexModalIndexName = params.indexName;
+    this._deleteIndexModalDesignDocName = params.designDocName;
+    this._deleteIndexModalVisible = true;
+    this._deleteIndexModalText = (<div>Are you sure you want to delete the <code>{this._deleteIndexModalIndexName}</code> {params.indexLabel}?</div>);
+    this._deleteIndexModalOnSubmit = params.onDelete;
+  },
+
+  getDeleteIndexModalIndexName: function () {
+    return this._deleteIndexModalIndexName;
+  },
+
+  getDeleteIndexDesignDoc: function () {
+    var designDoc = this._designDocs.find(function (ddoc) {
+      return '_design/' + this._deleteIndexModalDesignDocName === ddoc.id;
+    }, this);
+
+    return (designDoc) ? designDoc.dDocModel() : null;
+  },
+
+  isCloneIndexModalVisible: function () {
+    return this._cloneIndexModalVisible;
+  },
+
+  getCloneIndexModalTitle: function () {
+    return this._cloneIndexModalTitle;
+  },
+
+  showCloneIndexModal: function (params) {
+    this._cloneIndexModalIndexLabel = params.indexLabel;
+    this._cloneIndexModalTitle = params.cloneIndexModalTitle;
+    this._cloneIndexModalSourceIndexName = params.sourceIndexName;
+    this._cloneIndexModalSourceDesignDocName = params.sourceDesignDocName;
+    this._cloneIndexModalSelectedDesignDoc = '_design/' + params.sourceDesignDocName;
+    this._cloneIndexDesignDocProp = '';
+    this._cloneIndexModalVisible = true;
+    this._cloneIndexModalOnSubmit = params.onSubmit;
+  },
+
+  getCloneIndexModalIndexLabel: function () {
+    return this._cloneIndexModalIndexLabel;
+  },
+
+  getCloneIndexModalOnSubmit: function () {
+    return this._cloneIndexModalOnSubmit;
+  },
+
+  getCloneIndexModalSourceIndexName: function () {
+    return this._cloneIndexModalSourceIndexName;
+  },
+
+  getCloneIndexModalSourceDesignDocName: function () {
+    return this._cloneIndexModalSourceDesignDocName;
+  },
+
+  getCloneIndexDesignDocProp: function () {
+    return this._cloneIndexDesignDocProp;
+  },
+
+  getCloneIndexModalSelectedDesignDoc: function () {
+    return this._cloneIndexModalSelectedDesignDoc;
+  },
+
+  getCloneIndexModalNewDesignDocName: function () {
+    return this._cloneIndexModalNewDesignDocName;
+  },
+
+  getCloneIndexModalNewIndexName: function () {
+    return this._cloneIndexModalNewIndexName;
+  },
+
+  dispatch: function (action) {
+    switch (action.type) {
+      case ActionTypes.SIDEBAR_SET_SELECTED_NAV_ITEM:
+        this.setSelected(action.options);
+      break;
+
+      case ActionTypes.SIDEBAR_NEW_OPTIONS:
+        this.newOptions(action.options);
+      break;
+
+      case ActionTypes.SIDEBAR_TOGGLE_CONTENT:
+        this.toggleContent(action.designDoc, action.indexGroup);
+      break;
+
+      case ActionTypes.SIDEBAR_FETCHING:
+        this._loading = true;
+      break;
+
+      case ActionTypes.SIDEBAR_REFRESH:
+      break;
+
+      case ActionTypes.SIDEBAR_SHOW_DELETE_INDEX_MODAL:
+        this.showDeleteIndexModal(action.options);
+      break;
+
+      case ActionTypes.SIDEBAR_HIDE_DELETE_INDEX_MODAL:
+        this._deleteIndexModalVisible = false;
+      break;
+
+      case ActionTypes.SIDEBAR_SHOW_CLONE_INDEX_MODAL:
+        this.showCloneIndexModal(action.options);
+      break;
+
+      case ActionTypes.SIDEBAR_HIDE_CLONE_INDEX_MODAL:
+        this._cloneIndexModalVisible = false;
+      break;
+
+      case ActionTypes.SIDEBAR_CLONE_MODAL_DESIGN_DOC_CHANGE:
+        this._cloneIndexModalSelectedDesignDoc = action.options.value;
+      break;
+
+      case ActionTypes.SIDEBAR_CLONE_MODAL_DESIGN_DOC_NEW_NAME_UPDATED:
+        this._cloneIndexModalNewDesignDocName = action.options.value;
+      break;
+
+      case ActionTypes.SIDEBAR_CLONE_MODAL_UPDATE_INDEX_NAME:
+        this._cloneIndexModalNewIndexName = action.options.value;
+      break;
+
+      case ActionTypes.SIDEBAR_UPDATED_DESIGN_DOCS:
+        this.updatedDesignDocs(action.options.designDocs);
+      break;
+
+      default:
+      return;
+      // do nothing
     }
 
-  });
+    this.triggerChange();
+  }
 
-  Stores.sidebarStore = new Stores.SidebarStore();
-  Stores.sidebarStore.dispatchToken = FauxtonAPI.dispatcher.register(Stores.sidebarStore.dispatch);
+});
 
-  return Stores;
+Stores.sidebarStore = new Stores.SidebarStore();
+Stores.sidebarStore.dispatchToken = FauxtonAPI.dispatcher.register(Stores.sidebarStore.dispatch);
 
-});
+export default Stores;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/sidebar/tests/sidebar.componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/sidebar/tests/sidebar.componentsSpec.react.jsx b/app/addons/documents/sidebar/tests/sidebar.componentsSpec.react.jsx
index 3bb99d4..5d1617b 100644
--- a/app/addons/documents/sidebar/tests/sidebar.componentsSpec.react.jsx
+++ b/app/addons/documents/sidebar/tests/sidebar.componentsSpec.react.jsx
@@ -9,109 +9,105 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-define([
-  '../../../../core/api',
-  'react',
-  'react-dom',
-  '../../../../../test/mocha/testUtils',
-  '../sidebar.react',
-  'react-addons-test-utils',
-  'sinon'
-], function (FauxtonAPI, React, ReactDOM, utils, Components, TestUtils, sinon) {
-  var assert = utils.assert;
-  var DesignDoc = Components.DesignDoc;
+import FauxtonAPI from "../../../../core/api";
+import React from "react";
+import ReactDOM from "react-dom";
+import utils from "../../../../../test/mocha/testUtils";
+import Components from "../sidebar.react";
+import TestUtils from "react-addons-test-utils";
+import sinon from "sinon";
+var assert = utils.assert;
+var DesignDoc = Components.DesignDoc;
 
 
-  describe('DesignDoc', function () {
-    var container;
-    var database = { id: 'db' };
+describe('DesignDoc', function () {
+  var container;
+  var database = { id: 'db' };
 
-    var selectedNavInfo = {
-      navItem: 'all-docs',
-      designDocName: '',
-      designDocSection: '',
-      indexName: ''
-    };
+  var selectedNavInfo = {
+    navItem: 'all-docs',
+    designDocName: '',
+    designDocSection: '',
+    indexName: ''
+  };
 
-    beforeEach(function () {
-      container = document.createElement('div');
-    });
-
-    afterEach(function () {
-      ReactDOM.unmountComponentAtNode(container);
-    });
+  beforeEach(function () {
+    container = document.createElement('div');
+  });
 
-    it('confirm only single sub-option is shown by default (metadata link)', function () {
-      var el = TestUtils.renderIntoDocument(<DesignDoc
-        database={database}
-        toggle={function () {}}
-        sidebarListTypes={[]}
-        isExpanded={true}
-        selectedNavInfo={selectedNavInfo}
-        toggledSections={{}}
-        designDoc={{ customProp: { one: 'something' } }}
-      />, container);
+  afterEach(function () {
+    ReactDOM.unmountComponentAtNode(container);
+  });
 
-      var subOptions = $(ReactDOM.findDOMNode(el)).find('.accordion-body li');
-      assert.equal(subOptions.length, 1);
-   });
+  it('confirm only single sub-option is shown by default (metadata link)', function () {
+    var el = TestUtils.renderIntoDocument(<DesignDoc
+      database={database}
+      toggle={function () {}}
+      sidebarListTypes={[]}
+      isExpanded={true}
+      selectedNavInfo={selectedNavInfo}
+      toggledSections={{}}
+      designDoc={{ customProp: { one: 'something' } }}
+    />, container);
 
-    it('confirm design doc sidebar extensions appear', function () {
-      var el = TestUtils.renderIntoDocument(<DesignDoc
-        database={database}
-        toggle={function () {}}
-        sidebarListTypes={[{
-          selector: 'customProp',
-          name: 'Search Indexes',
-          icon: 'icon-here',
-          urlNamespace: 'whatever'
-        }]}
-        isExpanded={true}
-        selectedNavInfo={selectedNavInfo}
-        toggledSections={{}}
-        designDoc={{ customProp: { one: 'something' } }}
-      />, container);
+    var subOptions = $(ReactDOM.findDOMNode(el)).find('.accordion-body li');
+    assert.equal(subOptions.length, 1);
+ });
 
-      var subOptions = $(ReactDOM.findDOMNode(el)).find('.accordion-body li');
-      assert.equal(subOptions.length, 3); // 1 for "Metadata" row, 1 for Type List row ("search indexes") and one for the index itself
-    });
+  it('confirm design doc sidebar extensions appear', function () {
+    var el = TestUtils.renderIntoDocument(<DesignDoc
+      database={database}
+      toggle={function () {}}
+      sidebarListTypes={[{
+        selector: 'customProp',
+        name: 'Search Indexes',
+        icon: 'icon-here',
+        urlNamespace: 'whatever'
+      }]}
+      isExpanded={true}
+      selectedNavInfo={selectedNavInfo}
+      toggledSections={{}}
+      designDoc={{ customProp: { one: 'something' } }}
+    />, container);
 
-    it('confirm design doc sidebar extensions do not appear when they have no content', function () {
-      var el = TestUtils.renderIntoDocument(<DesignDoc
-        database={database}
-        toggle={function () {}}
-        sidebarListTypes={[{
-          selector: 'customProp',
-          name: 'Search Indexes',
-          icon: 'icon-here',
-          urlNamespace: 'whatever'
-        }]}
-        isExpanded={true}
-        selectedNavInfo={selectedNavInfo}
-        designDoc={{}} // note that this is empty
-      />, container);
+    var subOptions = $(ReactDOM.findDOMNode(el)).find('.accordion-body li');
+    assert.equal(subOptions.length, 3); // 1 for "Metadata" row, 1 for Type List row ("search indexes") and one for the index itself
+  });
 
-      var subOptions = $(ReactDOM.findDOMNode(el)).find('.accordion-body li');
-      assert.equal(subOptions.length, 1);
-    });
+  it('confirm design doc sidebar extensions do not appear when they have no content', function () {
+    var el = TestUtils.renderIntoDocument(<DesignDoc
+      database={database}
+      toggle={function () {}}
+      sidebarListTypes={[{
+        selector: 'customProp',
+        name: 'Search Indexes',
+        icon: 'icon-here',
+        urlNamespace: 'whatever'
+      }]}
+      isExpanded={true}
+      selectedNavInfo={selectedNavInfo}
+      designDoc={{}} // note that this is empty
+    />, container);
 
-    it('confirm doc metadata page is highlighted if selected', function () {
-      var el = TestUtils.renderIntoDocument(<DesignDoc
-        database={database}
-        toggle={function () {}}
-        sidebarListTypes={[]}
-        isExpanded={true}
-        selectedNavInfo={{
-          navItem: 'designDoc',
-          designDocName: 'id',
-          designDocSection: 'metadata',
-          indexName: ''
-        }}
-        designDoc={{}} />, container);
+    var subOptions = $(ReactDOM.findDOMNode(el)).find('.accordion-body li');
+    assert.equal(subOptions.length, 1);
+  });
 
-      assert.equal($(ReactDOM.findDOMNode(el)).find('.accordion-body li.active a').html(), 'Metadata');
-    });
+  it('confirm doc metadata page is highlighted if selected', function () {
+    var el = TestUtils.renderIntoDocument(<DesignDoc
+      database={database}
+      toggle={function () {}}
+      sidebarListTypes={[]}
+      isExpanded={true}
+      selectedNavInfo={{
+        navItem: 'designDoc',
+        designDocName: 'id',
+        designDocSection: 'metadata',
+        indexName: ''
+      }}
+      designDoc={{}} />, container);
 
+    assert.equal($(ReactDOM.findDOMNode(el)).find('.accordion-body li.active a').html(), 'Metadata');
   });
 
 });

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/sidebar/tests/sidebar.storesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/sidebar/tests/sidebar.storesSpec.js b/app/addons/documents/sidebar/tests/sidebar.storesSpec.js
index 69b75f8..8edb848 100644
--- a/app/addons/documents/sidebar/tests/sidebar.storesSpec.js
+++ b/app/addons/documents/sidebar/tests/sidebar.storesSpec.js
@@ -10,70 +10,67 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-define([
-  '../../../../core/api',
-  '../stores.react',
-  '../actiontypes',
-  '../../../../../test/mocha/testUtils',
-], function (FauxtonAPI, Stores, ActionTypes, testUtils) {
-  var assert = testUtils.assert;
-  var dispatchToken;
-  var store;
+import FauxtonAPI from "../../../../core/api";
+import Stores from "../stores.react";
+import ActionTypes from "../actiontypes";
+import testUtils from "../../../../../test/mocha/testUtils";
+var assert = testUtils.assert;
+var dispatchToken;
+var store;
 
 
-  describe('Sidebar Store', function () {
-    beforeEach(function () {
-      store = new Stores.SidebarStore();
-      dispatchToken = FauxtonAPI.dispatcher.register(store.dispatch);
-    });
-
-    afterEach(function () {
-      FauxtonAPI.dispatcher.unregister(dispatchToken);
-    });
+describe('Sidebar Store', function () {
+  beforeEach(function () {
+    store = new Stores.SidebarStore();
+    dispatchToken = FauxtonAPI.dispatcher.register(store.dispatch);
+  });
 
-    describe('toggle state', function () {
+  afterEach(function () {
+    FauxtonAPI.dispatcher.unregister(dispatchToken);
+  });
 
-      it('should not be visible if never toggled', function () {
-        assert.notOk(store.isVisible('designDoc'));
-      });
+  describe('toggle state', function () {
 
-      it('should be visible after being toggled', function () {
-        var designDoc = 'designDoc';
-        store.toggleContent(designDoc);
-        assert.ok(store.isVisible(designDoc));
-      });
+    it('should not be visible if never toggled', function () {
+      assert.notOk(store.isVisible('designDoc'));
+    });
 
-      it('should not be visible after being toggled twice', function () {
-        var designDoc = 'designDoc';
-        store.toggleContent(designDoc);
-        store.toggleContent(designDoc);
-        assert.notOk(store.isVisible(designDoc));
-      });
+    it('should be visible after being toggled', function () {
+      var designDoc = 'designDoc';
+      store.toggleContent(designDoc);
+      assert.ok(store.isVisible(designDoc));
+    });
 
+    it('should not be visible after being toggled twice', function () {
+      var designDoc = 'designDoc';
+      store.toggleContent(designDoc);
+      store.toggleContent(designDoc);
+      assert.notOk(store.isVisible(designDoc));
     });
 
-    describe('toggle state for index', function () {
-      var designDoc = 'design-doc';
+  });
 
-      beforeEach(function () {
-        store.toggleContent(designDoc);
-      });
+  describe('toggle state for index', function () {
+    var designDoc = 'design-doc';
 
-      it('should be hidden if never toggled', function () {
-        assert.notOk(store.isVisible(designDoc, 'index'));
-      });
+    beforeEach(function () {
+      store.toggleContent(designDoc);
+    });
 
-      it('should be if toggled', function () {
-        store.toggleContent(designDoc, 'index');
-        assert.ok(store.isVisible(designDoc, 'index'));
-      });
+    it('should be hidden if never toggled', function () {
+      assert.notOk(store.isVisible(designDoc, 'index'));
+    });
 
-      it('should be hidden after being toggled twice', function () {
-        store.toggleContent(designDoc, 'index');
-        store.toggleContent(designDoc, 'index');
-        assert.notOk(store.isVisible(designDoc, 'index'));
-      });
+    it('should be if toggled', function () {
+      store.toggleContent(designDoc, 'index');
+      assert.ok(store.isVisible(designDoc, 'index'));
+    });
 
+    it('should be hidden after being toggled twice', function () {
+      store.toggleContent(designDoc, 'index');
+      store.toggleContent(designDoc, 'index');
+      assert.notOk(store.isVisible(designDoc, 'index'));
     });
+
   });
 });

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/document-test-helper.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/document-test-helper.js b/app/addons/documents/tests/document-test-helper.js
index ea2e27d..6822639 100644
--- a/app/addons/documents/tests/document-test-helper.js
+++ b/app/addons/documents/tests/document-test-helper.js
@@ -9,37 +9,33 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-define([
-  '../../../core/api',
-  '../resources'
-], function (FauxtonAPI, Documents) {
+import FauxtonAPI from "../../../core/api";
+import Documents from "../resources";
 
-  var opts = {
-    params: {},
-    database: {
-      safeID: function () { return '1';}
-    }
-  };
-
-  function createDocColumn (docs) {
-    docs = docs.map(function (doc) {
-      return Documents.Doc.prototype.parse(doc);
-    });
-
-    return new Documents.AllDocs(docs, opts);
+var opts = {
+  params: {},
+  database: {
+    safeID: function () { return '1';}
   }
+};
 
-  function createMangoIndexDocColumn (docs) {
-    docs = docs.map(function (doc) {
-      return Documents.MangoIndex.prototype.parse(doc);
-    });
+function createDocColumn (docs) {
+  docs = docs.map(function (doc) {
+    return Documents.Doc.prototype.parse(doc);
+  });
 
-    return new Documents.MangoIndexCollection(docs, opts);
-  }
+  return new Documents.AllDocs(docs, opts);
+}
+
+function createMangoIndexDocColumn (docs) {
+  docs = docs.map(function (doc) {
+    return Documents.MangoIndex.prototype.parse(doc);
+  });
 
-  return {
-    createDocColumn: createDocColumn,
-    createMangoIndexDocColumn: createMangoIndexDocColumn
-  };
+  return new Documents.MangoIndexCollection(docs, opts);
+}
 
-});
+export default {
+  createDocColumn: createDocColumn,
+  createMangoIndexDocColumn: createMangoIndexDocColumn
+};

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/helpersSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/helpersSpec.js b/app/addons/documents/tests/helpersSpec.js
index 228b861..bbb6952 100644
--- a/app/addons/documents/tests/helpersSpec.js
+++ b/app/addons/documents/tests/helpersSpec.js
@@ -9,42 +9,38 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-define([
-  '../../../core/api',
-  '../helpers',
-  '../../../../test/mocha/testUtils',
-], function (FauxtonAPI, Helpers, testUtils) {
-  var assert = testUtils.assert;
-
-  describe('Helpers', function () {
-
-    describe('parseJSON', function () {
-      it('replaces "\\n" with actual newlines', function () {
-        var string = 'I am a string\\nwith\\nfour\\nlinebreaks\\nin';
-        var result = Helpers.parseJSON(string);
-        assert.equal(result.match(/\n/g).length, 4);
-      });
+import FauxtonAPI from "../../../core/api";
+import Helpers from "../helpers";
+import testUtils from "../../../../test/mocha/testUtils";
+var assert = testUtils.assert;
+
+describe('Helpers', function () {
+
+  describe('parseJSON', function () {
+    it('replaces "\\n" with actual newlines', function () {
+      var string = 'I am a string\\nwith\\nfour\\nlinebreaks\\nin';
+      var result = Helpers.parseJSON(string);
+      assert.equal(result.match(/\n/g).length, 4);
     });
+  });
 
-    describe('truncateDoc', function () {
-      var sevenLineDoc = '{\n"line2": 2,\n"line3": 3,\n"line4": 4,\n"line5": 5,\n"line6": 6\n}';
-
-      it('does no truncation if maxRows set higher than doc', function () {
-        var result = Helpers.truncateDoc(sevenLineDoc, 10);
-        assert.equal(result.isTruncated, false);
-        assert.equal(result.content, result.content);
-      });
+  describe('truncateDoc', function () {
+    var sevenLineDoc = '{\n"line2": 2,\n"line3": 3,\n"line4": 4,\n"line5": 5,\n"line6": 6\n}';
 
-      it('truncates by specified line count', function () {
-        var result = Helpers.truncateDoc(sevenLineDoc, 5);
-        assert.equal(result.isTruncated, true);
-        assert.equal(result.content, '{\n"line2": 2,\n"line3": 3,\n"line4": 4,\n"line5": 5,');
+    it('does no truncation if maxRows set higher than doc', function () {
+      var result = Helpers.truncateDoc(sevenLineDoc, 10);
+      assert.equal(result.isTruncated, false);
+      assert.equal(result.content, result.content);
+    });
 
-        var result2 = Helpers.truncateDoc(sevenLineDoc, 2);
-        assert.equal(result2.isTruncated, true);
-        assert.equal(result2.content, '{\n"line2": 2,');
-      });
+    it('truncates by specified line count', function () {
+      var result = Helpers.truncateDoc(sevenLineDoc, 5);
+      assert.equal(result.isTruncated, true);
+      assert.equal(result.content, '{\n"line2": 2,\n"line3": 3,\n"line4": 4,\n"line5": 5,');
 
+      var result2 = Helpers.truncateDoc(sevenLineDoc, 2);
+      assert.equal(result2.isTruncated, true);
+      assert.equal(result2.content, '{\n"line2": 2,');
     });
 
   });

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/bulkDelete.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/bulkDelete.js b/app/addons/documents/tests/nightwatch/bulkDelete.js
index 0721884..5b8a5a9 100644
--- a/app/addons/documents/tests/nightwatch/bulkDelete.js
+++ b/app/addons/documents/tests/nightwatch/bulkDelete.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Bulk deletes': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/changes.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/changes.js b/app/addons/documents/tests/nightwatch/changes.js
index 81c91e5..0620175 100644
--- a/app/addons/documents/tests/nightwatch/changes.js
+++ b/app/addons/documents/tests/nightwatch/changes.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Does not display the View-Selector-Button': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/changesFilter.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/changesFilter.js b/app/addons/documents/tests/nightwatch/changesFilter.js
index 050df1c..b5191de 100644
--- a/app/addons/documents/tests/nightwatch/changesFilter.js
+++ b/app/addons/documents/tests/nightwatch/changesFilter.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   // some basic test for the changes page. All of this and more is covered in the

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/checkSidebarBehavior.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/checkSidebarBehavior.js b/app/addons/documents/tests/nightwatch/checkSidebarBehavior.js
index c259b00..7db7eaa 100644
--- a/app/addons/documents/tests/nightwatch/checkSidebarBehavior.js
+++ b/app/addons/documents/tests/nightwatch/checkSidebarBehavior.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Checks if design docs that have a dot symbol in the id show up in the UI': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/createsDocument.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/createsDocument.js b/app/addons/documents/tests/nightwatch/createsDocument.js
index eddb58a..7dc3f7d 100644
--- a/app/addons/documents/tests/nightwatch/createsDocument.js
+++ b/app/addons/documents/tests/nightwatch/createsDocument.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
   'Creates a document' : function (client) {
     /*jshint multistr: true */

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/createsDocumentWithoutId.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/createsDocumentWithoutId.js b/app/addons/documents/tests/nightwatch/createsDocumentWithoutId.js
index 288cb91..fe70b8a 100644
--- a/app/addons/documents/tests/nightwatch/createsDocumentWithoutId.js
+++ b/app/addons/documents/tests/nightwatch/createsDocumentWithoutId.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
   'Creates a document without id' : function (client) {
     /*jshint multistr: true */

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/deleteDatabaseModal.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/deleteDatabaseModal.js b/app/addons/documents/tests/nightwatch/deleteDatabaseModal.js
index 26f659a..d109934 100644
--- a/app/addons/documents/tests/nightwatch/deleteDatabaseModal.js
+++ b/app/addons/documents/tests/nightwatch/deleteDatabaseModal.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 var helpers = require('../../../../../test/nightwatch_tests/helpers/helpers.js');
 module.exports = {
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/deletesDocuments.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/deletesDocuments.js b/app/addons/documents/tests/nightwatch/deletesDocuments.js
index 622c357..e483571 100644
--- a/app/addons/documents/tests/nightwatch/deletesDocuments.js
+++ b/app/addons/documents/tests/nightwatch/deletesDocuments.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
   'Deletes a document': function (client) {
     var waitTime = client.globals.maxWaitTime,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/designDocInfoPresent.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/designDocInfoPresent.js b/app/addons/documents/tests/nightwatch/designDocInfoPresent.js
index 2cc7930..628bee8 100644
--- a/app/addons/documents/tests/nightwatch/designDocInfoPresent.js
+++ b/app/addons/documents/tests/nightwatch/designDocInfoPresent.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
   'Design Doc Metadata present' : function (client) {
     var waitTime = client.globals.maxWaitTime,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/doubleEmitResults.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/doubleEmitResults.js b/app/addons/documents/tests/nightwatch/doubleEmitResults.js
index d83ecb2..c8c7777 100644
--- a/app/addons/documents/tests/nightwatch/doubleEmitResults.js
+++ b/app/addons/documents/tests/nightwatch/doubleEmitResults.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'View results with same id are all shown': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/editDocumentsFromView.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/editDocumentsFromView.js b/app/addons/documents/tests/nightwatch/editDocumentsFromView.js
index 64be89d..3b1fba0 100644
--- a/app/addons/documents/tests/nightwatch/editDocumentsFromView.js
+++ b/app/addons/documents/tests/nightwatch/editDocumentsFromView.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
   'Edit is allowed from default Map Views' : function (client) {
     var waitTime = client.globals.maxWaitTime,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/fixRegressionTableView.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/fixRegressionTableView.js b/app/addons/documents/tests/nightwatch/fixRegressionTableView.js
index 869b98a..4890a6d 100644
--- a/app/addons/documents/tests/nightwatch/fixRegressionTableView.js
+++ b/app/addons/documents/tests/nightwatch/fixRegressionTableView.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Does not crash the table view': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/jsonView.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/jsonView.js b/app/addons/documents/tests/nightwatch/jsonView.js
index 444bd7e..6372fb6 100644
--- a/app/addons/documents/tests/nightwatch/jsonView.js
+++ b/app/addons/documents/tests/nightwatch/jsonView.js
@@ -34,3 +34,4 @@ module.exports = {
       .end();
   }
 };
+

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/lookaheadTray.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/lookaheadTray.js b/app/addons/documents/tests/nightwatch/lookaheadTray.js
index 88a5737..0c89c75 100644
--- a/app/addons/documents/tests/nightwatch/lookaheadTray.js
+++ b/app/addons/documents/tests/nightwatch/lookaheadTray.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
   'The tray opens': function (client) {
     var waitTime = client.globals.maxWaitTime,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/mangoIndex.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/mangoIndex.js b/app/addons/documents/tests/nightwatch/mangoIndex.js
index 8c54d09..2cabd90 100644
--- a/app/addons/documents/tests/nightwatch/mangoIndex.js
+++ b/app/addons/documents/tests/nightwatch/mangoIndex.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Creating new indexes with mango (mangoIndex.js)': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/mangoQuery.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/mangoQuery.js b/app/addons/documents/tests/nightwatch/mangoQuery.js
index 6801436..886fcab 100644
--- a/app/addons/documents/tests/nightwatch/mangoQuery.js
+++ b/app/addons/documents/tests/nightwatch/mangoQuery.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Finding things with with mango': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/navigateAfterEditingDocShouldShowAConfirmationBox.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/navigateAfterEditingDocShouldShowAConfirmationBox.js b/app/addons/documents/tests/nightwatch/navigateAfterEditingDocShouldShowAConfirmationBox.js
index 95e1282..f537525 100644
--- a/app/addons/documents/tests/nightwatch/navigateAfterEditingDocShouldShowAConfirmationBox.js
+++ b/app/addons/documents/tests/nightwatch/navigateAfterEditingDocShouldShowAConfirmationBox.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Navigate to New Doc Page, editing and then clicking on the sidebar should show a confirmation dialog': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/navigateFromNewDoc.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/navigateFromNewDoc.js b/app/addons/documents/tests/nightwatch/navigateFromNewDoc.js
index 6807a3d..88c1ef5 100644
--- a/app/addons/documents/tests/nightwatch/navigateFromNewDoc.js
+++ b/app/addons/documents/tests/nightwatch/navigateFromNewDoc.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   // this tests that the user is able to just navigate to and from the New View page without errors [it confirms

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/navigateToNewView.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/navigateToNewView.js b/app/addons/documents/tests/nightwatch/navigateToNewView.js
index 232ef7c..7aa47fe 100644
--- a/app/addons/documents/tests/nightwatch/navigateToNewView.js
+++ b/app/addons/documents/tests/nightwatch/navigateToNewView.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   // this tests that the user is able to just navigate to and from the New View page without errors [it confirms

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/paginateAllDocs.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/paginateAllDocs.js b/app/addons/documents/tests/nightwatch/paginateAllDocs.js
index 44bf229..b529181 100644
--- a/app/addons/documents/tests/nightwatch/paginateAllDocs.js
+++ b/app/addons/documents/tests/nightwatch/paginateAllDocs.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'change number of items per page': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/paginateView.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/paginateView.js b/app/addons/documents/tests/nightwatch/paginateView.js
index 2ec10e0..3b6256d 100644
--- a/app/addons/documents/tests/nightwatch/paginateView.js
+++ b/app/addons/documents/tests/nightwatch/paginateView.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
 	'change number of items per page': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/previousButton.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/previousButton.js b/app/addons/documents/tests/nightwatch/previousButton.js
index 39ef44c..e1b3efa 100644
--- a/app/addons/documents/tests/nightwatch/previousButton.js
+++ b/app/addons/documents/tests/nightwatch/previousButton.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
   'Mango: Navigate back to _all_docs': function (client) {
     var newDatabaseName = client.globals.testDatabaseName,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/queryOptions.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/queryOptions.js b/app/addons/documents/tests/nightwatch/queryOptions.js
index 4b105a4..7a0416e 100644
--- a/app/addons/documents/tests/nightwatch/queryOptions.js
+++ b/app/addons/documents/tests/nightwatch/queryOptions.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Query Options: check startkey filters properly': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/queryOptionsCloseBug.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/queryOptionsCloseBug.js b/app/addons/documents/tests/nightwatch/queryOptionsCloseBug.js
index 561e1ea..c7430be 100644
--- a/app/addons/documents/tests/nightwatch/queryOptionsCloseBug.js
+++ b/app/addons/documents/tests/nightwatch/queryOptionsCloseBug.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Query Options: close if opened / closed multiple times': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/revBrowser.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/revBrowser.js b/app/addons/documents/tests/nightwatch/revBrowser.js
index 1a26785..6bac281 100644
--- a/app/addons/documents/tests/nightwatch/revBrowser.js
+++ b/app/addons/documents/tests/nightwatch/revBrowser.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
   'is able to show two docs next to each other, and diff them' : function (client) {
     /*jshint multistr: true */

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/selectDocViaTypeahead.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/selectDocViaTypeahead.js b/app/addons/documents/tests/nightwatch/selectDocViaTypeahead.js
index 217c9b0..12ae6eb 100644
--- a/app/addons/documents/tests/nightwatch/selectDocViaTypeahead.js
+++ b/app/addons/documents/tests/nightwatch/selectDocViaTypeahead.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Select doc via typeahead field redirects user': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/switchDatabaseViaLookaheadTray.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/switchDatabaseViaLookaheadTray.js b/app/addons/documents/tests/nightwatch/switchDatabaseViaLookaheadTray.js
index 5aa49fe..dda04c3 100644
--- a/app/addons/documents/tests/nightwatch/switchDatabaseViaLookaheadTray.js
+++ b/app/addons/documents/tests/nightwatch/switchDatabaseViaLookaheadTray.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
   'Confirm switching databases via lookahead tray': function (client) {
     var waitTime = client.globals.maxWaitTime,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/tableView.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/tableView.js b/app/addons/documents/tests/nightwatch/tableView.js
index 21644cd..27ea089 100644
--- a/app/addons/documents/tests/nightwatch/tableView.js
+++ b/app/addons/documents/tests/nightwatch/tableView.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Shows data in the table for all docs (include docs enabled)': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/tableViewConflicts.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/tableViewConflicts.js b/app/addons/documents/tests/nightwatch/tableViewConflicts.js
index aaeb964..76cea81 100644
--- a/app/addons/documents/tests/nightwatch/tableViewConflicts.js
+++ b/app/addons/documents/tests/nightwatch/tableViewConflicts.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Shows how many conflicts have appeared': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/uploadAttachment.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/uploadAttachment.js b/app/addons/documents/tests/nightwatch/uploadAttachment.js
index b534823..4b1192e 100644
--- a/app/addons/documents/tests/nightwatch/uploadAttachment.js
+++ b/app/addons/documents/tests/nightwatch/uploadAttachment.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
   'Uploading an attachment works': function (client) {
     /*jshint multistr: true */

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/viewClone.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/viewClone.js b/app/addons/documents/tests/nightwatch/viewClone.js
index 9127c25..41af1ac 100644
--- a/app/addons/documents/tests/nightwatch/viewClone.js
+++ b/app/addons/documents/tests/nightwatch/viewClone.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Clones a view': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/viewCreate.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/viewCreate.js b/app/addons/documents/tests/nightwatch/viewCreate.js
index 4eacb91..ecefc71 100644
--- a/app/addons/documents/tests/nightwatch/viewCreate.js
+++ b/app/addons/documents/tests/nightwatch/viewCreate.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Creates a Design Doc using the dropdown at "all documents"': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/viewCreateBadView.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/viewCreateBadView.js b/app/addons/documents/tests/nightwatch/viewCreateBadView.js
index 0555cf4..2145adc 100644
--- a/app/addons/documents/tests/nightwatch/viewCreateBadView.js
+++ b/app/addons/documents/tests/nightwatch/viewCreateBadView.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Displays an error if reduce is not possible': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/viewDelete.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/viewDelete.js b/app/addons/documents/tests/nightwatch/viewDelete.js
index 0e5dee1..6671a33 100644
--- a/app/addons/documents/tests/nightwatch/viewDelete.js
+++ b/app/addons/documents/tests/nightwatch/viewDelete.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Deletes a view': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/viewEdit.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/viewEdit.js b/app/addons/documents/tests/nightwatch/viewEdit.js
index 20c0f5f..7349592 100644
--- a/app/addons/documents/tests/nightwatch/viewEdit.js
+++ b/app/addons/documents/tests/nightwatch/viewEdit.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
 
   'Edits a design doc - renames index': function (client) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0ca35da7/app/addons/documents/tests/nightwatch/viewQueryOptions.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/viewQueryOptions.js b/app/addons/documents/tests/nightwatch/viewQueryOptions.js
index 2ec943c..ac4c161 100644
--- a/app/addons/documents/tests/nightwatch/viewQueryOptions.js
+++ b/app/addons/documents/tests/nightwatch/viewQueryOptions.js
@@ -10,6 +10,18 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+// 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.
+
 module.exports = {
   'Edit view: Queryoptions work': function (client) {
     /*jshint multistr: true */


Mime
View raw message