2010-11-18 Tony Chang <tony@chromium.org>
authortony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Nov 2010 17:54:25 +0000 (17:54 +0000)
committertony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Nov 2010 17:54:25 +0000 (17:54 +0000)
commitf2cb033d7bd446ea0a3eee1d5e4ac8b2e1996f02
treeec0202a0965b88aacc4e3feb5c488d838a9c86e3
parent7f3cc06f345ce705b4abfd9306474463673a60ad
2010-11-18  Tony Chang  <tony@chromium.org>

        Reviewed by Adam Barth.

        run platform/chromium/plugins/refcount-leaks.html on all platforms
        https://bugs.webkit.org/show_bug.cgi?id=49485

        Moving the test into the top level plugins dir.

        * platform/chromium/drt_expectations.txt:
        * platform/chromium/plugins/refcount-leaks-expected.txt: Removed.
        * platform/chromium/plugins/refcount-leaks.html: Removed.
        * plugins/refcount-leaks-expected.txt: Copied from LayoutTests/platform/chromium/plugins/refcount-leaks-expected.txt.
        * plugins/refcount-leaks.html: Copied from LayoutTests/platform/chromium/plugins/refcount-leaks.html.
2010-11-18  Tony Chang  <tony@chromium.org>

        Reviewed by Adam Barth.

        run platform/chromium/plugins/refcount-leaks.html on all platforms
        https://bugs.webkit.org/show_bug.cgi?id=49485

        Add PluginObject.testObjectCount which returns the number of allocated
        TestObjects. Add PluginObject.testCreateTestObject which allocates
        and returns a TestObject.

        Add TestObject.refCount which returns the number of refs on the
        TestObject.

        * DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:
        (pluginGetProperty):
        (pluginInvoke):
        * DumpRenderTree/TestNetscapePlugIn/TestObject.cpp:
        (getTestObjectCount):
        (testAllocate):
        (testDeallocate):
        (testGetProperty):
        (testScriptObjectInvoke): Release a ref to a plugin object that was
            previously leaked.
        * DumpRenderTree/TestNetscapePlugIn/TestObject.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72302 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/chromium/drt_expectations.txt
LayoutTests/plugins/refcount-leaks-expected.txt [moved from LayoutTests/platform/chromium/plugins/refcount-leaks-expected.txt with 76% similarity]
LayoutTests/plugins/refcount-leaks.html [moved from LayoutTests/platform/chromium/plugins/refcount-leaks.html with 86% similarity]
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp
WebKitTools/DumpRenderTree/TestNetscapePlugIn/TestObject.cpp
WebKitTools/DumpRenderTree/TestNetscapePlugIn/TestObject.h