| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 # Copyright (c) 2012 Google Inc. All rights reserved. | 3 # Copyright (c) 2012 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """ | 7 """ |
| 8 Verifies that app bundles are built correctly. | 8 Verifies that app bundles are built correctly. |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 from __future__ import print_function |
| 12 |
| 11 import TestGyp | 13 import TestGyp |
| 12 import TestMac | 14 import TestMac |
| 13 | 15 |
| 14 import os | 16 import os |
| 15 import plistlib | 17 import plistlib |
| 16 import subprocess | 18 import subprocess |
| 17 import sys | 19 import sys |
| 18 | 20 |
| 19 if sys.platform == 'darwin': | 21 if sys.platform == 'darwin': |
| 20 print "This test is currently disabled: https://crbug.com/483696." | 22 print("This test is currently disabled: https://crbug.com/483696.") |
| 21 sys.exit(0) | 23 sys.exit(0) |
| 22 | 24 |
| 23 def ExpectEq(expected, actual): | 25 def ExpectEq(expected, actual): |
| 24 if expected != actual: | 26 if expected != actual: |
| 25 print >>sys.stderr, 'Expected "%s", got "%s"' % (expected, actual) | 27 print('Expected "%s", got "%s"' % (expected, actual), file=sys.stderr) |
| 26 test.fail_test() | 28 test.fail_test() |
| 27 | 29 |
| 28 def ls(path): | 30 def ls(path): |
| 29 '''Returns a list of all files in a directory, relative to the directory.''' | 31 '''Returns a list of all files in a directory, relative to the directory.''' |
| 30 result = [] | 32 result = [] |
| 31 for dirpath, _, files in os.walk(path): | 33 for dirpath, _, files in os.walk(path): |
| 32 for f in files: | 34 for f in files: |
| 33 result.append(os.path.join(dirpath, f)[len(path) + 1:]) | 35 result.append(os.path.join(dirpath, f)[len(path) + 1:]) |
| 34 return result | 36 return result |
| 35 | 37 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 set(['Contents/MacOS/Test App Assets Catalog Gyp', | 116 set(['Contents/MacOS/Test App Assets Catalog Gyp', |
| 115 'Contents/Info.plist', | 117 'Contents/Info.plist', |
| 116 'Contents/Resources/English.lproj/MainMenu.nib', | 118 'Contents/Resources/English.lproj/MainMenu.nib', |
| 117 'Contents/PkgInfo', | 119 'Contents/PkgInfo', |
| 118 ] + extra_content_files + | 120 ] + extra_content_files + |
| 119 [os.path.join('Contents/Resources/English.lproj', f) | 121 [os.path.join('Contents/Resources/English.lproj', f) |
| 120 for f in strings_files]): | 122 for f in strings_files]): |
| 121 test.fail_test() | 123 test.fail_test() |
| 122 | 124 |
| 123 test.pass_test() | 125 test.pass_test() |
| OLD | NEW |