Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: chrome/content/tests/popupBlocker.js

Issue 6423769060999168: Issue 301 - adblockplustests: Use for (.. of ..) (Closed)
Patch Set: Created April 12, 2014, 1:48 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 })();
OLDNEW
« no previous file with comments | « chrome/content/tests/performance/page_load_overhead.html ('k') | chrome/content/tests/subscriptionClasses.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld