Skip to content

Commit

Permalink
[test] add issue5061-cdt-emptyid for #5061
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed Jul 26, 2016
1 parent 837f4bf commit 93cdfd2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/sanity/issue5061-cdt-emptyid/main.html
@@ -0,0 +1,6 @@
<script>
var win = nw.Window.get();
win.showDevTools('', function (item) {
console.log(item);
});
</script>
1 change: 1 addition & 0 deletions test/sanity/issue5061-cdt-emptyid/package.json
@@ -0,0 +1 @@
{ "name": "name", "main": "main.html"}
14 changes: 14 additions & 0 deletions test/sanity/issue5061-cdt-emptyid/test.py
@@ -0,0 +1,14 @@
import time
import os

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("nwapp=" + os.path.dirname(os.path.abspath(__file__)))

driver = webdriver.Chrome(executable_path=os.environ['CHROMEDRIVER'], chrome_options=chrome_options)
time.sleep(1)
try:
print driver.current_url
finally:
driver.quit()

0 comments on commit 93cdfd2

Please sign in to comment.