mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-04-19 13:35:51 +00:00
Fix Swift tests to use new WindowBounds property names
Update test cases to use xCoordinate/yCoordinate instead of x/y to match the refactored property names. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
7895e1765f
commit
5db4760268
1 changed files with 7 additions and 7 deletions
|
|
@ -51,10 +51,10 @@ final class ModelsTests: XCTestCase {
|
|||
}
|
||||
|
||||
func testWindowBounds() {
|
||||
let bounds = WindowBounds(x: 100, y: 200, width: 1200, height: 800)
|
||||
let bounds = WindowBounds(xCoordinate: 100, yCoordinate: 200, width: 1200, height: 800)
|
||||
|
||||
XCTAssertEqual(bounds.x, 100)
|
||||
XCTAssertEqual(bounds.y, 200)
|
||||
XCTAssertEqual(bounds.xCoordinate, 100)
|
||||
XCTAssertEqual(bounds.yCoordinate, 200)
|
||||
XCTAssertEqual(bounds.width, 1200)
|
||||
XCTAssertEqual(bounds.height, 800)
|
||||
}
|
||||
|
|
@ -112,7 +112,7 @@ final class ModelsTests: XCTestCase {
|
|||
}
|
||||
|
||||
func testWindowInfo() {
|
||||
let bounds = WindowBounds(x: 100, y: 100, width: 1200, height: 800)
|
||||
let bounds = WindowBounds(xCoordinate: 100, yCoordinate: 100, width: 1200, height: 800)
|
||||
let windowInfo = WindowInfo(
|
||||
window_title: "Safari - Main Window",
|
||||
window_id: 12345,
|
||||
|
|
@ -125,8 +125,8 @@ final class ModelsTests: XCTestCase {
|
|||
XCTAssertEqual(windowInfo.window_id, 12345)
|
||||
XCTAssertEqual(windowInfo.window_index, 0)
|
||||
XCTAssertNotNil(windowInfo.bounds)
|
||||
XCTAssertEqual(windowInfo.bounds?.x, 100)
|
||||
XCTAssertEqual(windowInfo.bounds?.y, 100)
|
||||
XCTAssertEqual(windowInfo.bounds?.xCoordinate, 100)
|
||||
XCTAssertEqual(windowInfo.bounds?.yCoordinate, 100)
|
||||
XCTAssertEqual(windowInfo.bounds?.width, 1200)
|
||||
XCTAssertEqual(windowInfo.bounds?.height, 800)
|
||||
XCTAssertTrue(windowInfo.is_on_screen!)
|
||||
|
|
@ -169,7 +169,7 @@ final class ModelsTests: XCTestCase {
|
|||
}
|
||||
|
||||
func testWindowListData() {
|
||||
let bounds = WindowBounds(x: 100, y: 100, width: 1200, height: 800)
|
||||
let bounds = WindowBounds(xCoordinate: 100, yCoordinate: 100, width: 1200, height: 800)
|
||||
let window = WindowInfo(
|
||||
window_title: "Safari - Main Window",
|
||||
window_id: 12345,
|
||||
|
|
|
|||
Loading…
Reference in a new issue