Summary: | Replace plugins/npruntime/bindings-test.html with a more sophisticated test | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Anders Carlsson <andersca> | ||||
Component: | New Bugs | Assignee: | Anders Carlsson <andersca> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | abarth, aroben, eric, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Other | ||||||
OS: | OS X 10.5 | ||||||
Attachments: |
|
Description
Anders Carlsson
2010-07-29 21:29:07 PDT
Created attachment 63031 [details]
Patch
Attachment 63031 [details] did not pass style-queue:
Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1
WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp:57: PluginTest::NPP_GetValue is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4]
WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp:63: PluginTest::NPN_CreateObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4]
WebKitTools/DumpRenderTree/TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp:26: Found other header before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4]
WebKitTools/DumpRenderTree/TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp:49: One space before end of line comments [whitespace/comments] [5]
WebKitTools/DumpRenderTree/TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp:65: One space before end of line comments [whitespace/comments] [5]
Total errors found: 5 in 15 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 63031 [details] Patch > 2010-07-29 Anders Carlsson <andersca@apple.com> > > + Reviewed by NOBODY (OOPS!). > + > + Replace plugins/npruntime/bindings-test.html with a more sophisticated test > + https://bugs.webkit.org/show_bug.cgi?id=43232 > + > + * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: > + * DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp: > + (pluginInvoke): > + * DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp: > + (PluginTest::create): > + (PluginTest::NPP_GetValue): > + (PluginTest::NPN_CreateObject): > + (PluginTest::createTestFunctions): > + * DumpRenderTree/TestNetscapePlugIn/PluginTest.h: > + (PluginTest::identifier): > + * DumpRenderTree/TestNetscapePlugIn/Tests/DocumentOpenInDestroyStream.cpp: > + (DocumentOpenInDestroyStream::DocumentOpenInDestroyStream): > + * DumpRenderTree/TestNetscapePlugIn/main.cpp: > + (NPP_GetValue): > + * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj: > + * DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro: > + * DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp: > + (webkit_test_plugin_get_value): > + * GNUmakefile.am: Can you describe the changes a bit? > -static bool removeDefaultMethod(PluginObject*, const NPVariant* args, uint32_t argCount, NPVariant* result) > -{ > - pluginClass.invokeDefault = 0; > - VOID_TO_NPVARIANT(*result); > - return true; > -} Is it worthwhile to test that a plugin can dynamically remove its invokeDefault implementation? You've lost that aspect of the test. r=me (In reply to comment #3) > (From update of attachment 63031 [details]) > > 2010-07-29 Anders Carlsson <andersca@apple.com> > > > > + Reviewed by NOBODY (OOPS!). > > + > > + Replace plugins/npruntime/bindings-test.html with a more sophisticated test > > + https://bugs.webkit.org/show_bug.cgi?id=43232 > > + > > + * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: > > + * DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp: > > + (pluginInvoke): > > + * DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp: > > + (PluginTest::create): > > + (PluginTest::NPP_GetValue): > > + (PluginTest::NPN_CreateObject): > > + (PluginTest::createTestFunctions): > > + * DumpRenderTree/TestNetscapePlugIn/PluginTest.h: > > + (PluginTest::identifier): > > + * DumpRenderTree/TestNetscapePlugIn/Tests/DocumentOpenInDestroyStream.cpp: > > + (DocumentOpenInDestroyStream::DocumentOpenInDestroyStream): > > + * DumpRenderTree/TestNetscapePlugIn/main.cpp: > > + (NPP_GetValue): > > + * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj: > > + * DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro: > > + * DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp: > > + (webkit_test_plugin_get_value): > > + * GNUmakefile.am: > > Can you describe the changes a bit? > Sure! > > -static bool removeDefaultMethod(PluginObject*, const NPVariant* args, uint32_t argCount, NPVariant* result) > > -{ > > - pluginClass.invokeDefault = 0; > > - VOID_TO_NPVARIANT(*result); > > - return true; > > -} > > Is it worthwhile to test that a plugin can dynamically remove its invokeDefault implementation? You've lost that aspect of the test. I don't think it is, especially not in an OOP model. > > r=me http://trac.webkit.org/changeset/64359 might have broken Qt Linux Release Appears to have been landed in http://trac.webkit.org/changeset/64359 |