summaryrefslogtreecommitdiff
path: root/web-ui/test/spec
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-10-27 11:37:46 -0200
committerGiovane <giovaneliberato@gmail.com>2015-10-27 11:37:46 -0200
commit2bdea2fbbb8cce55462cae554b85c8d275ccb0a1 (patch)
tree278e3baf726bcf928215b949da50f795c4fd4033 /web-ui/test/spec
parent2981e337140f67c1d555741fa5f9f663c651f26f (diff)
Remove email parsing on space keydown #505
Diffstat (limited to 'web-ui/test/spec')
-rw-r--r--web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js b/web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js
index c0b3d22f..6fdf9711 100644
--- a/web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js
+++ b/web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js
@@ -87,21 +87,6 @@ describeComponent('mail_view/ui/recipients/recipients_input',function () {
expect(addressEnteredEvent).not.toHaveBeenTriggeredOnAndWith(this, { name: 'to', address: ''});
});
});
-
- describe('when space is pressed', function () {
- it('should tokenize email address', function () {
- var addressEnteredEvent = spyOnEvent(this.$node, Pixelated.events.ui.recipients.entered);
-
- var spaceKeyPressEvent = $.Event('keydown', { which: 32});
- spyOn(spaceKeyPressEvent, 'preventDefault');
-
- this.$node.val('a@b.c');
- this.$node.trigger(spaceKeyPressEvent);
-
- expect(spaceKeyPressEvent.preventDefault).toHaveBeenCalled();
- expect(addressEnteredEvent).toHaveBeenTriggeredOnAndWith(this, { name: 'to', address: 'a@b.c' });
- });
- });
});
describe('on keyup', function () {