Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove unused test.

  • Loading branch information...
commit 737533e719b4e56c2ab2918e0b8a1fb054ae2c6a 1 parent 048a417
Dave Townsend authored
Showing with 0 additions and 28 deletions.
  1. +0 −28 test/test-context-menu.js
28 test/test-context-menu.js
View
@@ -2291,35 +2291,7 @@ TestHelper.prototype = {
this.closeTab();
while (this.loaders.length) {
- /*let browserManager = this.loaders[0].globalScope.browserManager;
- let topLevelItems = browserManager.topLevelItems.slice();
- let privatePropsKey = this.loaders[0].globalScope.PRIVATE_PROPS_KEY;
- let workerRegs = topLevelItems.map(function (item) {
- return item.valueOf(privatePropsKey)._workerReg;
- });*/
-
this.loaders[0].unload();
-
- // Make sure the browser manager is cleaned up.
- /*this.test.assertEqual(browserManager.browserWins.length, 0,
- "browserManager should have no windows left");
- this.test.assertEqual(browserManager.topLevelItems.length, 0,
- "browserManager should have no items left");
- this.test.assert(!("contentWins" in browserManager),
- "browserManager should have no content windows left");
-
- // Make sure the items' worker registries are cleaned up.
- topLevelItems.forEach(function (item) {
- this.test.assert(!("_workerReg" in item.valueOf(privatePropsKey)),
- "item's worker registry should be removed");
- }, this);
- workerRegs.forEach(function (workerReg) {
- this.test.assertEqual(Object.keys(workerReg.winWorkers).length, 0,
- "worker registry should be empty");
- this.test.assertEqual(
- Object.keys(workerReg.winsWithoutWorkers).length, 0,
- "worker registry list of windows without workers should be empty");
- }, this);*/
}
this.test.done();
}
Please sign in to comment.
Something went wrong with that request. Please try again.