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

Unified Diff: chrome/browser/resources/chromeos/chromevox2/cvox2/background/background.chromevoxjstest

Issue 320753002: Support javascript gtests in an extension background page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WS Created 6 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/chromevox2/cvox2/background/background.chromevoxjstest
diff --git a/chrome/browser/resources/chromeos/chromevox2/cvox2/background/background.chromevoxjstest b/chrome/browser/resources/chromeos/chromevox2/cvox2/background/background.chromevoxjstest
new file mode 100644
index 0000000000000000000000000000000000000000..076f6f57491938b09bebca4fd95fd4f13267897f
--- /dev/null
+++ b/chrome/browser/resources/chromeos/chromevox2/cvox2/background/background.chromevoxjstest
@@ -0,0 +1,29 @@
+// 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.
+
+// Include test fixture.
+GEN_INCLUDE(['../../../chromevox/testing/chromevox_unittest_base.js']);
+
+/**
+ * Test fixture for cvox2.Background.
+ * @constructor
+ * @extends {ChromeVoxUnitTestBase}
+ */
+function BackgroundTest() {}
+
+BackgroundTest.prototype = {
+ __proto__: ChromeVoxUnitTestBase.prototype,
+
+ /** @override */
+ browsePreload: null,
+
+ /** @override */
+ closureModuleDeps: []
+};
+
+/** Tests ChromeVox classic is in this context. */
+TEST_F('BackgroundTest', 'ClassicNamespaces', function() {
+ assertEquals('object', typeof(cvox));
+ assertEquals('function', typeof(cvox.ChromeVoxBackground));
+});

Powered by Google App Engine
This is Rietveld 408576698