summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/liveconnect-security-exception.html
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
commit9364f22aed35e1a1e9d07c121510f80be3ab0502 (patch)
treed49911209b132da58d838efa852daf28d516df21 /WebCore/manual-tests/liveconnect-security-exception.html
parent87eb0cb35bad8784770ebc807e6c982432e47107 (diff)
downloadexternal_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.zip
external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.gz
external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.bz2
Initial Contribution
Diffstat (limited to 'WebCore/manual-tests/liveconnect-security-exception.html')
-rw-r--r--WebCore/manual-tests/liveconnect-security-exception.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/WebCore/manual-tests/liveconnect-security-exception.html b/WebCore/manual-tests/liveconnect-security-exception.html
new file mode 100644
index 0000000..8bce752
--- /dev/null
+++ b/WebCore/manual-tests/liveconnect-security-exception.html
@@ -0,0 +1,32 @@
+<html>
+<head>
+<!--
+Sorry for the hackery in this test. Currently, we have no elegant way to
+catch Java errors and print out an intelligent response.
+-->
+
+<script>
+function loadApplet() {
+ // force Safari to load and cache the TestApplet class
+ document.getElementById('applet').method();
+}
+</script>
+</head>
+<body onload="loadApplet();window.open('resources/liveconnect-security-exception-popup.html', 'w', 'height=300, width=300');">
+<p>This test checks for a regression against <i>rdar://problem/4151132 REGRESSION: Some applet liveconnect calls throws privilege exception.</i>.</p>
+<p>To test:</p>
+<ol>
+<li>Disable popup blocking.</li>
+<li>Select the window titled "popup window."</li>
+<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>
+<li>If the text in the popup window does not match the text below, the test has failed:<br>
+applet.field returned 1<br>
+incremented applet.field by 1<br>
+applet.field returned 2<br>
+applet.method() returned 1<br>
+</li>
+<li>Otherwise, the test has passed.</li>
+</ol>
+<applet id='applet' code="TestApplet.class" codebase="resources"></applet>
+</body>
+</html>