| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/env python | |
| 2 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 """Test of Google I/O 2014 tutorial.""" | |
| 6 | |
| 7 import os | |
| 8 import sys | |
| 9 | |
| 10 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) | |
| 11 sys.path.append(os.path.join(SCRIPT_DIR, '../..')) | |
| 12 SRC_DIR = os.path.dirname(os.path.dirname(SCRIPT_DIR)) | |
| 13 TOOLCHAIN = os.environ.get('TOOLCHAIN', 'newlib') | |
| 14 DEVENV_OUT_DIR = os.path.join(SRC_DIR, 'out/publish/devenv', TOOLCHAIN) | |
| 15 | |
| 16 import chrome_test | |
| 17 | |
| 18 | |
| 19 app = os.path.join(DEVENV_OUT_DIR, 'app') | |
| 20 test_dir = os.path.join(SCRIPT_DIR, 'tests') | |
| 21 | |
| 22 chrome_test.main([ | |
| 23 '-C', test_dir, | |
| 24 '-p', 'TOOLCHAIN=' + TOOLCHAIN, | |
| 25 '-t', '400', | |
| 26 '--enable-nacl', | |
| 27 '--load-extension', app, | |
| 28 'io2014_test.html'] + sys.argv[1:]) | |
| OLD | NEW |