This document contains a simple preliminary description of testcases on History interface of Webclient API.

1. Tests on addNotify method.

Test IDActionExpected Result
basic/api/History_addNotify:0Method addNotify() invoked when some URL's are loadedMozilla doesn't crashes

1. Tests on getWebShell method.

Test IDActionExpected Result
basic/api/History_getWebShell:0Method getWebShell() invokedMozilla doesn't crash and getWebShell return correct BrowserControl

3. Tests on setBounds(int, int, int. int) method.

Test IDActionExpected Result
basic/api/History_setBounds:0Method setBounds invoked with correct boundsMozilla doesn't crashes and set bounds of Canvas correctly
basic/api/History_setBounds:1Method setBounds invoked with INTEGER.MIN_VALUE as first parameterMozilla doesn't crashes and do no set new bounds of Canvas
basic/api/History_setBounds:2Method setBounds invoked with INTEGER.MAX_VALUE as first parameterMozilla doesn't crashes and do no set new bounds of Canvas
basic/api/History_setBounds:3Method setBounds invoked with 0 as first parameterMozilla doesn't crashes and set new bounds of Canvas correctly
basic/api/History_setBounds:4Method setBounds invoked with INTEGER.MIN_VALUE as second parameterMozilla doesn't crashes and do no set new bounds of Canvas
basic/api/History_setBounds:5Method setBounds invoked with INTEGER.MAX_VALUE as second parameterMozilla doesn't crashes and do no set new bounds of Canvas
basic/api/History_setBounds:6Method setBounds invoked with 0 as second parameterMozilla doesn't crashes and set new bounds of Canvas correctly
basic/api/History_setBounds:7Method setBounds invoked with INTEGER.MIN_VALUE as third parameterMozilla doesn't crashes and do no set new bounds of Canvas
basic/api/History_setBounds:8Method setBounds invoked with INTEGER.MAX_VALUE as third parameterMozilla doesn't crashes and do no set new bounds of Canvas
basic/api/History_setBounds:9Method setBounds invoked with 0 as third parameterMozilla doesn't crashes and set new bounds of Canvas correctly
basic/api/History_setBounds:10Method setBounds invoked with INTEGER.MIN_VALUE as fourth parameterMozilla doesn't crashes and do no set new bounds of Canvas
basic/api/History_setBounds:11Method setBounds invoked with INTEGER.MAX_VALUE as fourth parameterMozilla doesn't crashes and do no set new bounds of Canvas
basic/api/History_setBounds:12Method setBounds invoked with 0 as fourth parameterMozilla doesn't crashes and set new bounds of Canvas correctly
basic/api/History_setBounds:13Method setBounds invoked with 0 as all parametersMozilla doesn't crashes and set new bounds of Canvas correctly
basic/api/History_setBounds:14Method setBounds invoked with inverted rectangle(Xleft >Xright)Mozilla doesn't crashes and set new bounds of Canvas correctly

4. Tests on setBounds(Rectangle) method.

Test IDActionExpected Result
basic/api/History_setBounds_rect:0Method setBounds invoked with correctly formed rectangle with possible coordinatesMozilla doesn't crashes and set Bounds of Canvas correctly
basic/api/History_setBounds_rect:1Method setBounds invoked with correctly formed rectangle with all coordinates = 0Mozilla doesn't crashes and set Bounds of Canvas correctly