| Index: third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-3.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-3.html b/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-3.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8ae1b97930c53b9f57ed5b17aa1d8f004b78f919
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-3.html
|
| @@ -0,0 +1,37 @@
|
| +<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('testClassConstructor');
|
| + await test('class Test { constructor(foo, bar) { }}');
|
| +
|
| + InspectorTest.markStep('testClassMethods');
|
| + await test('class Test { foo() {} bar() { }}');
|
| +
|
| + InspectorTest.markStep('testAnonymousClass');
|
| + await test('var test = class { constructor(foo, bar) { }}');
|
| +
|
| + InspectorTest.markStep('testClassExtends');
|
| + await test('var A = class extends B { foo() { }}');
|
| +
|
| + InspectorTest.markStep('testStaticMethod');
|
| + await test('class Test { static foo() { }}');
|
| +
|
| + InspectorTest.completeTest();
|
| +}
|
| +
|
| +</script>
|
| +
|
| +</head>
|
| +
|
| +<body onload="runTest()">
|
| +<p>Verify javascript outline</p>
|
| +</body>
|
| +</html>
|
|
|