Fix specs, add styling for firefox

This commit is contained in:
Piotr Sarnacki 2013-04-05 18:09:00 +02:00
parent 8f891168d7
commit 39d0202d7a
6 changed files with 13 additions and 5 deletions

View File

@ -7,7 +7,7 @@ Travis.reopen
@rerender()
).observes('templateName')
click: ->
click: (event) ->
# TODO: this solves the case of closing menus and popups,
# but I would like to rewrite it later, not sure how
# yet, but this does not seem optimal

View File

@ -64,10 +64,9 @@ Travis.reopen
currentUserBinding: 'controller.currentUser'
closeMenu: ->
console.log 'closeMenu'
$('.menu').removeClass('display')
menu: ->
menu: (event) ->
@popupCloseAll()
$('#tools .menu').toggleClass('display')
event.stopPropagation()

View File

@ -8,6 +8,7 @@
@activate('jobs')
activate: (name) ->
return if @get('activeTab') == name
@set('activeTab', name)
@connectOutlet 'pane', @["#{name.capitalize()}View"].create(controller: @get('controller'))

View File

@ -121,7 +121,10 @@ describe 'events', ->
describe 'an event adding a worker', ->
beforeEach ->
app ''
waitFor workersRendered
waitFor sidebarTabsRendered
runs ->
$('#right #tab_workers a').trigger('click')
waitFor workersRendered
it 'adds a worker to the workers list', ->
payload =
@ -155,7 +158,10 @@ describe 'events', ->
describe 'an event updating a worker', ->
beforeEach ->
app '/travis-ci/travis-core'
waitFor workersRendered
waitFor sidebarTabsRendered
runs ->
$('#right #tab_workers a').trigger('click')
waitFor workersRendered
it 'does not update repository if it\'s already in the store', ->
payload =

View File

@ -12,3 +12,4 @@
@queuesRendered = notEmpty('#queue_linux li')
@workersRendered = notEmpty('.worker')
@sidebarTabsRendered = notEmpty('#right #tab_workers a')

View File

@ -57,5 +57,6 @@
white-space: nowrap
text-overflow: ellipsis
display: inline-block
display: -moz-inline-stack
.group a
cursor: pointer