From 72e58f0959d7a141c49be00629645bfc6a9f9acd Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Fri, 28 Dec 2012 16:42:51 +0000 Subject: [PATCH] Fix JavaScript Unit tests --- .../tests/client_side/qunit/index.html | 18 ++++++++-------- .../qunit/test_cases/pluginmanager_tests.js | 21 ------------------- 2 files changed, 9 insertions(+), 30 deletions(-) delete mode 100644 src/messenger/tests/client_side/qunit/test_cases/pluginmanager_tests.js diff --git a/src/messenger/tests/client_side/qunit/index.html b/src/messenger/tests/client_side/qunit/index.html index 52bc74b8..b8549419 100644 --- a/src/messenger/tests/client_side/qunit/index.html +++ b/src/messenger/tests/client_side/qunit/index.html @@ -10,20 +10,20 @@
+ + + - - + + - - - - - - - + + diff --git a/src/messenger/tests/client_side/qunit/test_cases/pluginmanager_tests.js b/src/messenger/tests/client_side/qunit/test_cases/pluginmanager_tests.js deleted file mode 100644 index a6e19028..00000000 --- a/src/messenger/tests/client_side/qunit/test_cases/pluginmanager_tests.js +++ /dev/null @@ -1,21 +0,0 @@ -// Testing PluginManager class -module('PluginManager'); - -test('getPlugin', function() { - var pluginManager = new PluginManager(); - // Try to load not stored plugin - equal( - pluginManager.getPlugin('WrongPlugin'), - false, - 'Test loading not stored plugin' - ) - - // Try save and load test plugin - var testPlugin = {'testField': 'testValue'} - pluginManager.addPlugin('TestPlugin', testPlugin); - deepEqual( - pluginManager.getPlugin('TestPlugin'), - testPlugin, - 'Test loading stored plugin' - ); -}); \ No newline at end of file