Improvements to access field (closes #2763)

This commit is contained in:
Bryan Housel
2015-09-06 22:46:55 -04:00
parent 473f410d2e
commit 522e593f11
7 changed files with 22 additions and 24 deletions
+2 -2
View File
@@ -94,12 +94,12 @@ describe('iD.ui.preset.access', function() {
expect(selection.selectAll('#preset-input-access-bicycle').attr('placeholder')).to.equal('permissive');
});
it('does not override a "no" placeholder with more specific access tag (#2213)', function() {
it('overrides a "no" placeholder with more specific access tag (#2763)', function() {
var access = iD.ui.preset.access(field);
selection.call(access);
access.tags({highway: 'cycleway', access: 'destination'});
expect(selection.selectAll('#preset-input-access-motor_vehicle').attr('placeholder')).to.equal('no');
expect(selection.selectAll('#preset-input-access-motor_vehicle').attr('placeholder')).to.equal('destination');
});
});