DavidBurns added security options to objects when we move from chrome->content in Firefox

git-svn-id: http://selenium.googlecode.com/svn/trunk/py@18254 07704840-8298-11de-bf8c-fd130f914ac9
diff --git a/test/selenium/webdriver/common/executing_javascript_tests.py b/test/selenium/webdriver/common/executing_javascript_tests.py
index 9e7f895..ccc5f22 100644
--- a/test/selenium/webdriver/common/executing_javascript_tests.py
+++ b/test/selenium/webdriver/common/executing_javascript_tests.py
@@ -206,10 +206,20 @@
         text = self.driver.execute_script("return document.alerts.shift()")
 
         self.assertEqual("hello world", text)
-  
+
+    def testCanPassADictionaryAsAParameter(self):
+        self._loadSimplePage() 
+        nums = [1, 2]
+        args = {"bar": "test", "foo": nums}
+
+
+        res = self.driver.execute_script("return arguments[0]['foo'][1]", args);
+
+        self.assertEqual(2, res)
+
     def _pageURL(self, name):
         return "http://localhost:%d/%s.html" % (self.webserver.port, name)
-    
+
     def _loadSimplePage(self):
         self._loadPage("simpleTest")