Index: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-without-enabling.js |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-without-enabling.js b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-without-enabling.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dd9354ef6a5eaba921b5953d2604ef8cef53dc70 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-without-enabling.js |
@@ -0,0 +1,8 @@ |
+(async function(testRunner) { |
+ let {page, session, dp} = await testRunner.startBlank(`Tests that default execution context accessed without enabling Runtime domain gets properly cleaned up on reload.`); |
+ await session.evaluate('window.dummyObject = { a : 1 };'); |
+ var result = await dp.Runtime.evaluate({expression: 'window.dummyObject' }); |
+ await dp.Page.reload(); |
+ testRunner.logMessage(await dp.Runtime.getProperties({ objectId: result.result.result.objectId, ownProperties: true })); |
+ testRunner.completeTest(); |
+}) |