Skip to content

Commit 78bf227

Browse files
Vasil ChimevVasil Chimev
Vasil Chimev
authored and
Vasil Chimev
committed
Uncomment tests for live sync delete files.
NativeScript/nativescript-cli#1210
1 parent 632ef24 commit 78bf227

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

tests/build_linux.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def test_301_build_project_with_dash(self):
186186
"cat tns-app/platforms/android/src/main/AndroidManifest.xml")
187187
assert "org.nativescript.tnsapp" in output
188188

189-
def test_301_build_project_with_space(self):
189+
def test_302_build_project_with_space(self):
190190
create_project_add_platform(proj_name="\"TNS App\"",
191191
platform="android", framework_path=ANDROID_RUNTIME_PATH)
192192

tests/livesync_simulator.py

+22-22
Original file line numberDiff line numberDiff line change
@@ -150,28 +150,28 @@ def test_113_livesync_ios_simulator_watch_change_css_file(self):
150150
assert "color: green;" in output
151151

152152

153-
# # Delete files
154-
# def test_121_livesync_ios_simulator_watch_delete_xml_file(self):
155-
# remove("TNS_App/app/test/test.xml")
156-
# self.wait_for_text_in_output("app/test/test.xml")
157-
#
158-
# output = cat_app_file_on_simulator("TNSApp", "app/test/test.xml")
159-
# assert "No such file or directory" in output
160-
#
161-
# def test_122_livesync_ios_simulator_watch_delete_js_file(self):
162-
# remove("TNS_App/app/test/test.js")
163-
# self.wait_for_text_in_output("app/test/test.js")
164-
# time.sleep(2)
165-
#
166-
# output = cat_app_file_on_simulator("TNSApp", "app/test/test.js")
167-
# assert "No such file or directory" in output
168-
#
169-
# def test_123_livesync_ios_simulator_watch_delete_css_file(self):
170-
# remove("TNS_App/app/test/test.css")
171-
# self.wait_for_text_in_output("app/test/test.css")
172-
#
173-
# output = cat_app_file_on_simulator("TNSApp", "app/test/test.css")
174-
# assert "No such file or directory" in output
153+
# Delete files
154+
def test_121_livesync_ios_simulator_watch_delete_xml_file(self):
155+
remove("TNS_App/app/test/test.xml")
156+
self.wait_for_text_in_output("app/test/test.xml")
157+
158+
output = cat_app_file_on_simulator("TNSApp", "app/test/test.xml")
159+
assert "No such file or directory" in output
160+
161+
def test_122_livesync_ios_simulator_watch_delete_js_file(self):
162+
remove("TNS_App/app/test/test.js")
163+
self.wait_for_text_in_output("app/test/test.js")
164+
time.sleep(2)
165+
166+
output = cat_app_file_on_simulator("TNSApp", "app/test/test.js")
167+
assert "No such file or directory" in output
168+
169+
def test_123_livesync_ios_simulator_watch_delete_css_file(self):
170+
remove("TNS_App/app/test/test.css")
171+
self.wait_for_text_in_output("app/test/test.css")
172+
173+
output = cat_app_file_on_simulator("TNSApp", "app/test/test.css")
174+
assert "No such file or directory" in output
175175

176176

177177
def test_301_livesync_ios_simulator_before_run(self):

0 commit comments

Comments
 (0)