@@ -34,15 +34,22 @@ def tearDown(self):
34
34
def tearDownClass (cls ):
35
35
pass
36
36
37
- def test_001_LiveSync_Android_XmlFile (self ):
37
+ def test_001_LiveSync_Android_XmlJsCss_Files (self ):
38
38
CreateProjectAndAddPlatform (projName = "TNS_App" , platform = "android" , frameworkPath = androidRuntimePath )
39
39
Run (platform = "android" , path = "TNS_App" )
40
40
41
41
replace ("TNS_App/app/main-page.xml" , "TAP" , "TEST" )
42
+ replace ("TNS_App/app/main-view-model.js" , "taps" , "clicks" )
43
+ replace ("TNS_App/app/app.css" , "30" , "20" )
44
+
42
45
LiveSync (platform = "android" , path = "TNS_App" )
43
46
44
47
output = catAppFile ("android" , "TNSApp" , "app/main-page.xml" )
45
48
assert ("<Button text=\" TEST\" tap=\" {{ tapAction }}\" />" in output )
49
+ output = catAppFile ("android" , "TNSApp" , "app/main-view-model.js" )
50
+ assert ("this.set(\" message\" , this.counter + \" clicks left\" );" in output )
51
+ output = catAppFile ("android" , "TNSApp" , "app/app.css" )
52
+ assert ("font-size: 20;" in output )
46
53
47
54
def test_002_LiveSync_Android_Device_XmlFile (self ):
48
55
CreateProjectAndAddPlatform (projName = "TNS_App" , platform = "android" , frameworkPath = androidRuntimePath )
@@ -93,21 +100,7 @@ def test_004_LiveSync_Android_Watch(self):
93
100
print "force killing child ..."
94
101
pr .kill ()
95
102
96
- def test_011_LiveSync_Android_CssJs_Files (self ):
97
- CreateProjectAndAddPlatform (projName = "TNS_App" , platform = "android" , frameworkPath = androidRuntimePath )
98
- Run (platform = "android" , path = "TNS_App" )
99
-
100
- replace ("TNS_App/app/app.css" , "30" , "20" )
101
- replace ("TNS_App/app/main-view-model.js" , "taps" , "clicks" )
102
- LiveSync (platform = "android" , path = "TNS_App" )
103
-
104
- output = catAppFile ("android" , "TNSApp" , "app/app.css" )
105
- assert ("font-size: 20;" in output )
106
-
107
- output = catAppFile ("android" , "TNSApp" , "app/main-view-model.js" )
108
- assert ("this.set(\" message\" , this.counter + \" clicks left\" );" in output )
109
-
110
- def test_012_LiveSync_Android_TnsModules_Files (self ):
103
+ def test_011_LiveSync_Android_TnsModules_Files (self ):
111
104
CreateProjectAndAddPlatform (projName = "TNS_App" , platform = "android" , frameworkPath = androidRuntimePath )
112
105
Run (platform = "android" , path = "TNS_App" )
113
106
@@ -162,7 +155,6 @@ def test_302_LiveSync(self):
162
155
output = LiveSync (path = "TNS_App" , assertSuccess = False )
163
156
164
157
assert ("Multiple device platforms detected (iOS and Android). Specify platform or device on command line." in output )
165
- assert ("# livesync" in output )
166
158
167
159
# # TODO: Implement it.
168
160
# @unittest.skip("Fix LiveSync for Android device.")
0 commit comments