summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/xmlhttprequest/data/element.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/xmlhttprequest/data/element.qml')
-rw-r--r--tests/auto/declarative/xmlhttprequest/data/element.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/declarative/xmlhttprequest/data/element.qml b/tests/auto/declarative/xmlhttprequest/data/element.qml
index 79620bf..228db18 100644
--- a/tests/auto/declarative/xmlhttprequest/data/element.qml
+++ b/tests/auto/declarative/xmlhttprequest/data/element.qml
@@ -32,6 +32,15 @@ Object {
if (e.childNodes[childTagNames.length + 1] != null)
return;
+ // Check writing fails
+ e.childNodes[0] = null;
+ if (e.childNodes[0] == null)
+ return;
+
+ e.childNodes[10] = 10;
+ if (e.childNodes[10] != null)
+ return;
+
if (e.firstChild.tagName != e.childNodes[0].tagName)
return;
@@ -70,6 +79,19 @@ Object {
if (attrIdx2 != null)
return;
+ // Check writing fails
+ e.attributes[0] = null;
+ if (e.attributes[0] == null)
+ return;
+
+ e.attributes["attr"] = null;
+ if (e.attributes["attr"] == null)
+ return;
+
+ e.attributes["attr3"] = 10;
+ if (e.attributes["attr3"] != null)
+ return;
+
// Check person and fruit sub elements
if (person.parentNode.nodeName != "root")
return;