| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 #!/usr/bin/env python | 
|  | 2 | 
|  | 3 # Copyright (c) 2014 Google Inc. All rights reserved. | 
|  | 4 # Use of this source code is governed by a BSD-style license that can be | 
|  | 5 # found in the LICENSE file. | 
|  | 6 | 
|  | 7 """ | 
|  | 8 Verifies that ios watch extensions and apps are built correctly. | 
|  | 9 """ | 
|  | 10 | 
|  | 11 import TestGyp | 
|  | 12 import TestMac | 
|  | 13 | 
|  | 14 import sys | 
|  | 15 if sys.platform == 'darwin' and TestMac.Xcode.Version() >= "0620": | 
|  | 16   test = TestGyp.TestGyp(formats=['ninja', 'xcode']) | 
|  | 17 | 
|  | 18   test.run_gyp('watch.gyp', chdir='watch') | 
|  | 19 | 
|  | 20   test.build( | 
|  | 21       'watch.gyp', | 
|  | 22       'WatchContainer', | 
|  | 23       chdir='watch') | 
|  | 24 | 
|  | 25   # Test that the extension exists | 
|  | 26   test.built_file_must_exist( | 
|  | 27       'WatchContainer.app/PlugIns/WatchKitExtension.appex', | 
|  | 28       chdir='watch') | 
|  | 29 | 
|  | 30   # Test that the watch app exists | 
|  | 31   test.built_file_must_exist( | 
|  | 32       'WatchContainer.app/PlugIns/WatchKitExtension.appex/WatchApp.app', | 
|  | 33       chdir='watch') | 
|  | 34 | 
|  | 35   test.pass_test() | 
|  | 36 | 
| OLD | NEW | 
|---|