Skip to content

Commit cc03080

Browse files
committed
Test cleanup.
1 parent 23f9513 commit cc03080

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

test/integration/screen.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var elements;
66

77
robot.setMouseDelay(100);
88

9-
test('Test Screen.', { timeout: 10000 }, function(t)
9+
test('Test reading the Screen.', { timeout: 10000 }, function(t)
1010
{
1111
t.plan(1);
1212

@@ -16,12 +16,9 @@ test('Test Screen.', { timeout: 10000 }, function(t)
1616
// Wait for the list of elements.
1717
target.on('elements', function(elements)
1818
{
19-
// For this test we want a button.
20-
// setTimeout(() => {
21-
var color_1 = elements.color_1;
22-
const color = robot.getPixelColor(color_1.x, color_1.y);
23-
t.equal(color, "c0ff33", 'Color is what we expected.');
24-
// }, 100);
19+
var color_1 = elements.color_1;
20+
const color = robot.getPixelColor(color_1.x, color_1.y);
21+
t.equal(color, "c0ff33", 'Color is what we expected.');
2522
});
2623

2724
// Close the UI.

0 commit comments

Comments
 (0)