tests/auto/declarative/qdeclarativexmlhttprequest/data/utf16.qml
changeset 37 758a864f9613
parent 30 5dc02b23752f
--- a/tests/auto/declarative/qdeclarativexmlhttprequest/data/utf16.qml	Fri Sep 17 08:34:18 2010 +0300
+++ b/tests/auto/declarative/qdeclarativexmlhttprequest/data/utf16.qml	Mon Oct 04 01:19:32 2010 +0300
@@ -3,13 +3,14 @@
 QtObject {
     property bool dataOK: false
 
+    property string fileName
     property string responseText
     property string responseXmlRootNodeValue
 
-    Component.onCompleted: {
+    function startRequest() {
         var x = new XMLHttpRequest;
 
-        x.open("GET", "utf16.xml");
+        x.open("GET", fileName);
 
         // Test to the end
         x.onreadystatechange = function() {