mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-21 10:33:34 +00:00
This is a facade interface that ties together a bunch of different internal objects and will make it easier to write tests for behaviors, modes, and operations.
10 lines
278 B
JavaScript
10 lines
278 B
JavaScript
describe("iD.ui.modal", function () {
|
|
it('can be instantiated', function () {
|
|
var modal = iD.ui.modal()
|
|
.select('.content')
|
|
.text('foo');
|
|
expect(modal).to.be.ok;
|
|
happen.keydown(document, {keyCode: 27}); // dismiss
|
|
});
|
|
});
|