ndt-dev - [ndt-dev] [ndt] r927 committed - Added possibility to set NDT description via HTML in flash client
Subject: NDT-DEV email list created
List archive
[ndt-dev] [ndt] r927 committed - Added possibility to set NDT description via HTML in flash client
Chronological Thread
- From:
- To:
- Subject: [ndt-dev] [ndt] r927 committed - Added possibility to set NDT description via HTML in flash client
- Date: Tue, 18 Feb 2014 07:55:47 +0000
Revision: 927
Author:
Date: Tue Feb 18 07:55:26 2014 UTC
Log: Added possibility to set NDT description via HTML in flash client
http://code.google.com/p/ndt/source/detail?r=927
Modified:
/branches/FlashIssue112/flash-client/src/GUI.as
/branches/FlashIssue112/flash-client/src/Main.as
/branches/FlashIssue112/flash-client/src/NDTConstants.as
/branches/FlashIssue112/flash-client/src/NDTUtils.as
=======================================
--- /branches/FlashIssue112/flash-client/src/GUI.as Sun Feb 2 19:14:17 2014 UTC
+++ /branches/FlashIssue112/flash-client/src/GUI.as Tue Feb 18 07:55:26 2014 UTC
@@ -75,17 +75,8 @@
_aboutNDTText.height = 0.40 * _stageHeight;
_aboutNDTText.wordWrap = true;
_aboutNDTText.selectable = false;
- _aboutNDTText.text = "Network Diagnostic Tool (NDT) provides a "
- + "sophisticated speed and diagnostic test. An NDT "
- + "test reports more than just the upload and "
- + "download speeds -- it also attempts to determine "
- + "what, if any, problems limited these speeds, "
- + "differentiating between computer configuration "
- + "and network infrastructure problems. While the "
- + "diagnostic messages are most useful for expert "
- + "users, they can also help novice users by "
- + "allowing them to provide detailed trouble "
- + "reports to their network administrator.";
+ _aboutNDTText.text = Main.NDT_description == null ?
+ NDTConstants.NDT_DESCRIPTION : Main.NDT_description;
// 3) Learn more link
_urlRequest = new URLRequest(NDTConstants.MLAB_SITE);
=======================================
--- /branches/FlashIssue112/flash-client/src/Main.as Sun Feb 2 19:14:17 2014 UTC
+++ /branches/FlashIssue112/flash-client/src/Main.as Tue Feb 18 07:55:26 2014 UTC
@@ -26,6 +26,7 @@
public static var locale:String = CONFIG::defaultLocale;
public static var gui:GUI;
public static var server_hostname:String = NDTConstants.SERVER_HOSTNAME;
+ public static var NDT_description:String = NDTConstants.NDT_DESCRIPTION;
public function Main():void {
if (stage)
=======================================
--- /branches/FlashIssue112/flash-client/src/NDTConstants.as Sun Feb 2 19:14:17 2014 UTC
+++ /branches/FlashIssue112/flash-client/src/NDTConstants.as Tue Feb 18 07:55:26 2014 UTC
@@ -29,6 +29,18 @@
"ndt.iupui.mlab1.nuq0t.measurement-lab.org";
// For localization.
public static const BUNDLE_NAME:String = "DisplayMessages";
+ public static const NDT_DESCRIPTION:String =
+ "Network Diagnostic Tool (NDT) provides a "
+ + "sophisticated speed and diagnostic test. An NDT "
+ + "test reports more than just the upload and "
+ + "download speeds -- it also attempts to determine "
+ + "what, if any, problems limited these speeds, "
+ + "differentiating between computer configuration "
+ + "and network infrastructure problems. While the "
+ + "diagnostic messages are most useful for expert "
+ + "users, they can also help novice users by "
+ + "allowing them to provide detailed trouble "
+ + "reports to their network administrator.";
public static const PROTOCOL_MSG_READ_SUCCESS:int = 0;
public static const PROTOCOL_MSG_READ_ERROR:int = 1;
=======================================
--- /branches/FlashIssue112/flash-client/src/NDTUtils.as Sun Feb 2 19:14:17 2014 UTC
+++ /branches/FlashIssue112/flash-client/src/NDTUtils.as Tue Feb 18 07:55:26 2014 UTC
@@ -91,6 +91,14 @@
} catch(e:Error) {
Main.server_hostname = NDTConstants.SERVER_HOSTNAME;
}
+
+ try {
+ Main.NDT_description = ExternalInterface.call("getNDTDescription");
+ TestResults.appendDebugMsg(
+ "Initialized description from JavaScript.");
+ } catch(e:Error) {
+ Main.NDT_description = NDTConstants.NDT_DESCRIPTION;
+ }
}
/**
- [ndt-dev] [ndt] r927 committed - Added possibility to set NDT description via HTML in flash client, ndt, 02/18/2014
Archive powered by MHonArc 2.6.16.