Skip to content

Commit bfd0377

Browse files
committed
[test] update issue4157-nav-win-lost for newwin
1 parent 7c70451 commit bfd0377

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/sanity/issue4157-nav-win-lost/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
function getCurrentWindow() {
1919
try{
2020
var r = nw.Window.get();
21-
if (r.appWindow) {
21+
if (r.cWindow || r.appWindow) {
2222
out('result', 'success');
2323
} else {
2424
out('result', 'failure');
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
</script></body>
31-
</html>
31+
</html>

test/sanity/issue4157-nav-win-lost/next.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
function getCurrentWindow() {
1818
try{
1919
var r = nw.Window.get();
20-
if (r.appWindow) {
20+
if (r.cWindow || r.appWindow) {
2121
out('result', 'success');
2222
} else {
2323
out('result', 'failure');
@@ -28,4 +28,4 @@
2828
}
2929
</script>
3030
</body>
31-
</html>
31+
</html>

0 commit comments

Comments
 (0)