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

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

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (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/chromevox_e2e_test_base.js
diff --git a/chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test_base.js b/chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test_base.js
index 0cdf1cd189bdee1030b194c1351b40ef4b021b10..baddffbd097601b9bf10ca9b67a61a52e7e2629d 100644
--- a/chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test_base.js
+++ b/chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test_base.js
@@ -2,9 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-GEN_INCLUDE([
- 'common.js',
- 'callback_helper.js']);
+GEN_INCLUDE(['common.js', 'callback_helper.js']);
/**
* Base test fixture for ChromeVox end to end tests.
@@ -34,25 +32,25 @@ ChromeVoxE2ETest.prototype = {
/** @override */
testGenCppIncludes: function() {
- GEN_BLOCK(function() {/*!
+ GEN_BLOCK(function() { /*!
#include "ash/accessibility_delegate.h"
#include "base/bind.h"
#include "base/callback.h"
#include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
#include "chrome/common/extensions/extension_constants.h"
- */});
+ */ });
},
/** @override */
testGenPreamble: function() {
- GEN_BLOCK(function() {/*!
+ GEN_BLOCK(function() { /*!
base::Closure load_cb =
base::Bind(&chromeos::AccessibilityManager::EnableSpokenFeedback,
base::Unretained(chromeos::AccessibilityManager::Get()),
true,
ash::A11Y_NOTIFICATION_NONE);
WaitForExtension(extension_misc::kChromeVoxExtensionId, load_cb);
- */});
+ */ });
},
/**
@@ -78,10 +76,7 @@ ChromeVoxE2ETest.prototype = {
*/
runWithTab: function(doc, opt_callback) {
var url = TestUtils.createUrlForDoc(doc);
- var createParams = {
- active: true,
- url: url
- };
+ var createParams = {active: true, url: url};
chrome.tabs.create(createParams, function(tab) {
if (opt_callback)
opt_callback(tab.url);
@@ -94,11 +89,13 @@ ChromeVoxE2ETest.prototype = {
* @param {string} elementQueryString
*/
incrementSelectedIndex: function(tabId, elementQueryString) {
- var code = TestUtils.extractHtmlFromCommentEncodedString(function() {/*!
+ var code = TestUtils.extractHtmlFromCommentEncodedString(
+ function() { /*!
var target = document.body.querySelector('$0');
target.focus();
target.selectedIndex++;
- */}, [elementQueryString]);
+ */ },
+ [elementQueryString]);
chrome.tabs.executeScript(tabId, {code: code});
},

Powered by Google App Engine
This is Rietveld 408576698