Skip to content

Commit

Permalink
Update sidebar tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Uncommon committed Jun 27, 2018
1 parent f07d899 commit 2bb9e39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion XitTests/XTSideBarDataSourceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -266,16 +266,21 @@ class MockSidebarOutline: NSOutlineView
width: 16, height: 16))
let statusButton = NSButton(frame: NSRect(x: 171, y: 2,
width: 16, height: 16))
let buttonContainer = NSView(frame: NSRect(x: 0, y: 0, width: 20, height: 16))
let missingImage = NSImageView(frame: NSRect(x: 0, y: 0, width: 20, height: 16))
let statusText = NSButton(title: "10", target: nil, action: nil)

for view in [textField, imageView, statusImage, statusButton, statusText] {
for view in [textField, imageView, statusImage, statusButton, statusText,
buttonContainer, missingImage] {
result.addSubview(view)
}
result.textField = textField
result.imageView = imageView
result.statusImage = statusImage
result.statusButton = statusButton
result.statusText = statusText
result.buttonContainer = buttonContainer
result.missingImage = missingImage

return result
}
Expand Down

0 comments on commit 2bb9e39

Please sign in to comment.