author | weijun |
Thu, 13 Jun 2013 10:00:00 +0800 | |
changeset 18169 | deb6268716ef |
parent 17427 | 5e7f51b62b1d |
child 20886 | 9630bb813a6c |
permissions | -rw-r--r-- |
2 | 1 |
<html> |
2 |
<body> |
|
3 |
||
4 |
<applet width=100 height=100 code=UpdatePermissions.class> |
|
5 |
</applet> |
|
6 |
||
7 |
This is a multi-stage test. Click on "done" when you have completed |
|
8 |
reading these instructions.<br><br> |
|
9 |
||
10 |
First, policytool will be invoked.<br><br> |
|
11 |
||
12 |
Then, follow these steps:<br> |
|
18169
deb6268716ef
8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents:
17427
diff
changeset
|
13 |
0) Find (or create) a temporary directory that you have write access to. |
deb6268716ef
8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents:
17427
diff
changeset
|
14 |
(Example: 'C:\foo\tmp' on Windows or '/tmp' on other systems)<br><br> |
2 | 15 |
1) Click on the "Add Policy Entry" button in the |
16 |
main policytool window.<br><br> |
|
17 |
||
18 |
2) Click on the "Add Permission" button in the Policy Entry window.<br><br> |
|
19 |
||
20 |
3) In the Permission window, pull down the "Permission" menu and |
|
21 |
select "AWTPermission".<br><br> |
|
22 |
||
23 |
4) In the Permission window, pull down the "Target Name" menu and |
|
24 |
select "listenToAllAWTEvents".<br><br> |
|
25 |
||
26 |
5) Click on the "OK" button in the Permission window.<br><br> |
|
27 |
||
28 |
6) Click on the "Done" button in the Policy Entry window.<br><br> |
|
29 |
||
30 |
7) In the main policytool window, pull down the "File" menu and |
|
31 |
select "Save As".<br><br> |
|
32 |
||
33 |
8) In the SaveAs window, enter "/tmp/ptool.test" as the file name |
|
17427
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
15282
diff
changeset
|
34 |
and click "OK".<br> |
18169
deb6268716ef
8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents:
17427
diff
changeset
|
35 |
(Or use the temporary directory mentioned in Step 0 if it's not '/tmp'. |
deb6268716ef
8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents:
17427
diff
changeset
|
36 |
For example, "C:\foo\tmp\ptool.test" on Windows)<br><br> |
2 | 37 |
|
18169
deb6268716ef
8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents:
17427
diff
changeset
|
38 |
9) Check the content of the file created in the previous step<br><br> |
2 | 39 |
|
40 |
10) check to make sure that the new entry is in the policy file.<br><br> |
|
41 |
||
17427
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
15282
diff
changeset
|
42 |
11) repeat steps 1-10 for:<br> |
2 | 43 |
AWTPermission: readDisplayPixels<br> |
44 |
NetPermission: specifyStreamHandler<br> |
|
45 |
RuntimePermission: setContextClassLoader, |
|
46 |
setSecurityManager, |
|
47 |
shutdownHooks, |
|
48 |
stopThread<br> |
|
15282 | 49 |
SecurityPermission: createAccessControlContext<br><br> |
2 | 50 |
|
51 |
In the confirmation dialog pop-up, click "OK".<br><br> |
|
52 |
||
18169
deb6268716ef
8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents:
17427
diff
changeset
|
53 |
Exit policytool. Delete the files created during this test. If the |
deb6268716ef
8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents:
17427
diff
changeset
|
54 |
temporary directory is also newly created, empty and delete it.<br><br> |
2 | 55 |
|
56 |
Press "Pass" if ... press "Fail" otherwise.<br><br> |
|
57 |
||
58 |
</body> |
|
59 |
</html> |