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

Side by Side Diff: LayoutTests/plugins/get-url-with-blank-target2.html

Issue 14195011: Removed WONTFIX tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <script>
3 var NPERR_NO_ERROR = 0;
4 var NPERR_GENERIC_ERROR = 1;
5
6 function callback(result) {
7 var d = document.getElementById('result');
8
9 if (result == NPERR_NO_ERROR)
10 d.innerHTML = "SUCCESS"
11 else
12 d.innerHTML = "FAILED - got error code " + result
13
14 testRunner.notifyDone();
15 }
16
17 function runtest() {
18 if (window.testRunner) {
19 testRunner.dumpAsText();
20 testRunner.waitUntilDone();
21 testRunner.setCanOpenWindows();
22 // The new window should close immediately after it opens and finishes
23 // loading. The setTimeout allows NPP_URLNotify to run before the
24 // window is closed.
25 plg.getURLNotify("data:text/html,<body onload='setTimeout(function(){clo se()},0)'></body>", "_blank", "callback");
26 } else {
27 document.write("Cannot run interactively");
28 }
29 }
30 </script>
31 <body onload="runtest()">
32 <embed id="plg" type="application/x-webkit-test-netscape"></embed>
33 This tests that we won't crash when a plugin tries to open an URL in a new windo w when the application does not create the window. If this test is successful, t he word SUCCESS should be seen below.
34 <div id="result">FAILED</div>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698