Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r958 committed - Updated progress text in flash client

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r958 committed - Updated progress text in flash client


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r958 committed - Updated progress text in flash client
  • Date: Mon, 24 Feb 2014 10:02:29 +0000

Revision: 958
Author:

Date: Mon Feb 24 10:02:07 2014 UTC
Log: Updated progress text in flash client

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

Modified:
/branches/FlashIssue115/flash-client/src/GUI.as
/branches/FlashIssue115/flash-client/src/NDTPController.as

=======================================
--- /branches/FlashIssue115/flash-client/src/GUI.as Thu Feb 20 11:01:38 2014 UTC
+++ /branches/FlashIssue115/flash-client/src/GUI.as Mon Feb 24 10:02:07 2014 UTC
@@ -169,18 +169,19 @@
var textFormat:TextFormat = new TextFormat();
textFormat.size = 14;
textFormat.font = "Verdana";
+ textFormat.bold = true;
textFormat.color = 0x000000;
textFormat.align = TextFormatAlign.RIGHT;
_progressText.defaultTextFormat = textFormat;
- updateProgressText(0);

this.addChild(_consoleText);
this.addChild(_progressText);
_callerObj.startNDTTest();
}

- public function updateProgressText(progress:int):void {
- _progressText.text = "Tests completed: " + progress + "%";
+ public function updateProgressText(completed:int, total:int):void {
+ _progressText.text = "Completed " + completed + " of "
+ + total + " tests";
}

private function hideInitialScreen():void {
=======================================
--- /branches/FlashIssue115/flash-client/src/NDTPController.as Thu Feb 20 11:01:38 2014 UTC
+++ /branches/FlashIssue115/flash-client/src/NDTPController.as Mon Feb 24 10:02:07 2014 UTC
@@ -115,7 +115,7 @@

public function runTests():void {
if (Main.guiEnabled) {
- Main.gui.updateProgressText(_currentTest / _testsToRun.length * 100);
+ Main.gui.updateProgressText(_currentTest, _testsToRun.length);
}

if (_testsToRun.length > _currentTest) {
@@ -250,7 +250,6 @@

TestResults.interpretResults();
if (Main.guiEnabled) {
- Main.gui.updateProgressText(100);
Main.gui.displayResults();
}
}



Archive powered by MHonArc 2.6.16.

Top of Page