[common][tct-rt01-wrt-tests][DPTTIZEN-3171, fix issue] 89/219989/1 tizen_5.5
authorqunfang.lin <qunfang.lin@samsung.com>
Fri, 13 Dec 2019 00:43:16 +0000 (08:43 +0800)
committerqunfang.lin <qunfang.lin@samsung.com>
Fri, 13 Dec 2019 00:48:00 +0000 (08:48 +0800)
-modify 3 TCs

Change-Id: I3c0c15c2cf12cfd819525c92f2a9ac4711c57682
Signed-off-by: qunfang.lin <qunfang.lin@samsung.com>
common/tct-rt01-wrt-tests/other-uri-XMLHttpRequest-get/test_index.html
common/tct-rt01-wrt-tests/other-uri-XMLHttpRequest-head/test_index.html
common/tct-rt01-wrt-tests/other-uri-XMLHttpRequest-post/test_index.html

index 91081db59a0174d9420d6bbe36857ecb4e2f0522..3c4b3b43077e8e0f4e9303acc2f0184749f8cfea 100755 (executable)
@@ -53,7 +53,7 @@ Authors:
             xmlHttp.onreadystatechange = callback;
             xmlHttp.send(null);
             function callback() {
-                if (xmlHttp.readyState == 4 && xmlHttp.status == 0) {
+                if (xmlHttp.readyState == 4 && (xmlHttp.status == 0 || xmlHttp.status == 200)) {
                     t.done();
                 } else {
                     assert_unreached("Fail");
index 3f726902d8c1b0393a457a351e01b06e626bfe3f..2e45cbf3888c63b0fe08dbfb8fdb08f9bbfe7404 100755 (executable)
@@ -52,7 +52,7 @@ Authors:
             xmlHttp.onreadystatechange = callback;
             xmlHttp.send(null);
             function callback() {
-                if (xmlHttp.readyState == 4 && xmlHttp.status == 0) {
+                if (xmlHttp.readyState == 4 && (xmlHttp.status == 0 || xmlHttp.status == 200)) {
                     t.done();
                 } else {
                     assert_unreached("Fail");
index a2c19a31cbcbcbe6891bb81b1c9fbf486e271ec0..5d7c424fd8829daa4ac81c89f1bde74418bce82c 100755 (executable)
@@ -54,7 +54,7 @@ Authors:
             xmlHttp.send(null);
 
             function callback() {
-                if (xmlHttp.readyState == 4 && xmlHttp.status == 0) {
+                if (xmlHttp.readyState == 4 && (xmlHttp.status == 0 || xmlHttp.status == 200)) {
                     t.done();
                 } else {
                     assert_unreached("Fail");