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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/scriptParsedHash.js

Issue 2968523003: [DevTools] Migrate inspector-protocol/debugger tests to new harness (Closed)
Patch Set: all tests 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('');
3
4 var hashes = new Set(['1C6D2E82E4E4F1BA4CB5762843D429DC872EBA18',
5 'EBF1ECD351E7A3294CB5762843D429DC872EBA18',
6 '22D0043331237371241FC675A984B967025A3DC0']);
7
8 dp.Debugger.enable();
9 dp.Debugger.onScriptParsed(messageObject => {
10 if (hashes.has(messageObject.params.hash))
11 testRunner.log('Hash received: ' + messageObject.params.hash);
12 });
13
14 function longScript() {
15 var longScript = "var b = 1;";
16 for (var i = 0; i < 2024; ++i)
17 longScript += "++b;";
18 }
19
20 dp.Runtime.evaluate({expression: '1'});
21 dp.Runtime.evaluate({expression: '239'});
22 await dp.Runtime.evaluate({expression: '(' + longScript + ')()' });
23 testRunner.completeTest();
24 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698