Skip to content

Commit 79f192d

Browse files
committed
fixup! update the case to cover the scenario of bug nwjs#5517
1 parent 74ba410 commit 79f192d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/sanity/issue4221-win-open-manifest/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
window.open('index.html');
2323
}
2424
function winopenwithsize() {
25-
window.open('index.html', "_blank", "width=600, height=800");
25+
window.open('index.html', "_blank", "width=320, height=350");
2626
}
2727
function getwinsize() {
2828
out('result', [window.innerWidth, window.innerHeight].join(','));

test/sanity/issue4221-win-open-manifest/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def click_and_assert(driver, id, expect):
3232
print 'open new window with `window.open()`'
3333
click_and_assert(driver, 'winopen', '400,300')
3434
print 'open new window by `window.open()` with width and height'
35-
print 'newly opended window should have size of 600,800'
36-
click_and_assert(driver, 'winopenwithsize', '600,800')
35+
print 'newly opended window should have size of 320,350'
36+
click_and_assert(driver, 'winopenwithsize', '320,350')
3737
print 'open new window with <a target="_blank">'
3838
click_and_assert(driver, 'linkopen', '400,300')
3939
print 'bind new-win-policy and newly opened window should have size of 388,300'

0 commit comments

Comments
 (0)