Only select child spans in spec selector

This commit is contained in:
Kevin Sawicki
2013-02-13 14:00:58 -08:00
parent 1e325fe28e
commit 7b1f9c86ad

View File

@@ -293,7 +293,7 @@ describe "CommandPanel", ->
expect(commandPanel.previewList).toBeVisible()
expect(commandPanel.previewList).toMatchSelector ':focus'
previewItem = commandPanel.previewList.find("li:contains(sample.js):first")
expect(previewItem.text()).toBe "sample.js(1)"
expect(previewItem.find('> span').text()).toBe "sample.js(1)"
expect(previewItem.next().find('.preview').text()).toBe "var quicksort = function () {"
expect(previewItem.next().find('.preview > .match').text()).toBe "quicksort"
@@ -476,4 +476,3 @@ describe "CommandPanel", ->
previewList.find('li.path:first-child').mousedown()
expect(previewList.find('li.path:first-child ul.matches')).toBeVisible()