~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to ManualTests/liveconnect-security-exception.html

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
<!--
 
4
Sorry for the hackery in this test. Currently, we have no elegant way to
 
5
catch Java errors and print out an intelligent response.
 
6
-->
 
7
 
 
8
<script>
 
9
function loadApplet() {
 
10
        // force Safari to load and cache the TestApplet class
 
11
        document.getElementById('applet').method();
 
12
}
 
13
</script>
 
14
</head>
 
15
<body onload="loadApplet();window.open('resources/liveconnect-security-exception-popup.html', 'w', 'height=300, width=300');">
 
16
<p>This test checks for a regression against <i>rdar://problem/4151132 REGRESSION: Some applet liveconnect calls throws privilege exception.</i>.</p>
 
17
<p>To test:</p>
 
18
<ol>
 
19
<li>Disable popup blocking.</li>
 
20
<li>Select the window titled "popup window."</li>
 
21
<li>From the debug menu, select "Show JavaScript console." This will allow you to see errors thrown in the popup window by the Java Virtual Machine. If there are any, the test has failed.</li>
 
22
<li>If the text in the popup window does not match the text below, the test has failed:<br>
 
23
applet.field returned 1<br>
 
24
incremented applet.field by 1<br>
 
25
applet.field returned 2<br>
 
26
applet.method() returned 1<br>
 
27
</li>
 
28
<li>Otherwise, the test has passed.</li>
 
29
</ol>
 
30
<applet id='applet' code="TestApplet.class" codebase="resources"></applet>
 
31
</body>
 
32
</html>