Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-1.html

Issue 2771623003: DevTools: add tests to fixate javascript outline behavior (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-1.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-1.html b/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-1.html
new file mode 100644
index 0000000000000000000000000000000000000000..ee43a466bb7fbd13197d0a64ef0e1023975ca5a5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-1.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('testSimpleFunction');
+ await test('function foo(a, b, c) {}');
+
+ InspectorTest.markStep('testSpreadOperator');
+ await test('function foo(a, b, ...c) {}');
+
+ InspectorTest.markStep('testVariableDeclaration');
+ await test('var a = function(a,b) { }');
+
+ InspectorTest.markStep('testMultipleVariableDeclaration');
+ await test('var a = function(a,b) { }, b = function(c,d) { }');
+
+ InspectorTest.markStep('testObjectProperty');
+ await test('a.b.c = function(d, e) { }');
+
+ InspectorTest.completeTest();
+}
+
+</script>
+
+</head>
+
+<body onload="runTest()">
+<p>Verify javascript outline</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698