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

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

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

Powered by Google App Engine
This is Rietveld 408576698