summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/declarative/xmlhttprequest/data/abort.expect2
-rw-r--r--tests/auto/declarative/xmlhttprequest/data/getResponseHeader.expect2
-rw-r--r--tests/auto/declarative/xmlhttprequest/data/open_network.expect2
-rw-r--r--tests/auto/declarative/xmlhttprequest/data/send_data.1.expect2
-rw-r--r--tests/auto/declarative/xmlhttprequest/data/send_data.4.expect2
-rw-r--r--tests/auto/declarative/xmlhttprequest/data/send_data.6.expect2
-rw-r--r--tests/auto/declarative/xmlhttprequest/data/send_ignoreData_GET.expect2
-rw-r--r--tests/auto/declarative/xmlhttprequest/data/send_ignoreData_PUT.expect2
-rw-r--r--tests/auto/declarative/xmlhttprequest/data/setRequestHeader.expect2
-rw-r--r--tests/auto/declarative/xmlhttprequest/data/status.expect2
-rw-r--r--tests/auto/declarative/xmlhttprequest/testhttpserver.cpp2
-rw-r--r--tests/auto/declarative/xmlhttprequest/tst_xmlhttprequest.cpp46
12 files changed, 34 insertions, 34 deletions
diff --git a/tests/auto/declarative/xmlhttprequest/data/abort.expect b/tests/auto/declarative/xmlhttprequest/data/abort.expect
index 5cdc24e..21b803a 100644
--- a/tests/auto/declarative/xmlhttprequest/data/abort.expect
+++ b/tests/auto/declarative/xmlhttprequest/data/abort.expect
@@ -5,6 +5,6 @@ Connection: Keep-Alive
Accept-Encoding: gzip
accept-language: en,*
User-Agent: Mozilla/5.0
-Host: localhost:14445
+Host: 127.0.0.1:14445
Test Data \ No newline at end of file
diff --git a/tests/auto/declarative/xmlhttprequest/data/getResponseHeader.expect b/tests/auto/declarative/xmlhttprequest/data/getResponseHeader.expect
index 40e648e..8d7b95d 100644
--- a/tests/auto/declarative/xmlhttprequest/data/getResponseHeader.expect
+++ b/tests/auto/declarative/xmlhttprequest/data/getResponseHeader.expect
@@ -3,5 +3,5 @@ Connection: Keep-Alive
Accept-Encoding: gzip
accept-language: en,*
User-Agent: Mozilla/5.0
-Host: localhost:14445
+Host: 127.0.0.1:14445
diff --git a/tests/auto/declarative/xmlhttprequest/data/open_network.expect b/tests/auto/declarative/xmlhttprequest/data/open_network.expect
index 40e648e..8d7b95d 100644
--- a/tests/auto/declarative/xmlhttprequest/data/open_network.expect
+++ b/tests/auto/declarative/xmlhttprequest/data/open_network.expect
@@ -3,5 +3,5 @@ Connection: Keep-Alive
Accept-Encoding: gzip
accept-language: en,*
User-Agent: Mozilla/5.0
-Host: localhost:14445
+Host: 127.0.0.1:14445
diff --git a/tests/auto/declarative/xmlhttprequest/data/send_data.1.expect b/tests/auto/declarative/xmlhttprequest/data/send_data.1.expect
index 1ef179b..104f485 100644
--- a/tests/auto/declarative/xmlhttprequest/data/send_data.1.expect
+++ b/tests/auto/declarative/xmlhttprequest/data/send_data.1.expect
@@ -5,6 +5,6 @@ Connection: Keep-Alive
Accept-Encoding: gzip
accept-language: en,*
User-Agent: Mozilla/5.0
-Host: localhost:14445
+Host: 127.0.0.1:14445
My Sent Data \ No newline at end of file
diff --git a/tests/auto/declarative/xmlhttprequest/data/send_data.4.expect b/tests/auto/declarative/xmlhttprequest/data/send_data.4.expect
index 6b10b4a..933628f 100644
--- a/tests/auto/declarative/xmlhttprequest/data/send_data.4.expect
+++ b/tests/auto/declarative/xmlhttprequest/data/send_data.4.expect
@@ -5,6 +5,6 @@ Connection: Keep-Alive
Accept-Encoding: gzip
accept-language: en,*
User-Agent: Mozilla/5.0
-Host: localhost:14445
+Host: 127.0.0.1:14445
My Sent Data \ No newline at end of file
diff --git a/tests/auto/declarative/xmlhttprequest/data/send_data.6.expect b/tests/auto/declarative/xmlhttprequest/data/send_data.6.expect
index dc0d6c2..b466a18 100644
--- a/tests/auto/declarative/xmlhttprequest/data/send_data.6.expect
+++ b/tests/auto/declarative/xmlhttprequest/data/send_data.6.expect
@@ -5,6 +5,6 @@ Connection: Keep-Alive
Accept-Encoding: gzip
accept-language: en,*
User-Agent: Mozilla/5.0
-Host: localhost:14445
+Host: 127.0.0.1:14445
My Sent Data \ No newline at end of file
diff --git a/tests/auto/declarative/xmlhttprequest/data/send_ignoreData_GET.expect b/tests/auto/declarative/xmlhttprequest/data/send_ignoreData_GET.expect
index 40e648e..8d7b95d 100644
--- a/tests/auto/declarative/xmlhttprequest/data/send_ignoreData_GET.expect
+++ b/tests/auto/declarative/xmlhttprequest/data/send_ignoreData_GET.expect
@@ -3,5 +3,5 @@ Connection: Keep-Alive
Accept-Encoding: gzip
accept-language: en,*
User-Agent: Mozilla/5.0
-Host: localhost:14445
+Host: 127.0.0.1:14445
diff --git a/tests/auto/declarative/xmlhttprequest/data/send_ignoreData_PUT.expect b/tests/auto/declarative/xmlhttprequest/data/send_ignoreData_PUT.expect
index 381cc89..4556e8d 100644
--- a/tests/auto/declarative/xmlhttprequest/data/send_ignoreData_PUT.expect
+++ b/tests/auto/declarative/xmlhttprequest/data/send_ignoreData_PUT.expect
@@ -3,5 +3,5 @@ Connection: Keep-Alive
Accept-Encoding: gzip
accept-language: en,*
User-Agent: Mozilla/5.0
-Host: localhost:14445
+Host: 127.0.0.1:14445
diff --git a/tests/auto/declarative/xmlhttprequest/data/setRequestHeader.expect b/tests/auto/declarative/xmlhttprequest/data/setRequestHeader.expect
index 031ddff..da040e7 100644
--- a/tests/auto/declarative/xmlhttprequest/data/setRequestHeader.expect
+++ b/tests/auto/declarative/xmlhttprequest/data/setRequestHeader.expect
@@ -5,5 +5,5 @@ Connection: Keep-Alive
Accept-Encoding: gzip
accept-language: en,*
User-Agent: Mozilla/5.0
-Host: localhost:14445
+Host: 127.0.0.1:14445
diff --git a/tests/auto/declarative/xmlhttprequest/data/status.expect b/tests/auto/declarative/xmlhttprequest/data/status.expect
index 40e648e..8d7b95d 100644
--- a/tests/auto/declarative/xmlhttprequest/data/status.expect
+++ b/tests/auto/declarative/xmlhttprequest/data/status.expect
@@ -3,5 +3,5 @@ Connection: Keep-Alive
Accept-Encoding: gzip
accept-language: en,*
User-Agent: Mozilla/5.0
-Host: localhost:14445
+Host: 127.0.0.1:14445
diff --git a/tests/auto/declarative/xmlhttprequest/testhttpserver.cpp b/tests/auto/declarative/xmlhttprequest/testhttpserver.cpp
index b464a1b..3b00685 100644
--- a/tests/auto/declarative/xmlhttprequest/testhttpserver.cpp
+++ b/tests/auto/declarative/xmlhttprequest/testhttpserver.cpp
@@ -49,7 +49,7 @@ TestHTTPServer::TestHTTPServer(quint16 port)
{
QObject::connect(&server, SIGNAL(newConnection()), this, SLOT(newConnection()));
- server.listen(QHostAddress::Any, port);
+ server.listen(QHostAddress::LocalHost, port);
}
bool TestHTTPServer::isValid() const
diff --git a/tests/auto/declarative/xmlhttprequest/tst_xmlhttprequest.cpp b/tests/auto/declarative/xmlhttprequest/tst_xmlhttprequest.cpp
index 5a1955e..0af7b18 100644
--- a/tests/auto/declarative/xmlhttprequest/tst_xmlhttprequest.cpp
+++ b/tests/auto/declarative/xmlhttprequest/tst_xmlhttprequest.cpp
@@ -265,7 +265,7 @@ void tst_xmlhttprequest::open()
QmlComponent component(&engine, TEST_FILE("open.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
component.completeCreate();
QCOMPARE(object->property("readyState").toBool(), true);
@@ -341,7 +341,7 @@ void tst_xmlhttprequest::setRequestHeader()
QmlComponent component(&engine, TEST_FILE("setRequestHeader.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
component.completeCreate();
TRY_WAIT(object->property("dataOK").toBool() == true);
@@ -403,7 +403,7 @@ void tst_xmlhttprequest::setRequestHeader_illegalName()
QmlComponent component(&engine, TEST_FILE("setRequestHeader_illegalName.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
object->setProperty("header", name);
component.completeCreate();
@@ -431,7 +431,7 @@ void tst_xmlhttprequest::setRequestHeader_sent()
QmlComponent component(&engine, TEST_FILE("setRequestHeader_sent.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
component.completeCreate();
QCOMPARE(object->property("test").toBool(), true);
@@ -480,7 +480,7 @@ void tst_xmlhttprequest::send_ignoreData()
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
object->setProperty("reqType", "GET");
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
component.completeCreate();
TRY_WAIT(object->property("dataOK").toBool() == true);
@@ -499,7 +499,7 @@ void tst_xmlhttprequest::send_ignoreData()
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
object->setProperty("reqType", "HEAD");
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
component.completeCreate();
TRY_WAIT(object->property("dataOK").toBool() == true);
@@ -522,7 +522,7 @@ void tst_xmlhttprequest::send_withdata()
QmlComponent component(&engine, TEST_FILE("send_data.1.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
component.completeCreate();
TRY_WAIT(object->property("dataOK").toBool() == true);
@@ -541,7 +541,7 @@ void tst_xmlhttprequest::send_withdata()
QmlComponent component(&engine, TEST_FILE("send_data.2.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
component.completeCreate();
TRY_WAIT(object->property("dataOK").toBool() == true);
@@ -560,7 +560,7 @@ void tst_xmlhttprequest::send_withdata()
QmlComponent component(&engine, TEST_FILE("send_data.3.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
component.completeCreate();
TRY_WAIT(object->property("dataOK").toBool() == true);
@@ -579,7 +579,7 @@ void tst_xmlhttprequest::send_withdata()
QmlComponent component(&engine, TEST_FILE("send_data.4.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
component.completeCreate();
TRY_WAIT(object->property("dataOK").toBool() == true);
@@ -598,7 +598,7 @@ void tst_xmlhttprequest::send_withdata()
QmlComponent component(&engine, TEST_FILE("send_data.5.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
component.completeCreate();
TRY_WAIT(object->property("dataOK").toBool() == true);
@@ -617,7 +617,7 @@ void tst_xmlhttprequest::send_withdata()
QmlComponent component(&engine, TEST_FILE("send_data.6.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
component.completeCreate();
TRY_WAIT(object->property("dataOK").toBool() == true);
@@ -680,8 +680,8 @@ void tst_xmlhttprequest::abort()
QmlComponent component(&engine, TEST_FILE("abort.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("urlDummy", "http://localhost:14449/testdocument.html");
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("urlDummy", "http://127.0.0.1:14449/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
component.completeCreate();
QCOMPARE(object->property("seenDone").toBool(), true);
@@ -707,7 +707,7 @@ void tst_xmlhttprequest::getResponseHeader()
QmlComponent component(&engine, TEST_FILE("getResponseHeader.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
component.completeCreate();
QCOMPARE(object->property("unsentException").toBool(), true);
@@ -745,7 +745,7 @@ void tst_xmlhttprequest::getAllResponseHeaders()
QmlComponent component(&engine, TEST_FILE("getAllResponseHeaders.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
component.completeCreate();
QCOMPARE(object->property("unsentException").toBool(), true);
@@ -776,7 +776,7 @@ void tst_xmlhttprequest::status()
QmlComponent component(&engine, TEST_FILE("status.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
object->setProperty("expectedStatus", 200);
component.completeCreate();
@@ -803,7 +803,7 @@ void tst_xmlhttprequest::status()
QmlComponent component(&engine, TEST_FILE("status.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
object->setProperty("expectedStatus", 404);
component.completeCreate();
@@ -833,7 +833,7 @@ void tst_xmlhttprequest::statusText()
QmlComponent component(&engine, TEST_FILE("statusText.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
object->setProperty("expectedStatus", "OK");
component.completeCreate();
@@ -860,7 +860,7 @@ void tst_xmlhttprequest::statusText()
QmlComponent component(&engine, TEST_FILE("statusText.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
object->setProperty("expectedStatus", "Document not found");
component.completeCreate();
@@ -890,7 +890,7 @@ void tst_xmlhttprequest::responseText()
QmlComponent component(&engine, TEST_FILE("responseText.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
object->setProperty("expectedText", "QML Rocks!\n");
component.completeCreate();
@@ -917,7 +917,7 @@ void tst_xmlhttprequest::responseText()
QmlComponent component(&engine, TEST_FILE("responseText.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
object->setProperty("expectedText", "");
component.completeCreate();
@@ -944,7 +944,7 @@ void tst_xmlhttprequest::responseText()
QmlComponent component(&engine, TEST_FILE("responseText.qml"));
QObject *object = component.beginCreate(engine.rootContext());
QVERIFY(object != 0);
- object->setProperty("url", "http://localhost:14445/testdocument.html");
+ object->setProperty("url", "http://127.0.0.1:14445/testdocument.html");
object->setProperty("expectedText", "");
component.completeCreate();