Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r910 committed - Some small fixes in console formatting

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r910 committed - Some small fixes in console formatting


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r910 committed - Some small fixes in console formatting
  • Date: Thu, 13 Feb 2014 10:01:16 +0000

Revision: 910
Author:

Date: Thu Feb 13 10:01:00 2014 UTC
Log: Some small fixes in console formatting

http://code.google.com/p/ndt/source/detail?r=910

Modified:
/branches/FlashIssue116/flash-client/src/GUI.as
/branches/FlashIssue116/flash-client/src/Handshake.as
/branches/FlashIssue116/flash-client/src/NDTPController.as
/branches/FlashIssue116/flash-client/src/TestC2S.as
/branches/FlashIssue116/flash-client/src/TestMETA.as
/branches/FlashIssue116/flash-client/src/TestResults.as
/branches/FlashIssue116/flash-client/src/TestS2C.as

=======================================
--- /branches/FlashIssue116/flash-client/src/GUI.as Sun Feb 2 19:14:17 2014 UTC
+++ /branches/FlashIssue116/flash-client/src/GUI.as Thu Feb 13 10:01:00 2014 UTC
@@ -177,7 +177,7 @@
* Add text to the console while the NDT test is running.
*/
public function addConsoleOutput(text:String):void {
- _consoleText.appendText(text);
+ _consoleText.htmlText += text;
_consoleText.scrollV++;
}

=======================================
--- /branches/FlashIssue116/flash-client/src/Handshake.as Sun Feb 2 19:14:17 2014 UTC
+++ /branches/FlashIssue116/flash-client/src/Handshake.as Thu Feb 13 10:01:00 2014 UTC
@@ -306,14 +306,14 @@
}

private function failHandshake():void {
- TestResults.appendDebugMsg("Handshake: FAIL.");
+ TestResults.appendDebugMsg("Handshake: FAIL.<br>");

removeOnReceivedDataListener();
_callerObj.failNDTTest();
}

private function endHandshake(confirmedTests:String):void {
- TestResults.appendDebugMsg("Handshake: END.");
+ TestResults.appendDebugMsg("Handshake: END.<br>");

removeOnReceivedDataListener();
_callerObj.initiateTests(confirmedTests);
=======================================
--- /branches/FlashIssue116/flash-client/src/NDTPController.as Sun Feb 2 19:14:17 2014 UTC
+++ /branches/FlashIssue116/flash-client/src/NDTPController.as Thu Feb 13 10:01:00 2014 UTC
@@ -228,7 +228,7 @@
public function succeedNDTTest():void {
TestResults.ndt_test_results::ndtTestFailed = false;
NDTUtils.callExternalFunction("allTestsCompleted");
- TestResults.appendDebugMsg("All the tests completed successfully.");
+ TestResults.appendDebugMsg("<font color=\"#006400\">" + "All the tests completed successfully." + "</font>");
finishNDTTest();
}

=======================================
--- /branches/FlashIssue116/flash-client/src/TestC2S.as Sun Feb 2 19:14:17 2014 UTC
+++ /branches/FlashIssue116/flash-client/src/TestC2S.as Thu Feb 13 10:01:00 2014 UTC
@@ -423,12 +423,12 @@
TestResults.appendDebugMsg(
ResourceManager.getInstance().getString(
NDTConstants.BUNDLE_NAME, "c2sThroughput", null, Main.locale)
- + " test " + ResourceManager.getInstance().getString(
- NDTConstants.BUNDLE_NAME, "done", null, Main.locale));
+ + " test <font color=\"#006400\"><b>" + ResourceManager.getInstance().getString(
+ NDTConstants.BUNDLE_NAME, "done", null, Main.locale) + "</b></font><br>");
else
- TestResults.appendDebugMsg(ResourceManager.getInstance().getString(
- NDTConstants.BUNDLE_NAME, "c2sThroughputFailed", null,
- Main.locale));
+ TestResults.appendDebugMsg("<font color=\"#FE9A2E\">" +
+ ResourceManager.getInstance().getString(
+ NDTConstants.BUNDLE_NAME, "c2sThroughputFailed", null, Main.locale) + "</font>");
TestResults.ndt_test_results::c2sTestSuccess = _c2sTestSuccess;
TestResults.ndt_test_results::ndtTestStatus = "done";
NDTUtils.callExternalFunction("testCompleted", "ClientToServerThroughput",
=======================================
--- /branches/FlashIssue116/flash-client/src/TestMETA.as Sun Feb 2 19:14:17 2014 UTC
+++ /branches/FlashIssue116/flash-client/src/TestMETA.as Thu Feb 13 10:01:00 2014 UTC
@@ -241,11 +241,12 @@
TestResults.appendDebugMsg(
ResourceManager.getInstance().getString(
NDTConstants.BUNDLE_NAME, "meta", null, Main.locale)
- + " test " + ResourceManager.getInstance().getString(
- NDTConstants.BUNDLE_NAME, "done", null, Main.locale));
+ + " test <font color=\"#006400\"><b>" + ResourceManager.getInstance().getString(
+ NDTConstants.BUNDLE_NAME, "done", null, Main.locale) + "</b></font><br>");
else
- TestResults.appendDebugMsg(ResourceManager.getInstance().getString(
- NDTConstants.BUNDLE_NAME, "metaFailed", null, Main.locale));
+ TestResults.appendDebugMsg("<font color=\"#FE9A2E\">" +
+ ResourceManager.getInstance().getString(
+ NDTConstants.BUNDLE_NAME, "metaFailed", null, Main.locale) + "</font>");

