Index: chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test.js b/chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test.js |
deleted file mode 100644 |
index 79818240bff952dcb40d30428c45c4c30d2ef320..0000000000000000000000000000000000000000 |
--- a/chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test.js |
+++ /dev/null |
@@ -1,73 +0,0 @@ |
-// Copyright 2014 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-/** |
- * Base test fixture for ChromeVox end to end tests. |
- * |
- * These tests run against production ChromeVox inside of the extension's |
- * background page context. |
- * @constructor |
- */ |
-function ChromeVoxE2ETest() {} |
- |
-ChromeVoxE2ETest.prototype = { |
- __proto__: testing.Test.prototype, |
- |
- /** |
- * @override |
- * No UI in the background context. |
- */ |
- runAccessibilityChecks: false, |
- |
- /** @override */ |
- isAsync: true, |
- |
- /** @override */ |
- browsePreload: null, |
- |
- /** @override */ |
- testGenCppIncludes: 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() {/*! |
- if (chromeos::AccessibilityManager::Get()->IsSpokenFeedbackEnabled()) { |
- chromeos::AccessibilityManager::Get()->EnableSpokenFeedback(false, |
- ash::A11Y_NOTIFICATION_NONE); |
- } |
- |
- 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); |
- */}); |
- } |
-}; |
- |
-/** |
- * Similar to |TEST_F|. Generates a test for the given |testFixture|, |
- * |testName|, and |testFunction|. |
- * Used this variant when an |isAsync| fixture wants to temporarily mix in an |
- * sync test. |
- * @param {string} testFixture Fixture name. |
- * @param {string} testName Test name. |
- * @param {function} testFunction The test impl. |
- */ |
-function SYNC_TEST_F(testFixture, testName, testFunction) { |
- var wrappedTestFunction = function() { |
- testFunction(); |
- testDone([true, '']); |
- }; |
- TEST_F(testFixture, testName, wrappedTestFunction); |
-} |