try to appease CI

This commit is contained in:
Florian Staudacher 2014-02-18 15:47:18 +01:00
parent b0502ef07e
commit dc1c156175
2 changed files with 4 additions and 4 deletions

View file

@ -6,8 +6,8 @@ app.views.Header = app.views.Base.extend({
events : { events : {
"click ul.dropdown li:first-child" : "toggleDropdown", "click ul.dropdown li:first-child" : "toggleDropdown",
"focus #q": "toggleSearchActive", "focusin #q": "toggleSearchActive",
"blur #q": "toggleSearchActive" "focusout #q": "toggleSearchActive"
}, },
initialize : function(options) { initialize : function(options) {

View file

@ -83,7 +83,7 @@ describe("app.views.Header", function() {
describe("focus", function() { describe("focus", function() {
it("adds the class 'active' when the user focuses the text field", function() { it("adds the class 'active' when the user focuses the text field", function() {
input.trigger('focus'); input.trigger('focusin');
waitsFor(function() { waitsFor(function() {
return input.is('.active'); return input.is('.active');
}); });
@ -95,7 +95,7 @@ describe("app.views.Header", function() {
describe("blur", function() { describe("blur", function() {
it("removes the class 'active' when the user blurs the text field", 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"); expect(input).not.toHaveClass("active");
}); });
}); });