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

Unified Diff: remoting/webapp/format_iq.gtestjs

Issue 8779002: Re-enable basic JS unittests for Chromoting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove old unittest runner Created 8 years, 2 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
« no previous file with comments | « remoting/webapp/debug_log.gtestjs ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/format_iq.gtestjs
diff --git a/remoting/webapp/format_iq.gtestjs b/remoting/webapp/format_iq.gtestjs
new file mode 100644
index 0000000000000000000000000000000000000000..a4ab8e94ff01ba8571e3e608b467e83015ae67ab
--- /dev/null
+++ b/remoting/webapp/format_iq.gtestjs
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 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.
+
+/**
+ * Test fixture for IQ formatting routines.
+ * @constructor
+ * @extends {testing.Test}
+ */
+function FormatIqUnitTest () {
+ remoting.formatIq = new remoting.FormatIq();
+ remoting.formatIq.setJids("client@jid", "host@jid");
+}
+
+FormatIqUnitTest.prototype = {
+ __proto__: testing.Test.prototype,
+
+ /** @inheritDoc */
+ extraLibraries: [
+ 'format_iq.js',
+ ],
+};
+
+// Basic test to verify that the JS Unittest framework is working and that
+// format_iq.js loads without console errors.
+// TODO(garykac): Add real unittests here.
+TEST_F('FormatIqUnitTest', 'TestJsLoad', function() {
+ assertTrue(true);
+});
« no previous file with comments | « remoting/webapp/debug_log.gtestjs ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698