feat(menubar): 拆分紧凑双页面板并按页采样
This commit is contained in:
@@ -28,6 +28,12 @@ import Foundation
|
||||
precondition(sorted.last?.id == replacement.id, "Missing footprint sorts last in both directions")
|
||||
precondition(sorted.first?.id == (direction == .forward ? row.id : large.id))
|
||||
}
|
||||
var low = row, high = large, zero = replacement
|
||||
low.cpuPower = 0.01; high.cpuPower = 3; zero.cpuPower = 0
|
||||
for direction in [SortOrder.forward, .reverse] {
|
||||
let sorted = ProcessTableProjection.rows([row, high, low, zero], query: "", sorting: [ProcessSort(key: .power, order: direction)], order: [])
|
||||
precondition(sorted.last?.cpuPower == nil && sorted.first?.cpuPower == (direction == .forward ? 0 : 3))
|
||||
}
|
||||
print("PASS: filtered/live selection, absent selection/snapshot, failed enumeration, actual exit and PID reuse")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user