# HG changeset patch # User John Schoenick Bug 738396 - Test diff --git a/dom/plugins/test/mochitest/Makefile.in b/dom/plugins/test/mochitest/Makefile.in index cf5555b..0c4768f 100644 --- a/dom/plugins/test/mochitest/Makefile.in +++ b/dom/plugins/test/mochitest/Makefile.in @@ -64,16 +64,17 @@ MOCHITEST_FILES = \ test_bug771202.html \ file_bug771202.html \ test_bug777098.html \ test_bug813906.html \ test_bug784131.html \ test_bug854082.html \ test_bug863792.html \ file_bug863792.html \ + test_bug738396.html \ test_enumerate.html \ test_npruntime_construct.html \ 307-xo-redirect.sjs \ test_redirect_handling.html \ test_zero_opacity.html \ test_NPPVpluginWantsAllNetworkStreams.html \ test_npruntime_npnsetexception.html \ test_NPNVdocumentOrigin.html \ diff --git a/dom/plugins/test/mochitest/test_bug738396.html b/dom/plugins/test/mochitest/test_bug738396.html new file mode 100644 index 0000000..a2deb1e --- /dev/null +++ b/dom/plugins/test/mochitest/test_bug738396.html @@ -0,0 +1,108 @@ + + + + Test for Bug 738396 + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + diff --git a/dom/plugins/test/testplugin/nptest.cpp b/dom/plugins/test/testplugin/nptest.cpp index 283139a..0967aa6 100644 --- a/dom/plugins/test/testplugin/nptest.cpp +++ b/dom/plugins/test/testplugin/nptest.cpp @@ -849,16 +849,17 @@ NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char* instanceData->streamMode = NP_SEEK; instanceData->frame = "testframe"; addRange(instanceData, "100,100"); } bool requestWindow = false; // handle extra params for (int i = 0; i < argc; i++) { + printf("NPTest ARG: %s VALUE: %s\n", argn[i], argv[i]); if (strcmp(argn[i], "drawmode") == 0) { if (strcmp(argv[i], "solid") == 0) scriptableObject->drawMode = DM_SOLID_COLOR; } else if (strcmp(argn[i], "color") == 0) { scriptableObject->drawColor = parseHexColor(argv[i], strlen(argv[i])); } else if (strcmp(argn[i], "wmode") == 0) {