| OLD | NEW |
| 1 (function() | 1 (function() |
| 2 { | 2 { |
| 3 let server = null; | 3 let server = null; |
| 4 let frame = null; | 4 let frame = null; |
| 5 | 5 |
| 6 module("Pop-up blocker", { | 6 module("Pop-up blocker", { |
| 7 setup: function() | 7 setup: function() |
| 8 { | 8 { |
| 9 prepareFilterComponents.call(this, true); | 9 prepareFilterComponents.call(this, true); |
| 10 preparePrefs.call(this); | 10 preparePrefs.call(this); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 start(); | 123 start(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 wnd.gBrowser.tabContainer.addEventListener("TabOpen", onTabOpen, false); | 126 wnd.gBrowser.tabContainer.addEventListener("TabOpen", onTabOpen, false); |
| 127 wnd.gBrowser.tabContainer.addEventListener("TabClose", onTabClose, false); | 127 wnd.gBrowser.tabContainer.addEventListener("TabClose", onTabClose, false); |
| 128 let timeout = window.setTimeout(onTabClose, 1000); // In case the tab isn
't opened | 128 let timeout = window.setTimeout(onTabClose, 1000); // In case the tab isn
't opened |
| 129 | 129 |
| 130 frame.contentDocument.getElementById("link").click(); | 130 frame.contentDocument.getElementById("link").click(); |
| 131 } | 131 } |
| 132 | 132 |
| 133 for each (let [filter, result] in tests) | 133 for (let [filter, result] of tests) |
| 134 asyncTest(filter, runTest.bind(null, Filter.fromText(filter), result)); | 134 asyncTest(filter, runTest.bind(null, Filter.fromText(filter), result)); |
| 135 })(); | 135 })(); |
| OLD | NEW |