Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-9.html |
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-9.html b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-9.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..692213a091c1182968da36046197eef02847afa5 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-9.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> |
|
allada
2017/04/18 23:25:42
I don't think we need debugger-test.js, can you pl
luoe
2017/04/18 23:33:55
Looks like we don't! All the other 'pretty-print-
|
| +<script src="../../http/tests/inspector/sources-test.js"></script> |
| + |
| +<script> |
| + |
| +function test() |
| +{ |
| + var testJSFormatter = InspectorTest.testPrettyPrint.bind(InspectorTest, "text/javascript"); |
| + |
| + InspectorTest.runTestSuite([ |
| + function parenthesizedExpressions(next) |
| + { |
| + var mappingQueries = ["if", "((a))", "((b));", "else", "(c)"]; |
| + testJSFormatter("if((a))((b));else (c);", mappingQueries, next); |
| + }, |
| + ]); |
| +} |
| + |
| +</script> |
| + |
| +</head> |
| + |
| +<body onload="runTest()"> |
| +<p>Verifies JavaScript pretty-printing functionality.</p> |
| +</body> |
| +</html> |