diff options
author | fqian@google.com <fqian@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-12 15:51:05 +0000 |
---|---|---|
committer | fqian@google.com <fqian@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-12 15:51:05 +0000 |
commit | 98f4b4fb998cb9d3072df8a8b44cefd671eb9222 (patch) | |
tree | 8e03ccd6bd5220c9a910a35ed5b829d82c75adaf /webkit | |
parent | 9e9a32e553a0593d200b1f990162e63c5c0a9c9a (diff) | |
download | chromium_src-98f4b4fb998cb9d3072df8a8b44cefd671eb9222.zip chromium_src-98f4b4fb998cb9d3072df8a8b44cefd671eb9222.tar.gz chromium_src-98f4b4fb998cb9d3072df8a8b44cefd671eb9222.tar.bz2 |
Add a test case for Java applet of issue 580.
Review URL: http://codereview.chromium.org/1910
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/data/layout_tests/chrome/fast/dom/java-applet-calls-expected.txt | 3 | ||||
-rw-r--r-- | webkit/data/layout_tests/chrome/fast/dom/java-applet-calls.html | 28 |
2 files changed, 31 insertions, 0 deletions
diff --git a/webkit/data/layout_tests/chrome/fast/dom/java-applet-calls-expected.txt b/webkit/data/layout_tests/chrome/fast/dom/java-applet-calls-expected.txt new file mode 100644 index 0000000..19f1c37 --- /dev/null +++ b/webkit/data/layout_tests/chrome/fast/dom/java-applet-calls-expected.txt @@ -0,0 +1,3 @@ +Requires Java plugin been installed. +This tests that calling functions on Java Applet works. +TEST PASSED! diff --git a/webkit/data/layout_tests/chrome/fast/dom/java-applet-calls.html b/webkit/data/layout_tests/chrome/fast/dom/java-applet-calls.html new file mode 100644 index 0000000..d951d85 --- /dev/null +++ b/webkit/data/layout_tests/chrome/fast/dom/java-applet-calls.html @@ -0,0 +1,28 @@ +<HTML> +<HEAD> +<TITLE>Call Java from JS</TITLE> +<script type="text/javascript"> +if (window.layoutTestController) + layoutTestController.dumpAsText(); +function runTest() { +try { + document.testapplet.setString("abcdefg"); + if (document.testapplet.getString() == "abcdefg") + document.getElementById("result").innerHTML = "TEST PASSED!"; +} catch (e) { +} + +} +</script> + +</HEAD> +<BODY onload="runTest()"> +Requires Java plugin been installed.<br> +This tests that calling functions on Java Applet works.<br> +<div id="result">FAIL</div> +<APPLET CODE=TestApplet WIDTH=1 HEIGHT=1 NAME="testapplet"> +</APPLET> +</BODY> +</HTML> + + |