| Index: third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-8.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-8.html b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-8.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b970ebc8c0c385db38fcfe15cc71902d30db62c1
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-8.html
|
| @@ -0,0 +1,29 @@
|
| +<html>
|
| +<head>
|
| +<script src="../../http/tests/inspector/inspector-test.js"></script>
|
| +<script src="../../http/tests/inspector/debugger-test.js"></script>
|
| +<script src="../../http/tests/inspector/sources-test.js"></script>
|
| +
|
| +<script>
|
| +
|
| +function test()
|
| +{
|
| + var testJSFormatter = InspectorTest.testPrettyPrint.bind(InspectorTest, "text/javascript");
|
| +
|
| + InspectorTest.runTestSuite([
|
| + function asyncAwaitSupport(next)
|
| + {
|
| + var mappingQueries = ["async", "function", "foo", "return", "Promise", "resolve"];
|
| + testJSFormatter("async function foo() {return await Promise.resolve(1);}", mappingQueries, next);
|
| + },
|
| + ]);
|
| +}
|
| +
|
| +</script>
|
| +
|
| +</head>
|
| +
|
| +<body onload="runTest()">
|
| +<p>Verifies JavaScript pretty-printing functionality.</p>
|
| +</body>
|
| +</html>
|
|
|