summaryrefslogtreecommitdiffstats
path: root/webkit/tools/pepper_test_plugin/test_page.html
diff options
context:
space:
mode:
authordspringer@google.com <dspringer@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-14 20:40:43 +0000
committerdspringer@google.com <dspringer@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-14 20:40:43 +0000
commit596b2c45d080cd8e409b0b7de75ca1b8d77d7c73 (patch)
tree5d4c3c81cd20d84c01e0364780479869046d21c9 /webkit/tools/pepper_test_plugin/test_page.html
parent4fd333306b87fa9f716c934b16351bc2291c79e2 (diff)
downloadchromium_src-596b2c45d080cd8e409b0b7de75ca1b8d77d7c73.zip
chromium_src-596b2c45d080cd8e409b0b7de75ca1b8d77d7c73.tar.gz
chromium_src-596b2c45d080cd8e409b0b7de75ca1b8d77d7c73.tar.bz2
Make the Pepepr test run on the mac.
BUG=none TESTS=none Review URL: http://codereview.chromium.org/546041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36264 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/pepper_test_plugin/test_page.html')
-rw-r--r--webkit/tools/pepper_test_plugin/test_page.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/webkit/tools/pepper_test_plugin/test_page.html b/webkit/tools/pepper_test_plugin/test_page.html
index f9bf2b8..5a3e609 100644
--- a/webkit/tools/pepper_test_plugin/test_page.html
+++ b/webkit/tools/pepper_test_plugin/test_page.html
@@ -11,8 +11,12 @@ var addLine = function(line) {
var runScripts = function() {
event_box = document.getElementById("event_text_box");;
var plugin_obj = document.getElementById("plugin");
- addLine('<b>Event log</b>');
- plugin_obj.setTextBox(addLine);
+ if (plugin_obj.setTextBox) {
+ addLine('<b>Event log</b>');
+ plugin_obj.setTextBox(addLine);
+ } else {
+ alert('Plugin failed to load.');
+ }
}
</script>
</head>