try to appease CI
This commit is contained in:
parent
b0502ef07e
commit
dc1c156175
2 changed files with 4 additions and 4 deletions
|
|
@ -6,8 +6,8 @@ app.views.Header = app.views.Base.extend({
|
|||
|
||||
events : {
|
||||
"click ul.dropdown li:first-child" : "toggleDropdown",
|
||||
"focus #q": "toggleSearchActive",
|
||||
"blur #q": "toggleSearchActive"
|
||||
"focusin #q": "toggleSearchActive",
|
||||
"focusout #q": "toggleSearchActive"
|
||||
},
|
||||
|
||||
initialize : function(options) {
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ describe("app.views.Header", function() {
|
|||
|
||||
describe("focus", function() {
|
||||
it("adds the class 'active' when the user focuses the text field", function() {
|
||||
input.trigger('focus');
|
||||
input.trigger('focusin');
|
||||
waitsFor(function() {
|
||||
return input.is('.active');
|
||||
});
|
||||
|
|
@ -95,7 +95,7 @@ describe("app.views.Header", function() {
|
|||
|
||||
describe("blur", function() {
|
||||
it("removes the class 'active' when the user blurs the text field", function() {
|
||||
input.trigger('focus').trigger('blur');
|
||||
input.trigger('focusin').trigger('focusout');
|
||||
expect(input).not.toHaveClass("active");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue