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

Unified Diff: chrome/browser/resources/chromeos/select_to_speak/test_support.js

Issue 2509883002: Select-to-speak extension code (Closed)
Patch Set: Added unit test fixture Created 4 years 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/select_to_speak/test_support.js
diff --git a/chrome/browser/resources/chromeos/select_to_speak/background.js b/chrome/browser/resources/chromeos/select_to_speak/test_support.js
similarity index 50%
rename from chrome/browser/resources/chromeos/select_to_speak/background.js
rename to chrome/browser/resources/chromeos/select_to_speak/test_support.js
index 6853db73b68936cd3ee35d8b0ac4811bd738f192..2f9b3fdf37a619390e60adfa628a5778c746f84c 100644
--- a/chrome/browser/resources/chromeos/select_to_speak/background.js
+++ b/chrome/browser/resources/chromeos/select_to_speak/test_support.js
@@ -1,3 +1,10 @@
// Copyright 2016 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.
+
+/**
+ * Stubs out extension API functions so that SelectToSpeakUnitTest
+ * can load.
+ */
+chrome.automation = {};
+chrome.automation.getDesktop = function() {};

Powered by Google App Engine
This is Rietveld 408576698