mirror of https://gitee.com/bigwinds/arangodb
removed dead code - collectionView not used anymore, because of new modal concept - tests adjusted - part 2
This commit is contained in:
parent
b5f0fce04a
commit
860c51c390
|
@ -15,7 +15,6 @@
|
|||
|
||||
<!-- include scripts to check here -->
|
||||
<script type="text/javascript" src="../js/views/aboutView.js"></script>
|
||||
<script type="text/javascript" src="../js/views/collectionView.js"></script>
|
||||
<script type="text/javascript" src="../js/views/collectionsItemView.js"></script>
|
||||
<script type="text/javascript" src="../js/views/collectionsView.js"></script>
|
||||
<script type="text/javascript" src="../js/views/dashboardView.js"></script>
|
||||
|
|
|
@ -146,7 +146,6 @@
|
|||
"frontend/js/views/dashboardView.js",
|
||||
"frontend/js/views/newDashboardView.js",
|
||||
"frontend/js/views/collectionsView.js",
|
||||
"frontend/js/views/collectionView.js",
|
||||
"frontend/js/views/collectionsItemView.js",
|
||||
"frontend/js/views/documentsView.js",
|
||||
"frontend/js/views/documentView.js",
|
||||
|
@ -250,7 +249,6 @@
|
|||
"test/specs/views/appDocumentationViewSpec.js",
|
||||
"test/specs/views/modalViewSpec.js",
|
||||
"test/specs/views/editListEntryViewSpec.js",
|
||||
"test/specs/views/collectionViewSpec.js",
|
||||
"test/specs/views/collectionsViewSpec.js",
|
||||
"test/specs/views/dbSelectionViewSpec.js",
|
||||
"test/specs/views/navigationViewSpec.js",
|
||||
|
|
|
@ -156,7 +156,6 @@ module.exports = function(karma) {
|
|||
'frontend/js/views/shellView.js',
|
||||
'frontend/js/views/dashboardView.js',
|
||||
'frontend/js/views/collectionsView.js',
|
||||
'frontend/js/views/collectionView.js',
|
||||
'frontend/js/views/collectionsItemView.js',
|
||||
'frontend/js/views/documentsView.js',
|
||||
'frontend/js/views/documentView.js',
|
||||
|
|
|
@ -0,0 +1,168 @@
|
|||
{ "files": [
|
||||
"test/lib/jasmine-1.3.1/jasmine-html.js",
|
||||
"test/lib/jslint.js",
|
||||
{ "pattern": "frontend/js/templates/*.ejs", "served": true, "included": false, "watched": true},
|
||||
"frontend/js/lib/jquery-2.1.0.min.js",
|
||||
"test/mocks/overwriteAjax.js",
|
||||
"frontend/js/lib/jquery-ui-1.9.2.custom.js",
|
||||
"frontend/js/lib/jquery.dataTables.js",
|
||||
"frontend/js/lib/jquery.autogrow.js",
|
||||
"frontend/js/lib/jquery.jeditable.js",
|
||||
"frontend/js/lib/jquery.jeditable.autogrow.js",
|
||||
"frontend/js/lib/jquery.snippet.js",
|
||||
"frontend/js/lib/jquery.slideto.min.js",
|
||||
"frontend/js/lib/jquery.wiggle.min.js",
|
||||
"frontend/js/lib/jquery.contextmenu.js",
|
||||
"frontend/js/lib/handlebars-1.0.rc.1.js",
|
||||
"frontend/js/lib/underscore.js",
|
||||
"frontend/js/lib/backbone.js",
|
||||
"frontend/js/lib/d3.v3.min.js",
|
||||
"frontend/js/lib/nv.d3.js",
|
||||
"frontend/js/lib/d3.fisheye.js",
|
||||
"frontend/js/lib/ColVis.js",
|
||||
"frontend/js/lib/bootstrap.js",
|
||||
"frontend/js/lib/bootstrap-pagination.js",
|
||||
"frontend/src/ace.js",
|
||||
"frontend/js/lib/jqconsole.min.js",
|
||||
"frontend/js/lib/swagger.js",
|
||||
"frontend/js/lib/swagger-ui.js",
|
||||
"frontend/js/lib/highlight.7.3.pack.js",
|
||||
"test/mocks/disableEJS.js",
|
||||
"frontend/js/arango/arango.js",
|
||||
"frontend/js/shell/browser.js",
|
||||
"frontend/js/modules/org/arangodb/arango-collection-common.js",
|
||||
"frontend/js/modules/org/arangodb/arango-collection.js",
|
||||
"frontend/js/modules/org/arangodb/arango-database.js",
|
||||
"frontend/js/modules/org/arangodb/arango-query-cursor.js",
|
||||
"frontend/js/modules/org/arangodb/arango-statement-common.js",
|
||||
"frontend/js/modules/org/arangodb/arango-statement.js",
|
||||
"frontend/js/modules/org/arangodb/arangosh.js",
|
||||
"frontend/js/modules/org/arangodb/graph-common.js",
|
||||
"frontend/js/modules/org/arangodb/graph.js",
|
||||
"frontend/js/modules/org/arangodb/mimetypes.js",
|
||||
"frontend/js/modules/org/arangodb/simple-query-common.js",
|
||||
"frontend/js/modules/org/arangodb/simple-query.js",
|
||||
"frontend/js/modules/org/arangodb/aql/functions.js",
|
||||
"frontend/js/modules/org/arangodb/graph/traversal.js",
|
||||
"frontend/js/modules/org/arangodb-common.js",
|
||||
"frontend/js/modules/org/arangodb.js",
|
||||
"frontend/js/bootstrap/errors.js",
|
||||
"frontend/js/bootstrap/monkeypatches.js",
|
||||
"frontend/js/bootstrap/module-internal.js",
|
||||
"frontend/js/client/bootstrap/module-internal.js",
|
||||
"frontend/js/client/client.js",
|
||||
|
||||
"test/specs/graphViewer/helper/eventHelper.js",
|
||||
"test/specs/graphViewer/helper/objectsHelper.js",
|
||||
"test/specs/graphViewer/helper/mocks.js",
|
||||
"test/specs/graphViewer/helper/commMock.js",
|
||||
"test/specs/graphViewer/helper/uiMatchers.js",
|
||||
|
||||
"frontend/js/graphViewer/graphViewer.js",
|
||||
"frontend/js/graphViewer/graph/domObserverFactory.js",
|
||||
"frontend/js/graphViewer/graph/colourMapper.js",
|
||||
"frontend/js/graphViewer/graph/communityNode.js",
|
||||
"frontend/js/graphViewer/graph/webWorkerWrapper.js",
|
||||
"frontend/js/graphViewer/graph/nodeShaper.js",
|
||||
"frontend/js/graphViewer/graph/abstractAdapter.js",
|
||||
"frontend/js/graphViewer/graph/JSONAdapter.js",
|
||||
"frontend/js/graphViewer/graph/arangoAdapter.js",
|
||||
"frontend/js/graphViewer/graph/foxxAdapter.js",
|
||||
"frontend/js/graphViewer/graph/previewAdapter.js",
|
||||
"frontend/js/graphViewer/graph/edgeShaper.js",
|
||||
"frontend/js/graphViewer/graph/forceLayouter.js",
|
||||
"frontend/js/graphViewer/graph/eventDispatcher.js",
|
||||
"frontend/js/graphViewer/graph/eventLibrary.js",
|
||||
"frontend/js/graphViewer/graph/zoomManager.js",
|
||||
"frontend/js/graphViewer/graph/nodeReducer.js",
|
||||
"frontend/js/graphViewer/graph/modularityJoiner.js",
|
||||
|
||||
"frontend/js/graphViewer/ui/modalDialogHelper.js",
|
||||
"frontend/js/graphViewer/ui/contextMenuHelper.js",
|
||||
"frontend/js/graphViewer/ui/nodeShaperControls.js",
|
||||
"frontend/js/graphViewer/ui/edgeShaperControls.js",
|
||||
"frontend/js/graphViewer/ui/arangoAdapterControls.js",
|
||||
"frontend/js/graphViewer/ui/layouterControls.js",
|
||||
"frontend/js/graphViewer/ui/uiComponentsHelper.js",
|
||||
"frontend/js/graphViewer/ui/eventDispatcherControls.js",
|
||||
"frontend/js/graphViewer/ui/graphViewerUI.js",
|
||||
"frontend/js/graphViewer/ui/graphViewerWidget.js",
|
||||
"frontend/js/graphViewer/ui/graphViewerPreview.js",
|
||||
|
||||
"frontend/js/models/currentDatabase.js",
|
||||
"frontend/js/models/arangoCollectionModel.js",
|
||||
"frontend/js/models/arangoDatabase.js",
|
||||
"frontend/js/models/arangoDocument.js",
|
||||
"frontend/js/models/arangoStatistics.js",
|
||||
"frontend/js/models/arangoStatisticsDescription.js",
|
||||
"frontend/js/models/arangoUsers.js",
|
||||
"frontend/js/models/foxx.js",
|
||||
"frontend/js/models/notification.js",
|
||||
"frontend/js/models/graph.js",
|
||||
"clusterFrontend/js/models/clusterServer.js",
|
||||
"clusterFrontend/js/models/clusterCoordinator.js",
|
||||
"clusterFrontend/js/models/clusterDatabase.js",
|
||||
"clusterFrontend/js/models/clusterCollection.js",
|
||||
"clusterFrontend/js/models/clusterShard.js",
|
||||
|
||||
"frontend/js/collections/arangoCollections.js",
|
||||
"frontend/js/collections/arangoDocuments.js",
|
||||
"frontend/js/collections/arangoDocument.js",
|
||||
"frontend/js/collections/arangoDatabase.js",
|
||||
"frontend/js/collections/arangoUsers.js",
|
||||
"frontend/js/collections/arangoStatisticsCollection.js",
|
||||
"frontend/js/collections/arangoStatisticsDescriptionCollection.js",
|
||||
"frontend/js/collections/foxxCollection.js",
|
||||
"frontend/js/collections/graphCollection.js",
|
||||
"clusterFrontend/js/collections/clusterServers.js",
|
||||
"clusterFrontend/js/collections/clusterCoordinators.js",
|
||||
"clusterFrontend/js/collections/clusterDatabases.js",
|
||||
"clusterFrontend/js/collections/clusterCollections.js",
|
||||
"clusterFrontend/js/collections/clusterShards.js",
|
||||
"frontend/js/collections/notificationCollection.js",
|
||||
|
||||
"frontend/js/views/navigationView.js",
|
||||
"frontend/js/views/notificationView.js",
|
||||
"frontend/js/views/apiView.js",
|
||||
"frontend/js/views/footerView.js",
|
||||
"frontend/js/views/queryView.js",
|
||||
"frontend/js/views/shellView.js",
|
||||
"frontend/js/views/dashboardView.js",
|
||||
"frontend/js/views/collectionsView.js",
|
||||
"frontend/js/views/collectionsItemView.js",
|
||||
"frontend/js/views/documentsView.js",
|
||||
"frontend/js/views/documentView.js",
|
||||
"frontend/js/views/logsView.js",
|
||||
"frontend/js/views/applicationsView.js",
|
||||
"frontend/js/views/foxxActiveView.js",
|
||||
"frontend/js/views/foxxInstalledView.js",
|
||||
"frontend/js/views/foxxEditView.js",
|
||||
"frontend/js/views/foxxMountView.js",
|
||||
"frontend/js/views/appDocumentationView.js",
|
||||
"frontend/js/views/graphView.js",
|
||||
"frontend/js/views/graphManagementView.js",
|
||||
"frontend/js/views/addNewGraphView.js",
|
||||
"frontend/js/views/deleteGraphView.js",
|
||||
"frontend/js/views/dbSelectionView.js",
|
||||
"frontend/js/views/editListEntryView.js",
|
||||
"frontend/js/views/loginView.js",
|
||||
"frontend/js/views/clusterDashboardView.js",
|
||||
"frontend/js/views/clusterOverviewView.js",
|
||||
"frontend/js/views/clusterServerView.js",
|
||||
"frontend/js/views/clusterCoordinatorView.js",
|
||||
"frontend/js/views/clusterDatabaseView.js",
|
||||
"frontend/js/views/clusterCollectionView.js",
|
||||
"frontend/js/views/clusterShardsView.js",
|
||||
|
||||
"frontend/js/views/statisticBarView.js",
|
||||
"frontend/js/views/userBarView.js",
|
||||
|
||||
"clusterFrontend/js/views/planScenarioSelectorView.js",
|
||||
"clusterFrontend/js/views/planSymmetricView.js",
|
||||
"clusterFrontend/js/views/planTestView.js",
|
||||
|
||||
"clusterFrontend/js/views/showClusterView.js",
|
||||
|
||||
|
||||
]
|
||||
}
|
|
@ -96,7 +96,6 @@
|
|||
<script src="../js/views/aboutView.js"></script>
|
||||
<script src="../js/views/dashboardView.js"></script>
|
||||
<script src="../js/views/collectionsView.js"></script>
|
||||
<script src="../js/views/collectionView.js"></script>
|
||||
<script src="../js/views/collectionsItemView.js"></script>
|
||||
<script src="../js/views/documentsView.js"></script>
|
||||
<script src="../js/views/documentView.js"></script>
|
||||
|
@ -117,7 +116,6 @@
|
|||
<!-- specs helper --!>
|
||||
<script type="text/javascript" src="specs/arango/arangoSpec.js"></script>
|
||||
<script type="text/javascript" src="specs/views/aboutViewSpec.js"></script>
|
||||
<script type="text/javascript" src="specs/views/collectionViewSpec.js"></script>
|
||||
<script type="text/javascript" src="specs/views/collectionsViewSpec.js"></script>
|
||||
<!-- specs views -->
|
||||
<!-- specs routers --!>
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
|
||||
<!-- views -->
|
||||
<script type="text/javascript" src="../js/views/aboutView.js"></script>
|
||||
<script type="text/javascript" src="../js/views/collectionView.js"></script>
|
||||
<script type="text/javascript" src="../js/views/collectionsItemView.js"></script>
|
||||
<script type="text/javascript" src="../js/views/collectionsView.js"></script>
|
||||
<script type="text/javascript" src="../js/views/dashboardView.js"></script>
|
||||
|
|
|
@ -1,53 +0,0 @@
|
|||
/*jslint indent: 2, nomen: true, maxlen: 100, white: true plusplus: true, browser: true*/
|
||||
/*global describe, beforeEach, afterEach, it, spyOn, expect*/
|
||||
/*global runs, waitsFor, jasmine*/
|
||||
/*global $, arangoCollectionModel*/
|
||||
(function() {
|
||||
"use strict";
|
||||
|
||||
describe("Collection View", function() {
|
||||
|
||||
var myView, isCoordinator;
|
||||
|
||||
|
||||
beforeEach(function() {
|
||||
isCoordinator = false;
|
||||
window.App = {
|
||||
navigate: function() {
|
||||
throw "This should be a spy";
|
||||
}
|
||||
};
|
||||
spyOn(window.App, "navigate");
|
||||
spyOn(window, "isCoordinator").andReturn(isCoordinator);
|
||||
$('body').append('<div id="content" class="removeMe"></div>');
|
||||
|
||||
myView = new window.CollectionView({
|
||||
model: arangoCollectionModel
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
$('.removeMe').remove();
|
||||
delete window.App;
|
||||
});
|
||||
|
||||
|
||||
describe("Collection Changes", function() {
|
||||
it("Check if changes were submitted", function() {
|
||||
|
||||
var pressedEnter = false;
|
||||
myView.render();
|
||||
|
||||
spyOn(myView, 'saveModifiedCollection').andCallFake(function(request) {
|
||||
pressedEnter = true;
|
||||
});
|
||||
|
||||
myView.saveModifiedCollection();
|
||||
expect(pressedEnter).toBeTruthy();
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
}());
|
Loading…
Reference in New Issue