Object.defineProperty test

This is a cross browser test for Object.defineProperty in search of an acceptable shim

HTML

<script src="http://mobileka.mercularity.com/tests/automated/libraries/qunit.js"></script>
<link rel="stylesheet" href="http://mobileka.mercularity.com/tests/automated/libraries/qunit.css">
<script src="http://mobileka.mercularity.com/tests/libraries/es5-shim.js"></script>
<h1 id="qunit-header">QUnit example</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"><li style="visibility: hidden;"></li></ol>
<div id="qunit-fixture">test markup, will be hidden</div>
<div id="display"></div>

JavaScript

function testComponent(){
    var testProperty;
    Object.defineProperty(this, "testProperty",
    {
        get : function()
        {
           return testProperty;
        },
        set : function(val)
        {
          testProperty = val;
        }
    });
}

function initTest()
{
    var testObject;
    module("DefinePropertyTest",
    {
        setup: function(){
            testObject = new testComponent();
        },
        teardown: function(){
            testObject = null;
        }
    });
    test("defineProperty test", function()
     {
        testObject.testProperty = "correct";
        ok(testObject.testProperty == "correct", "defineProperty passed");
     });
}

initTest();