Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r1036 committed - Improve advanced page (JS UI)

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r1036 committed - Improve advanced page (JS UI)


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r1036 committed - Improve advanced page (JS UI)
  • Date: Mon, 24 Mar 2014 10:17:53 +0000

Revision: 1036
Author:

Date: Mon Mar 24 10:17:41 2014 UTC
Log: Improve advanced page (JS UI)
http://code.google.com/p/ndt/source/detail?r=1036

Modified:
/branches/Issue133/Applet/src/edu/internet2/ndt/Tcpbw100.java
/branches/Issue133/HTML5-frontend/script.js

=======================================
--- /branches/Issue133/Applet/src/edu/internet2/ndt/Tcpbw100.java Wed Mar 5 08:15:36 2014 UTC
+++ /branches/Issue133/Applet/src/edu/internet2/ndt/Tcpbw100.java Mon Mar 24 10:17:41 2014 UTC
@@ -2786,6 +2786,8 @@
tokens = new StringTokenizer(sTestResParam);
sSysvar = null;
sStrval = null;
+
+ _txtDiagnosis.append("=== Results sent by the server ===\n");
while (tokens.hasMoreTokens()) {
if (++i % 2 == 1) {
sSysvar = tokens.nextToken();
=======================================
--- /branches/Issue133/HTML5-frontend/script.js Fri Mar 18 14:44:18 2011 UTC
+++ /branches/Issue133/HTML5-frontend/script.js Mon Mar 24 10:17:41 2014 UTC
@@ -334,7 +334,31 @@

function testDiagnosis() {
if (simulate) return "Test diagnosis";
- return testApplet().get_diagnosis();
+
+ var tempArray = testNDT().get_diagnosis().split('\n');
+ var d = '';
+
+ var table = false;
+ for (var i = 0; i < tempArray.length; i++) {
+ if (table) {
+ d = d + "<tr><td>";
+ d = d + tempArray[i].replace(":", "</td><td>");
+ d = d + "</td></tr>";
+ }
+ else {
+ d = d + tempArray[i] + "\n";
+ }
+ if (tempArray[i].indexOf('=== Results sent by the server ===') != -1) {
+ d = d + "<table>";
+ table = true;
+ continue;
+ }
+ if (table && (i+1 == tempArray.length || tempArray[i+1] == "")) {
+ d = d + "</table>";
+ table = false;
+ }
+ }
+ return d;
}

function testError() {


  • [ndt-dev] [ndt] r1036 committed - Improve advanced page (JS UI), ndt, 03/24/2014

Archive powered by MHonArc 2.6.16.

Top of Page