Index: third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-6.html |
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-6.html b/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-6.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..59663aeed0376277925278b84deb883effef01ff |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-6.html |
@@ -0,0 +1,31 @@ |
+<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('testClassAsNumberLiteralProperty'); |
+ await test('var foo = { 42: class { }};'); |
+ |
+ InspectorTest.markStep('testClassAsStringLiteralProperty'); |
+ await test('var foo = { "foo": class { }};'); |
+ |
+ InspectorTest.markStep('testClassAsIdentifierProperty'); |
+ await test('var foo = { foo: class { }};'); |
+ |
+ InspectorTest.completeTest(); |
+} |
+ |
+</script> |
+ |
+</head> |
+ |
+<body onload="runTest()"> |
+<p>Verify javascript outline</p> |
+</body> |
+</html> |