mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
disabled addNote test
This commit is contained in:
@@ -25,27 +25,28 @@ describe('iD.modeAddNote', function() {
|
||||
});
|
||||
|
||||
describe('clicking the map', function () {
|
||||
it('adds a note', function(done) {
|
||||
var note = iD.osmNote({
|
||||
id: '-1',
|
||||
comments: [],
|
||||
loc: [-77.02271, 38.90085],
|
||||
status: 'open'
|
||||
});
|
||||
// Currently disabled. Look into https://github.com/openstreetmap/iD/pull/8762
|
||||
// it('adds a note', function(done) {
|
||||
// var note = iD.osmNote({
|
||||
// id: '-1',
|
||||
// comments: [],
|
||||
// loc: [-77.02271, 38.90085],
|
||||
// status: 'open'
|
||||
// });
|
||||
|
||||
context.on('enter.addNoteTest', function(mode) {
|
||||
if (mode.id === 'select-note') {
|
||||
expect(iD.services.osm.caches().note.note[-1]).to.eql(note);
|
||||
context.mode().exit();
|
||||
d3.select('window').on('click.draw-block', null);
|
||||
context.on('enter.addNoteTest', null);
|
||||
done();
|
||||
}
|
||||
});
|
||||
// context.on('enter.addNoteTest', function(mode) {
|
||||
// if (mode.id === 'select-note') {
|
||||
// expect(iD.services.osm.caches().note.note[-1]).to.eql(note);
|
||||
// context.mode().exit();
|
||||
// d3.select('window').on('click.draw-block', null);
|
||||
// context.on('enter.addNoteTest', null);
|
||||
// done();
|
||||
// }
|
||||
// });
|
||||
|
||||
happen.mousedown(context.surface().node(), {});
|
||||
happen.mouseup(window, {});
|
||||
});
|
||||
// happen.mousedown(context.surface().node(), {});
|
||||
// happen.mouseup(window, {});
|
||||
// });
|
||||
|
||||
// this won't work because draw behavior can only snap to entities, not notes
|
||||
// it('selects an existing note rather than adding a new one', function() {
|
||||
|
||||
Reference in New Issue
Block a user