Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Unified Diff: webkit/tools/pepper_test_plugin/test_page.html

Issue 546041: Make the Pepper test run on the mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/pepper_test_plugin/plugin_object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/pepper_test_plugin/test_page.html
===================================================================
--- webkit/tools/pepper_test_plugin/test_page.html (revision 36261)
+++ webkit/tools/pepper_test_plugin/test_page.html (working copy)
@@ -11,8 +11,12 @@
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>
« no previous file with comments | « webkit/tools/pepper_test_plugin/plugin_object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698