Bug 1195295 - Remove race-y SDK test that relied on slow content-sessionStore.js load. r=Mossop
authorMike Conley <mconley@mozilla.com>
Thu, 10 Dec 2015 17:35:45 -0500
changeset 310214 05b98fe2ac4f8d4aade367623f2931b652f543d0
parent 310213 5d5885a15ca7ec5649ab207e39a1ba589d3985bb
child 310215 fff7c04182f9f5ca24e9656e1458efa100b016cc
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMossop
bugs1195295
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1195295 - Remove race-y SDK test that relied on slow content-sessionStore.js load. r=Mossop
addon-sdk/source/test/test-tabs-common.js
--- a/addon-sdk/source/test/test-tabs-common.js
+++ b/addon-sdk/source/test/test-tabs-common.js
@@ -169,34 +169,16 @@ exports.testTabClose_alt = function(asse
 
           tab.close();
         }
       });
     }
   });
 };
 
-exports.testAttachOnOpen_alt = function (assert, done) {
-  // Take care that attach has to be called on tab ready and not on tab open.
-  tabs.open({
-    url: "data:text/html;charset=utf-8,foobar",
-    onOpen: function (tab) {
-      let worker = tab.attach({
-        contentScript: 'self.postMessage(document.location.href); ',
-        onMessage: function (msg) {
-          assert.equal(msg, "about:blank",
-            "Worker document url is about:blank on open");
-          worker.destroy();
-          tab.close(done);
-        }
-      });
-    }
-  });
-};
-
 exports.testAttachOnMultipleDocuments_alt = function (assert, done) {
   // Example of attach that process multiple tab documents
   let firstLocation = "data:text/html;charset=utf-8,foobar";
   let secondLocation = "data:text/html;charset=utf-8,bar";
   let thirdLocation = "data:text/html;charset=utf-8,fox";
   let onReadyCount = 0;
   let worker1 = null;
   let worker2 = null;