From 10faa215ff57ae65512497707532cb9b57a747ee Mon Sep 17 00:00:00 2001 From: David Burns Date: Thu, 6 Dec 2012 22:46:48 +0000 Subject: [PATCH] DavidBurns adding a test for passing in a null to execute_script r18270 --- .../selenium/webdriver/common/executing_javascript_tests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/py/test/selenium/webdriver/common/executing_javascript_tests.py b/py/test/selenium/webdriver/common/executing_javascript_tests.py index ccc5f22c0c15f..4e3221fb9fb67 100644 --- a/py/test/selenium/webdriver/common/executing_javascript_tests.py +++ b/py/test/selenium/webdriver/common/executing_javascript_tests.py @@ -216,6 +216,11 @@ def testCanPassADictionaryAsAParameter(self): res = self.driver.execute_script("return arguments[0]['foo'][1]", args); self.assertEqual(2, res) + + def testCanPassANone(self): + self._loadSimplePage() + res = self.driver.execute_script("return arguments[0] === null", None) + self.assertTrue(res) def _pageURL(self, name): return "http://localhost:%d/%s.html" % (self.webserver.port, name)