2011-02-04 Martin Robinson <mrobinson@igalia.com>
[WebKit.git] / Tools / DumpRenderTree / unix / TestNetscapePlugin / TestNetscapePlugin.cpp
index 2f7288a60c2263a9563bb4f3261a6d36fa3ee1d3..4936efd16134a3e2b71f887ec3283a61b2946889 100644 (file)
@@ -79,6 +79,9 @@ webkit_test_plugin_new_instance(NPMIMEType mimetype,
             else if (strcasecmp(argn[i], "src") == 0 &&
                      strcasecmp(argv[i], "data:application/x-webkit-test-netscape,returnerrorfromnewstream") == 0)
                 obj->returnErrorFromNewStream = TRUE;
             else if (strcasecmp(argn[i], "src") == 0 &&
                      strcasecmp(argv[i], "data:application/x-webkit-test-netscape,returnerrorfromnewstream") == 0)
                 obj->returnErrorFromNewStream = TRUE;
+            else if (!strcasecmp(argn[i], "src")
+                     && !strcasecmp(argv[i], "data:application/x-webkit-test-netscape,alertwhenloaded"))
+                executeScript(obj, "alert('Plugin Loaded!')");
             else if (strcasecmp(argn[i], "logfirstsetwindow") == 0)
                 obj->logSetWindow = TRUE;
             else if (strcasecmp(argn[i], "testnpruntime") == 0)
             else if (strcasecmp(argn[i], "logfirstsetwindow") == 0)
                 obj->logSetWindow = TRUE;
             else if (strcasecmp(argn[i], "testnpruntime") == 0)