Skip to content

Commit

Permalink
Added test case for disabled opening of new window #544.
Browse files Browse the repository at this point in the history
  • Loading branch information
fanglingsu committed Mar 16, 2019
1 parent e316a77 commit bae3e38
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/manual/dummy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<html>
<head>
<title>Dummy Page</title>
</head>
<body>
Dummy Page
</body>
</html>


15 changes: 15 additions & 0 deletions tests/manual/window-open.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<html>
<head>
<title>Window open</title>
</head>
<body>
<a href="./dummy.html" target="">target=""</a><br/>
<a href="./dummy.html" target="_new">target="_new"</a><br/>
<a href="./dummy.html" target="_blank">target="_blank"</a><br/>
<a href="./dummy.html" target="foo">target iframe</a><br/>
<a href="javascript:window.open('./dummy.html', 'winname')">javascript:window-open</a><br/>
<a href="#" onclick="window.open('./dummy.html', 'winname')">onclick window-open</a><br/>
<iframe src="" name="foo"></iframe>
</body>
</html>

0 comments on commit bae3e38

Please sign in to comment.