Mozilla/mozilla/java/webclient/test/automated/doc/BrowserControlCanvas.html
edburns%acm.org 256c970b1c Automated test cases.
git-svn-id: svn://10.0.0.236/trunk@84595 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 21:27:40 +00:00

69 lines
4.6 KiB
HTML

<html>
<head>
<title>
Description of tests on History interface
</title>
</head>
<body bgcolor=white>
<P align=left>This document contains a simple preliminary description of
testcases on History interface of Webclient API.</P>
<UL>
<LI><A href=#addNotify()>Tests on <B>addNotify</B> method</A>
<LI><A href=#getWebShell>Tests on <B>getWebShell()</B> method</A>
<LI><A href=#setBounds(int, int, int. int)>Tests on <B>setBounds(int, int, int. int)</B> method</A>
<LI><A href=#setBounds(Rectangle)>Tests on <B>setBounds(Rectangle)</B> method</A>
</UL>
<A name=addNotify>
<H2>1. Tests on addNotify method.</H2>
<table border=1>
<tr><td>Test ID</td><td>Action</td><td>Expected Result</td>
<tr><td>basic/api/History_addNotify:0</td><td>Method addNotify() invoked when some URL's are loaded</td><td>Mozilla doesn't crashes</td></tr>
</table>
<A name="getWebShell">
<H2>1. Tests on getWebShell method.</H2>
<table border=1>
<tr><td>Test ID</td><td>Action</td><td>Expected Result</td>
<tr><td>basic/api/History_getWebShell:0</td><td>Method getWebShell() invoked</td><td>Mozilla doesn't crash and getWebShell return correct BrowserControl</td></tr>
</table>
<A name="setBounds(int, int, int. int)">
<H2>3. Tests on setBounds(int, int, int. int) method.</H2>
<table border=1>
<tr><td>Test ID</td><td>Action</td><td>Expected Result</td>
<tr><td>basic/api/History_setBounds:0</td><td>Method setBounds invoked with correct bounds</td><td>Mozilla doesn't crashes and set bounds of Canvas correctly</td></tr>
<tr><td>basic/api/History_setBounds:1</td><td>Method setBounds invoked with INTEGER.MIN_VALUE as first parameter</td><td>Mozilla doesn't crashes and do no set new bounds of Canvas</td></tr>
<tr><td>basic/api/History_setBounds:2</td><td>Method setBounds invoked with INTEGER.MAX_VALUE as first parameter</td><td>Mozilla doesn't crashes and do no set new bounds of Canvas</td></tr>
<tr><td>basic/api/History_setBounds:3</td><td>Method setBounds invoked with 0 as first parameter</td><td>Mozilla doesn't crashes and set new bounds of Canvas correctly</td></tr>
<tr><td>basic/api/History_setBounds:4</td><td>Method setBounds invoked with INTEGER.MIN_VALUE as second parameter</td><td>Mozilla doesn't crashes and do no set new bounds of Canvas</td></tr>
<tr><td>basic/api/History_setBounds:5</td><td>Method setBounds invoked with INTEGER.MAX_VALUE as second parameter</td><td>Mozilla doesn't crashes and do no set new bounds of Canvas</td></tr>
<tr><td>basic/api/History_setBounds:6</td><td>Method setBounds invoked with 0 as second parameter</td><td>Mozilla doesn't crashes and set new bounds of Canvas correctly</td></tr>
<tr><td>basic/api/History_setBounds:7</td><td>Method setBounds invoked with INTEGER.MIN_VALUE as third parameter</td><td>Mozilla doesn't crashes and do no set new bounds of Canvas</td></tr>
<tr><td>basic/api/History_setBounds:8</td><td>Method setBounds invoked with INTEGER.MAX_VALUE as third parameter</td><td>Mozilla doesn't crashes and do no set new bounds of Canvas</td></tr>
<tr><td>basic/api/History_setBounds:9</td><td>Method setBounds invoked with 0 as third parameter</td><td>Mozilla doesn't crashes and set new bounds of Canvas correctly</td></tr>
<tr><td>basic/api/History_setBounds:10</td><td>Method setBounds invoked with INTEGER.MIN_VALUE as fourth parameter</td><td>Mozilla doesn't crashes and do no set new bounds of Canvas</td></tr>
<tr><td>basic/api/History_setBounds:11</td><td>Method setBounds invoked with INTEGER.MAX_VALUE as fourth parameter</td><td>Mozilla doesn't crashes and do no set new bounds of Canvas</td></tr>
<tr><td>basic/api/History_setBounds:12</td><td>Method setBounds invoked with 0 as fourth parameter</td><td>Mozilla doesn't crashes and set new bounds of Canvas correctly</td></tr>
<tr><td>basic/api/History_setBounds:13</td><td>Method setBounds invoked with 0 as all parameters</td><td>Mozilla doesn't crashes and set new bounds of Canvas correctly</td></tr>
<tr><td>basic/api/History_setBounds:14</td><td>Method setBounds invoked with inverted rectangle(Xleft >Xright)</td><td>Mozilla doesn't crashes and set new bounds of Canvas correctly</td></tr>
</table>
<A name="setBounds(Rectangle)">
<H2>4. Tests on setBounds(Rectangle) method.</H2>
<table border=1>
<tr><td>Test ID</td><td>Action</td><td>Expected Result</td>
<tr><td>basic/api/History_setBounds_rect:0</td><td>Method setBounds invoked with correctly formed rectangle with possible coordinates</td><td>Mozilla doesn't crashes and set Bounds of Canvas correctly</td></tr>
<tr><td>basic/api/History_setBounds_rect:1</td><td>Method setBounds invoked with correctly formed rectangle with all coordinates = 0</td><td>Mozilla doesn't crashes and set Bounds of Canvas correctly</td></tr>
</table>
</body>
</html>