Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: chrome/test/data/popup_blocker/popup-fake-click-on-anchor3.html

Issue 2772983003: Prevent tests using data URLs from being broken by data URL deprecation (Closed)
Patch Set: nasko comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Popup Blocked Fake Click on Anchor</title> 4 <title>Popup Blocked Fake Click on Anchor</title>
5 <script> 5 <script>
6 function test() { 6 function test() {
7 document.querySelector("a").dispatchEvent(new MouseEvent("click", {shiftKey: t rue})); 7 document.querySelector("a").dispatchEvent(new MouseEvent("click", {shiftKey: t rue}));
8 } 8 }
9 </script> 9 </script>
10 </head> 10 </head>
11 <body onload="test()"> 11 <body onload="test()">
12 If the fake click was not blocked then there will be an warning message displaye d in a new tab. Otherwise, the test passes. 12 If the fake click was not blocked then there will be a warning message displayed in a new tab. Otherwise, the test passes.
13 <a href="data:text/html,<title>PASS</title>you should not see this message if po pup blocker is enabled"></a> 13 <a href="popup-success.html">link</a>
14 </body> 14 </body>
15 </html> 15 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/popup_blocker/popup-fake-click-on-anchor2.html ('k') | chrome/test/data/popup_blocker/popup-many.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698