Skip to content

Commit 6a8c12c

Browse files
Vasil ChimevVasil Chimev
Vasil Chimev
authored and
Vasil Chimev
committed
Merge pull request #7 from NativeScript/run-livesync-run-issue
Update a test to cover Run->LiveSync->Run workflow on an android device with API level 21.
2 parents d09eb7d + 4607b7d commit 6a8c12c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/livesync_android.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ class LiveSync_Android(unittest.TestCase):
1515
def setUpClass(cls):
1616
StopEmulators()
1717
StopSimulators()
18-
18+
1919
CleanupFolder('./TNS_App')
2020
CreateProjectAndAddPlatform(projName="TNS_App", platform="android", frameworkPath=androidRuntimePath)
2121
Run(platform="android", path="TNS_App")
22-
22+
2323
def setUp(self):
2424

2525
print ""
@@ -52,6 +52,7 @@ def test_001_LiveSync_Android_XmlJsCss_Files(self):
5252
output = catAppFile("android", "TNSApp", "app/app.css")
5353
assert ("font-size: 20;" in output)
5454

55+
# This tests the Run -> LiveSync -> Run workflow on an android device with API level 21.
5556
def test_002_LiveSync_Android_Device_XmlFile(self):
5657

5758
replace("TNS_App/app/main-page.xml", "TAP", "TEST")
@@ -60,6 +61,12 @@ def test_002_LiveSync_Android_Device_XmlFile(self):
6061
output = catAppFile("android", "TNSApp", "app/main-page.xml")
6162
assert ("<Button text=\"TEST\" tap=\"{{ tapAction }}\" />" in output)
6263

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+
6370
@unittest.skip("TODO: Fix this test.")
6471
def test_004_LiveSync_Android_Watch(self):
6572

0 commit comments

Comments
 (0)