Skip to content
This repository has been archived by the owner on May 6, 2019. It is now read-only.

Commit

Permalink
Added bit of test code for object marshalling
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nelson <peter@peterdn.com>
  • Loading branch information
peterdn committed Sep 22, 2010
1 parent 4e17147 commit 2959225
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions WebKitBrowserTest/MainForm.cs
Expand Up @@ -286,6 +286,9 @@ private void jSTestPageToolStripMenuItem_Click(object sender, EventArgs e)
alert(txt); alert(txt);
document.getElementById(""dog"").innerHTML = txt; document.getElementById(""dog"").innerHTML = txt;
} }
function testtest(dog) {
alert(dog.test.x);
}
</script> </script>
</head> </head>
<body> <body>
Expand All @@ -309,9 +312,15 @@ private void test3ToolStripMenuItem_Click(object sender, EventArgs e)
dog.SetProperty("name", "Holly"); dog.SetProperty("name", "Holly");
MessageBox.Show("name = " + dog.GetProperty("name").ToString()); MessageBox.Show("name = " + dog.GetProperty("name").ToString());
ctx.EvaluateScript("printDog(myDog)"); ctx.EvaluateScript("printDog(myDog)");
dog.SetProperty("test", new TestClass());
ctx.EvaluateScript("testtest(myDog)");
//ctx.GarbageCollect(); //ctx.GarbageCollect();
} }
} }
} }

private class TestClass
{
}
} }
} }

0 comments on commit 2959225

Please sign in to comment.