Skip to content

Commit

Permalink
Fix tests for x domain request.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Yandell committed Mar 25, 2010
1 parent 41b3e02 commit 9aa315f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/net/net.js
Expand Up @@ -905,12 +905,12 @@

_XDomainRequest.prototype = {
/**
@name _XDomainRequest#send
@name _XDomainRequest#_send
@private
@function
@description Send the request
*/
send: function () {
_send: function () {
this._addIframe();
this._addForm();
this._addTimeout();
Expand All @@ -928,8 +928,6 @@
this.iframe = glow.dom.create(
'<iframe style="visibility: hidden; position: absolute; height: 0;"></iframe>'
);
$('body').append(this.iframe);

var iframe = this.iframe[0],
request = this,
callback = function () {
Expand All @@ -941,6 +939,7 @@
} else {
iframe.onload = callback;
}
$('body').append(this.iframe);
},

/**
Expand Down
Empty file.
14 changes: 14 additions & 0 deletions test/testdata/xdomain/windowdotname.html
@@ -0,0 +1,14 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
<head>
<title></title>
<script type="text/javascript">
window.name = 'test response';
</script>
</head>
<body></body>
</html>




0 comments on commit 9aa315f

Please sign in to comment.