Skip to content

Commit

Permalink
Test cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Feb 25, 2018
1 parent 23f9513 commit cc03080
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/integration/screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var elements;

robot.setMouseDelay(100);

test('Test Screen.', { timeout: 10000 }, function(t)
test('Test reading the Screen.', { timeout: 10000 }, function(t)
{
t.plan(1);

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

// Close the UI.
Expand Down

0 comments on commit cc03080

Please sign in to comment.