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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-in-default-context.js

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 (async function(testRunner) {
2 let {page, session, dp} = await testRunner.startBlank(`Tests that default exec ution context is selected correctly.`);
3
4 await session.evaluateAsync(`
5 var frame = document.createElement('iframe');
6 frame.src = '${testRunner.url('../resources/runtime-events-iframe.html')}';
7 document.body.appendChild(frame);
8 new Promise(f => frame.onload = f)
9 `);
10
11 var result = await dp.Runtime.evaluate({expression: 'window.a' });
12 testRunner.logMessage(result);
13 testRunner.completeTest();
14 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698