ndt-dev - [ndt-dev] [ndt] r960 committed - Merged FlashIssue117 branch into trunk
Subject: NDT-DEV email list created
List archive
- From:
- To:
- Subject: [ndt-dev] [ndt] r960 committed - Merged FlashIssue117 branch into trunk
- Date: Mon, 24 Feb 2014 10:22:37 +0000
Revision: 960
Author:
Date: Mon Feb 24 10:22:22 2014 UTC
Log: Merged FlashIssue117 branch into trunk
http://code.google.com/p/ndt/source/detail?r=960
Modified:
/trunk
/trunk/flash-client/src/GUI.as
/trunk/flash-client/src/TestResults.as
=======================================
--- /trunk/flash-client/src/GUI.as Fri Feb 21 08:01:33 2014 UTC
+++ /trunk/flash-client/src/GUI.as Mon Feb 24 10:22:22 2014 UTC
@@ -50,7 +50,6 @@
private var _summaryResultText:String;
private var _resultsButton:NDTButton;
private var _detailsButton:NDTButton;
- private var _errorsButton:NDTButton;
private var _debugButton:NDTButton;
private var _activeButton:NDTButton;
private var _restartButton:Sprite;
@@ -171,21 +170,18 @@
_resultsButton.removeEventListener(MouseEvent.ROLL_OVER, rollOver);
_detailsButton.removeEventListener(MouseEvent.ROLL_OVER, rollOver);
- _errorsButton.removeEventListener(MouseEvent.ROLL_OVER, rollOver);
if (_debugButton)
_debugButton.removeEventListener(MouseEvent.ROLL_OVER, rollOver);
_restartButton.removeEventListener(MouseEvent.ROLL_OVER, rollOver);
_resultsButton.removeEventListener(MouseEvent.ROLL_OUT, rollOut);
_detailsButton.removeEventListener(MouseEvent.ROLL_OUT, rollOut);
- _errorsButton.removeEventListener(MouseEvent.ROLL_OUT, rollOut);
if (_debugButton)
_debugButton.removeEventListener(MouseEvent.ROLL_OUT, rollOut);
_restartButton.removeEventListener(MouseEvent.ROLL_OUT, rollOut);
_resultsButton.removeEventListener(MouseEvent.CLICK, clickResults);
_detailsButton.removeEventListener(MouseEvent.CLICK, clickDetails);
- _errorsButton.removeEventListener(MouseEvent.CLICK, clickErrors);
if (_debugButton)
_debugButton.removeEventListener(MouseEvent.CLICK, clickDebug);
_restartButton.removeEventListener(MouseEvent.CLICK, clickRestart);
@@ -226,7 +222,6 @@
_resultsButton = new NDTButton("RESULTS", 18, 30, 0.25);
_detailsButton = new NDTButton("DETAILS", 18, 30, 0.25);
- _errorsButton = new NDTButton("ERRORS", 18, 30, 0.25);
if (CONFIG::debug)
_debugButton = new NDTButton("DEBUG", 18, 30, 0.25);
_restartButton = new NDTButton("RESTART", 18, 30, 0.25);
@@ -236,40 +231,34 @@
verticalMargin = _stageHeight / 6;
_resultsButton.y = verticalMargin;
_detailsButton.y = _resultsButton.y + verticalMargin;
- _errorsButton.y = _detailsButton.y + verticalMargin;
- _debugButton.y = _errorsButton.y + verticalMargin;
+ _debugButton.y = _detailsButton.y + verticalMargin;
_restartButton.y = CONFIG::debug ? _debugButton.y + verticalMargin
- : _errorsButton.y + verticalMargin;
+ : _detailsButton.y + verticalMargin;
_resultsButton.x += _resultsButton.width / 2;
_detailsButton.x += _detailsButton.width / 2;
- _errorsButton.x += _errorsButton.width / 2;
_debugButton.x += _debugButton.width / 2;
_restartButton.x += _restartButton.width / 2;
this.addChild(_resultsButton);
this.addChild(_detailsButton);
- this.addChild(_errorsButton);
if (_debugButton)
this.addChild(_debugButton);
this.addChild(_restartButton);
_resultsButton.addEventListener(MouseEvent.ROLL_OVER, rollOver);
_detailsButton.addEventListener(MouseEvent.ROLL_OVER, rollOver);
- _errorsButton.addEventListener(MouseEvent.ROLL_OVER, rollOver);
if (_debugButton)
_debugButton.addEventListener(MouseEvent.ROLL_OVER, rollOver);
_restartButton.addEventListener(MouseEvent.ROLL_OVER, rollOver);
_resultsButton.addEventListener(MouseEvent.ROLL_OUT, rollOut);
_detailsButton.addEventListener(MouseEvent.ROLL_OUT, rollOut);
- _errorsButton.addEventListener(MouseEvent.ROLL_OUT, rollOut);
if (_debugButton)
_debugButton.addEventListener(MouseEvent.ROLL_OUT, rollOut);
_restartButton.addEventListener(MouseEvent.ROLL_OUT, rollOut);
_resultsButton.addEventListener(MouseEvent.CLICK, clickResults);
_detailsButton.addEventListener(MouseEvent.CLICK, clickDetails);
- _errorsButton.addEventListener(MouseEvent.CLICK, clickErrors);
if (_debugButton)
_debugButton.addEventListener(MouseEvent.CLICK, clickDebug);
_restartButton.addEventListener(MouseEvent.CLICK, clickRestart);
@@ -337,6 +326,12 @@
+ "</font> Mbps</font><br><br>");
}
}
+ if (TestResults.getErrMsg() != "") {
+ _summaryResultText += "There were some errors during the test:<br>"
+ + "<font color=\"#CC3333\"><b>"
+ + TestResults.getErrMsg()
+ + "</b></font>" + "\n";
+ }
}
private function clickResults(e:MouseEvent):void {
@@ -358,13 +353,6 @@
+ TestResults.getDebugMsg();
_resultsTextField.scrollV = 0;
}
-
- private function clickErrors(e:MouseEvent):void {
- changeActiveButton(NDTButton(e.target));
- _resultsTextField.htmlText = "<font size=\"14\">"
- + TestResults.getErrMsg();
- _resultsTextField.scrollV = 0;
- }
private function clickRestart(e:MouseEvent):void {
hideResultsScreen();
=======================================
--- /trunk/flash-client/src/TestResults.as Fri Feb 21 07:41:20 2014 UTC
+++ /trunk/flash-client/src/TestResults.as Mon Feb 24 10:22:22 2014 UTC
@@ -80,9 +80,9 @@
}
public static function appendErrMsg(msg:String):void {
- _errMsg += "<font color=\"#FE9A2E\"><b>" + msg + "</b></font>" + "\n";
+ _errMsg += msg + "\n";
NDTUtils.callExternalFunction("appendErrors", msg);
- appendDebugMsg("<font color=\"#FE9A2E\"><b>" + msg + "</b></font>");
+ appendDebugMsg(msg);
}
public static function appendDebugMsg(msg:String):void {
@@ -111,10 +111,7 @@
}
public static function getErrMsg():String {
- if (_errMsg == "")
- return "No errors!";
- else
- return _errMsg;
+ return _errMsg;
}
public static function interpretResults():void {
- [ndt-dev] [ndt] r960 committed - Merged FlashIssue117 branch into trunk, ndt, 02/24/2014
Archive powered by MHonArc 2.6.16.