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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-4.html

Issue 2771623003: DevTools: add tests to fixate javascript outline behavior (Closed)
Patch Set: Created 3 years, 9 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 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/sources-test.js"></script>
5
6 <script>
7
8 async function test()
9 {
10 var test = InspectorTest.testJavascriptOutline;
11
12 InspectorTest.markStep('testAsyncFunction');
13 await test('async function foo() { }');
14
15 InspectorTest.markStep('testGeneratorFunction');
16 await test('function* foo() { }');
17
18 InspectorTest.markStep('testMismatchBrackets');
19 await test(`
20 function foo(a, b) {
21 if (a > b) {
22 return a;
23 }
24
25 function bar(eee) {
26 foo(eee, 2 * eee);
27 }
28 `);
29
30 InspectorTest.markStep('testSyntaxError');
31 await test(`
32 function notAGenerator(a, b) {
33 yield 10;
34 }`);
35
36 InspectorTest.completeTest();
37 }
38
39 </script>
40
41 </head>
42
43 <body onload="runTest()">
44 <p>Verify javascript outline</p>
45 </body>
46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698