Permalink
Browse files

Removed the NixTransport test

  • Loading branch information...
1 parent 4f9366b commit a9dc42d557f33501c041777ec1556a850a41b526 @oyvindkinsey oyvindkinsey committed Jun 7, 2011
Showing with 0 additions and 47 deletions.
  1. +0 −47 src/tests/tests.js
View
@@ -359,53 +359,6 @@ function runTests(){
}
}]
}, {
- name: "test easyXDM.Socket{NixTransport}",
- runIf: function(){
- if (!("ActiveXObject" in window && (/msie [67]/i).test(navigator.userAgent))) {
- return "This test requires IE6/7";
- }
- },
-
- setUp: function(){
- this.expectedMessage = ++i + "_abcd1234%@¤/";
- },
- steps: [{
- name: "onReady is fired",
- timeout: 5000,
- run: function(){
- var scope = this;
- var messages = 0;
- this.transport = new easyXDM.Socket({
- protocol: "3",
- local: "../name.html",
- remote: REMOTE + "/test_transport.html",
- onMessage: function(message, origin){
- if (scope.expectedMessage === message) {
- if (++messages === 2) {
- scope.notifyResult(true);
- }
- }
- },
- onReady: function(){
- scope.notifyResult(true);
- }
- });
- }
- }, {
- name: "message is echoed back",
- timeout: 5000,
- run: function(){
- this.transport.postMessage(this.expectedMessage);
- this.transport.postMessage(this.expectedMessage);
- }
- }, {
- name: "destroy",
- run: function(){
- this.transport.destroy();
- return ((document.getElementsByTagName("iframe").length === 0));
- }
- }]
- }, {
name: "test easyXDM.Socket{NameTransport}",
failedMessage: "This might fail in modern browsers due to restrictions in referencing existing windows",
setUp: function(){

0 comments on commit a9dc42d

Please sign in to comment.