Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test case for issue #4007 #4242

Merged
merged 1 commit into from Jan 15, 2016
Merged

test case for issue #4007 #4242

merged 1 commit into from Jan 15, 2016

Conversation

ghostoy
Copy link
Member

@ghostoy ghostoy commented Jan 14, 2016

This test case will be skipped for Mac due to #4165

import sys

if platform.system() === 'Darwin':
print 'Skipped test for Mac due to a blocking issue #4165'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this case applies to OSX as well, why would we want to skip this case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will turn it on once the issue is fixed. I prefer not to fail any test.

Roger Wang notifications@github.com于2016年1月14日周四 23:28写道:

In test/remoting/issue4007-reload-lost-app-window/test.py
#4242 (comment):

@@ -0,0 +1,34 @@
+import time
+import os
+import platform
+import sys
+
+if platform.system() === 'Darwin':

If this case applies to OSX as well, why would we want to skip this case?


Reply to this email directly or view it on GitHub
https://github.com/nwjs/nw.js/pull/4242/files#r49739408.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preferring not to fail any test is not the right thing to do here. The problem should not be covered.

@ghostoy
Copy link
Member Author

ghostoy commented Jan 15, 2016

Changed per @rogerwang 's request

@rogerwang
Copy link
Member

It should be squashed into a single commit.

@ghostoy
Copy link
Member Author

ghostoy commented Jan 15, 2016

@rogerwang Updated

driver.find_element_by_id('reloadapp').click()
# wait 10s for reload complete
# on Linux, the reload is quite slow
time.sleep(10)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any better way to do this rather than simply sleeping for random 10s? e.g. some blocking function call or event returns when the reload completes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fixed.

rogerwang added a commit that referenced this pull request Jan 15, 2016
@rogerwang rogerwang merged commit d97ee81 into nwjs:nw13 Jan 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants