reorder test, status check last
authorWolfram Schneider <wosch@indexdata.dk>
Fri, 30 Aug 2013 11:11:51 +0000 (13:11 +0200)
committerWolfram Schneider <wosch@indexdata.dk>
Fri, 30 Aug 2013 11:11:51 +0000 (13:11 +0200)
test/spec/mkws-pazpar2.js

index 9a5746f..ee096b4 100644 (file)
@@ -185,34 +185,6 @@ describe("Check Termlist", function () {
     });
 });
 
-describe("Check status client counter", function () {
-    function get_time() {
-        var date = new Date();
-        return date.getTime();
-    }
-    var time = get_time();
-
-    it("check status clients", function () {
-
-        waitsFor(function () {
-            var clients = $("div#mkwsStat span.clients");
-            if (clients.length == 1 && clients.text() == "0/1") {
-                return true;
-            } else {
-                return false;
-            }
-
-        }, "wait for status", 4 * 1000);
-
-    });
-    runs(function () {
-        var clients = $("div#mkwsStat span.clients");
-        debug("span.clients: " + clients.text());
-        expect(clients.text()).toEqual("0/1");
-    });
-
-});
-
 describe("Check switch menu Records/Targets", function () {
     it("check mkwsSwitch", function () {
         expect($("div#mkwsSwitch").length).toBe(1);
@@ -252,6 +224,34 @@ describe("Check switch menu Records/Targets", function () {
     });
 });
 
+describe("Check status client counter", function () {
+    function get_time() {
+        var date = new Date();
+        return date.getTime();
+    }
+    var time = get_time();
+
+    it("check status clients", function () {
+
+        waitsFor(function () {
+            var clients = $("div#mkwsStat span.clients");
+            if (clients.length == 1 && clients.text() == "0/1") {
+                return true;
+            } else {
+                return false;
+            }
+
+        }, "wait for status", 4 * 1000);
+
+    });
+    runs(function () {
+        var clients = $("div#mkwsStat span.clients");
+        debug("span.clients: " + clients.text());
+        expect(clients.text()).toEqual("0/1");
+    });
+
+});
+
 /* dummy EOF */
 describe("All tests are done", function () {
     it(">>> hooray <<<", function () {});