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 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 # 'ppapi_gles_book_texture_wrap.nmf', 1), | 38 # 'ppapi_gles_book_texture_wrap.nmf', 1), |
39 ('ppapi_progress_events.html', 1), | 39 ('ppapi_progress_events.html', 1), |
40 ('ppapi_ppb_core.html', 1), | 40 ('ppapi_ppb_core.html', 1), |
41 ('ppapi_ppb_file_system.html', 1), | 41 ('ppapi_ppb_file_system.html', 1), |
42 ('ppapi_ppb_graphics2d.html', 1), | 42 ('ppapi_ppb_graphics2d.html', 1), |
43 # TODO(nfullagar): reenable | 43 # TODO(nfullagar): reenable |
44 # http://code.google.com/p/chromium/issues/detail?id=93806 | 44 # http://code.google.com/p/chromium/issues/detail?id=93806 |
45 # ('ppapi_ppb_image_data.html', 1), | 45 # ('ppapi_ppb_image_data.html', 1), |
46 ('srpc_basic.html', 1), | 46 ('srpc_basic.html', 1), |
47 ('srpc_hw.html', 1), | 47 ('srpc_hw.html', 1), |
48 ('srpc_nrd_xfer.html', 2), | 48 ('srpc_nrd_xfer.html', 2)] |
49 ('test_case.html?mode=nacl&testcase=Graphics2D', 1), | |
50 ('test_case.html?mode=nacl&testcase=ImageData', 1), | |
51 ('test_case.html?mode=nacl&testcase=Memory', 1), | |
52 ('test_case.html?mode=nacl&testcase=PaintAggregator', 1), | |
53 ('test_case.html?mode=nacl&testcase=Scrollbar', 1)] | |
54 | 49 |
55 def testLoadNexesInMultipleTabs(self): | 50 def testLoadNexesInMultipleTabs(self): |
56 """Load nexes in multiple tabs and surf away from all of them.""" | 51 """Load nexes in multiple tabs and surf away from all of them.""" |
57 | 52 |
58 # Prime each tab by navigating to about:version. | 53 # Prime each tab by navigating to about:version. |
59 # TODO(mcgrathr): Reduced from 10 to 6 because 256MB*10 is too | 54 # TODO(mcgrathr): Reduced from 10 to 6 because 256MB*10 is too |
60 # much /dev/shm space for the bots to handle. | 55 # much /dev/shm space for the bots to handle. |
61 # See http://code.google.com/p/nativeclient/issues/detail?id=503 | 56 # See http://code.google.com/p/nativeclient/issues/detail?id=503 |
62 max_nexes = 6 | 57 max_nexes = 6 |
63 max_tabs = 6 | 58 max_tabs = 6 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 141 |
147 # Go back one last time and make sure we ended up where we started. | 142 # Go back one last time and make sure we ended up where we started. |
148 print '---> pyauto multiple_nexes: Checking for about:version...', | 143 print '---> pyauto multiple_nexes: Checking for about:version...', |
149 self.GetBrowserWindow(0).GetTab(0).GoBack() | 144 self.GetBrowserWindow(0).GetTab(0).GoBack() |
150 self.assertEqual(original_title, self.GetActiveTabTitle()) | 145 self.assertEqual(original_title, self.GetActiveTabTitle()) |
151 print 'done!' | 146 print 'done!' |
152 | 147 |
153 | 148 |
154 if __name__ == '__main__': | 149 if __name__ == '__main__': |
155 pyauto_nacl.Main() | 150 pyauto_nacl.Main() |
OLD | NEW |