mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Only select child spans in spec selector
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user