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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-shouldnt-crash-after-inspected-context-destroyed.js

Issue 2954093003: [DevTools] Migrate inspector-protocol/runtime tests to new harness (Closed)
Patch Set: fail: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-shouldnt-crash-after-inspected-context-destroyed.js
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-shouldnt-crash-after-inspected-context-destroyed.js b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-shouldnt-crash-after-inspected-context-destroyed.js
new file mode 100644
index 0000000000000000000000000000000000000000..7c1a59dc2a6e46c710fd4bf0ea2cb53c4c68c6f1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-shouldnt-crash-after-inspected-context-destroyed.js
@@ -0,0 +1,13 @@
+(async function(testRunner) {
+ let {page, session, dp} = await testRunner.startBlank(`Tests that call to console after inspected context was destroyed shouldn't produce crash.`);
+ await session.evaluate(`
+ var iframe = document.createElement('iframe');
+ document.body.appendChild(iframe);
+ var a = window.console;
+ window.console = iframe.contentWindow.console;
+ iframe.contentWindow.console = a;
+ iframe.remove();
+ `);
+ testRunner.logMessage(await dp.Runtime.evaluate({expression: 'console.log(239);'}));
+ testRunner.completeTest();
+})

Powered by Google App Engine
This is Rietveld 408576698