ndt-dev - [ndt-dev] [ndt] r946 committed - Merged Issue123 branch to resolve Issue 123. (Correct for BAD previous...
Subject: NDT-DEV email list created
List archive
[ndt-dev] [ndt] r946 committed - Merged Issue123 branch to resolve Issue 123. (Correct for BAD previous...
Chronological Thread
- From:
- To:
- Subject: [ndt-dev] [ndt] r946 committed - Merged Issue123 branch to resolve Issue 123. (Correct for BAD previous...
- Date: Thu, 20 Feb 2014 20:17:22 +0000
Revision: 946
Author:
Date: Thu Feb 20 20:16:30 2014 UTC
Log: Merged Issue123 branch to resolve Issue 123. (Correct for BAD previous merge.)
http://code.google.com/p/ndt/source/detail?r=946
Modified:
/trunk
/trunk/flash-client/src/Main.as
/trunk/flash-client/src/NDTPController.as
/trunk/flash-client/src/NDTUtils.as
/trunk/flash-client/src/TestMETA.as
=======================================
--- /trunk/flash-client/src/Main.as Thu Feb 20 20:08:46 2014 UTC
+++ /trunk/flash-client/src/Main.as Thu Feb 20 20:16:30 2014 UTC
@@ -26,7 +26,6 @@
public static var locale:String = CONFIG::defaultLocale;
public static var gui:GUI;
public static var server_hostname:String = NDTConstants.SERVER_HOSTNAME;
- public static var client_application:String = NDTConstants.CLIENT_ID;
public function Main():void {
if (stage)
@@ -46,8 +45,7 @@
// Set the properties of the SWF from HTML tags.
NDTUtils.initializeFromHTML(this.root.loaderInfo.parameters);
- var frame:NDTPController = new NDTPController(server_hostname,
- client_application);
+ var frame:NDTPController = new NDTPController(server_hostname);
stage.showDefaultContextMenu = false;
if (guiEnabled) {
=======================================
--- /trunk/flash-client/src/NDTPController.as Thu Feb 20 20:08:46 2014 UTC
+++ /trunk/flash-client/src/NDTPController.as Thu Feb 20 20:16:30 2014 UTC
@@ -42,11 +42,9 @@
private var _remoteTestResults:String;
private var _testsToRun:Array;
private var _testStage:int;
- private var _clientApplication:String;
- public function NDTPController(hostname:String, clientApplication:String) {
+ public function NDTPController(hostname:String) {
_hostname = hostname;
- _clientApplication = clientApplication;
_remoteTestResults = ""
}
@@ -127,9 +125,7 @@
s2c.run();
break;
case TestType.META:
- var meta:TestMETA = new TestMETA(_ctlSocket,
- _clientApplication,
- this);
+ var meta:TestMETA = new TestMETA(_ctlSocket, this);
meta.run();
break;
default:
=======================================
--- /trunk/flash-client/src/NDTUtils.as Thu Feb 20 20:08:46 2014 UTC
+++ /trunk/flash-client/src/NDTUtils.as Thu Feb 20 20:16:30 2014 UTC
@@ -91,20 +91,6 @@
"Initialized server from JavaScript. Server hostname:"
+ Main.server_hostname);
}
- } catch(e:Error) {
- TestResults.appendDebugMsg("Bad Flash permissions: No "
- + "access to javascript.");
- }
- try {
- var js_client_application:String =
- ExternalInterface.call("getClientApplication");
- if (js_client_application) {
- Main.client_application = js_client_application;
- TestResults.appendDebugMsg(
- "Initialized client application from JavaScript. " +
- "Client application: "
- + Main.client_application);
- }
} catch(e:Error) {
TestResults.appendDebugMsg("Bad Flash permissions: No "
+ "access to javascript.");
=======================================
--- /trunk/flash-client/src/TestMETA.as Thu Feb 20 20:08:46 2014 UTC
+++ /trunk/flash-client/src/TestMETA.as Thu Feb 20 20:16:30 2014 UTC
@@ -37,14 +37,10 @@
private var _metaTestSuccess:Boolean;
private var _msg:Message;
private var _testStage:int;
- private var _clientApplication:String;
- public function TestMETA(ctlSocket:Socket,
- clientApplication:String,
- callerObject:NDTPController) {
+ public function TestMETA(ctlSocket:Socket, callerObject:NDTPController) {
_callerObj = callerObject;
_ctlSocket = ctlSocket;
- _clientApplication = clientApplication;
_metaTestSuccess = true; // Initially the test has not failed.
}
@@ -196,13 +192,7 @@
bodyToSend.clear();
bodyToSend.writeUTFBytes(new String(
- NDTConstants.META_CLIENT_APPLICATION + ":" + _clientApplication));
- _msg = new Message(MessageType.TEST_MSG, bodyToSend);
- if (!_msg.sendMessage(_ctlSocket)) {
- _metaTestSuccess = false;
- endTest();
- return;
- }
+ NDTConstants.META_CLIENT_APPLICATION + ":" + NDTConstants.CLIENT_ID));
// Client can send any number of such meta data in a TEST_MSG format and
// signal the send of the transmission using an empty TEST_MSG.
- [ndt-dev] [ndt] r946 committed - Merged Issue123 branch to resolve Issue 123. (Correct for BAD previous..., ndt, 02/20/2014
Archive powered by MHonArc 2.6.16.