diff options
author | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-11 21:13:20 +0000 |
---|---|---|
committer | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-11 21:13:20 +0000 |
commit | 0c37d9465a5aa01b3efd32a0f1bd5946823d79e8 (patch) | |
tree | cb30983fecf04edd36833679cfb8d7e0331210b6 /remoting/webapp | |
parent | 51575a3a59d91d57598a87e33a38b7fac4c7417c (diff) | |
download | chromium_src-0c37d9465a5aa01b3efd32a0f1bd5946823d79e8.zip chromium_src-0c37d9465a5aa01b3efd32a0f1bd5946823d79e8.tar.gz chromium_src-0c37d9465a5aa01b3efd32a0f1bd5946823d79e8.tar.bz2 |
Re-enable basic JS unittests for Chromoting.
This doesn't suffer from the ninja build problems that the first version had.
BUG=none
TEST=ninja chrome; make chrome; make remoting_unittests
Review URL: https://chromiumcodereview.appspot.com/8779002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161401 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/webapp')
-rw-r--r-- | remoting/webapp/debug_log.gtestjs | 26 | ||||
-rw-r--r-- | remoting/webapp/format_iq.gtestjs | 29 |
2 files changed, 29 insertions, 26 deletions
diff --git a/remoting/webapp/debug_log.gtestjs b/remoting/webapp/debug_log.gtestjs deleted file mode 100644 index 002f0fe..0000000 --- a/remoting/webapp/debug_log.gtestjs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2011 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 debug logging routines. - * @constructor - * @extends {testing.Test} - */ -function DebugLogUnitTest () {} - -DebugLogUnitTest.prototype = { - __proto__: testing.Test.prototype, - - /** @inheritDoc */ - extraLibraries: [ - 'debug_log.js', - ], -}; - -// Dummy test to verify that the JS Unittest framework is working and that -// debug_log.js loads without console errors. -// TODO(garykac): Replace this with real tests. -TEST_F('DebugLogUnitTest', 'TestJsLoad', function() { - assertTrue(true); -}); diff --git a/remoting/webapp/format_iq.gtestjs b/remoting/webapp/format_iq.gtestjs new file mode 100644 index 0000000..a4ab8e9 --- /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); +}); |