tests/auto/declarative/qdeclarativexmlhttprequest/data/domExceptionCodes.qml
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
       
     1 import Qt 4.7
       
     2 
       
     3 QtObject {
       
     4     property int index_size_err: DOMException.INDEX_SIZE_ERR
       
     5     property int domstring_size_err: DOMException.DOMSTRING_SIZE_ERR
       
     6     property int hierarchy_request_err: DOMException.HIERARCHY_REQUEST_ERR
       
     7     property int wrong_document_err: DOMException.WRONG_DOCUMENT_ERR
       
     8     property int invalid_character_err: DOMException.INVALID_CHARACTER_ERR
       
     9     property int no_data_allowed_err: DOMException.NO_DATA_ALLOWED_ERR
       
    10     property int no_modification_allowed_err: DOMException.NO_MODIFICATION_ALLOWED_ERR
       
    11     property int not_found_err: DOMException.NOT_FOUND_ERR
       
    12     property int not_supported_err: DOMException.NOT_SUPPORTED_ERR
       
    13     property int inuse_attribute_err: DOMException.INUSE_ATTRIBUTE_ERR
       
    14     property int invalid_state_err: DOMException.INVALID_STATE_ERR
       
    15     property int syntax_err: DOMException.SYNTAX_ERR
       
    16     property int invalid_modification_err: DOMException.INVALID_MODIFICATION_ERR
       
    17     property int namespace_err: DOMException.NAMESPACE_ERR
       
    18     property int invalid_access_err: DOMException.INVALID_ACCESS_ERR
       
    19     property int validation_err: DOMException.VALIDATION_ERR
       
    20     property int type_mismatch_err: DOMException.TYPE_MISMATCH_ERR
       
    21 
       
    22     Component.onCompleted: {
       
    23         // Attempt to overwrite and delete values
       
    24         DOMException.INDEX_SIZE_ERR = 44;
       
    25         DOMException.DOMSTRING_SIZE_ERR = 44;
       
    26         DOMException.HIERARCHY_REQUEST_ERR = 44;
       
    27         DOMException.WRONG_DOCUMENT_ERR = 44;
       
    28         DOMException.INVALID_CHARACTER_ERR = 44;
       
    29         DOMException.NO_DATA_ALLOWED_ERR = 44;
       
    30         DOMException.NO_MODIFICATION_ALLOWED_ERR = 44;
       
    31         DOMException.NOT_FOUND_ERR = 44;
       
    32         DOMException.NOT_SUPPORTED_ERR = 44;
       
    33         DOMException.INUSE_ATTRIBUTE_ERR = 44;
       
    34         DOMException.INVALID_STATE_ERR = 44;
       
    35         DOMException.SYNTAX_ERR = 44;
       
    36         DOMException.INVALID_MODIFICATION_ERR = 44;
       
    37         DOMException.NAMESPACE_ERR = 44;
       
    38         DOMException.INVALID_ACCESS_ERR = 44;
       
    39         DOMException.VALIDATION_ERR = 44;
       
    40         DOMException.TYPE_MISMATCH_ERR = 44;
       
    41 
       
    42         delete DOMException.INDEX_SIZE_ERR;
       
    43         delete DOMException.DOMSTRING_SIZE_ERR;
       
    44         delete DOMException.HIERARCHY_REQUEST_ERR;
       
    45         delete DOMException.WRONG_DOCUMENT_ERR;
       
    46         delete DOMException.INVALID_CHARACTER_ERR;
       
    47         delete DOMException.NO_DATA_ALLOWED_ERR;
       
    48         delete DOMException.NO_MODIFICATION_ALLOWED_ERR;
       
    49         delete DOMException.NOT_FOUND_ERR;
       
    50         delete DOMException.NOT_SUPPORTED_ERR;
       
    51         delete DOMException.INUSE_ATTRIBUTE_ERR;
       
    52         delete DOMException.INVALID_STATE_ERR;
       
    53         delete DOMException.SYNTAX_ERR;
       
    54         delete DOMException.INVALID_MODIFICATION_ERR;
       
    55         delete DOMException.NAMESPACE_ERR;
       
    56         delete DOMException.INVALID_ACCESS_ERR;
       
    57         delete DOMException.VALIDATION_ERR;
       
    58         delete DOMException.TYPE_MISMATCH_ERR;
       
    59     }
       
    60 }