gecko/modules/plugin/test/testplugin
2009-03-27 00:47:43 +01:00
..
Info.plist npfunctions should reflect different NP_Initialize signature for Mac OS X. r=smichaud sr=jst a=beltzner 2008-11-28 18:17:36 -05:00
Makefile.in Bug 485073 - OS/2 enable test plugin equivalent to other platforms; r=mozilla@Weilbacher.org 2009-03-27 00:47:43 +01:00
nptest_gtk2.cpp Backed out changeset 92a47ed3d54e - Michael Ventnor — Bug 469831 - need gtk2 drawing code for test plugin - due to mochitest leak failures (crash?) 2009-02-10 01:36:46 +01:00
nptest_macosx.mm bug 473577 - make test plugin usable for reftests. r=josh 2009-01-16 15:03:24 -05:00
nptest_os2.cpp Bug 485073 - OS/2 enable test plugin equivalent to other platforms; r=mozilla@Weilbacher.org 2009-03-27 00:47:43 +01:00
nptest_platform.h Bug 469830 - Windows drawing code for test plugin. r=ted,joshmoz 2009-01-31 15:06:02 -06:00
nptest_qt.cpp Bug 474421 - Qt Widget no longer compiles in testplugin; Minor fix for getting the tests compiling; r=joshmoz 2009-02-18 01:01:56 +01:00
nptest_utils.cpp bug 473577 - make test plugin usable for reftests. r=josh 2009-01-16 15:03:24 -05:00
nptest_utils.h bug 473577 - make test plugin usable for reftests. r=josh 2009-01-16 15:03:24 -05:00
nptest_windows.cpp Bug 469830 - Windows drawing code for test plugin. r=ted,joshmoz 2009-01-31 15:06:02 -06:00
nptest.cpp Bug 485073 - OS/2 enable test plugin equivalent to other platforms; r=mozilla@Weilbacher.org 2009-03-27 00:47:43 +01:00
nptest.def System for testing plugins, take 4. b=386676 r=smichaud sr=roc 2009-01-12 22:06:21 -05:00
nptest.h Add API allowing plugins to participate in private browsing. b=468877 r/sr=jst 2009-01-30 16:40:14 -05:00
nptest.rc Bug 391728: No placeholder for disabled plugins. r=jst, r=josh, sr=bz 2008-09-09 16:43:21 +01:00
README Bug 484761. Add README file describing test plugin behaviour. r=joshmoz 2009-03-24 13:55:26 +13:00

= Instructions for using the test plugin =

== MIME type ==

The test plugin registers itself for the MIME type "application/x-test".

== Rendering ==

By default, the plugin fills its rectangle with gray, with a black border, and
renders the user-agent string (obtained from NPN_UserAgent) centered in black.

The test plugin supports the following parameters:

* drawmode="solid"
The plugin will draw a solid color instead of the default rendering described
above. The default solid color is completely transparent black (i.e., nothing).

* color
This specifies the color to use for drawmode="solid". The value should be 8 hex
digits, 2 per channel in AARRGGBB format.

== NPRuntime testing ==

The test plugin object supports the following scriptable method:

* identifierToStringTest(ident)
Converts a string, int32 or double parameter 'ident' to an NPIdentifier and
then to a string, which is returned.

== Private browsing ==

The test plugin object supports the following scriptable methods:

* queryPrivateModeState
Returns the value of NPN_GetValue(NPNVprivateModeBool).

* lastReportedPrivateModeState
Returns the last value set by NPP_SetValue(NPNVprivateModeBool).