Index: third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-4.html |
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-4.html b/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-4.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f40a8d4b6ad4acd7a3b9c586bed6ddf8db22d393 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-4.html |
@@ -0,0 +1,46 @@ |
+<html> |
+<head> |
+<script src="../../http/tests/inspector/inspector-test.js"></script> |
+<script src="../../http/tests/inspector/sources-test.js"></script> |
+ |
+<script> |
+ |
+async function test() |
+{ |
+ var test = InspectorTest.testJavascriptOutline; |
+ |
+ InspectorTest.markStep('testAsyncFunction'); |
+ await test('async function foo() { }'); |
+ |
+ InspectorTest.markStep('testGeneratorFunction'); |
+ await test('function* foo() { }'); |
+ |
+ InspectorTest.markStep('testMismatchBrackets'); |
+ await test(` |
+function foo(a, b) { |
+ if (a > b) { |
+ return a; |
+} |
+ |
+function bar(eee) { |
+ foo(eee, 2 * eee); |
+} |
+`); |
+ |
+ InspectorTest.markStep('testSyntaxError'); |
+ await test(` |
+function notAGenerator(a, b) { |
+ yield 10; |
+}`); |
+ |
+ InspectorTest.completeTest(); |
+} |
+ |
+</script> |
+ |
+</head> |
+ |
+<body onload="runTest()"> |
+<p>Verify javascript outline</p> |
+</body> |
+</html> |