@@ -15,11 +15,11 @@ class LiveSync_Android(unittest.TestCase):
15
15
def setUpClass (cls ):
16
16
StopEmulators ()
17
17
StopSimulators ()
18
-
18
+
19
19
CleanupFolder ('./TNS_App' )
20
20
CreateProjectAndAddPlatform (projName = "TNS_App" , platform = "android" , frameworkPath = androidRuntimePath )
21
21
Run (platform = "android" , path = "TNS_App" )
22
-
22
+
23
23
def setUp (self ):
24
24
25
25
print ""
@@ -52,6 +52,7 @@ def test_001_LiveSync_Android_XmlJsCss_Files(self):
52
52
output = catAppFile ("android" , "TNSApp" , "app/app.css" )
53
53
assert ("font-size: 20;" in output )
54
54
55
+ # This tests the Run -> LiveSync -> Run workflow on an android device with API level 21.
55
56
def test_002_LiveSync_Android_Device_XmlFile (self ):
56
57
57
58
replace ("TNS_App/app/main-page.xml" , "TAP" , "TEST" )
@@ -60,6 +61,12 @@ def test_002_LiveSync_Android_Device_XmlFile(self):
60
61
output = catAppFile ("android" , "TNSApp" , "app/main-page.xml" )
61
62
assert ("<Button text=\" TEST\" tap=\" {{ tapAction }}\" />" in output )
62
63
64
+ replace ("TNS_App/app/main-page.xml" , "TEST" , "RUN" )
65
+ Run (platform = "android" , path = "TNS_App" )
66
+
67
+ output = catAppFile ("android" , "TNSApp" , "app/main-page.xml" )
68
+ assert ("<Button text=\" RUN\" tap=\" {{ tapAction }}\" />" in output )
69
+
63
70
@unittest .skip ("TODO: Fix this test." )
64
71
def test_004_LiveSync_Android_Watch (self ):
65
72
0 commit comments