| Index: chrome/test/functional/test_pyauto.py
|
| diff --git a/chrome/test/functional/test_pyauto.py b/chrome/test/functional/test_pyauto.py
|
| index 6742ab96e670c3b6a1220e033b3456a79a41824f..acff46b6721d24ffb23b79eeb11d631d2357ee1b 100755
|
| --- a/chrome/test/functional/test_pyauto.py
|
| +++ b/chrome/test/functional/test_pyauto.py
|
| @@ -42,6 +42,15 @@ class PyAutoTest(pyauto.PyUITest):
|
| pyauto_errors.JSONInterfaceError,
|
| lambda: self.FindInPage('some text', windex=1)) # invalid window
|
|
|
| + def testJSONInterfaceTimeout(self):
|
| + """Verify that an exception is raised when the JSON interface times out."""
|
| + self.ClearEventQueue()
|
| + self.AddDomEventObserver('foo')
|
| + self.assertRaises(
|
| + pyauto_errors.JSONInterfaceError,
|
| + lambda: self.GetNextEvent(timeout=2000)) # event queue is empty
|
| +
|
| +
|
|
|
| if __name__ == '__main__':
|
| pyauto_functional.Main()
|
|
|