zombiebox-extension-pixelperfect
ZombieBox extension for Pixel Perfect testing.
Usage
Instantiate the controller class (Controller
) and attach it to the application:
;; /** */ /** */ { this_pixelPerfectController = ; this_pixelPerfectController; }
Let the controller to intercept processing of the remote:
;; /** */ /** * @override */ { if this_pixelPerfectController return true; return super; }
Implement interface IMarkupProvider
by the scene which is supposed to be tested.
;; /* * @implements {IMarkupProvider} */ /** * @override */ { return 'http://zombiebox.tv/home-markup-reference.png' 'web/markup-references/home.png' ; }
For activation press 77177
on the remote.
After activation you can observe the provided screenshot (or the first if an array is provided) over the displayed scene and extension's UI that helps navigate between the screenshots and displays the current state.
Keys mapping
Back
Deactivate.
Enter
Show/hide the UI.
Up, Down, Left, Right
Change the screenshot position.
Red
Increase the screenshot transparency.
Green
Decrease the screenshot transparency.
Yellow
Go to the next screenshot.
Blue
Change the UI position.
Digit 0
Toggle scaling.
Digit 1
Toggle color inversion.
Custom key sequence
The default key sequence can be changed by calling Controller#setKeySequence
method:
; this_pixelPerfectController;