| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import pyauto_nacl # Must be imported before pyauto | 6 import pyauto_nacl # Must be imported before pyauto |
| 7 import pyauto | 7 import pyauto |
| 8 import nacl_utils | 8 import nacl_utils |
| 9 import random | 9 import random |
| 10 import time | 10 import time |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 def testSurfAwayAsyncSRPCParameterPassing(self): | 58 def testSurfAwayAsyncSRPCParameterPassing(self): |
| 59 self.surfAwayAsync('srpc_basic.html', 'SRPC') | 59 self.surfAwayAsync('srpc_basic.html', 'SRPC') |
| 60 | 60 |
| 61 def testSurfAwayAsyncSRPCResourceDescriptor(self): | 61 def testSurfAwayAsyncSRPCResourceDescriptor(self): |
| 62 self.surfAwayAsync('srpc_nrd_xfer.html', 'SRPC') | 62 self.surfAwayAsync('srpc_nrd_xfer.html', 'SRPC') |
| 63 | 63 |
| 64 def testSurfAwayAsyncSRPCURLContentAsNaclResourceDescriptor(self): | 64 def testSurfAwayAsyncSRPCURLContentAsNaclResourceDescriptor(self): |
| 65 self.surfAwayAsync('srpc_url_as_nacl_desc.html', 'SRPC') | 65 self.surfAwayAsync('srpc_url_as_nacl_desc.html', 'SRPC') |
| 66 | 66 |
| 67 def testSurfAwayAsyncScripting(self): | |
| 68 self.surfAwayAsync('basic_object.html', 'PPAPI') | |
| 69 | |
| 70 def testSurfAwayAsyncEvents(self): | 67 def testSurfAwayAsyncEvents(self): |
| 71 self.surfAwayAsync('ppapi_example_events.html', 'PPAPI') | 68 self.surfAwayAsync('ppapi_example_events.html', 'PPAPI') |
| 72 | 69 |
| 73 def testSurfAwayAsyncExampleAudio(self): | 70 def testSurfAwayAsyncExampleAudio(self): |
| 74 self.surfAwayAsync('ppapi_example_audio.html#mute', 'PPAPI') | 71 self.surfAwayAsync('ppapi_example_audio.html#mute', 'PPAPI') |
| 75 | 72 |
| 76 def testSurfAwayAsyncExampleFont(self): | 73 def testSurfAwayAsyncExampleFont(self): |
| 77 self.surfAwayAsync('ppapi_example_font.html', 'PPAPI') | 74 self.surfAwayAsync('ppapi_example_font.html', 'PPAPI') |
| 78 | 75 |
| 79 # TODO(cstefansen): enable test when bug is fixed | 76 # TODO(cstefansen): enable test when bug is fixed |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 self.surfAwayAsync('test_case.html?mode=nacl&testcase=PostMessage', | 149 self.surfAwayAsync('test_case.html?mode=nacl&testcase=PostMessage', |
| 153 'Test PostMessage') | 150 'Test PostMessage') |
| 154 | 151 |
| 155 def testSurfAwayAsyncPPAPITestsScrollbar(self): | 152 def testSurfAwayAsyncPPAPITestsScrollbar(self): |
| 156 self.surfAwayAsync('test_case.html?mode=nacl&testcase=Scrollbar', | 153 self.surfAwayAsync('test_case.html?mode=nacl&testcase=Scrollbar', |
| 157 'Test Scrollbar') | 154 'Test Scrollbar') |
| 158 | 155 |
| 159 | 156 |
| 160 if __name__ == '__main__': | 157 if __name__ == '__main__': |
| 161 pyauto_nacl.Main() | 158 pyauto_nacl.Main() |
| OLD | NEW |