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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-shouldnt-crash-after-inspected-context-destroyed.html

Issue 2954093003: [DevTools] Migrate inspector-protocol/runtime tests to new harness (Closed)
Patch Set: fail: Created 3 years, 5 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
(Empty)
1 <html>
2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource s/inspector-protocol-test.js"></script>
4 <script>
5
6 function test()
7 {
8 var swapConsoleAndRemoveIframe = "\n\
9 var a = window.console;\n\
10 window.console = iframe.contentWindow.console;\n\
11 iframe.contentWindow.console = a;\n\
12 document.getElementById(\"iframe\").remove();\n\
13 ";
14
15 InspectorTest.sendCommand("Runtime.evaluate", { "expression": swapConsoleAnd RemoveIframe }, runConsoleLog);
16 function runConsoleLog(result)
17 {
18 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "console.l og(239);" }, () => InspectorTest.completeTest());
19 }
20 }
21 </script>
22 </head>
23 <iframe id="iframe"></iframe>
24 <body onLoad="runTest();">
25 Tests that call to console after inspected context was destroyed shouldn't produ ce crash.
26 </body>
27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698