//////////////////////////////////////////////////////////////////////////////// /// @brief tests for client-specific functionality /// /// @file /// /// DISCLAIMER /// /// Copyright 2010-2012 triagens GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compliance with the License. /// You may obtain a copy of the License at /// /// http://www.apache.org/licenses/LICENSE-2.0 /// /// Unless required by applicable law or agreed to in writing, software /// distributed under the License is distributed on an "AS IS" BASIS, /// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. /// See the License for the specific language governing permissions and /// limitations under the License. /// /// Copyright holder is triAGENS GmbH, Cologne, Germany /// /// @author Jan Steemann /// @author Copyright 2012, triAGENS GmbH, Cologne, Germany //////////////////////////////////////////////////////////////////////////////// var internal = require("internal"); var jsunity = require("jsunity"); //////////////////////////////////////////////////////////////////////////////// /// @brief test suite //////////////////////////////////////////////////////////////////////////////// function clientTestSuite () { return { //////////////////////////////////////////////////////////////////////////////// /// @brief set up //////////////////////////////////////////////////////////////////////////////// setUp : function () { }, //////////////////////////////////////////////////////////////////////////////// /// @brief tear down //////////////////////////////////////////////////////////////////////////////// tearDown : function () { }, //////////////////////////////////////////////////////////////////////////////// /// @brief test global help function //////////////////////////////////////////////////////////////////////////////// testHelp : function () { help(); }, //////////////////////////////////////////////////////////////////////////////// /// @brief test start_pager function //////////////////////////////////////////////////////////////////////////////// testPagerStart : function () { start_pager(); }, //////////////////////////////////////////////////////////////////////////////// /// @brief test stop_pager function //////////////////////////////////////////////////////////////////////////////// testPagerStop : function () { stop_pager(); }, //////////////////////////////////////////////////////////////////////////////// /// @brief test start_pager function //////////////////////////////////////////////////////////////////////////////// testPagerStartStart : function () { start_pager(); start_pager(); }, //////////////////////////////////////////////////////////////////////////////// /// @brief test stop_pager function //////////////////////////////////////////////////////////////////////////////// testPagerStopStop : function () { stop_pager(); stop_pager(); }, //////////////////////////////////////////////////////////////////////////////// /// @brief test start_pretty_print function //////////////////////////////////////////////////////////////////////////////// testPrettyStart : function () { start_pretty_print(); }, //////////////////////////////////////////////////////////////////////////////// /// @brief test stop_pretty_print function //////////////////////////////////////////////////////////////////////////////// testPrettyStop : function () { stop_pretty_print(); }, //////////////////////////////////////////////////////////////////////////////// /// @brief test start_color_print function //////////////////////////////////////////////////////////////////////////////// testColorStart : function () { start_color_print(); }, //////////////////////////////////////////////////////////////////////////////// /// @brief test start_color_print function //////////////////////////////////////////////////////////////////////////////// testColorStartArg : function () { start_color_print(COLOR_BLUE); }, //////////////////////////////////////////////////////////////////////////////// /// @brief test stop_color_print function //////////////////////////////////////////////////////////////////////////////// testColorStop : function () { stop_color_print(); }, //////////////////////////////////////////////////////////////////////////////// /// @brief test print function //////////////////////////////////////////////////////////////////////////////// testPrint : function () { print(true); }, //////////////////////////////////////////////////////////////////////////////// /// @brief test print_plain function //////////////////////////////////////////////////////////////////////////////// testPrintPlain : function () { print_plain(true); } }; } //////////////////////////////////////////////////////////////////////////////// /// @brief executes the test suite //////////////////////////////////////////////////////////////////////////////// jsunity.run(clientTestSuite); return jsunity.done(); // Local Variables: // mode: outline-minor // outline-regexp: "^\\(/// @brief\\|/// @addtogroup\\|// --SECTION--\\|/// @page\\|/// @}\\)" // End: