Use summary to calculate # in Save button

This commit is contained in:
John Firebaugh
2013-10-23 13:22:43 -07:00
parent b8e88a7aaf
commit 697faf0265
3 changed files with 2 additions and 22 deletions
-16
View File
@@ -211,22 +211,6 @@ describe("iD.History", function () {
});
});
describe("#numChanges", function() {
it("is 0 when there are no changes", function() {
expect(history.numChanges()).to.eql(0);
});
it("is the sum of all types of changes", function() {
var node1 = iD.Node({id: "n1"}),
node2 = iD.Node();
history.merge({ n1: node1 });
history.perform(function (graph) { return graph.remove(node1); });
expect(history.numChanges()).to.eql(1);
history.perform(function (graph) { return graph.replace(node2); });
expect(history.numChanges()).to.eql(2);
});
});
describe("#reset", function () {
it("clears the version stack", function () {
history.perform(action, "annotation");