From f73f1a54295aac57ba89587bf8378985093275c6 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Sun, 25 Nov 2012 16:21:15 -0400 Subject: [PATCH] Add Inspector specs --- js/iD/ui/Inspector.js | 2 + test/index.html | 2 + test/lib/happen.js | 91 ++++++++++++++++++++++++++++++++++++++++++ test/spec/Inspector.js | 43 ++++++++++++++++++++ 4 files changed, 138 insertions(+) create mode 100644 test/lib/happen.js create mode 100644 test/spec/Inspector.js diff --git a/js/iD/ui/Inspector.js b/js/iD/ui/Inspector.js index 0566b8eac..5fab53c85 100644 --- a/js/iD/ui/Inspector.js +++ b/js/iD/ui/Inspector.js @@ -95,6 +95,7 @@ iD.Inspector = function() { d3.select(this) .append('button') + .attr('class', 'save') .text('Save') .on('click', function() { event.change(entity, newtags(table)); @@ -102,6 +103,7 @@ iD.Inspector = function() { d3.select(this) .append('button') + .attr('class', 'delete') .text('Delete') .on('click', function() { event.remove(entity); diff --git a/test/index.html b/test/index.html index 0d2cdbbe6..24ca3b44e 100644 --- a/test/index.html +++ b/test/index.html @@ -7,6 +7,7 @@ + @@ -47,6 +48,7 @@ +