| Index: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-in-default-context.js
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-in-default-context.js b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-in-default-context.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0cf59b8c8193dc99da898afae84e83a636ce3d5b
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-in-default-context.js
|
| @@ -0,0 +1,14 @@
|
| +(async function(testRunner) {
|
| + let {page, session, dp} = await testRunner.startBlank(`Tests that default execution context is selected correctly.`);
|
| +
|
| + await session.evaluateAsync(`
|
| + var frame = document.createElement('iframe');
|
| + frame.src = '${testRunner.url('../resources/runtime-events-iframe.html')}';
|
| + document.body.appendChild(frame);
|
| + new Promise(f => frame.onload = f)
|
| + `);
|
| +
|
| + var result = await dp.Runtime.evaluate({expression: 'window.a' });
|
| + testRunner.logMessage(result);
|
| + testRunner.completeTest();
|
| +})
|
|
|