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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-5-expected.txt

Issue 1835783002: DevTools: simplify WI.FormattedContentBuilder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline tests Created 4 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/pretty-print-javascript-5-expected.txt
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-5-expected.txt b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-5-expected.txt
index 974b74156b1089569ce365ef633d15c968ed1aca..032976e2790f5e4b6c64a62a4f3f95b9fb76b20e 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-5-expected.txt
+++ b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-5-expected.txt
@@ -31,17 +31,13 @@ Correct mapping for <hasNew>
Running: complexScriptFormatting
====== 8< ------
-function formatted1()
-{
+function formatted1() {
var variable1 = 0;
}
-
-function withComments()
-{
+function withComments() {
// comment
return "functionWithComments";
}
-
try {
onmessage = function(event) {
var source = event.data;
@@ -55,8 +51,7 @@ try {
;
function beautify(source) {
var ast = parse.parse(source);
- var beautifyOptions =
- {
+ var beautifyOptions = {
indent_level: 4,
indent_start: 0,
quote_keys: false,
@@ -71,8 +66,7 @@ try {
};
var lastPosition = 0;
var regexp = /(^|[^\\])\b((?=\D)[\$\.\w]+)\b/g;
- while (true)
- {
+ while (true) {
var match = regexp.exec(formattedSource);
if (!match)
break;
@@ -95,9 +89,7 @@ try {
importScripts("UglifyJS/process.js");
var process = exports;
} catch (e) {}
-
-function formatted2()
-{
+function formatted2() {
var variable2 = 0;
}

Powered by Google App Engine
This is Rietveld 408576698