TestResults.ndt_test_results::ndtTestStatus = "done";
NDTUtils.callExternalFunction(
=======================================
--- /branches/FlashIssue116/flash-client/src/TestResults.as Sun Feb 2 19:14:17 2014 UTC
+++ /branches/FlashIssue116/flash-client/src/TestResults.as Thu Feb 13 10:01:00 2014 UTC
@@ -80,16 +80,16 @@
}

public static function appendErrMsg(msg:String):void {
- _errMsg += msg + "\n";
+ _errMsg += "<font color=\"#FE9A2E\"><b>" + msg + "</b></font>" + "\n";
NDTUtils.callExternalFunction("appendErrors", msg);
- appendDebugMsg(msg);
+ appendDebugMsg("<font color=\"#FE9A2E\"><b>" + msg + "</b></font>");
}

public static function appendDebugMsg(msg:String):void {
if (!CONFIG::debug) {
return;
}
- var formattedMsg:String = (new Date().toUTCString()) + ": " + msg + "\n";
+ var formattedMsg:String = "<font size=\"12\">" + (new Date().toUTCString()) + ": " + "</font>" + msg + "\n";
_debugMsg += formattedMsg;
NDTUtils.callExternalFunction("appendDebugOutput", msg);
// _ndtTestStartTime > 0 ensures the console window has been created.
=======================================
--- /branches/FlashIssue116/flash-client/src/TestS2C.as Sun Feb 2 19:14:17 2014 UTC
+++ /branches/FlashIssue116/flash-client/src/TestS2C.as Thu Feb 13 10:01:00 2014 UTC
@@ -490,12 +490,12 @@
TestResults.appendDebugMsg(
ResourceManager.getInstance().getString(
NDTConstants.BUNDLE_NAME, "s2cThroughput", null, Main.locale)
- + " test " + ResourceManager.getInstance().getString(
- NDTConstants.BUNDLE_NAME, "done", null, Main.locale));
+ + " test <font color=\"#006400\"><b>" + ResourceManager.getInstance().getString(
+ NDTConstants.BUNDLE_NAME, "done", null, Main.locale) + "</b></font><br>");
else
- TestResults.appendDebugMsg(ResourceManager.getInstance().getString(
- NDTConstants.BUNDLE_NAME, "s2cThroughputFailed", null,
- Main.locale));
+ TestResults.appendDebugMsg("<font color=\"#FE9A2E\">" +
+ ResourceManager.getInstance().getString(
+ NDTConstants.BUNDLE_NAME, "s2cThroughputFailed", null, Main.locale) + "</font>");

TestResults.ndt_test_results::s2cTestSuccess = _s2cTestSuccess;
TestResults.ndt_test_results::ndtTestStatus = "done";


  • [ndt-dev] [ndt] r910 committed - Some small fixes in console formatting, ndt, 02/13/2014

Archive powered by MHonArc 2.6.16.

Top of Page