JavaScript popup testcases
This page shows an ad while this is loading, two ads when this is loaded, and an ad when this page is unloaded. All of them should be blocked.
Links part1
- not an ad: window.open in "onclick", returns false should be allowed
- not an ad: window.open in "onclick", returns false should be allowed
- not an ad: href="javascript:window.open" should be allowed
- not an ad: href="javascript:window.open" and onclick(returns true) should be allowed
- not an ad: href="javascript:window.open", returns a string "foobar" should be allowed, and this page should be replaced to the string "foobar"
- ad: 1sec delayed ad should be blocked
- ad: popups an ad on mouseover should be blocked
- ad: open a blank popup, and load a page into the popup with 1sec delay both should be allowed (delayed loading for an ad will be blocked if this page has already opened (or tried to open) 20 ads before this link is clicked)
- ad: opens 30 ads with 1sec delay IF THIS PAGE IS UNBLOCKED: only 20 ads should be allowed, more ads should be blocked; IF THIS PAGE IS BLOCKED: no ad should appear
- with void()
- with void(null)
Links part2
- <a href="popup.html#FROM_LINK" target="newtab" onclick="void(window.open('popup.html#FROM_ONCLICK'));">
two window(tab)s should be opend
- <a href="popup.html#FROM_LINK" target="newtab" onclick="window.open('popup.html#FROM_ONCLICK');">
two window(tab)s should be opend
- <a href="popup.html#FROM_LINK" target="newtab" onclick="window.open('popup.html#FROM_ONCLICK'); return true;">
two window(tab)s should be opend
- <a href="popup.html#FROM_LINK" target="newtab" onclick="window.open('popup.html#FROM_ONCLICK'); return false;">
only one window(tab) should be opend
Form
BASE TARGETED LINKS