Skip to content

Commit ba2c597

Browse files
Add SKColor tests.
1 parent 7849d59 commit ba2c597

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/SpriteKit/JSBSpriteKitTest.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ - (void)testInstantiation
126126
value = context[@"skscene"];
127127
XCTAssertTrue(value && !value.isUndefined);
128128

129+
[context evaluateScript:@"var skcolor1 = SKColor.whiteColor;"];
130+
value = context[@"skcolor1"];
131+
XCTAssertTrue(value && !value.isUndefined);
132+
133+
[context evaluateScript:@"var skcolor2 = SKColor.colorWithRedGreenBlueAlpha(0.15, 0.15, 0.3, 1.0);"];
134+
value = context[@"skcolor2"];
135+
XCTAssertTrue(value && !value.isUndefined);
136+
129137
}
130138

131139
@end

0 commit comments

Comments
 (0)