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

Unified Diff: chrome/browser/resources/chromeos/chromevox/testing/common.js

Issue 2943193002: Run clang-format on .js files in c/b/r/chromeos/chromevox (Closed)
Patch Set: Created 3 years, 6 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: chrome/browser/resources/chromeos/chromevox/testing/common.js
diff --git a/chrome/browser/resources/chromeos/chromevox/testing/common.js b/chrome/browser/resources/chromeos/chromevox/testing/common.js
index 9c0fc0bf70c647a75c7c64a49051b7608608de55..1a654c943d3f44ede7ec5d3f7c86dd1155a181bb 100644
--- a/chrome/browser/resources/chromeos/chromevox/testing/common.js
+++ b/chrome/browser/resources/chromeos/chromevox/testing/common.js
@@ -32,8 +32,8 @@ var TestUtils = function() {};
* $0, ... within the code block.
* @return {string} The html text.
*/
-TestUtils.extractHtmlFromCommentEncodedString =
- function(commentEncodedHtml, opt_args) {
+TestUtils.extractHtmlFromCommentEncodedString = function(
+ commentEncodedHtml, opt_args) {
var stringified = commentEncodedHtml.toString();
if (opt_args) {
for (var i = 0; i < opt_args.length; i++)
@@ -43,16 +43,16 @@ TestUtils.extractHtmlFromCommentEncodedString =
};
- /**
- * Creates a data url for a document.
- * @param {function() : void} doc Snippet wrapped inside of a function.
- * @return {string}
- */
+/**
+ * Creates a data url for a document.
+ * @param {function() : void} doc Snippet wrapped inside of a function.
+ * @return {string}
+ */
TestUtils.createUrlForDoc = function(doc) {
var docString = TestUtils.extractHtmlFromCommentEncodedString(doc);
- return TestUtils.collapseWhitespace('data:text/html,<!doctype html>' +
- docString.replace(/[\n\r]/g, '')
- .trim());
+ return TestUtils.collapseWhitespace(
+ 'data:text/html,<!doctype html>' +
+ docString.replace(/[\n\r]/g, '').trim());
};
/**

Powered by Google App Engine
This is Rietveld 408576698