diff options
Diffstat (limited to 'menubar/main.swift')
| -rw-r--r-- | menubar/main.swift | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/menubar/main.swift b/menubar/main.swift index c37386e..1b6ce4f 100644 --- a/menubar/main.swift +++ b/menubar/main.swift @@ -408,6 +408,8 @@ if arguments.contains("--selftest") { if importanceListed != importanceExpected { failures.append("order: status first, then importance, then time: \(importanceListed)") } + if isDrag(from: .zero, to: NSPoint(x: 2, y: 3)) { failures.append("click: a few points of jitter is a click") } + if !isDrag(from: .zero, to: NSPoint(x: 0, y: 5)) { failures.append("click: moving 5 points is a drag") } let high = Row(paneId: "%1", agent: "pi", name: "Fix it", status: .done, session: "s", window: "w", since: 1, importance: .high) if rowTitle(high).string != "✓ ! Fix it" || rowTitlePrefix(high) != "✓ ! " { failures.append("title: a high agent is marked: \(rowTitle(high).string)") |
