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

Unified Diff: LayoutTests/inspector/sources/pretty-print-javascript-6.html

Issue 1312033002: DevTools: fix pretty-print of anonymous functions passed as call parameters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix stray changes Created 5 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/pretty-print-javascript-6-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/sources/pretty-print-javascript-6.html
diff --git a/LayoutTests/inspector/sources/pretty-print-javascript-6.html b/LayoutTests/inspector/sources/pretty-print-javascript-6.html
index a5b3b125d810097c86c5af9fbc5c2d7921fd96a6..29237ce7642c0d7b91293edfca8a2ff31f63bc3c 100644
--- a/LayoutTests/inspector/sources/pretty-print-javascript-6.html
+++ b/LayoutTests/inspector/sources/pretty-print-javascript-6.html
@@ -40,6 +40,12 @@ function test()
{
var mappingQueries = ["for", "person", "name", "}"];
testJSFormatter("for(var i=0;i<names.length;++i){let name=names[i];let person=persons[i];}", mappingQueries, next);
+ },
+
+ function anonimousFunctionAsParameter(next)
+ {
+ var mappingQueries = ["setTimeout", "function", "alert", "2000"];
+ testJSFormatter("setTimeout(function(){alert(1);},2000);", mappingQueries, next);
}
]);
}
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/pretty-print-javascript-6-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698