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 |
11 class NaClTest(pyauto.PyUITest): | 11 class NaClTest(pyauto.PyUITest): |
12 """Tests for NaCl.""" | 12 """Tests for NaCl.""" |
13 # (test.html, number of nexes loaded concurrently on page) | 13 # (test.html, number of nexes loaded concurrently on page) |
14 nexes = [('basic_object.html', 2), | 14 nexes = [('earth_c.html', 1), |
15 ('earth_c.html', 1), | |
16 ('earth_cc.html', 1), | 15 ('earth_cc.html', 1), |
17 ('ppapi_example_audio.html#mute', 1), | 16 ('ppapi_example_audio.html#mute', 1), |
18 ('ppapi_example_font.html', 1), | 17 ('ppapi_example_font.html', 1), |
19 # TODO(cstefansen): enable test when bug is fixed | 18 # TODO(cstefansen): enable test when bug is fixed |
20 # http://code.google.com/p/nativeclient/issues/detail?id=1936 | 19 # http://code.google.com/p/nativeclient/issues/detail?id=1936 |
21 # ('ppapi_example_gles2.html', 1), | 20 # ('ppapi_example_gles2.html', 1), |
22 ('ppapi_example_post_message.html', 1), | 21 ('ppapi_example_post_message.html', 1), |
23 ('ppapi_geturl.html', 1), | 22 ('ppapi_geturl.html', 1), |
24 ('ppapi_gles_book.html?manifest=' | 23 ('ppapi_gles_book.html?manifest=' |
25 'ppapi_gles_book_hello_triangle.nmf', 1), | 24 'ppapi_gles_book_hello_triangle.nmf', 1), |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 142 |
144 # Go back one last time and make sure we ended up where we started. | 143 # Go back one last time and make sure we ended up where we started. |
145 print '---> pyauto multiple_nexes: Checking for about:version...', | 144 print '---> pyauto multiple_nexes: Checking for about:version...', |
146 self.GetBrowserWindow(0).GetTab(0).GoBack() | 145 self.GetBrowserWindow(0).GetTab(0).GoBack() |
147 self.assertEqual(original_title, self.GetActiveTabTitle()) | 146 self.assertEqual(original_title, self.GetActiveTabTitle()) |
148 print 'done!' | 147 print 'done!' |
149 | 148 |
150 | 149 |
151 if __name__ == '__main__': | 150 if __name__ == '__main__': |
152 pyauto_nacl.Main() | 151 pyauto_nacl.Main() |
OLD | NEW |