diff options
author | Patrick Maia <pixelated-team+patrick@thoughtworks.com> | 2014-08-08 17:51:33 -0300 |
---|---|---|
committer | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-08-08 17:51:33 -0300 |
commit | 97e762a0832593031ae71ab1e11d4c0e377a00f4 (patch) | |
tree | 213e835f4effbaf97f0922e5941065b1329d0501 /web-ui/test/spec/mail_view/ui/recipients | |
parent | f22a6a32e901f52b2b3f2b3fd8625c43302ff001 (diff) |
replaces Smail by Pixelated in all js files
Diffstat (limited to 'web-ui/test/spec/mail_view/ui/recipients')
3 files changed, 12 insertions, 12 deletions
diff --git a/web-ui/test/spec/mail_view/ui/recipients/recipients.spec.js b/web-ui/test/spec/mail_view/ui/recipients/recipients.spec.js index 692bf0eb..672cf4a3 100644 --- a/web-ui/test/spec/mail_view/ui/recipients/recipients.spec.js +++ b/web-ui/test/spec/mail_view/ui/recipients/recipients.spec.js @@ -1,4 +1,4 @@ -/* global Smail */ +/* global Pixelated */ describeComponent('mail_view/ui/recipients/recipients',function () { 'use strict'; @@ -11,7 +11,7 @@ describeComponent('mail_view/ui/recipients/recipients',function () { }); it('does not trigger recipients updated events on initialization', function() { - recipientsUpdatedEvent = spyOnEvent(document, Smail.events.ui.recipients.updated); + recipientsUpdatedEvent = spyOnEvent(document, Pixelated.events.ui.recipients.updated); setupComponent({name: 'to', addresses: ['foobar@gmail.com'] }); expect(recipientsUpdatedEvent).not.toHaveBeenTriggeredOn(document); @@ -21,8 +21,8 @@ describeComponent('mail_view/ui/recipients/recipients',function () { describe('adding recipients from the ui', function() { beforeEach(function () { setupComponent(); - recipientsUpdatedEvent = spyOnEvent(document, Smail.events.ui.recipients.updated); - this.component.trigger(Smail.events.ui.recipients.entered, {name: 'to', addresses: ['foobar@gmail.com'] }); + recipientsUpdatedEvent = spyOnEvent(document, Pixelated.events.ui.recipients.updated); + this.component.trigger(Pixelated.events.ui.recipients.entered, {name: 'to', addresses: ['foobar@gmail.com'] }); }); it('triggers recipients updated', function() { 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 0f98d007..f54781a7 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 @@ -1,4 +1,4 @@ -/* global Smail */ +/* global Pixelated */ describeComponent('mail_view/ui/recipients/recipients_input',function () { 'use strict'; @@ -17,7 +17,7 @@ describeComponent('mail_view/ui/recipients/recipients_input',function () { ], function (keycode) { it(': ' + keycode[1], function () { - var addressEnteredEvent = spyOnEvent(this.$node, Smail.events.ui.recipients.entered); + var addressEnteredEvent = spyOnEvent(this.$node, Pixelated.events.ui.recipients.entered); var enterAddressKeyPressEvent = $.Event('keydown', { which: keycode[0] }); this.$node.val('a@b.c'); @@ -27,7 +27,7 @@ describeComponent('mail_view/ui/recipients/recipients_input',function () { }); it('wont add address if val is empty: ' + keycode[1], function () { - var addressEnteredEvent = spyOnEvent(this.$node, Smail.events.ui.recipients.entered); + var addressEnteredEvent = spyOnEvent(this.$node, Pixelated.events.ui.recipients.entered); var enterAddressKeyPressEvent = $.Event('keydown', { which: keycode[0] }); this.$node.val(''); @@ -54,7 +54,7 @@ describeComponent('mail_view/ui/recipients/recipients_input',function () { describe('when tab is pressed', function () { it('enters an address and prevents event default if there is an input val', function () { - var addressEnteredEvent = spyOnEvent(this.$node, Smail.events.ui.recipients.entered); + var addressEnteredEvent = spyOnEvent(this.$node, Pixelated.events.ui.recipients.entered); var tabKeyPressEvent = $.Event('keydown', { which: 9}); spyOn(tabKeyPressEvent, 'preventDefault'); @@ -67,7 +67,7 @@ describeComponent('mail_view/ui/recipients/recipients_input',function () { }); it('doesnt enter an address and doesnt prevent event default if input val is empty (so tab moves it to the next input)', function () { - var addressEnteredEvent = spyOnEvent(this.$node, Smail.events.ui.recipients.entered); + var addressEnteredEvent = spyOnEvent(this.$node, Pixelated.events.ui.recipients.entered); var tabKeyPressEvent = $.Event('keydown', { which: 9}); spyOn(tabKeyPressEvent, 'preventDefault'); @@ -83,7 +83,7 @@ describeComponent('mail_view/ui/recipients/recipients_input',function () { describe('on keyup', function () { it('triggers inputHasNoMail if input is empty', function () { - var inputHasNoMailEvent = spyOnEvent(document, Smail.events.ui.recipients.inputHasNoMail); + var inputHasNoMailEvent = spyOnEvent(document, Pixelated.events.ui.recipients.inputHasNoMail); this.$node.val(''); this.$node.trigger('keyup'); @@ -92,7 +92,7 @@ describeComponent('mail_view/ui/recipients/recipients_input',function () { }); it('triggers inputHasMail if input is not empty', function () { - var inputHasMailEvent = spyOnEvent(document, Smail.events.ui.recipients.inputHasMail); + var inputHasMailEvent = spyOnEvent(document, Pixelated.events.ui.recipients.inputHasMail); this.$node.val('lalala'); this.$node.trigger('keyup'); diff --git a/web-ui/test/spec/mail_view/ui/recipients/recipients_iterator.spec.js b/web-ui/test/spec/mail_view/ui/recipients/recipients_iterator.spec.js index 480ea256..095689c2 100644 --- a/web-ui/test/spec/mail_view/ui/recipients/recipients_iterator.spec.js +++ b/web-ui/test/spec/mail_view/ui/recipients/recipients_iterator.spec.js @@ -1,4 +1,4 @@ -/* global Smail */ +/* global Pixelated */ define(['mail_view/ui/recipients/recipients_iterator'], function (RecipientsIterator) { 'use strict'; |