Bug 117399 - JavaScript based testing tool for catching flickering tests
Summary: JavaScript based testing tool for catching flickering tests
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-10 02:30 PDT by Tamas Czene
Modified: 2013-07-02 05:36 PDT (History)
6 users (show)

See Also:


Attachments
draft patch (20.13 KB, patch)
2013-06-10 02:30 PDT, Tamas Czene
no flags Details | Formatted Diff | Diff
draft patch (24.50 KB, patch)
2013-06-10 02:36 PDT, Tamas Czene
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tamas Czene 2013-06-10 02:30:53 PDT
Created attachment 204144 [details]
draft patch

The patch tries to catch a flickering bug at animation tests by using JavaScript.
Added function to WTR that checks the color code of a given pixel in the given fractions of time. If the corresponding pixel's color code difference is below a given threshold in every cases, the test passes. 
This timing and color code checking is test specific: timing and color checking need to be customized for every tests.

Any opinion or advice is appreciated.
Comment 1 Tamas Czene 2013-06-10 02:36:37 PDT
Created attachment 204145 [details]
draft patch
Comment 2 Tamas Czene 2013-07-02 05:36:33 PDT
I will modify and rename getPixel method in order to return rectangles. I also modify the testing system to evaluate data only at the end of the animation. The evaluation should be given manually for every single tests.