Skip to content

Commit

Permalink
DavidBurns adding a test for passing in a null to execute_script
Browse files Browse the repository at this point in the history
r18270
  • Loading branch information
AutomatedTester committed Dec 6, 2012
1 parent 61c6aef commit 10faa21
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 10faa21

Please sign in to comment.